diff --git a/docs/source/sctool/partials/sctool_start.yaml b/docs/source/sctool/partials/sctool_start.yaml index aad81d1a12..59209ee3c3 100644 --- a/docs/source/sctool/partials/sctool_start.yaml +++ b/docs/source/sctool/partials/sctool_start.yaml @@ -9,6 +9,10 @@ options: shorthand: c usage: | The target cluster `name or ID` (envvar SCYLLA_MANAGER_CLUSTER). + - name: enable + default_value: "false" + usage: | + Enable the task if it was disabled. - name: help shorthand: h default_value: "false" @@ -17,6 +21,10 @@ options: default_value: "false" usage: | Do not resume the last run. + - name: soft + default_value: "false" + usage: | + The task will be started only if its last run hasn't finished successfully or when it finished successfully and it missed its activation scheduled after that. inherited_options: - name: api-cert-file usage: | diff --git a/go.work b/go.work new file mode 100644 index 0000000000..7728f9d662 --- /dev/null +++ b/go.work @@ -0,0 +1,8 @@ +go 1.25.1 + +use ( + . + ./v3/pkg/managerclient + ./v3/pkg/util + ./v3/swagger +) diff --git a/go.work.sum b/go.work.sum new file mode 100644 index 0000000000..45cb828659 --- /dev/null +++ b/go.work.sum @@ -0,0 +1,35 @@ +bazil.org/fuse v0.0.0-20200524192727-fb710f7dfd05/go.mod h1:h0h5FBYpXThbvSfTqthw+0I4nmHnhTHkO5BoOHsBWqg= +cloud.google.com/go/compute v1.19.1 h1:am86mquDUgjGNWxiGn+5PGLbmgiWXlE/yNWpIpNvuXY= +github.com/a8m/tree v0.0.0-20201026183218-fce18e2a750e/go.mod h1:FSdwKX97koS5efgm8WevNf7XS3PqtyFkKDDXrz778cg= +github.com/alecthomas/kingpin/v2 v2.4.0/go.mod h1:0gyi0zQnjuFk8xrkNKamJoyUo382HRL7ATRpFZCw6tE= +github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137/go.mod h1:OMCwj8VM1Kc9e19TLln2VL61YJF0x1XFtfdL4JdbSyE= +github.com/anacrolix/dms v1.1.0/go.mod h1:msPKAoppoNRfrYplJqx63FZ+VipDZ4Xsj3KzIQxyU7k= +github.com/atotto/clipboard v0.1.2/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI= +github.com/billziss-gh/cgofuse v1.4.0/go.mod h1:LJjoaUojlVjgo5GQoEJTcJNqZJeRU0nCR84CyxKt2YM= +github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= +github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= +github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/hanwen/go-fuse/v2 v2.0.3/go.mod h1:0EQM6aH2ctVpvZ6a+onrQ/vaykxh2GH7hy3e13vzTUY= +github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= +github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= +github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= +github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/nsf/termbox-go v0.0.0-20200418040025-38ba6e5628f1/go.mod h1:IuKpRQcYE1Tfu+oAQqaLisqDeXgjyyltCfsaoYN18NQ= +github.com/sevlyar/go-daemon v0.1.5/go.mod h1:6dJpPatBT9eUwM5VCw9Bt6CdX9Tk6UWvhW3MebLDRKE= +github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= +github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= +github.com/xdg-go/scram v1.1.2/go.mod h1:RT/sEzTbU5y00aCK8UOx6R7YryM0iF1N2MOmC3kKLN4= +github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gijq1dTyGkM= +github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU= +goftp.io/server v0.4.0/go.mod h1:hFZeR656ErRt3ojMKt7H10vQ5nuWV1e0YeUTeorlR6k= +golang.org/x/crypto v0.44.0/go.mod h1:013i+Nw79BMiQiMsOPcVCB5ZIJbYkerPrGnOa00tvmc= +golang.org/x/net v0.46.0/go.mod h1:Q9BGdFy1y4nkUwiLvT5qtyhAnEHgnQ/zd8PfU6nc210= +golang.org/x/sync v0.17.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= +golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.37.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/telemetry v0.0.0-20251008203120-078029d740a8/go.mod h1:Pi4ztBfryZoJEkyFTI5/Ocsu2jXyDr6iSdgJiYE/uwE= +golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= diff --git a/pkg/command/cluster/clusterlist/cmd_integration_api_test.go b/pkg/command/cluster/clusterlist/cmd_integration_api_test.go index 37724880aa..4dd942a32e 100644 --- a/pkg/command/cluster/clusterlist/cmd_integration_api_test.go +++ b/pkg/command/cluster/clusterlist/cmd_integration_api_test.go @@ -123,7 +123,7 @@ func TestSctoolClusterListCredentialsIntegrationAPITest(t *testing.T) { "--alternator-access-key-id", "id", "--alternator-secret-access-key", "key", }, updateArgs: []string{"--delete-alternator-credentials"}, - expectedOutputPattern: ` .*\| .*\| .*\| .*\| Alternator`, + expectedOutputPattern: ` .*\| .*\| .*\| .*\| CQL`, }, } { t.Run(tc.name, func(t *testing.T) { diff --git a/pkg/command/start/cmd.go b/pkg/command/start/cmd.go index 0d49fd4307..b86be010f6 100644 --- a/pkg/command/start/cmd.go +++ b/pkg/command/start/cmd.go @@ -21,6 +21,8 @@ type command struct { cluster string noContinue bool + enable bool + soft bool } func NewCommand(client *managerclient.Client) *cobra.Command { @@ -46,6 +48,8 @@ func (cmd *command) init() { w := flag.Wrap(cmd.Flags()) w.Cluster(&cmd.cluster) w.Unwrap().BoolVar(&cmd.noContinue, "no-continue", false, "") + w.Unwrap().BoolVar(&cmd.enable, "enable", false, "") + w.Unwrap().BoolVar(&cmd.soft, "soft", false, "") } func (cmd *command) run(args []string) error { @@ -53,5 +57,10 @@ func (cmd *command) run(args []string) error { if err != nil { return err } - return cmd.client.StartTask(cmd.Context(), cmd.cluster, taskType, taskID, !cmd.noContinue) + params := managerclient.StartTaskParams{ + Continue: !cmd.noContinue, + Enable: cmd.enable, + Soft: cmd.soft, + } + return cmd.client.StartTaskWithParams(cmd.Context(), cmd.cluster, taskType, taskID, params) } diff --git a/pkg/command/start/cmd_integration_api_test.go b/pkg/command/start/cmd_integration_api_test.go new file mode 100644 index 0000000000..3120c74375 --- /dev/null +++ b/pkg/command/start/cmd_integration_api_test.go @@ -0,0 +1,146 @@ +// Copyright (C) 2025 ScyllaDB + +//go:build all || api_integration + +package start + +import ( + "context" + "testing" + "time" + + "github.com/go-openapi/strfmt" + "github.com/scylladb/scylla-manager/v3/pkg/managerclient" + "github.com/scylladb/scylla-manager/v3/pkg/testutils" + "github.com/scylladb/scylla-manager/v3/pkg/util/timeutc" + "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" +) + +const ( + authToken = "token" + clusterIntroHost = "192.168.200.11" +) + +func TestSoftStartIntegrationAPITest(t *testing.T) { + client, err := managerclient.NewClient("http://localhost:5080/api/v1") + if err != nil { + t.Fatalf("Unable to create managerclient to consume manager HTTP API, err = {%v}", err) + } + + clusterID, err := client.CreateCluster(context.Background(), &models.Cluster{ + AuthToken: authToken, + Host: clusterIntroHost, + }) + if err != nil { + t.Fatalf("Unable to create cluster, err = {%v}", err) + } + + defer func() { + if err := client.DeleteCluster(context.Background(), clusterID); err != nil { + t.Fatalf("Failed to delete cluster, err = {%v}", err) + } + }() + + t.Log("Create task with schedule in the far future") + sd := strfmt.DateTime(timeutc.Now().Add(time.Hour)) + taskID, err := client.CreateTask(context.Background(), clusterID, &managerclient.Task{ + Type: managerclient.RepairTask, + Enabled: true, + Properties: make(map[string]interface{}), + Schedule: &managerclient.Schedule{ + Cron: "* * * * *", + StartDate: &sd, + }, + }) + if err != nil { + t.Fatalf("Failed to create task, err = {%v}", err) + } + + t.Log("Disable task") + if err := client.StopTask(context.Background(), clusterID, managerclient.RepairTask, taskID, true); err != nil { + t.Fatal(err) + } + + t.Log("Enable and soft start task for the first time") + err = client.StartTaskWithParams(context.Background(), clusterID, managerclient.RepairTask, taskID, managerclient.StartTaskParams{ + Enable: true, + Soft: true, + }) + if err != nil { + t.Fatal(err) + } + + t.Log("Wait for task to start running") + waitTaskStatus(t, client, clusterID, managerclient.RepairTask, taskID.String(), managerclient.TaskStatusRunning, time.Second, 5*time.Second) + + t.Log("Stop task") + if err := client.StopTask(context.Background(), clusterID, managerclient.RepairTask, taskID, false); err != nil { + t.Fatal(err) + } + + t.Log("Wait for task to stop") + waitTaskStatus(t, client, clusterID, managerclient.RepairTask, taskID.String(), managerclient.TaskStatusStopped, time.Second, 5*time.Second) + + t.Log("Ensure that the task has no success") + task := getTask(t, client, clusterID, managerclient.RepairTask, taskID.String()) + if task.LastSuccess != nil || task.SuccessCount != 0 { + t.Fatal("Expected no task success") + } + + t.Log("Soft start task after stop") + err = client.StartTaskWithParams(context.Background(), clusterID, managerclient.RepairTask, taskID, managerclient.StartTaskParams{ + Soft: true, + }) + if err != nil { + t.Fatal(err) + } + + t.Log("Wait for task to start running") + waitTaskStatus(t, client, clusterID, managerclient.RepairTask, taskID.String(), managerclient.TaskStatusRunning, time.Second, 5*time.Second) + + t.Log("Wait for task to be done") + waitTaskStatus(t, client, clusterID, managerclient.RepairTask, taskID.String(), managerclient.TaskStatusDone, time.Second, 5*time.Minute) + + t.Log("Ensure that task has success") + task = getTask(t, client, clusterID, managerclient.RepairTask, taskID.String()) + if task.LastSuccess == nil || task.SuccessCount != 1 { + t.Fatal("Expected 1 task success") + } + + t.Log("Soft start task after success") + err = client.StartTaskWithParams(context.Background(), clusterID, managerclient.RepairTask, taskID, managerclient.StartTaskParams{ + Soft: true, + }) + if err != nil { + t.Fatal(err) + } + + t.Log("Ensure that task was not started again") + task = getTask(t, client, clusterID, managerclient.RepairTask, taskID.String()) + if task.Status != managerclient.TaskStatusDone { + t.Fatalf("Expected task to be done, got %q", task.Status) + } + if task.LastSuccess == nil || task.SuccessCount != 1 { + t.Fatal("Expected 1 task success") + } +} + +func getTask(t *testing.T, client managerclient.Client, clusterID, taskType, taskID string) *models.TaskListItem { + t.Helper() + + tasks, err := client.ListTasks(context.Background(), clusterID, taskType, true, "", taskID) + if err != nil { + t.Fatal(err) + } + if len(tasks.TaskListItemSlice) != 1 { + t.Fatalf("Expected one task, got %d", len(tasks.TaskListItemSlice)) + } + return tasks.TaskListItemSlice[0] +} + +func waitTaskStatus(t *testing.T, client managerclient.Client, clusterID, taskType, taskID, status string, interval, wait time.Duration) { + testutils.WaitCond(t, func() bool { + task := getTask(t, client, clusterID, taskType, taskID) + return task.Status == status + }, interval, wait) +} diff --git a/pkg/command/start/res.yaml b/pkg/command/start/res.yaml index c7cc46eadf..126ff3e993 100644 --- a/pkg/command/start/res.yaml +++ b/pkg/command/start/res.yaml @@ -8,3 +8,9 @@ long: | no-continue: | Do not resume the last run. + +enable: | + Enable the task if it was disabled. + +soft: | + The task will be started only if its last run hasn't finished successfully or when it finished successfully and it missed its activation scheduled after that. \ No newline at end of file diff --git a/pkg/restapi/services.go b/pkg/restapi/services.go index 0264765359..fe55b38248 100644 --- a/pkg/restapi/services.go +++ b/pkg/restapi/services.go @@ -91,8 +91,8 @@ type SchedService interface { DeleteTask(ctx context.Context, t *scheduler.Task) error ListTasks(ctx context.Context, clusterID uuid.UUID, filter scheduler.ListFilter) ([]*scheduler.TaskListItem, error) StartTask(ctx context.Context, t *scheduler.Task) error - StartTaskNoContinue(ctx context.Context, t *scheduler.Task) error StopTask(ctx context.Context, t *scheduler.Task) error + SetTaskNoContinue(taskID uuid.UUID, force bool) GetRun(ctx context.Context, t *scheduler.Task, runID uuid.UUID) (*scheduler.Run, error) GetNthLastRun(ctx context.Context, t *scheduler.Task, n int) (*scheduler.Run, error) GetLastRuns(ctx context.Context, t *scheduler.Task, n int) ([]*scheduler.Run, error) diff --git a/pkg/restapi/task.go b/pkg/restapi/task.go index a86b545586..fefde1ba83 100644 --- a/pkg/restapi/task.go +++ b/pkg/restapi/task.go @@ -20,6 +20,7 @@ import ( "github.com/scylladb/scylla-manager/v3/pkg/service/restore" "github.com/scylladb/scylla-manager/v3/pkg/service/scheduler" "github.com/scylladb/scylla-manager/v3/pkg/util" + "github.com/scylladb/scylla-manager/v3/pkg/util/timeutc" "github.com/scylladb/scylla-manager/v3/pkg/util/uuid" ) @@ -365,33 +366,80 @@ func (h *taskHandler) deleteTask(w http.ResponseWriter, r *http.Request) { func (h *taskHandler) startTask(w http.ResponseWriter, r *http.Request) { t := mustTaskFromCtx(r) - noContinue, err := h.noContinue(r) + cont, err := parseBoolParam(r, "continue") if err != nil { respondBadRequest(w, r, err) + return } - - if noContinue { - err = h.Scheduler.StartTaskNoContinue(r.Context(), t) - } else { - err = h.Scheduler.StartTask(r.Context(), t) + enable, err := parseBoolParam(r, "enable") + if err != nil { + respondBadRequest(w, r, err) + return } + soft, err := parseBoolParam(r, "soft") if err != nil { - respondError(w, r, errors.Wrapf(err, "start task %q", t.ID)) + respondBadRequest(w, r, err) return } -} -func (h *taskHandler) noContinue(r *http.Request) (bool, error) { - v := r.FormValue("continue") - if v == "" { - return false, nil + if !cont { + // Soft started tasks might not be started right away. + // Because of that, we need ot force their no continue + // to skip timestamp validation. + h.Scheduler.SetTaskNoContinue(t.ID, soft) } - b, err := strconv.ParseBool(v) + if enable { + t.Enabled = true + // Putting the task might start it (according to its schedule), + // but starting an already running task is a no-op, so that's not a problem. + // We need to put task before handling soft start, because the checks that + // it performs are based on lousy timestamp comparison, so we want to first + // schedule the task according to its schedule (which also works on timestamps), + // and only after that evaluate whether we need to additionally start it or not. + // Without that, we could skip task activation in corner cases. + if err := h.Scheduler.PutTask(r.Context(), t); err != nil { + respondError(w, r, errors.Wrapf(err, "enable task %q", t.ID)) + return + } + } + + if soft { + ok, err := h.shouldSoftStartTask(r.Context(), t) + if err != nil { + respondError(w, r, errors.Wrapf(err, "check soft start for task %q", t.ID)) + return + } + if !ok { + // When soft start is used, task should + // be started only if it missed its activation. + return + } + } + + if err = h.Scheduler.StartTask(r.Context(), t); err != nil { + respondError(w, r, errors.Wrapf(err, "start task %q", t.ID)) + return + } +} + +// shouldSoftStartTask checks if task should be soft started by taking a look at its last run. +// If the last run ended with anything else than scheduler.StatusDone, the task should be started. +// Otherwise, the task should be started only if it missed its activation scheduled at the end of the last successfully run. +// This means that new, stopped, out of maintenance window, failed tasks will always be started. +func (h *taskHandler) shouldSoftStartTask(ctx context.Context, t *scheduler.Task) (bool, error) { + run, err := h.Scheduler.GetNthLastRun(ctx, t, 0) if err != nil { - return false, errors.Wrap(err, "parse continue param") + if errors.Is(err, util.ErrNotFound) { + return true, nil + } + return false, errors.Wrap(err, "get last task run") } - return !b, nil + if run.Status == scheduler.StatusDone && run.EndTime != nil { + next := t.Sched.Trigger().Next(*run.EndTime) + return !next.IsZero() && next.Before(timeutc.Now()), nil + } + return true, nil } func (h *taskHandler) stopTask(w http.ResponseWriter, r *http.Request) { @@ -550,3 +598,15 @@ func tryReadOffset(s string) (int, error) { } return -1, nil } + +func parseBoolParam(r *http.Request, name string) (bool, error) { + v := r.URL.Query().Get(name) + if v == "" { + return false, nil + } + b, err := strconv.ParseBool(v) + if err != nil { + return false, util.ErrValidate(errors.Wrapf(err, "parse %q query param", name)) + } + return b, nil +} diff --git a/pkg/service/scheduler/details.go b/pkg/service/scheduler/details.go index 869c367b64..47fd4d218f 100644 --- a/pkg/service/scheduler/details.go +++ b/pkg/service/scheduler/details.go @@ -9,7 +9,7 @@ import ( func details(t *Task) scheduler.Details { return scheduler.Details{ Properties: t.Properties, - Trigger: t.Sched.trigger(), + Trigger: t.Sched.Trigger(), Backoff: t.Sched.backoff(), Window: t.Sched.Window.Window(), Location: t.Sched.Timezone.Location(), diff --git a/pkg/service/scheduler/model.go b/pkg/service/scheduler/model.go index 848b11581e..4a220efb89 100644 --- a/pkg/service/scheduler/model.go +++ b/pkg/service/scheduler/model.go @@ -224,7 +224,8 @@ type Schedule struct { RetryWait duration.Duration `json:"retry_wait"` } -func (s Schedule) trigger() schedules.Trigger { +// Trigger returning next activations. +func (s Schedule) Trigger() schedules.Trigger { if !s.Cron.IsZero() { return s.Cron } diff --git a/pkg/service/scheduler/service.go b/pkg/service/scheduler/service.go index 409abd44e5..d4126832bd 100644 --- a/pkg/service/scheduler/service.go +++ b/pkg/service/scheduler/service.go @@ -56,7 +56,7 @@ type Service struct { resolver resolver scheduler map[uuid.UUID]*Scheduler suspended map[uuid.UUID]suspendParams - noContinue map[uuid.UUID]time.Time + noContinue map[uuid.UUID]noContinueParams closed bool mu sync.Mutex } @@ -65,6 +65,15 @@ type suspendParams struct { AllowTask AllowedTaskType } +type noContinueParams struct { + // timestamp of when the no continue was set. + // It is used to bypass no continue which is too old. + timestamp time.Time + // force dictates whether task should be started from scratch + // regardless of when (timestamp) the no continue was set. + force bool +} + func NewService(session gocqlx.Session, metrics metrics.SchedulerMetrics, drawer store.Store, logger log.Logger) (*Service, error) { s := &Service{ session: session, @@ -78,7 +87,7 @@ func NewService(session gocqlx.Session, metrics metrics.SchedulerMetrics, drawer resolver: newResolver(), scheduler: make(map[uuid.UUID]*Scheduler), suspended: make(map[uuid.UUID]suspendParams), - noContinue: make(map[uuid.UUID]time.Time), + noContinue: make(map[uuid.UUID]noContinueParams), } s.runners[SuspendTask] = suspendRunner{service: s} @@ -479,7 +488,7 @@ func (s *Service) run(ctx RunContext) (runErr error) { if ctx.Properties.(Properties) == nil { ctx.Properties = json.RawMessage("{}") } - if ctx.Retry == 0 && now().Sub(c) < noContinueThreshold { + if (cok && c.force) || (ctx.Retry == 0 && now().Sub(c.timestamp) < noContinueThreshold) { ctx.Properties = jsonutil.Set(ctx.Properties.(Properties), "continue", false) } if d != nil { @@ -608,18 +617,11 @@ func (s *Service) DeleteTask(ctx context.Context, t *Task) error { // StartTask starts execution of a task immediately. func (s *Service) StartTask(ctx context.Context, t *Task) error { - return s.startTask(ctx, t, false) -} - -// StartTaskNoContinue starts execution of a task immediately and adds the -// "no_continue" flag to properties of the next run. -// The possible retries would not have the flag enabled. -func (s *Service) StartTaskNoContinue(ctx context.Context, t *Task) error { - return s.startTask(ctx, t, true) + return s.startTask(ctx, t) } -func (s *Service) startTask(ctx context.Context, t *Task, noContinue bool) error { - s.logger.Debug(ctx, "StartTask", "task", t, "no_continue", noContinue) +func (s *Service) startTask(ctx context.Context, t *Task) error { + s.logger.Debug(ctx, "StartTask", "task", t) s.mu.Lock() if s.isSuspendedForTaskLocked(t.ClusterID, t.Type) { @@ -631,9 +633,6 @@ func (s *Service) startTask(ctx context.Context, t *Task, noContinue bool) error l = s.newScheduler(t.ClusterID) s.scheduler[t.ClusterID] = l } - if noContinue { - s.noContinue[t.ID] = now() - } s.mu.Unlock() // For regular tasks trigger will be enough but for one shot or disabled @@ -669,6 +668,18 @@ func (s *Service) StopTask(ctx context.Context, t *Task) error { return nil } +// SetTaskNoContinue marks that the next task activation should run from scratch. +// It does so by adding "no_continue" flag to properties of the next run. +// The possible retries would not have the flag enabled. +func (s *Service) SetTaskNoContinue(taskID uuid.UUID, force bool) { + s.mu.Lock() + s.noContinue[taskID] = noContinueParams{ + timestamp: now(), + force: force, + } + s.mu.Unlock() +} + func (s *Service) updateRunStatus(r *Run) error { // Only update if running as there is a race between manually stopping // a run and the run returning normally. diff --git a/pkg/service/scheduler/service_integration_test.go b/pkg/service/scheduler/service_integration_test.go index c5dcf5c68e..a9560426a6 100644 --- a/pkg/service/scheduler/service_integration_test.go +++ b/pkg/service/scheduler/service_integration_test.go @@ -597,7 +597,47 @@ func TestServiceScheduleIntegration(t *testing.T) { } Print("When: task is started") - h.service.StartTaskNoContinue(ctx, task) + h.service.SetTaskNoContinue(task.ID, false) + h.service.StartTask(ctx, task) + + Print("Then: task is ran two times") + h.assertStatus(task, scheduler.StatusRunning) + h.runner.Error() + h.assertStatus(task, scheduler.StatusError) + + h.assertStatus(task, scheduler.StatusRunning) + h.runner.Error() + h.assertStatus(task, scheduler.StatusError) + + Print("And: task is not executed") + h.assertNotStatus(task, scheduler.StatusRunning) + + Print("And: properties are preserved") + if diff := cmp.Diff(h.runner.Properties(), props); diff != "" { + t.Fatal(diff) + } + }) + + t.Run("start task no continue force", func(t *testing.T) { + h := newSchedTestHelper(t, session) + defer h.close() + ctx := context.Background() + + Print("Given: task scheduled in future") + task := h.makeTaskWithStartDate(now().Add(time.Second)) + task.Sched.NumRetries = 1 + task.Sched.RetryWait = duration.Duration(10 * time.Millisecond) + if err := h.service.PutTask(ctx, task); err != nil { + t.Fatal(err) + } + + props := []json.RawMessage{ + json.RawMessage(`{"continue":false}`), + json.RawMessage(`{}`), + } + + Print("When: task is started on its own") + h.service.SetTaskNoContinue(task.ID, true) Print("Then: task is ran two times") h.assertStatus(task, scheduler.StatusRunning) diff --git a/testing/api-tests.Dockerfile b/testing/api-tests.Dockerfile index ae9fea2ca4..541a1dddfa 100644 --- a/testing/api-tests.Dockerfile +++ b/testing/api-tests.Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.23.2-alpine +FROM golang:1.25.1-alpine RUN apk --no-cache add make && apk add bash diff --git a/v3/pkg/managerclient/client.go b/v3/pkg/managerclient/client.go index 308b63a378..d5c372b023 100644 --- a/v3/pkg/managerclient/client.go +++ b/v3/pkg/managerclient/client.go @@ -298,6 +298,27 @@ func (c *Client) StartTask(ctx context.Context, clusterID, taskType string, task return err } +// StartTaskParams describe additional params for starting a task. +type StartTaskParams struct { + Continue bool + Enable bool + Soft bool +} + +// StartTaskWithParams starts executing a task. +func (c *Client) StartTaskWithParams(ctx context.Context, clusterID, taskType string, taskID uuid.UUID, params StartTaskParams) error { + _, err := c.operations.PutClusterClusterIDTaskTaskTypeTaskIDStart(&operations.PutClusterClusterIDTaskTaskTypeTaskIDStartParams{ + Context: ctx, + ClusterID: clusterID, + TaskType: taskType, + TaskID: taskID.String(), + Continue: params.Continue, + Enable: params.Enable, + Soft: params.Soft, + }) + return err +} + // StopTask stops executing a task. func (c *Client) StopTask(ctx context.Context, clusterID, taskType string, taskID uuid.UUID, disable bool) error { _, err := c.operations.PutClusterClusterIDTaskTaskTypeTaskIDStop(&operations.PutClusterClusterIDTaskTaskTypeTaskIDStopParams{ // nolint: errcheck diff --git a/v3/pkg/managerclient/go.mod b/v3/pkg/managerclient/go.mod index 73840b7647..b109dfb4cc 100644 --- a/v3/pkg/managerclient/go.mod +++ b/v3/pkg/managerclient/go.mod @@ -47,7 +47,8 @@ require ( go.opentelemetry.io/otel/trace v1.24.0 // indirect go.uber.org/atomic v1.11.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/sync v0.8.0 // indirect + golang.org/x/sync v0.18.0 // indirect + golang.org/x/sys v0.38.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/v3/pkg/managerclient/go.sum b/v3/pkg/managerclient/go.sum index 15ddb342c2..094b1951ca 100644 --- a/v3/pkg/managerclient/go.sum +++ b/v3/pkg/managerclient/go.sum @@ -108,10 +108,10 @@ go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE= go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= -golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I= +golang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= +golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc= +golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/v3/pkg/util/go.mod b/v3/pkg/util/go.mod index 858dce9445..9570c20e26 100644 --- a/v3/pkg/util/go.mod +++ b/v3/pkg/util/go.mod @@ -19,19 +19,21 @@ require ( go.uber.org/atomic v1.11.0 go.uber.org/config v1.4.0 go.uber.org/multierr v1.11.0 - golang.org/x/sys v0.24.0 + golang.org/x/sys v0.38.0 gopkg.in/yaml.v2 v2.4.0 ) require ( github.com/golang/snappy v0.0.4 // indirect github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed // indirect + github.com/kr/pretty v0.3.1 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/scylladb/go-reflectx v1.0.1 // indirect go.uber.org/zap v1.21.0 // indirect - golang.org/x/lint v0.0.0-20190930215403-16217165b5de // indirect - golang.org/x/text v0.16.0 // indirect - golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect + golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect + golang.org/x/text v0.31.0 // indirect + golang.org/x/tools v0.38.0 // indirect google.golang.org/protobuf v1.34.2 // indirect gopkg.in/inf.v0 v0.9.1 // indirect ) diff --git a/v3/pkg/util/go.sum b/v3/pkg/util/go.sum index 03d2b8226f..5982b6453e 100644 --- a/v3/pkg/util/go.sum +++ b/v3/pkg/util/go.sum @@ -7,6 +7,7 @@ github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869 h1:DDGfHa7BWjL4Yn github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4= github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8= github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -30,13 +31,16 @@ github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed/go.mod h1:tMW github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY= github.com/hashicorp/go-version v1.7.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -49,6 +53,9 @@ github.com/prometheus/common v0.57.0/go.mod h1:7uRPFSUTbfZWsJ7MHY56sqt7hLQu3bxXH github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs= github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/scylladb/go-log v0.0.7 h1:gtIfCRaUcYpoJN17bpNkdX7tEoyXtRH6neTuihWSrT0= github.com/scylladb/go-log v0.0.7/go.mod h1:kzHqijtjSAIQEoqJZ6c181WyeYa8+0nHiRperB5op0s= github.com/scylladb/go-reflectx v1.0.1 h1:b917wZM7189pZdlND9PbIJ6NQxfDPfBvUaQ7cjj1iZQ= @@ -82,33 +89,33 @@ go.uber.org/zap v1.21.0/go.mod h1:wjWOCqI0f2ZZrJF/UufIOkiC8ii6tm1iqIsLo76RfJw= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/lint v0.0.0-20190930215403-16217165b5de h1:5hukYrvBGR8/eNkX5mdUezrA6JiaEZDtJb9Ei+1LlBs= golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 h1:VLliZ0d+/avPrXXH+OakdXhpJuEoBZuwh1m2j7U6Iug= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= -golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.29.0 h1:HV8lRxZC4l2cr3Zq1LvtOsi/ThTgWnUk/y64QSs8GwA= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= -golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.24.0 h1:Twjiwq9dn6R1fQcyiK+wQyHWfaz/BJB+YIpzU/Cv3Xg= -golang.org/x/sys v0.24.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc= +golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM= +golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= @@ -116,9 +123,10 @@ golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191104232314-dc038396d1f0/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg= -golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= +golang.org/x/tools v0.38.0 h1:Hx2Xv8hISq8Lm16jvBZ2VQf+RLmbd7wVUsALibYI/IQ= +golang.org/x/tools v0.38.0/go.mod h1:yEsQ/d/YK8cjh0L6rZlY8tgtlKiBNTL14pGDJPJpYQs= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_start_parameters.go b/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_start_parameters.go index 831d82b967..33fcfe49de 100644 --- a/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_start_parameters.go +++ b/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_start_parameters.go @@ -66,6 +66,16 @@ type PutClusterClusterIDTaskTaskTypeTaskIDStartParams struct { ClusterID string /*Continue*/ Continue bool + /*Enable + Enable the task if it was disabled + + */ + Enable bool + /*Soft + The task will be started only if its last run hasn't finished successfully or when it finished successfully and it missed its activation scheduled after that + + */ + Soft bool /*TaskID*/ TaskID string /*TaskType*/ @@ -131,6 +141,28 @@ func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) SetContinue(continueV o.Continue = continueVar } +// WithEnable adds the enable to the put cluster cluster ID task task type task ID start params +func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) WithEnable(enable bool) *PutClusterClusterIDTaskTaskTypeTaskIDStartParams { + o.SetEnable(enable) + return o +} + +// SetEnable adds the enable to the put cluster cluster ID task task type task ID start params +func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) SetEnable(enable bool) { + o.Enable = enable +} + +// WithSoft adds the soft to the put cluster cluster ID task task type task ID start params +func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) WithSoft(soft bool) *PutClusterClusterIDTaskTaskTypeTaskIDStartParams { + o.SetSoft(soft) + return o +} + +// SetSoft adds the soft to the put cluster cluster ID task task type task ID start params +func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) SetSoft(soft bool) { + o.Soft = soft +} + // WithTaskID adds the taskID to the put cluster cluster ID task task type task ID start params func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) WithTaskID(taskID string) *PutClusterClusterIDTaskTaskTypeTaskIDStartParams { o.SetTaskID(taskID) @@ -175,6 +207,24 @@ func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) WriteToRequest(r runt } } + // query param enable + qrEnable := o.Enable + qEnable := swag.FormatBool(qrEnable) + if qEnable != "" { + if err := r.SetQueryParam("enable", qEnable); err != nil { + return err + } + } + + // query param soft + qrSoft := o.Soft + qSoft := swag.FormatBool(qrSoft) + if qSoft != "" { + if err := r.SetQueryParam("soft", qSoft); err != nil { + return err + } + } + // path param task_id if err := r.SetPathParam("task_id", o.TaskID); err != nil { return err diff --git a/v3/swagger/go.mod b/v3/swagger/go.mod index 3c43f37e01..469a94ffb5 100644 --- a/v3/swagger/go.mod +++ b/v3/swagger/go.mod @@ -8,7 +8,7 @@ require ( github.com/go-openapi/strfmt v0.23.0 github.com/go-openapi/swag v0.23.0 github.com/go-openapi/validate v0.24.0 - golang.org/x/tools v0.24.0 + golang.org/x/tools v0.38.0 ) require ( @@ -30,6 +30,7 @@ require ( go.opentelemetry.io/otel v1.24.0 // indirect go.opentelemetry.io/otel/metric v1.24.0 // indirect go.opentelemetry.io/otel/trace v1.24.0 // indirect - golang.org/x/sync v0.8.0 // indirect + golang.org/x/sync v0.18.0 // indirect + golang.org/x/sys v0.38.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/v3/swagger/go.sum b/v3/swagger/go.sum index 2683f135b8..4910a02dde 100644 --- a/v3/swagger/go.sum +++ b/v3/swagger/go.sum @@ -64,12 +64,12 @@ go.opentelemetry.io/otel/sdk v1.24.0 h1:YMPPDNymmQN3ZgczicBY3B6sf9n62Dlj9pWD3ucg go.opentelemetry.io/otel/sdk v1.24.0/go.mod h1:KVrIYw6tEubO9E96HQpcmpTKDVn9gdv35HoYiQWGDFg= go.opentelemetry.io/otel/trace v1.24.0 h1:CsKnnL4dUAr/0llH9FKuc698G04IrpWV0MQA/Y1YELI= go.opentelemetry.io/otel/trace v1.24.0/go.mod h1:HPc3Xr/cOApsBI154IU0OI0HJexz+aw5uPdbs3UCjNU= -golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= -golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sys v0.23.0 h1:YfKFowiIMvtgl1UERQoTPPToxltDeZfbj4H7dVUCwmM= -golang.org/x/sys v0.23.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/tools v0.24.0 h1:J1shsA93PJUEVaUSaay7UXAyE8aimq3GW0pjlolpa24= -golang.org/x/tools v0.24.0/go.mod h1:YhNqVBIfWHdzvTLs0d8LCuMhkKUgSUKldakyV7W/WDQ= +golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I= +golang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= +golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc= +golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/tools v0.38.0 h1:Hx2Xv8hISq8Lm16jvBZ2VQf+RLmbd7wVUsALibYI/IQ= +golang.org/x/tools v0.38.0/go.mod h1:yEsQ/d/YK8cjh0L6rZlY8tgtlKiBNTL14pGDJPJpYQs= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/v3/swagger/scylla-manager.json b/v3/swagger/scylla-manager.json index 8b076f8e69..0aab9ca4f9 100644 --- a/v3/swagger/scylla-manager.json +++ b/v3/swagger/scylla-manager.json @@ -1850,6 +1850,20 @@ "name": "continue", "in": "query", "required": true + }, + { + "type": "boolean", + "name": "enable", + "in": "query", + "required": true, + "description": "Enable the task if it was disabled" + }, + { + "type": "boolean", + "name": "soft", + "in": "query", + "required": true, + "description": "The task will be started only if its last run hasn't finished successfully or when it finished successfully and it missed its activation scheduled after that" } ], "put": { diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/LICENSE b/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/LICENSE deleted file mode 100644 index 0ad25db4bd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/backup.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/backup.go deleted file mode 100644 index 7bd459e5f4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/backup.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package managerclient - -// Stage enumeration. -const ( - BackupStageInit string = "INIT" - BackupStageSnapshot string = "SNAPSHOT" - BackupStageAwaitSchema string = "AWAIT_SCHEMA" - BackupStageIndex string = "INDEX" - BackupStageManifest string = "MANIFEST" - BackupStageSchema string = "SCHEMA" - BackupStageDeduplicate string = "DEDUPLICATE" - BackupStageUpload string = "UPLOAD" - BackupStageMoveManifest string = "MOVE_MANIFEST" - BackupStageMigrate string = "MIGRATE" - BackupStagePurge string = "PURGE" - BackupStageDone string = "DONE" -) - -var backupStageName = map[string]string{ - BackupStageInit: "initialising", - BackupStageSnapshot: "taking snapshot", - BackupStageAwaitSchema: "awaiting schema agreement", - BackupStageIndex: "indexing files", - BackupStageManifest: "uploading manifests", - BackupStageSchema: "uploading schema", - BackupStageDeduplicate: "deduplicating the snapshot", - BackupStageUpload: "uploading data", - BackupStageMoveManifest: "moving manifests", - BackupStageMigrate: "migrating legacy metadata", - BackupStagePurge: "retention", - BackupStageDone: "", -} - -// BackupStageName returns verbose name for backup stage. -func BackupStageName(s string) string { - return backupStageName[s] -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/client.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/client.go deleted file mode 100644 index 308b63a378..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/client.go +++ /dev/null @@ -1,749 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package managerclient - -import ( - "context" - "crypto/tls" - "net" - "net/http" - "net/url" - "os" - "runtime" - "strconv" - "strings" - "sync" - "time" - - api "github.com/go-openapi/runtime/client" - "github.com/go-openapi/runtime/middleware" - "github.com/go-openapi/strfmt" - "github.com/hbollon/go-edlib" - "github.com/pkg/errors" - "github.com/scylladb/scylla-manager/v3/pkg/util/pointer" - "github.com/scylladb/scylla-manager/v3/pkg/util/uuid" - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations" - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -var disableOpenAPIDebugOnce sync.Once - -// Client provides means to interact with Scylla Manager. -type Client struct { - operations operations.ClientService -} - -// DefaultTransport specifies default HTTP transport to be used in NewClient if -// nil transport is provided. -var DefaultTransport = &http.Transport{ - Proxy: http.ProxyFromEnvironment, - DialContext: (&net.Dialer{ - Timeout: 30 * time.Second, - KeepAlive: 30 * time.Second, - }).DialContext, - MaxIdleConns: 100, - IdleConnTimeout: 90 * time.Second, - TLSHandshakeTimeout: 10 * time.Second, - ExpectContinueTimeout: 1 * time.Second, - MaxIdleConnsPerHost: runtime.GOMAXPROCS(0) + 1, - - TLSClientConfig: DefaultTLSConfig(), -} - -// DefaultTLSConfig specifies default TLS configuration used when creating a new -// client. -var DefaultTLSConfig = func() *tls.Config { - return &tls.Config{ - InsecureSkipVerify: true, - } -} - -// Option allows decorating underlying HTTP client in NewClient. -type Option func(*http.Client) - -func NewClient(rawURL string, opts ...Option) (Client, error) { - u, err := url.Parse(rawURL) - if err != nil { - return Client{}, err - } - - disableOpenAPIDebugOnce.Do(func() { - middleware.Debug = false - }) - - httpClient := &http.Client{ - Transport: DefaultTransport, - } - for _, o := range opts { - o(httpClient) - } - - r := api.NewWithClient(u.Host, u.Path, []string{u.Scheme}, httpClient) - // debug can be turned on by SWAGGER_DEBUG or DEBUG env variable - // we change that to SCTOOL_DUMP_HTTP - r.Debug, _ = strconv.ParseBool(os.Getenv("SCTOOL_DUMP_HTTP")) - - return Client{operations: operations.New(r, strfmt.Default)}, nil -} - -// CreateCluster creates a new cluster. -func (c *Client) CreateCluster(ctx context.Context, cluster *Cluster) (string, error) { - resp, err := c.operations.PostClusters(&operations.PostClustersParams{ - Context: ctx, - Cluster: cluster, - }) - if err != nil { - return "", err - } - - clusterID, err := uuidFromLocation(resp.Location) - if err != nil { - return "", errors.Wrap(err, "cannot parse response") - } - - return clusterID.String(), nil -} - -// GetCluster returns a cluster for a given ID. -func (c *Client) GetCluster(ctx context.Context, clusterID string) (*Cluster, error) { - resp, err := c.operations.GetClusterClusterID(&operations.GetClusterClusterIDParams{ - Context: ctx, - ClusterID: clusterID, - }) - if err != nil { - return nil, err - } - - return resp.Payload, nil -} - -// UpdateCluster updates cluster. -func (c *Client) UpdateCluster(ctx context.Context, cluster *Cluster) error { - _, err := c.operations.PutClusterClusterID(&operations.PutClusterClusterIDParams{ // nolint: errcheck - Context: ctx, - ClusterID: cluster.ID, - Cluster: cluster, - }) - return err -} - -// DeleteCluster removes cluster. -func (c *Client) DeleteCluster(ctx context.Context, clusterID string) error { - _, err := c.operations.DeleteClusterClusterID(&operations.DeleteClusterClusterIDParams{ // nolint: errcheck - Context: ctx, - ClusterID: clusterID, - }) - return err -} - -// DeleteClusterSecrets removes cluster secrets. -func (c *Client) DeleteClusterSecrets(ctx context.Context, clusterID string, cqlCreds, alternatorCreds, sslUserCert bool) error { - ok := false - p := &operations.DeleteClusterClusterIDParams{ - Context: ctx, - ClusterID: clusterID, - } - if cqlCreds { - p.CqlCreds = &cqlCreds - ok = true - } - if alternatorCreds { - p.AlternatorCreds = &alternatorCreds - ok = true - } - if sslUserCert { - p.SslUserCert = &sslUserCert - ok = true - } - - if !ok { - return nil - } - - _, err := c.operations.DeleteClusterClusterID(p) // nolint: errcheck - return err -} - -// ListClusters returns clusters. -func (c *Client) ListClusters(ctx context.Context) (ClusterSlice, error) { - resp, err := c.operations.GetClusters(&operations.GetClustersParams{ - Context: ctx, - }) - if err != nil { - return nil, err - } - - return resp.Payload, nil -} - -// ClusterStatus returns health check progress. -func (c *Client) ClusterStatus(ctx context.Context, clusterID string) (ClusterStatus, error) { - resp, err := c.operations.GetClusterClusterIDStatus(&operations.GetClusterClusterIDStatusParams{ - Context: ctx, - ClusterID: clusterID, - }) - if err != nil { - return nil, err - } - - return ClusterStatus(resp.Payload), nil -} - -// GetRepairTarget fetches information about repair target. -func (c *Client) GetRepairTarget(ctx context.Context, clusterID string, t *Task) (*RepairTarget, error) { - resp, err := c.operations.GetClusterClusterIDTasksRepairTarget(&operations.GetClusterClusterIDTasksRepairTargetParams{ - Context: ctx, - ClusterID: clusterID, - TaskFields: makeTaskUpdate(t), - }) - if err != nil { - return nil, err - } - - return &RepairTarget{RepairTarget: *resp.Payload}, nil -} - -// GetBackupTarget fetches information about repair target. -func (c *Client) GetBackupTarget(ctx context.Context, clusterID string, t *Task) (*BackupTarget, error) { - resp, err := c.operations.GetClusterClusterIDTasksBackupTarget(&operations.GetClusterClusterIDTasksBackupTargetParams{ - Context: ctx, - ClusterID: clusterID, - TaskFields: makeTaskUpdate(t), - }) - if err != nil { - return nil, err - } - - return &BackupTarget{BackupTarget: *resp.Payload}, nil -} - -// GetRestoreTarget fetches information about restore target. -func (c *Client) GetRestoreTarget(ctx context.Context, clusterID string, t *Task) (*RestoreTarget, error) { - resp, err := c.operations.GetClusterClusterIDTasksRestoreTarget(&operations.GetClusterClusterIDTasksRestoreTargetParams{ - Context: ctx, - ClusterID: clusterID, - TaskFields: makeTaskUpdate(t), - }) - if err != nil { - return nil, err - } - - return &RestoreTarget{RestoreTarget: *resp.Payload}, nil -} - -// CreateTask creates a new task. -func (c *Client) CreateTask(ctx context.Context, clusterID string, t *Task) (uuid.UUID, error) { - params := &operations.PostClusterClusterIDTasksParams{ - Context: ctx, - ClusterID: clusterID, - TaskFields: makeTaskUpdate(t), - } - resp, err := c.operations.PostClusterClusterIDTasks(params) - if err != nil { - return uuid.Nil, err - } - - taskID, err := uuidFromLocation(resp.Location) - if err != nil { - return uuid.Nil, errors.Wrap(err, "cannot parse response") - } - - return taskID, nil -} - -// GetTask returns a task of a given type and ID. -func (c *Client) GetTask(ctx context.Context, clusterID, taskType string, taskID uuid.UUID) (*Task, error) { - resp, err := c.operations.GetClusterClusterIDTaskTaskTypeTaskID(&operations.GetClusterClusterIDTaskTaskTypeTaskIDParams{ - Context: ctx, - ClusterID: clusterID, - TaskType: taskType, - TaskID: taskID.String(), - }) - if err != nil { - return nil, err - } - - return resp.Payload, nil -} - -// GetTaskHistory returns a run history of task of a given type and task ID. -func (c *Client) GetTaskHistory(ctx context.Context, clusterID, taskType string, taskID uuid.UUID, limit int64) (TaskRunSlice, error) { - params := &operations.GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams{ - Context: ctx, - ClusterID: clusterID, - TaskType: taskType, - TaskID: taskID.String(), - } - - params.Limit = &limit - - resp, err := c.operations.GetClusterClusterIDTaskTaskTypeTaskIDHistory(params) - if err != nil { - return nil, err - } - - return resp.Payload, nil -} - -// StartTask starts executing a task. -func (c *Client) StartTask(ctx context.Context, clusterID, taskType string, taskID uuid.UUID, cont bool) error { - _, err := c.operations.PutClusterClusterIDTaskTaskTypeTaskIDStart(&operations.PutClusterClusterIDTaskTaskTypeTaskIDStartParams{ // nolint: errcheck - Context: ctx, - ClusterID: clusterID, - TaskType: taskType, - TaskID: taskID.String(), - Continue: cont, - }) - - return err -} - -// StopTask stops executing a task. -func (c *Client) StopTask(ctx context.Context, clusterID, taskType string, taskID uuid.UUID, disable bool) error { - _, err := c.operations.PutClusterClusterIDTaskTaskTypeTaskIDStop(&operations.PutClusterClusterIDTaskTaskTypeTaskIDStopParams{ // nolint: errcheck - Context: ctx, - ClusterID: clusterID, - TaskType: taskType, - TaskID: taskID.String(), - Disable: &disable, - }) - - return err -} - -// DeleteTask stops executing a task. -func (c *Client) DeleteTask(ctx context.Context, clusterID, taskType string, taskID uuid.UUID) error { - _, err := c.operations.DeleteClusterClusterIDTaskTaskTypeTaskID(&operations.DeleteClusterClusterIDTaskTaskTypeTaskIDParams{ // nolint: errcheck - Context: ctx, - ClusterID: clusterID, - TaskType: taskType, - TaskID: taskID.String(), - }) - - return err -} - -// UpdateTask updates an existing task unit. -func (c *Client) UpdateTask(ctx context.Context, clusterID string, t *Task) error { - _, err := c.operations.PutClusterClusterIDTaskTaskTypeTaskID(&operations.PutClusterClusterIDTaskTaskTypeTaskIDParams{ // nolint: errcheck - Context: ctx, - ClusterID: clusterID, - TaskType: t.Type, - TaskID: t.ID, - TaskFields: &models.TaskUpdate{ - Enabled: t.Enabled, - Name: t.Name, - Labels: t.Labels, - Schedule: t.Schedule, - Tags: t.Tags, - Properties: t.Properties, - }, - }) - return err -} - -// ListTasks returns tasks within a clusterID, optionally filtered by task type tp. -func (c *Client) ListTasks(ctx context.Context, clusterID, taskType string, all bool, status, taskID string) (TaskListItems, error) { - resp, err := c.operations.GetClusterClusterIDTasks(&operations.GetClusterClusterIDTasksParams{ - Context: ctx, - ClusterID: clusterID, - Type: &taskType, - All: &all, - Status: &status, - TaskID: &taskID, - }) - if err != nil { - return TaskListItems{}, err - } - - et := TaskListItems{ - All: all, - } - et.TaskListItemSlice = resp.Payload - return et, nil -} - -// TaskSplit is an extended version of the package level TaskSplit function. -// It adds support for providing task type only. -// If there is a single task of a given type the ID is returned. -// Otherwise an error is returned. -// If there is more tasks the error lists the available options. -func (c *Client) TaskSplit(ctx context.Context, cluster, s string) (taskType string, taskID uuid.UUID, err error) { - var taskName string - taskType, taskID, taskName, err = TaskSplit(s) - if err != nil { - return - } - - if taskID != uuid.Nil { - return taskType, taskID, nil - } - - if taskName == "" { - taskID, err = c.uniqueTaskID(ctx, cluster, taskType) - } else { - taskID, err = c.taskByName(ctx, cluster, taskType, taskName) - } - - return -} - -func (c *Client) uniqueTaskID(ctx context.Context, clusterID, taskType string) (uuid.UUID, error) { - resp, err := c.operations.GetClusterClusterIDTasks(&operations.GetClusterClusterIDTasksParams{ - Context: ctx, - ClusterID: clusterID, - Type: &taskType, - Short: pointer.BoolPtr(true), - }) - if err != nil { - return uuid.Nil, err - } - - tasks := resp.Payload - switch len(tasks) { - case 0: - return uuid.Nil, errors.Errorf("no tasks of type %s", taskType) - case 1: - return uuid.Parse(tasks[0].ID) - default: - return uuid.Nil, errors.Errorf("task ambiguity, use one of:\n%s", formatTaskList(tasks)) - } -} - -func (c *Client) taskByName(ctx context.Context, clusterID, taskType, taskName string) (uuid.UUID, error) { - resp, err := c.operations.GetClusterClusterIDTasks(&operations.GetClusterClusterIDTasksParams{ - Context: ctx, - ClusterID: clusterID, - Type: &taskType, - Short: pointer.BoolPtr(true), - All: pointer.BoolPtr(true), - }) - if err != nil { - return uuid.Nil, err - } - - tasks := resp.Payload - if len(tasks) == 0 { - return uuid.Nil, errors.Errorf("no tasks of type %s", taskType) - } - - for _, t := range tasks { - if t.Name == taskName { - return uuid.Parse(t.ID) - } - } - - var names []string - for _, t := range tasks { - if t.Name != "" { - names = append(names, t.Name) - } - } - if len(names) > 0 { - res, _ := edlib.FuzzySearch(taskName, names, edlib.Levenshtein) // nolint: errcheck - if res != "" { - return uuid.Nil, errors.Errorf("not found, did you mean %s", taskJoin(taskType, res)) - } - } - - return uuid.Nil, errors.Errorf("not found, use one of:\n%s", formatTaskList(tasks)) -} - -func formatTaskList(tasks []*models.TaskListItem) string { - ids := make([]string, len(tasks)) - for i, t := range tasks { - if t.Name != "" { - ids[i] = "- " + taskJoin(t.Type, t.Name) - } else { - ids[i] = "- " + taskJoin(t.Type, t.ID) - } - } - return strings.Join(ids, "\n") -} - -// RepairProgress returns repair progress. -func (c *Client) RepairProgress(ctx context.Context, clusterID, taskID, runID string) (RepairProgress, error) { - resp, err := c.operations.GetClusterClusterIDTaskRepairTaskIDRunID(&operations.GetClusterClusterIDTaskRepairTaskIDRunIDParams{ - Context: ctx, - ClusterID: clusterID, - TaskID: taskID, - RunID: runID, - }) - if err != nil { - return RepairProgress{}, err - } - - return RepairProgress{ - TaskRunRepairProgress: resp.Payload, - }, nil -} - -// BackupProgress returns backup progress. -func (c *Client) BackupProgress(ctx context.Context, clusterID, taskID, runID string) (BackupProgress, error) { - tr := &models.TaskRunBackupProgress{ - Progress: &models.BackupProgress{ - Stage: "INIT", - }, - Run: &models.TaskRun{ - Status: "NEW", - }, - } - - resp, err := c.operations.GetClusterClusterIDTaskBackupTaskIDRunID(&operations.GetClusterClusterIDTaskBackupTaskIDRunIDParams{ - Context: ctx, - ClusterID: clusterID, - TaskID: taskID, - RunID: runID, - }) - if err != nil { - return BackupProgress{ - TaskRunBackupProgress: tr, - }, err - } - - if resp.Payload.Progress == nil { - resp.Payload.Progress = tr.Progress - } - if resp.Payload.Run == nil { - resp.Payload.Run = tr.Run - } - - return BackupProgress{ - TaskRunBackupProgress: resp.Payload, - }, nil -} - -// RestoreProgress returns restore progress. -func (c *Client) RestoreProgress(ctx context.Context, clusterID, taskID, runID string) (RestoreProgress, error) { - resp, err := c.operations.GetClusterClusterIDTaskRestoreTaskIDRunID(&operations.GetClusterClusterIDTaskRestoreTaskIDRunIDParams{ - Context: ctx, - ClusterID: clusterID, - TaskID: taskID, - RunID: runID, - }) - if err != nil { - return RestoreProgress{}, err - } - - return RestoreProgress{ - TaskRunRestoreProgress: resp.Payload, - }, nil -} - -// ValidateBackupProgress returns validate backup progress. -func (c *Client) ValidateBackupProgress(ctx context.Context, clusterID, taskID, runID string) (ValidateBackupProgress, error) { - resp, err := c.operations.GetClusterClusterIDTaskValidateBackupTaskIDRunID(&operations.GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams{ - Context: ctx, - ClusterID: clusterID, - TaskID: taskID, - RunID: runID, - }) - if err != nil { - return ValidateBackupProgress{}, err - } - - return ValidateBackupProgress{ - TaskRunValidateBackupProgress: resp.Payload, - }, nil -} - -// BackupDescribeSchema returns backed up schema from DESCRIBE SCHEMA WITH INTERNALS query. -func (c *Client) BackupDescribeSchema(ctx context.Context, clusterID, snapshotTag, location, queryClusterID, queryTaskID string) (BackupDescribeSchema, error) { - params := &operations.GetClusterClusterIDBackupsSchemaParams{ - Context: ctx, - ClusterID: clusterID, - SnapshotTag: snapshotTag, - Location: location, - } - if queryClusterID != "" { - params.SetQueryClusterID(&queryClusterID) - } - if queryTaskID != "" { - params.SetQueryTaskID(&queryTaskID) - } - - resp, err := c.operations.GetClusterClusterIDBackupsSchema(params) - if err != nil { - return BackupDescribeSchema{}, err - } - return BackupDescribeSchema{ - BackupDescribeSchema: resp.GetPayload(), - }, nil -} - -// One2OneRestoreProgress returns 1-1-restore progress. -func (c *Client) One2OneRestoreProgress(ctx context.Context, clusterID, taskID, runID string) (One2OneRestoreProgress, error) { - resp, err := c.operations.GetClusterClusterIDTask11RestoreTaskIDRunID(&operations.GetClusterClusterIDTask11RestoreTaskIDRunIDParams{ - Context: ctx, - ClusterID: clusterID, - TaskID: taskID, - RunID: runID, - }) - if err != nil { - return One2OneRestoreProgress{}, err - } - - return One2OneRestoreProgress{ - TaskRunOne2OneRestoreProgress: resp.Payload, - }, nil -} - -// ListBackups returns listing of available backups. -func (c *Client) ListBackups(ctx context.Context, clusterID string, - locations []string, allClusters bool, keyspace []string, minDate, maxDate time.Time, -) (BackupListItems, error) { - p := &operations.GetClusterClusterIDBackupsParams{ - Context: ctx, - ClusterID: clusterID, - Locations: locations, - Keyspace: keyspace, - } - if !allClusters { - p.QueryClusterID = &clusterID - } - if !minDate.IsZero() { - p.MinDate = (*strfmt.DateTime)(pointer.TimePtr(minDate)) - } - if !maxDate.IsZero() { - p.MaxDate = (*strfmt.DateTime)(pointer.TimePtr(maxDate)) - } - - resp, err := c.operations.GetClusterClusterIDBackups(p) - if err != nil { - return BackupListItems{}, err - } - - return BackupListItems{items: resp.Payload}, nil -} - -// ListBackupFiles returns a listing of available backup files. -func (c *Client) ListBackupFiles(ctx context.Context, clusterID string, - locations []string, allClusters bool, keyspace []string, snapshotTag string, -) ([]*models.BackupFilesInfo, error) { - p := &operations.GetClusterClusterIDBackupsFilesParams{ - Context: ctx, - ClusterID: clusterID, - Locations: locations, - Keyspace: keyspace, - SnapshotTag: snapshotTag, - } - if !allClusters { - p.QueryClusterID = &clusterID - } - - resp, err := c.operations.GetClusterClusterIDBackupsFiles(p) - if err != nil { - return nil, err - } - - return resp.Payload, nil -} - -// DeleteSnapshot deletes backup snapshot with all data associated with it. -func (c *Client) DeleteSnapshot(ctx context.Context, clusterID string, - locations []string, snapshotTags []string, -) error { - p := &operations.DeleteClusterClusterIDBackupsParams{ - Context: ctx, - ClusterID: clusterID, - Locations: locations, - SnapshotTags: snapshotTags, - } - - _, err := c.operations.DeleteClusterClusterIDBackups(p) // nolint: errcheck - return err -} - -// Version returns server version. -func (c *Client) Version(ctx context.Context) (*models.Version, error) { - resp, err := c.operations.GetVersion(&operations.GetVersionParams{ - Context: ctx, - }) - if err != nil { - return &models.Version{}, err - } - - return resp.Payload, nil -} - -// SetRepairIntensity updates ongoing repair intensity. -func (c *Client) SetRepairIntensity(ctx context.Context, clusterID string, intensity float64) error { - p := &operations.PutClusterClusterIDRepairsIntensityParams{ - Context: ctx, - ClusterID: clusterID, - Intensity: intensity, - } - - _, err := c.operations.PutClusterClusterIDRepairsIntensity(p) // nolint: errcheck - return err -} - -// SetRepairParallel updates ongoing repair parallel disjoint host groups. -func (c *Client) SetRepairParallel(ctx context.Context, clusterID string, parallel int64) error { - p := &operations.PutClusterClusterIDRepairsParallelParams{ - Context: ctx, - ClusterID: clusterID, - Parallel: parallel, - } - - _, err := c.operations.PutClusterClusterIDRepairsParallel(p) // nolint: errcheck - return err -} - -// IsSuspended returns true iff the current cluster is suspended. -func (c *Client) IsSuspended(ctx context.Context, clusterID string) (bool, error) { - p := &operations.GetClusterClusterIDSuspendedParams{ - Context: ctx, - ClusterID: clusterID, - } - - s, err := c.operations.GetClusterClusterIDSuspended(p) - if err != nil { - return false, err - } - - return bool(s.Payload), nil -} - -// Suspend updates cluster suspended property. -func (c *Client) Suspend(ctx context.Context, clusterID string) error { - p := &operations.PutClusterClusterIDSuspendedParams{ - Context: ctx, - ClusterID: clusterID, - Suspended: true, - } - - _, err := c.operations.PutClusterClusterIDSuspended(p) // nolint: errcheck - return err -} - -// Resume updates cluster suspended property. -func (c *Client) Resume(ctx context.Context, clusterID string, startTasks bool) error { - p := &operations.PutClusterClusterIDSuspendedParams{ - Context: ctx, - ClusterID: clusterID, - StartTasks: startTasks, - Suspended: false, - } - - _, err := c.operations.PutClusterClusterIDSuspended(p) // nolint: errcheck - return err -} - -// SuspendDetails returns details about the cluster suspend state. -func (c *Client) SuspendDetails(ctx context.Context, clusterID string) (ClusterSuspendDetails, error) { - p := &operations.GetClusterClusterIDSuspendedDetailsParams{ - Context: ctx, - ClusterID: clusterID, - } - - resp, err := c.operations.GetClusterClusterIDSuspendedDetails(p) - if err != nil { - return ClusterSuspendDetails{}, err - } - - return ClusterSuspendDetails{ - SuspendDetails: resp.Payload, - ClusterID: clusterID, - }, nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/cron.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/cron.go deleted file mode 100644 index 1e20f20311..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/cron.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (C) 2022 ScyllaDB - -package managerclient - -import ( - "github.com/lnquy/cron" -) - -var cronDesc *cron.ExpressionDescriptor - -func init() { - cronDesc, _ = cron.NewDescriptor() // nolint: errcheck -} - -// DescribeCron returns description of cron expression in plain English. -func DescribeCron(s string) string { - if cronDesc == nil { - return "" - } - d, _ := cronDesc.ToDescription(s, cron.Locale_en) // nolint: errcheck - return d -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/error.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/error.go deleted file mode 100644 index 3647fb8548..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/error.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package managerclient - -import ( - "fmt" - "io" - "regexp" -) - -// PrintError handles ErrorResponse and can format multierror strings. -func PrintError(w io.Writer, err error) { - v, ok := err.(interface { // nolint: errorlint - GetPayload() *ErrorResponse - }) - if ok { - p := v.GetPayload() - - if len(p.Details) > 0 { - fmt.Fprintf(w, "%s\n\n", p.Details) - } - fmt.Fprintf(w, "Error: %s\n", FormatError(p.Message)) - fmt.Fprintf(w, "Trace ID: %s (grep in scylla-manager logs)\n", p.TraceID) - } else { - fmt.Fprintf(w, "Error: %s\n", err) - } - fmt.Fprintln(w) -} - -// FormatError formats messages created by using multierror with -// errors wrapped with host IP so that each host error is in it's own line. -func FormatError(msg string) string { - const prefix = " " - - // Fairly relaxed IPv4 and IPv6 heuristic pattern, a proper pattern can - // be very complex - const ipRegex = `([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(\d{1,3}\.){3}\d{1,3}` - - // Move host errors to newline - r := regexp.MustCompile(`(^|: |; )(` + ipRegex + `): `) - - return r.ReplaceAllString(msg, "\n"+prefix+"${2}: ") -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/model.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/model.go deleted file mode 100644 index e20296005c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/model.go +++ /dev/null @@ -1,1642 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package managerclient - -import ( - "encoding/json" - "fmt" - "io" - "sort" - "strings" - "text/template" - "time" - - "github.com/go-openapi/strfmt" - "github.com/pkg/errors" - "github.com/scylladb/go-set/strset" - "github.com/scylladb/scylla-manager/v3/pkg/managerclient/table" - "github.com/scylladb/scylla-manager/v3/pkg/util/inexlist" - "github.com/scylladb/scylla-manager/v3/pkg/util/schedules" - "github.com/scylladb/scylla-manager/v3/pkg/util/timeutc" - "github.com/scylladb/scylla-manager/v3/pkg/util/version" - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" - "github.com/scylladb/termtables" -) - -// ErrorResponse is returned in case of an error. -type ErrorResponse = models.ErrorResponse - -// TableRenderer is the interface that components need to implement -// if they can render themselves as tables. -type TableRenderer interface { - Render(io.Writer) error -} - -// Cluster is cluster.Cluster representation. -type Cluster = models.Cluster - -// ClusterSlice is []*cluster.Cluster representation. -type ClusterSlice []*models.Cluster - -// Render renders ClusterSlice in a tabular format. -func (cs ClusterSlice) Render(w io.Writer) error { - t := table.New("ID", "Name", "Labels", "Port", "Credentials") - for _, c := range cs { - p := "default" - if c.Port != 0 { - p = fmt.Sprint(c.Port) - } - var creds []string - if c.Username != "" { - creds = append(creds, "CQL") - } - if c.AlternatorAccessKeyID != "" { - creds = append(creds, "Alternator") - } - t.AddRow(c.ID, c.Name, formatLabels(c.Labels), p, strings.Join(creds, ", ")) - } - if _, err := w.Write([]byte(t.String())); err != nil { - return err - } - - return nil -} - -// ClusterStatus contains cluster status info. -type ClusterStatus models.ClusterStatus - -func (cs ClusterStatus) tableHeaders() []interface{} { - headers := []interface{}{"Address", "Uptime", "CPUs", "Memory", "Scylla", "Agent", "Host ID"} - apis := []interface{}{"CQL", "REST"} - - if cs.hasAnyAlternator() { - apis = append([]interface{}{"Alternator"}, apis...) - } - - return append([]interface{}{""}, append(apis, headers...)...) -} - -func (cs ClusterStatus) hasAnyAlternator() bool { - for _, s := range cs { - if s.AlternatorStatus != "" { - return true - } - } - return false -} - -func (cs ClusterStatus) addRow(t *table.Table, rows ...interface{}) { - unpacked := make([]interface{}, 0, len(rows)) - for _, r := range rows { - switch v := r.(type) { - case []interface{}: - unpacked = append(unpacked, v...) - default: - unpacked = append(unpacked, v) - } - } - headers := cs.tableHeaders() - t.AddRow(unpacked[:len(headers)]...) -} - -// Render renders ClusterStatus in a tabular format. -func (cs ClusterStatus) Render(w io.Writer) error { - if len(cs) == 0 { - return nil - } - - var ( - dc = cs[0].Dc - t = table.New(cs.tableHeaders()...) - errors []string - ) - - for _, s := range cs { - if s.Dc != dc { - fmt.Fprintf(w, "Datacenter: %s\n%s", dc, t) - dc = s.Dc - t = table.New(cs.tableHeaders()...) - - if len(errors) > 0 { - fmt.Fprintf(w, "Errors:\n- %s\n\n", strings.Join(errors, "\n- ")) - errors = nil - } - } - - var apiStatuses []interface{} - - if s.AlternatorStatus != "" { - status := s.AlternatorStatus - if s.Ssl { - status += " SSL" - } - apiStatuses = append(apiStatuses, fmt.Sprintf("%s (%.0fms)", status, s.AlternatorRttMs)) - } else if cs.hasAnyAlternator() { - apiStatuses = append(apiStatuses, "-") - } - if s.AlternatorCause != "" { - errors = append(errors, fmt.Sprintf("%s alternator: %s", s.Host, s.AlternatorCause)) - } - - if s.CqlStatus != "" { - status := s.CqlStatus - if s.Ssl { - status += " SSL" - } - apiStatuses = append(apiStatuses, fmt.Sprintf("%s (%.0fms)", status, s.CqlRttMs)) - } else { - apiStatuses = append(apiStatuses, "-") - } - if s.CqlCause != "" { - errors = append(errors, fmt.Sprintf("%s CQL: %s", s.Host, s.CqlCause)) - } - - if s.RestStatus != "" { - apiStatuses = append(apiStatuses, fmt.Sprintf("%s (%.0fms)", s.RestStatus, s.RestRttMs)) - } else { - apiStatuses = append(apiStatuses, "-") - } - if s.RestCause != "" { - errors = append(errors, fmt.Sprintf("%s REST: %s", s.Host, s.RestCause)) - } - - var ( - cpus = "-" - mem = "-" - scyllaVersion = "-" - agentVersion = "-" - uptime = "-" - ) - if s.CPUCount > 0 { - cpus = fmt.Sprintf("%d", s.CPUCount) - } - if s.TotalRAM > 0 { - mem = FormatSizeSuffix(s.TotalRAM) - } - if s.ScyllaVersion != "" { - scyllaVersion = version.Short(s.ScyllaVersion) - } - if s.AgentVersion != "" { - agentVersion = version.Short(s.AgentVersion) - } - if s.Uptime > 0 { - uptime = (time.Duration(s.Uptime) * time.Second).String() - } - - cs.addRow(t, s.Status, apiStatuses, s.Host, uptime, cpus, mem, scyllaVersion, agentVersion, s.HostID) - } - - fmt.Fprintf(w, "Datacenter: %s\n%s", dc, t) - if len(errors) > 0 { - fmt.Fprintf(w, "Errors:\n- %s\n\n", strings.Join(errors, "\n- ")) - } - return nil -} - -// Task is a scheduler.Task representation. -type Task = models.Task - -func makeTaskUpdate(t *Task) *models.TaskUpdate { - return &models.TaskUpdate{ - Type: t.Type, - Enabled: t.Enabled, - Name: t.Name, - Labels: t.Labels, - Schedule: t.Schedule, - Properties: t.Properties, - } -} - -// TaskInfo allows for rendering of Task information i.e. schedule and properties. -type TaskInfo struct { - *TaskListItem -} - -const taskInfoTemplate = `Name: {{ TaskID .TaskListItem }} -Cron: {{ CronDesc .TaskListItem }} -{{ if .Schedule.Window -}} -Window: {{ WindowDesc .Schedule.Window }} -{{ end -}} -{{ if .Schedule.Timezone -}} -Tz: {{ .Schedule.Timezone }} -{{ end -}} -{{ if .Schedule.NumRetries -}} -Retry: {{ .Schedule.NumRetries }} {{ if .Schedule.RetryWait }}(initial backoff {{ .Schedule.RetryWait }}){{ end }}{{ end -}} -{{ if .Labels }} -Labels: -{{- range $key, $val := .Labels }} -- {{ $key }}: {{ $val -}} -{{ end }} -{{ end -}} - -{{ if .Properties }} -Properties: -{{- range $key, $val := .Properties }} -- {{ FormatKey $key }}: {{ FormatValue $val -}} -{{ end }} -{{ end -}} - -` - -// Render implements Renderer interface. -func (t TaskInfo) Render(w io.Writer) error { - temp := template.Must(template.New("target").Funcs(template.FuncMap{ - "TaskID": func(i *TaskListItem) string { - if i.Name != "" { - return taskJoin(i.Type, i.Name) - } - return taskJoin(i.Type, i.ID) - }, - "CronDesc": func(i *TaskListItem) string { - s := i.Schedule.Cron - if s == "" { - s = i.Schedule.Interval - } - - d := DescribeCron(s) - if d == "" { - nextStr := FormatTimePointer(i.NextActivation) - if nextStr != "" { - d = "next activation date: " + nextStr - } else { - d = "no activations scheduled" - } - } - - if s != "" { - return s + " (" + d + ")" - } - return d - }, - "WindowDesc": func(s []string) string { - v := "" - for i := 0; i < len(s)/2; i++ { - v += fmt.Sprint(s[i*2:(i+1)*2]) + " " - } - return v - }, - "FormatKey": formatKey, - "FormatValue": formatValue, - }).Parse(taskInfoTemplate)) - return temp.Execute(w, t) -} - -func formatKey(k string) string { - return strings.ReplaceAll(k, "_", "-") -} - -func formatValue(v any) string { - switch t := v.(type) { - case []string: - return "'" + strings.Join(t, ",") + "'" - case []interface{}: - s := make([]string, len(t)) - for i := range t { - s[i] = fmt.Sprint(t[i]) - } - return "'" + strings.Join(s, ",") + "'" - default: - return fmt.Sprint(t) - } -} - -// RepairTarget is a representing results of dry running repair task. -type RepairTarget struct { - models.RepairTarget - Schedule *Schedule - ShowTables int -} - -const repairTargetTemplate = `{{ if .Schedule.Cron -}} -Cron: {{ .Schedule.Cron }} {{ CronDesc .Schedule.Cron }} -{{ if .Schedule.Timezone -}} -Tz: {{ .Schedule.Timezone }} -{{ end }} -{{ end -}} -{{ if .Host -}} - -Host: {{ .Host }} - -{{ end -}} -{{ if .IgnoreHosts -}} - -Ignore Hosts: -{{ range .IgnoreHosts -}} - - {{ . }} -{{ end }} -{{ end -}} - -Data Centers: -{{ range .Dc }} - {{ . }} -{{ end }} -Keyspaces: -{{- range .Units }} - - {{ .Keyspace }} {{ FormatTables .Tables .AllTables -}} -{{ end }} - -` - -// Render implements Renderer interface. -func (t RepairTarget) Render(w io.Writer) error { - temp := template.Must(template.New("target").Funcs(template.FuncMap{ - "FormatTables": func(tables []string, all bool) string { - return FormatTables(t.ShowTables, tables, all) - }, - "CronDesc": func(s string) string { - d := DescribeCron(s) - if d != "" { - d = "(" + d + ")" - } - return d - }, - }).Parse(repairTargetTemplate)) - return temp.Execute(w, t) -} - -// BackupTarget is a representing results of dry running backup task. -type BackupTarget struct { - models.BackupTarget - Schedule *Schedule - ShowTables int -} - -const backupTargetTemplate = `{{ if .Schedule.Cron -}} -Cron: {{ .Schedule.Cron }} {{ CronDesc .Schedule.Cron }} -{{ if .Schedule.Timezone -}} -Tz: {{ .Schedule.Timezone }} -{{ end }} -{{ end -}} -Data Centers: -{{ range .Dc }} - {{ . }} -{{ end }} -Keyspaces: -{{- range .Units }} - - {{ .Keyspace }} {{ FormatTables .Tables .AllTables }} -{{- end }} - -Disk size: ~{{ FormatSizeSuffix .Size }} - -Locations: -{{- range .Location }} - - {{ . }} -{{- end }} - -Bandwidth Limits: -{{- if .RateLimit -}} -{{ range .RateLimit }} - - {{ . }} MiB/s -{{- end }} -{{- else }} - - Unlimited -{{- end }} - -Snapshot Parallel Limits: -{{- if .SnapshotParallel -}} -{{- range .SnapshotParallel }} - - {{ . }} -{{- end }} -{{- else }} - - All hosts in parallel -{{- end }} - -Upload Parallel Limits: -{{- if .UploadParallel -}} -{{- range .UploadParallel }} - - {{ . }} -{{- end }} -{{- else }} - - All hosts in parallel -{{- end }} - -Retention Policy: -{{ FormatRetentionPolicy .Retention .RetentionDays }} -` - -// Render implements Renderer interface. -func (t BackupTarget) Render(w io.Writer) error { - temp := template.Must(template.New("target").Funcs(template.FuncMap{ - "FormatSizeSuffix": FormatSizeSuffix, - "FormatTables": func(tables []string, all bool) string { - return FormatTables(t.ShowTables, tables, all) - }, - "CronDesc": func(s string) string { - d := DescribeCron(s) - if d != "" { - d = "(" + d + ")" - } - return d - }, - "FormatRetentionPolicy": FormatRetentionPolicy, - }).Parse(backupTargetTemplate)) - return temp.Execute(w, t) -} - -// RestoreTarget is a representing results of dry running restore task. -type RestoreTarget struct { - models.RestoreTarget - Schedule *Schedule - ShowTables int -} - -const restoreTargetTemplate = `{{ if .Schedule.Cron -}} -Cron: {{ .Schedule.Cron }} {{ CronDesc .Schedule.Cron }} -{{ if .Schedule.Timezone -}} -Tz: {{ .Schedule.Timezone }} -{{ end }} -{{ end -}} -Restored tables: -{{- range .Units }} - - {{ .Keyspace }}: {{ FormatSizeSuffix .Size }} {{ FormatRestoreTables .Tables }} -{{- end }} -{{ if .Views }} -Restored views: -{{- range .Views }} - - {{ .Keyspace }}.{{ .View }} -{{- end }} -{{ end }} -Disk size: ~{{ FormatSizeSuffix .Size }} - -Locations: -{{- range .Location }} - - {{ . }} -{{- end }} - -Snapshot Tag: {{ .SnapshotTag }} -Batch Size: {{ .BatchSize }} -Parallel: {{ .Parallel }} -Transfers: {{ .Transfers }} -Compaction: {{ if .AllowCompaction -}} allowed {{ else -}} not allowed {{ end }} -Agent CPU: {{ if .UnpinAgentCPU -}} unpinned {{ else -}} pinned {{ end }} -Download Rate Limits: -{{- if .RateLimit -}} -{{ range .RateLimit }} - - {{ . }} MiB/s -{{- end }} -{{- else }} - - Unlimited -{{- end }} -` - -// Render implements Renderer interface. -func (t RestoreTarget) Render(w io.Writer) error { - temp := template.Must(template.New("target").Funcs(template.FuncMap{ - "FormatSizeSuffix": FormatSizeSuffix, - "FormatRestoreTables": func(tables []*models.RestoreTable) string { - return FormatRestoreTables(t.ShowTables, tables) - }, - "CronDesc": func(s string) string { - d := DescribeCron(s) - if d != "" { - d = "(" + d + ")" - } - return d - }, - }).Parse(restoreTargetTemplate)) - return temp.Execute(w, t) -} - -// TaskListItem is a representation of scheduler.Task with additional fields from scheduler. -type TaskListItem = models.TaskListItem - -// TaskListItemSlice is a representation of a slice of scheduler.Task with additional fields from scheduler. -type TaskListItemSlice = []*models.TaskListItem - -// TaskListItems is a representation of []*scheduler.Task with additional fields from scheduler. -type TaskListItems struct { - TaskListItemSlice - All bool - ShowIDs bool - ShowProps bool -} - -// Render renders TaskListItems in a tabular format. -func (li TaskListItems) Render(w io.Writer) error { - columns := []any{"Task", "Labels", "Schedule", "Window", "Timezone", "Success", "Error", "Last Success", "Last Error", "Status", "Next"} - if li.ShowProps { - columns = append(columns, "Properties") - } - p := table.New(columns...) - for _, t := range li.TaskListItemSlice { - var id string - if t.Name != "" && !li.ShowIDs { - id = taskJoin(t.Type, t.Name) - } else { - id = taskJoin(t.Type, t.ID) - } - if li.All && !t.Enabled { - id = "*" + id - } - - emptySpec := schedules.CronSpecification{} - bytesEmptySpec, err := json.Marshal(emptySpec) - if err != nil { - return errors.New("cannot marshall empty cron specification object") - } - - var schedule string - if t.Schedule.Cron != "" && t.Schedule.Cron != string(bytesEmptySpec) { - var cronSpec schedules.CronSpecification - err := json.Unmarshal([]byte(t.Schedule.Cron), &cronSpec) - if err != nil { - schedule = t.Schedule.Cron - } else { - schedule = cronSpec.Spec - if cronSpec.StartDate.After(timeutc.Now()) { - c := schedules.MustCron(cronSpec.Spec, cronSpec.StartDate) - schedule += fmt.Sprintf(" with first activation after %s", - c.Next(cronSpec.StartDate).Format("2006-01-02 15:04:05")) - } - } - } else if t.Schedule.Interval != "" { - schedule = t.Schedule.Interval - } - - status := t.Status - if status == TaskStatusError && t.Retry > 0 { - status += fmt.Sprintf(" (%d/%d)", t.Retry-1, t.Schedule.NumRetries) - } - - var next string - if t.Suspended { - next = "[SUSPENDED]" - } else { - next = FormatTimePointer(t.NextActivation) - } - - row := []any{ - id, formatLabels(t.Labels), schedule, strings.Join(t.Schedule.Window, ","), t.Schedule.Timezone, - t.SuccessCount, t.ErrorCount, FormatTimePointer(t.LastSuccess), FormatTimePointer(t.LastError), - status, next, - } - if li.ShowProps { - props, ok := t.Properties.(map[string]any) - if !ok { - return errors.New("can't cast task properties into map[string]any") - } - - var fmtProps []string - for k, v := range props { - fmtProps = append(fmtProps, formatKey(k)+": "+formatValue(v)) - } - - row = append(row, strings.Join(fmtProps, ", ")) - } - - p.AddRow(row...) - } - fmt.Fprint(w, p) - - return nil -} - -// Schedule is a scheduler.Schedule representation. -type Schedule = models.Schedule - -// TaskRun is a scheduler.TaskRun representation. -type TaskRun = models.TaskRun - -// TaskRunSlice is a []*scheduler.TaskRun representation. -type TaskRunSlice []*TaskRun - -// Render renders TaskRunSlice in a tabular format. -func (tr TaskRunSlice) Render(w io.Writer, printCause bool) error { - t := table.New("ID", "Start time", "Duration", "Status") - for _, r := range tr { - s := r.Status - if printCause && r.Cause != "" { - t.LimitColumnLength(3) - s += " " + r.Cause - } - t.AddRow(r.ID, FormatTime(r.StartTime), FormatDuration(r.StartTime, r.EndTime), s) - } - if _, err := w.Write([]byte(t.String())); err != nil { - return err - } - return nil -} - -// RepairProgress contains shard progress info. -type RepairProgress struct { - *models.TaskRunRepairProgress - Task *Task - Detailed bool - ShowTables int - - hostFilter inexlist.InExList - keyspaceFilter inexlist.InExList -} - -// SetHostFilter adds filtering rules used for rendering for host details. -func (rp *RepairProgress) SetHostFilter(filters []string) (err error) { - rp.hostFilter, err = inexlist.ParseInExList(filters) - return -} - -// SetKeyspaceFilter adds filtering rules used for rendering for keyspace details. -func (rp *RepairProgress) SetKeyspaceFilter(filters []string) (err error) { - rp.keyspaceFilter, err = inexlist.ParseInExList(filters) - return -} - -// hideKeyspace returns true if provided keyspace should be hidden. -func (rp RepairProgress) hideKeyspace(keyspace string) bool { - if rp.keyspaceFilter.Size() > 0 { - if rp.keyspaceFilter.FirstMatch(keyspace) == -1 { - return true - } - } - return false -} - -func (rp RepairProgress) hideHost(host string) bool { - if rp.hostFilter.Size() > 0 { - return rp.hostFilter.FirstMatch(host) == -1 - } - return false -} - -// Render renders *RepairProgress in a tabular format. -func (rp RepairProgress) Render(w io.Writer) error { - if err := rp.addHeader(w); err != nil { - return err - } - - if rp.Progress == nil { - return nil - } - - t := table.New() - rp.addRepairTableProgress(t) - t.SetColumnAlignment(termtables.AlignRight, 1) - if _, err := io.WriteString(w, t.String()); err != nil { - return err - } - - if rp.Detailed { - for _, h := range rp.Progress.Hosts { - if rp.hideHost(h.Host) { - continue - } - - fmt.Fprintf(w, "\nHost: %s\n", h.Host) - d := table.New() - d.AddRow("Keyspace", "Table", "Progress", "Token Ranges", "Success", "Error", "Started at", "Completed at", "Duration") - d.AddSeparator() - ks := "" - for _, t := range h.Tables { - if rp.hideKeyspace(t.Keyspace) { - continue - } - - if ks == "" { - ks = t.Keyspace - } else if ks != t.Keyspace { - ks = t.Keyspace - d.AddSeparator() - } - - rp.addRepairTableDetailedProgress(d, t) - } - d.SetColumnAlignment(termtables.AlignRight, 2, 3, 4, 5, 6, 7, 8) - if _, err := w.Write([]byte(d.String())); err != nil { - return err - } - } - } - return nil -} - -var repairProgressTemplate = `{{ with .Run -}} -Run: {{ .ID }} -Status: {{ .Status }} -{{- if .Cause }} -Cause: {{ FormatError .Cause }} - -{{- end }} -{{- if not (isZero .StartTime) }} -Start time: {{ FormatTime .StartTime }} -{{- end -}} -{{- if not (isZero .EndTime) }} -End time: {{ FormatTime .EndTime }} -{{- end }} -Duration: {{ FormatDuration .StartTime .EndTime }} -{{- end }} -{{- with .Progress }} -Progress: {{ FormatTotalRepairProgress .SuccessPercentage .ErrorPercentage }} -Intensity: {{ FormatRepairIntensity .Intensity .MaxIntensity }} -Parallel: {{ FormatRepairParallel .Parallel .MaxParallel }} -{{ if .Host }}Host: {{ .Host }} -{{ end -}} -{{ if .Dcs }}Datacenters: {{ range .Dcs }} - - {{ . }} -{{- end }} -{{ end -}} -{{ else }} -Progress: - -{{ end }} -` - -func (rp RepairProgress) addHeader(w io.Writer) error { - temp := template.Must(template.New("repair_progress").Funcs(template.FuncMap{ - "isZero": isZero, - "FormatTime": FormatTime, - "FormatDuration": FormatDuration, - "FormatError": FormatError, - "FormatRepairProgress": FormatRepairProgress, - "FormatTotalRepairProgress": FormatTotalRepairProgress, - "FormatRepairIntensity": FormatRepairIntensity, - "FormatRepairParallel": FormatRepairParallel, - }).Parse(repairProgressTemplate)) - return temp.Execute(w, rp) -} - -func (rp RepairProgress) addRepairTableProgress(d *table.Table) { - if len(rp.Progress.Tables) > 0 { - d.AddRow("Keyspace", "Table", "Progress", "Duration") - d.AddSeparator() - } - - ks := "" - for _, t := range rp.Progress.Tables { - if rp.hideKeyspace(t.Keyspace) { - continue - } - if ks == "" { - ks = t.Keyspace - } else if ks != t.Keyspace { - ks = t.Keyspace - d.AddSeparator() - } - p := "-" - if t.TokenRanges > 0 { - p = FormatRepairProgress(t.TokenRanges, t.Success, t.Error) - } - - d.AddRow(t.Keyspace, t.Table, p, FormatMsDuration(t.DurationMs)) - } -} - -func (rp RepairProgress) addRepairTableDetailedProgress(d *table.Table, t *models.TableRepairProgress) { - d.AddRow(t.Keyspace, - t.Table, - FormatRepairProgress(t.TokenRanges, t.Success, t.Error), - t.TokenRanges, - t.Success, - t.Error, - FormatTimePointer(t.StartedAt), - FormatTimePointer(t.CompletedAt), - FormatMsDuration(t.DurationMs), - ) -} - -// BackupProgress contains shard progress info. -type BackupProgress struct { - *models.TaskRunBackupProgress - Task *Task - Detailed bool - Errors []string - - hostFilter inexlist.InExList - keyspaceFilter inexlist.InExList -} - -// SetHostFilter adds filtering rules used for rendering for host details. -func (bp *BackupProgress) SetHostFilter(filters []string) (err error) { - bp.hostFilter, err = inexlist.ParseInExList(filters) - return -} - -// SetKeyspaceFilter adds filtering rules used for rendering for keyspace details. -func (bp *BackupProgress) SetKeyspaceFilter(filters []string) (err error) { - bp.keyspaceFilter, err = inexlist.ParseInExList(filters) - return -} - -// AggregateErrors collects all errors from the table progress. -func (bp *BackupProgress) AggregateErrors() { - if bp.Progress == nil || bp.Run.Status != TaskStatusError { - return - } - for i := range bp.Progress.Hosts { - for j := range bp.Progress.Hosts[i].Keyspaces { - for _, t := range bp.Progress.Hosts[i].Keyspaces[j].Tables { - if t.Error != "" { - bp.Errors = append(bp.Errors, t.Error) - } - } - } - } -} - -// Render renders *BackupProgress in a tabular format. -func (bp BackupProgress) Render(w io.Writer) error { - if err := bp.addHeader(w); err != nil { - return err - } - - if bp.Progress != nil && bp.Progress.Size > 0 { - t := table.New() - bp.addHostProgress(t) - if _, err := io.WriteString(w, t.String()); err != nil { - return err - } - } - - if bp.Detailed && bp.Progress != nil && bp.Progress.Size > 0 { - if err := bp.addKeyspaceProgress(w); err != nil { - return err - } - } - return nil -} - -func (bp BackupProgress) addHostProgress(t *table.Table) { - t.AddRow("Host", "Progress", "Size", "Success", "Deduplicated", "Failed") - t.AddSeparator() - for _, h := range bp.Progress.Hosts { - if bp.hideHost(h.Host) { - continue - } - p := "-" - if len(h.Keyspaces) > 0 { - p = FormatUploadProgress(h.Size, h.Uploaded, h.Skipped, h.Failed) - } - success := h.Uploaded + h.Skipped - t.AddRow(h.Host, p, - FormatSizeSuffix(h.Size), - FormatSizeSuffix(success), - FormatSizeSuffix(h.Skipped), - FormatSizeSuffix(h.Failed), - ) - } - t.SetColumnAlignment(termtables.AlignRight, 1, 2, 3, 4, 5) -} - -func (bp BackupProgress) addKeyspaceProgress(w io.Writer) error { - for _, h := range bp.Progress.Hosts { - if bp.hideHost(h.Host) { - continue - } - fmt.Fprintf(w, "\nHost: %s\n", h.Host) - - t := table.New("Keyspace", "Table", "Progress", "Size", "Success", "Deduplicated", "Failed", "Started at", "Completed at") - for i, ks := range h.Keyspaces { - if bp.hideKeyspace(ks.Keyspace) { - break - } - if i > 0 { - t.AddSeparator() - } - - rowAdded := false - for _, tbl := range ks.Tables { - startedAt := strfmt.DateTime{} - completedAt := strfmt.DateTime{} - if tbl.StartedAt != nil { - startedAt = *tbl.StartedAt - } - if tbl.CompletedAt != nil { - completedAt = *tbl.CompletedAt - } - success := tbl.Uploaded + tbl.Skipped - t.AddRow( - ks.Keyspace, - tbl.Table, - FormatUploadProgress(tbl.Size, - tbl.Uploaded, - tbl.Skipped, - tbl.Failed), - FormatSizeSuffix(tbl.Size), - FormatSizeSuffix(success), - FormatSizeSuffix(tbl.Skipped), - FormatSizeSuffix(tbl.Failed), - FormatTime(startedAt), - FormatTime(completedAt), - ) - rowAdded = true - } - if !rowAdded { - // Separate keyspaces with no table rows - t.AddRow("-", "-", "-", "-", "-", "-", "-", "-", "-") - } - } - t.SetColumnAlignment(termtables.AlignRight, 2, 3, 4, 5, 6) - if _, err := w.Write([]byte(t.String())); err != nil { - return err - } - } - return nil -} - -func (bp BackupProgress) hideHost(host string) bool { - if bp.hostFilter.Size() > 0 { - return bp.hostFilter.FirstMatch(host) == -1 - } - return false -} - -func (bp BackupProgress) hideKeyspace(keyspace string) bool { - if bp.keyspaceFilter.Size() > 0 { - return bp.keyspaceFilter.FirstMatch(keyspace) == -1 - } - return false -} - -var backupProgressTemplate = `{{ with .Run -}} -Run: {{ .ID }} -Status: {{ status }} -{{- if .Cause }} -Cause: {{ FormatError .Cause }} - -{{- end }} -{{- if not (isZero .StartTime) }} -Start time: {{ FormatTime .StartTime }} -{{- end -}} -{{- if not (isZero .EndTime) }} -End time: {{ FormatTime .EndTime }} -{{- end }} -Duration: {{ FormatDuration .StartTime .EndTime }} -{{ end -}} -{{ with .Progress }}Progress: {{ if ne .Size 0 }}{{ FormatUploadProgress .Size .Uploaded .Skipped .Failed }}{{else}}-{{ end }} -{{- if ne .SnapshotTag "" }} -Snapshot Tag: {{ .SnapshotTag }} -{{- end }} -{{ if .Dcs -}} -Datacenters: {{ range .Dcs }} - - {{ . }} -{{- end }} -{{ end -}} -{{ else }}Progress: 0% -{{ end }} -{{- if .Errors -}} -Errors: {{ range .Errors }} - - {{ . }} -{{- end }} -{{ end }} -` - -func (bp BackupProgress) addHeader(w io.Writer) error { - temp := template.Must(template.New("backup_progress").Funcs(template.FuncMap{ - "isZero": isZero, - "FormatTime": FormatTime, - "FormatDuration": FormatDuration, - "FormatError": FormatError, - "FormatUploadProgress": FormatUploadProgress, - "status": bp.status, - }).Parse(backupProgressTemplate)) - return temp.Execute(w, bp) -} - -// status returns task status with optional backup stage. -func (bp BackupProgress) status() string { - stage := BackupStageName(bp.Progress.Stage) - s := bp.Run.Status - if s != TaskStatusNew && s != TaskStatusDone && stage != "" { - s += " (" + stage + ")" - } - return s -} - -// RestoreProgress contains shard progress info. -type RestoreProgress struct { - *models.TaskRunRestoreProgress - Task *Task - Detailed bool - Errors []string - - KeyspaceFilter inexlist.InExList -} - -var restoreProgressTemplate = `{{ with .Run -}} -Run: {{ .ID }} -Status: {{ status }} -{{- if .Cause }} -Cause: {{ FormatError .Cause }} - -{{- end }} -{{- if not (isZero .StartTime) }} -Start time: {{ FormatTime .StartTime }} -{{- end -}} -{{- if not (isZero .EndTime) }} -End time: {{ FormatTime .EndTime }} -{{- end }} -Duration: {{ FormatDuration .StartTime .EndTime }} -{{ end -}} -{{ with .Progress }}Progress: {{ if ne .Size 0 }}{{ FormatRestoreProgress .Size .Restored .Downloaded .Failed }}{{else}}-{{ end }} -Snapshot Tag: {{ .SnapshotTag }} -Bandwidth: - - Download: {{ avgDownload .Hosts }} - - Load&stream: {{ avgStream .Hosts }} -{{ else }}Progress: 0% -{{ end }} -{{- if .Errors -}} -Errors: {{ range .Errors }} - - {{ . }} -{{- end }} -{{ end }} -` - -func (rp RestoreProgress) addHeader(w io.Writer) error { - temp := template.Must(template.New("restore_progress").Funcs(template.FuncMap{ - "isZero": isZero, - "FormatTime": FormatTime, - "FormatDuration": FormatDuration, - "FormatError": FormatError, - "FormatRestoreProgress": FormatRestoreProgress, - "status": rp.status, - "avgDownload": avgDownload, - "avgStream": avgStream, - }).Parse(restoreProgressTemplate)) - return temp.Execute(w, rp) -} - -// status returns task status with optional restore stage. -func (rp RestoreProgress) status() string { - s := rp.Run.Status - if rp.Progress == nil { - return s - } - stage := RestoreStageName(rp.Progress.Stage) - if s != TaskStatusNew && s != TaskStatusDone && stage != "" { - s += " (" + stage + ")" - } - return s -} - -func avgDownload(hosts []*models.RestoreHostProgress) string { - var bytes, milliseconds, shards int64 - for _, hp := range hosts { - bytes += hp.DownloadedBytes - milliseconds += hp.DownloadDuration - shards += hp.ShardCnt - } - return formatBandwidth(bytes, milliseconds, shards) -} - -func avgStream(hosts []*models.RestoreHostProgress) string { - var bytes, milliseconds, shards int64 - for _, hp := range hosts { - bytes += hp.StreamedBytes - milliseconds += hp.StreamDuration - shards += hp.ShardCnt - } - return formatBandwidth(bytes, milliseconds, shards) -} - -func formatBandwidth(bytes, milliseconds, shards int64) string { - if milliseconds <= 0 { - return "unknown" - } - bs := bytes * 1000 / milliseconds - if shards <= 0 { - return FormatSizeSuffix(bs) + "/s" - } - return FormatSizeSuffix(bs/shards) + "/s/shard" -} - -func (rp RestoreProgress) hideKeyspace(keyspace string) bool { - if rp.KeyspaceFilter.Size() > 0 { - return rp.KeyspaceFilter.FirstMatch(keyspace) == -1 - } - return false -} - -// Render renders *RestoreProgress in a tabular format. -func (rp RestoreProgress) Render(w io.Writer) error { - if rp.Progress != nil { - fmt.Fprintf(w, "Restore progress\n") - } - if err := rp.addHeader(w); err != nil { - return err - } - if rp.Progress == nil { - return nil - } - - if rp.Progress.Size > 0 { - t := table.New() - rp.addKeyspaceProgress(t) - if _, err := io.WriteString(w, t.String()); err != nil { - return err - } - } - - if rp.Detailed { - if err := rp.addHostProgress(w); err != nil { - return err - } - if rp.Progress.Size > 0 { - if err := rp.addTableProgress(w); err != nil { - return err - } - } - } - - // Check if there is repair progress to display - if rp.Progress.RepairProgress != nil { - fmt.Fprintf(w, "\nPost-restore repair progress\n") - if err := rp.postRestoreRepairProgress().Render(w); err != nil { - return err - } - } - - rp.addViewProgress(w) - return nil -} - -func (rp RestoreProgress) postRestoreRepairProgress() RepairProgress { - repair := rp.Progress.RepairProgress - - repairRun := &models.TaskRun{ - ClusterID: rp.Task.ClusterID, - Type: RepairTask, - } - if repair.StartedAt != nil { - repairRun.StartTime = *repair.StartedAt - } - if repair.CompletedAt != nil { - repairRun.EndTime = *repair.CompletedAt - } - if rp.Progress.Stage == RestoreStageRepair { - repairRun.Cause = rp.Run.Cause - repairRun.Status = rp.Run.Status - } else { - switch { - case repair.Success == repair.TokenRanges: - repairRun.Status = TaskStatusDone - case repair.Error > 0: - repairRun.Status = TaskStatusError - } - } - - repairTask := &models.Task{ - ClusterID: rp.Task.ClusterID, - Enabled: true, - Properties: map[string]any{ - "intensity": repair.Intensity, - "parallel": repair.Parallel, - }, - Type: RepairTask, - } - - return RepairProgress{ - TaskRunRepairProgress: &models.TaskRunRepairProgress{ - Progress: repair, - Run: repairRun, - }, - Task: repairTask, - Detailed: rp.Detailed, - keyspaceFilter: rp.KeyspaceFilter, - } -} - -func (rp RestoreProgress) addKeyspaceProgress(t *table.Table) { - t.AddRow("Keyspace", "Progress", "Size", "Success", "Downloaded", "Failed") - t.AddSeparator() - for _, ks := range rp.Progress.Keyspaces { - if rp.hideKeyspace(ks.Keyspace) { - continue - } - p := "-" - if len(ks.Tables) > 0 { - p = FormatRestoreProgress(ks.Size, ks.Restored, ks.Downloaded, ks.Failed) - } - t.AddRow(ks.Keyspace, p, - FormatSizeSuffix(ks.Size), - FormatSizeSuffix(ks.Restored), - FormatSizeSuffix(ks.Downloaded), - FormatSizeSuffix(ks.Failed), - ) - } - t.SetColumnAlignment(termtables.AlignRight, 1, 2, 3, 4, 5) -} - -func (rp RestoreProgress) addTableProgress(w io.Writer) error { - for _, ks := range rp.Progress.Keyspaces { - if rp.hideKeyspace(ks.Keyspace) { - continue - } - fmt.Fprintf(w, "\nKeyspace: %s\n", ks.Keyspace) - - t := table.New("Table", "Progress", "Size", "Success", "Downloaded", "Failed", "Started at", "Completed at", "tombstone_gc mode") - for i, tab := range ks.Tables { - if i > 0 { - t.AddSeparator() - } - - startedAt := strfmt.DateTime{} - completedAt := strfmt.DateTime{} - if tab.StartedAt != nil { - startedAt = *tab.StartedAt - } - if tab.CompletedAt != nil { - completedAt = *tab.CompletedAt - } - t.AddRow( - tab.Table, - FormatRestoreProgress(tab.Size, - tab.Restored, - tab.Downloaded, - tab.Failed), - FormatSizeSuffix(tab.Size), - FormatSizeSuffix(tab.Restored), - FormatSizeSuffix(tab.Downloaded), - FormatSizeSuffix(tab.Failed), - FormatTime(startedAt), - FormatTime(completedAt), - tab.TombstoneGc, - ) - } - t.SetColumnAlignment(termtables.AlignRight, 1, 2, 3, 4, 5) - if _, err := w.Write([]byte(t.String())); err != nil { - return err - } - } - return nil -} - -func (rp RestoreProgress) addHostProgress(w io.Writer) error { - _, _ = fmt.Fprintf(w, "\nHosts info\n") - t := table.New("Host", "Shards", "Download bandwidth", "Download duration", "Load&stream bandwidth", "Load&stream duration") - for i, hp := range rp.Progress.Hosts { - if i > 0 { - t.AddSeparator() - } - t.AddRow( - hp.Host, - hp.ShardCnt, - formatBandwidth(hp.DownloadedBytes, hp.DownloadDuration, hp.ShardCnt), - FormatMsDuration(hp.DownloadDuration), - formatBandwidth(hp.StreamedBytes, hp.StreamDuration, hp.ShardCnt), - FormatMsDuration(hp.StreamDuration), - ) - } - t.SetColumnAlignment(termtables.AlignRight, 1, 2, 3, 4, 5) - if _, err := w.Write([]byte(t.String())); err != nil { - return err - } - return nil -} - -func (rp RestoreProgress) addViewProgress(w io.Writer) { - if len(rp.Progress.Views) == 0 { - return - } - - _, _ = fmt.Fprintf(w, "\nRestored views\n") - for _, v := range rp.Progress.Views { - if rp.Detailed { - _, _ = fmt.Fprintf(w, "View: %s.%s, Status: %s, Schema definition:\n %s\n", v.Keyspace, v.View, v.Status, v.CreateStmt) - } else { - _, _ = fmt.Fprintf(w, "View: %s.%s, Status: %s\n", v.Keyspace, v.View, v.Status) - } - } -} - -// ValidateBackupProgress prints validate_backup task progress. -type ValidateBackupProgress struct { - *models.TaskRunValidateBackupProgress - Task *Task - Detailed bool - - hostFilter inexlist.InExList -} - -// SetHostFilter adds filtering rules used for rendering for host details. -func (p *ValidateBackupProgress) SetHostFilter(filters []string) (err error) { - p.hostFilter, err = inexlist.ParseInExList(filters) - return -} - -func (p ValidateBackupProgress) hideHost(host string) bool { - if p.hostFilter.Size() > 0 { - return p.hostFilter.FirstMatch(host) == -1 - } - return false -} - -// Render implements Renderer interface. -func (p ValidateBackupProgress) Render(w io.Writer) error { - if err := p.addHeader(w); err != nil { - return err - } - if p.Detailed { - if err := p.addHostProgress(w); err != nil { - return err - } - } - - return nil -} - -var validateBackupProgressTemplate = `{{ with .Run -}} -Run: {{ .ID }} -Status: {{ .Status }} -{{- if .Cause }} -Cause: {{ FormatError .Cause }} - -{{- end }} -{{- if not (isZero .StartTime) }} -Start time: {{ FormatTime .StartTime }} -{{- end -}} -{{- if not (isZero .EndTime) }} -End time: {{ FormatTime .EndTime }} -{{- end }} -Duration: {{ FormatDuration .StartTime .EndTime }} -{{ end }} -{{ with progress -}} -Scanned files: {{ .ScannedFiles }} -Missing files: {{ .MissingFiles }} -Orphaned files: {{ .OrphanedFiles }} {{ if gt .OrphanedFiles 0 }}({{ FormatSizeSuffix .OrphanedBytes }}){{ end }} -{{- if gt .DeletedFiles 0 }} -Deleted files: {{ .DeletedFiles }} -{{- end }} -{{- if .BrokenSnapshots }} - -Broken snapshots: {{ range .BrokenSnapshots }} - - {{ . }} -{{- end }} -{{- end }} -{{- end }} -` - -func (p ValidateBackupProgress) addHeader(w io.Writer) error { - temp := template.Must(template.New("validate_backup_progress").Funcs(template.FuncMap{ - "isZero": isZero, - "FormatTime": FormatTime, - "FormatDuration": FormatDuration, - "FormatError": FormatError, - "FormatUploadProgress": FormatUploadProgress, - "FormatSizeSuffix": FormatSizeSuffix, - "progress": p.aggregatedProgress, - }).Parse(validateBackupProgressTemplate)) - return temp.Execute(w, p) -} - -func (p ValidateBackupProgress) aggregatedProgress() models.ValidateBackupProgress { - var a models.ValidateBackupProgress - - bs := strset.New() - for _, i := range p.Progress { - a.Manifests += i.Manifests - a.ScannedFiles += i.ScannedFiles - bs.Add(a.BrokenSnapshots...) - a.MissingFiles += i.MissingFiles - a.OrphanedFiles += i.OrphanedFiles - a.OrphanedBytes += i.OrphanedBytes - a.DeletedFiles += i.DeletedFiles - } - a.BrokenSnapshots = bs.List() - sort.Strings(a.BrokenSnapshots) - - return a -} - -func (p ValidateBackupProgress) addHostProgress(w io.Writer) error { - t := table.New( - "Host", - "Manifests", - "Scanned files", - "Missing files", - "Orphaned files", - "Orphaned bytes", - "Deleted files", - ) - t.SetColumnAlignment(termtables.AlignRight, 1, 2, 3, 4, 5, 6, 7) - lastLocation := "" - - fmt.Fprintln(w) - for _, hp := range p.Progress { - if hp.Location != lastLocation { - if t.Size() > 0 { - fmt.Fprintf(w, "Location: %s\n%s\n", lastLocation, t) - } - t.Reset() - lastLocation = hp.Location - } - if p.hideHost(hp.Host) { - continue - } - t.AddRow( - hp.Host, - hp.Manifests, - hp.ScannedFiles, - hp.MissingFiles, - hp.OrphanedFiles, - FormatSizeSuffix(hp.OrphanedBytes), - hp.DeletedFiles, - ) - } - if t.Size() > 0 { - fmt.Fprintf(w, "Location: %s\n%s\n", lastLocation, t) - } - - return nil -} - -// One2OneRestoreProgress prints validate_backup task progress. -type One2OneRestoreProgress struct { - *models.TaskRunOne2OneRestoreProgress - Task *Task - - Detailed bool -} - -// Render implements Renderer interface. -func (p One2OneRestoreProgress) Render(w io.Writer) error { - t := template.Must(template.New("").Funcs(template.FuncMap{ - "isZero": isZero, - "FormatTime": FormatTime, - "FormatDuration": FormatDuration, - "FormatError": FormatError, - "FormatSizeSuffix": FormatSizeSuffix, - "FormatTablesProgress": FormatTablesProgress, - "FormatViewsProgress": FormatViewsProgress, - }).Parse(one2oneRestoreProgressTemplate)) - return t.Execute(w, p) -} - -// RenderDetailedTableProgress renders detailed information about table progress in tabular format. -func (p One2OneRestoreProgress) RenderDetailedTableProgress() string { - t := table.New( - "Keyspace", - "Table", - "Size", - "Restored", - "Duration", - "Status", - ) - for _, table := range p.Progress.Tables { - startedAt, completedAt := strfmt.DateTime{}, strfmt.DateTime{} - if table.StartedAt != nil { - startedAt = *table.StartedAt - } - if table.CompletedAt != nil { - completedAt = *table.CompletedAt - } - t.AddRow( - table.Keyspace, - table.Table, - FormatSizeSuffix(table.Size), - FormatSizeSuffix(table.Restored), - FormatDuration(startedAt, completedAt), - table.Status, - ) - } - return t.Render() -} - -// RenderDetailedTableProgress renders detailed information about view progress in tabular format. -func (p One2OneRestoreProgress) RenderDetailedViewProgress() string { - t := table.New( - "Keyspace", - "View", - "Type", - "Duration", - "Status", - ) - for _, view := range p.Progress.Views { - startedAt, completedAt := strfmt.DateTime{}, strfmt.DateTime{} - if view.StartedAt != nil { - startedAt = *view.StartedAt - } - if view.CompletedAt != nil { - completedAt = *view.CompletedAt - } - t.AddRow( - view.Keyspace, - view.View, - view.ViewType, - FormatDuration(startedAt, completedAt), - view.Status, - ) - } - return t.Render() -} - -var one2oneRestoreProgressTemplate = `{{ with .Run -}} -Run: {{ .ID }} -Status: {{ .Status }} -{{- if .Cause }} -Cause: {{ FormatError .Cause }} - -{{- end }} -{{- if not (isZero .StartTime) }} -Start time: {{ FormatTime .StartTime }} -{{- end -}} -{{- if not (isZero .EndTime) }} -End time: {{ FormatTime .EndTime }} -{{- end }} -Duration: {{ FormatDuration .StartTime .EndTime }} -{{- end -}} -{{- with .Progress }} -Progress: {{- if $.Detailed }} {{ template "DetailedProgress" $ }} {{- else }} {{ template "SummaryProgress" . }} {{- end }} -{{- else }} -Progress: 0% -{{- end }} - -{{- define "SummaryProgress" }} -{{- if .Tables }} - Tables: {{ FormatTablesProgress .Tables }} -{{- end }} -{{- if .Views }} - Views: {{ FormatViewsProgress .Views }} -{{- end }} -{{- end }} - -{{- define "DetailedProgress" }} -{{- if .Progress.Tables }} -{{ .RenderDetailedTableProgress }} -{{- end }} -{{- if .Progress.Views }} -{{ .RenderDetailedViewProgress }} -{{- end}} -{{- end}}` - -// BackupListItems is a []backup.ListItem representation. -type BackupListItems struct { - items []*models.BackupListItem - AllClusters bool - ShowTables int -} - -const backupListItemTemplate = `backup/{{ .TaskID }} -Snapshots: -{{- range .SnapshotInfo }} - - {{ .SnapshotTag }} ({{ if eq .Size 0 }}n/a{{ else }}{{ FormatSizeSuffix .Size }}{{ end }}, {{ .Nodes }} nodes) -{{- end }} -Keyspaces: -{{- range .Units }} - - {{ .Keyspace }} {{ FormatTables .Tables .AllTables }} -{{- end }} - -` - -// Render implements Renderer interface. -func (bl BackupListItems) Render(w io.Writer) error { - temp := template.Must(template.New("backup_list_items").Funcs(template.FuncMap{ - "FormatTables": func(tables []string, all bool) string { - return FormatTables(bl.ShowTables, tables, all) - }, - "FormatSizeSuffix": FormatSizeSuffix, - }).Parse(backupListItemTemplate)) - - prev := "" - for _, i := range bl.items { - if bl.AllClusters { - if prev != i.ClusterID { - prev = i.ClusterID - fmt.Fprintln(w, "Cluster:", i.ClusterID) - fmt.Fprintln(w) - } - } - if err := temp.Execute(w, i); err != nil { - return err - } - } - return nil -} - -func formatLabels(labels map[string]string) string { - var out []string - for k, v := range labels { - out = append(out, k+"="+v) - } - return strings.Join(out, ", ") -} - -// ClusterSuspendDetails renders cluster suspend details. -type ClusterSuspendDetails struct { - *models.SuspendDetails - - ClusterID string -} - -// Render implements Renderer interface. -func (csd ClusterSuspendDetails) Render(w io.Writer) error { - t := table.New("Cluster ID", "Suspended", "Allowed Task") - t.AddRow( - csd.ClusterID, - csd.Suspended, - csd.AllowTaskType, - ) - if _, err := w.Write([]byte(t.String())); err != nil { - return err - } - return nil -} - -// BackupDescribeSchema renders described backup schema. -type BackupDescribeSchema struct { - *models.BackupDescribeSchema -} - -// Render implements Renderer interface. -func (bds BackupDescribeSchema) Render(w io.Writer) error { - cqlStmts := make([]string, 0, len(bds.Schema)) - for _, row := range bds.Schema { - cqlStmts = append(cqlStmts, row.CqlStmt) - } - _, err := w.Write([]byte(strings.Join(cqlStmts, "\n") + "\n")) - return err -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/restore.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/restore.go deleted file mode 100644 index 8ee2fe2348..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/restore.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package managerclient - -// Stage enumeration. -const ( - RestoreStageInit = "INIT" - RestoreStageDropViews = "DROP_VIEWS" - RestoreStageDisableTGC = "DISABLE_TGC" - RestoreStageData = "DATA" - RestoreStageRepair = "REPAIR" - RestoreStageEnableTG = "ENABLE_TGC" - RestoreStageRecreateViews = "RECREATE_VIEWS" - RestoreStageDone = "DONE" -) - -var restoreStageName = map[string]string{ - RestoreStageInit: "initialising", - RestoreStageDropViews: "dropping restored views", - RestoreStageDisableTGC: "disabling restored tables tombstone_gc", - RestoreStageData: "restoring backed-up data", - RestoreStageRepair: "repairing restored tables", - RestoreStageEnableTG: "enabling restored tables tombstone_gc", - RestoreStageRecreateViews: "recreating restored views", - RestoreStageDone: "", -} - -// RestoreStageName returns verbose name for restore stage. -func RestoreStageName(s string) string { - return restoreStageName[s] -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/table/table.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/table/table.go deleted file mode 100644 index 314fcef3f7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/table/table.go +++ /dev/null @@ -1,198 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package table - -import ( - "fmt" - "os" - - "github.com/scylladb/termtables" -) - -func init() { - // Select drawing character set for termtables to avoid output bugs. - // See scylladb/scylla-manager#1381. - ascii := os.Getenv("SCTOOL_ASCII_TABLES") - if ascii == "" { - termtables.EnableUTF8PerLocale() - } -} - -var defaultCellStyle = &termtables.CellStyle{ - Alignment: termtables.AlignLeft, - ColSpan: 1, -} - -type colProps struct { - limit bool - width int - alignment termtables.TableAlignment -} - -// Table is a helper type to make it easier to draw tables in the terminal. -type Table struct { - colProps map[int]*colProps - headers []interface{} - rows [][]interface{} - separator []bool -} - -// New creates a new Table. -func New(header ...interface{}) *Table { - cp := make(map[int]*colProps, len(header)) - for i := range header { - cw := cellWidth(header[i]) - cp[i] = &colProps{ - width: cw, - } - } - return &Table{ - colProps: cp, - headers: header, - } -} - -func cellWidth(val interface{}) int { - c := termtables.CreateCell(val, defaultCellStyle) - return c.Width() -} - -// SetColumnAlignment changes the alignment for elements in a column of the table; -// alignments are stored with each cell, so cells added after a call to -// SetColumnAlignment will not pick up the change. -// Columns are numbered from 0. -func (t *Table) SetColumnAlignment(alignment termtables.TableAlignment, cols ...int) { - for _, col := range cols { - if colProp, ok := t.colProps[col]; ok { - colProp.alignment = alignment - } - } -} - -// LimitColumnLength sets column to mask it's content that is overflowing -// length limit by replacing overflow with … character. -// Maximum width is determined by the available space considering total -// terminal width and number of other columns. -func (t *Table) LimitColumnLength(index ...int) { - if t.colProps == nil { - t.colProps = make(map[int]*colProps) - } - for _, i := range index { - _, ok := t.colProps[i] - if !ok { - t.colProps[i] = &colProps{ - limit: true, - } - } else { - t.colProps[i].limit = true - } - } -} - -// AddRow adds another row to the table. -func (t *Table) AddRow(items ...interface{}) *termtables.Row { - for i := range items { - if _, ok := t.colProps[i]; !ok { - t.colProps[i] = &colProps{} - } - w := cellWidth(items[i]) - if w > t.colProps[i].width { - t.colProps[i].width = w - } - } - t.rows = append(t.rows, items) - t.separator = append(t.separator, false) - return nil -} - -// AddSeparator adds a line to the table content, where the line -// consists of separator characters. -func (t *Table) AddSeparator() { - t.separator[len(t.separator)-1] = true -} - -// Size returns number of rows in a table. -func (t *Table) Size() int { - return len(t.rows) -} - -// Reset removes all rows from the table. -func (t *Table) Reset() { - t.rows = nil - t.separator = nil -} - -// Render returns a string representation of a fully rendered table. -func (t *Table) Render() string { - tbl := termtables.CreateTable() - if len(t.headers) > 0 { - tbl.AddHeaders(t.headers...) - } - wl := t.widthLimit() - for i := range t.rows { - row := make([]interface{}, 0, len(t.rows[i])) - for j, item := range t.rows[i] { - if v := t.colProps[j]; v.limit { - item = limitStr(item, wl) - } - row = append(row, item) - } - tbl.AddRow(row...) - if t.separator[i] { - tbl.AddSeparator() - } - } - - for i, colProp := range t.colProps { - // termtables counts columns from 1, we count from 0. - tbl.SetAlign(colProp.alignment, i+1) - } - - return tbl.Render() -} - -func (t *Table) widthLimit() int { - // Init with border and spacing - fixedTotal := len(t.colProps)*3 + 1 - limited := 0 - for _, prop := range t.colProps { - if prop.limit { - limited++ - } else { - fixedTotal += prop.width - } - } - widthLimit := 0 - if limited > 0 { - available := termtables.MaxColumns - fixedTotal - widthLimit = available / limited - } - return widthLimit -} - -// String representation of a fully drawn table. -func (t *Table) String() string { - if len(t.rows) == 0 { - return "" - } - return t.Render() -} - -func limitStr(v interface{}, limit int) string { - var val string - switch v := v.(type) { - case fmt.Stringer: - val = v.String() - case string: - val = v - default: - val = fmt.Sprintf("%v", v) - } - if limit >= len(val) { - return val - } - if limit > 0 { - val = val[:limit-1] + "…" - } - return val -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/tasks.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/tasks.go deleted file mode 100644 index 03502efbf9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/tasks.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package managerclient - -import "github.com/scylladb/go-set/strset" - -// TaskType enumeration. -const ( - BackupTask string = "backup" - RestoreTask string = "restore" - One2OneRestoreTask string = "1_1_restore" - HealthCheckTask string = "healthcheck" - RepairTask string = "repair" - SuspendTask string = "suspend" - ValidateBackupTask string = "validate_backup" -) - -// TasksTypes is a set of all known task types. -var TasksTypes = strset.New( - BackupTask, - RestoreTask, - One2OneRestoreTask, - HealthCheckTask, - RepairTask, - SuspendTask, - ValidateBackupTask, -) - -// Status enumeration. -const ( - TaskStatusNew string = "NEW" - TaskStatusRunning string = "RUNNING" - TaskStatusStopping string = "STOPPING" - TaskStatusStopped string = "STOPPED" - TaskStatusWaiting string = "WAITING" - TaskStatusDone string = "DONE" - TaskStatusError string = "ERROR" - TaskStatusAborted string = "ABORTED" -) diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/utils.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/utils.go deleted file mode 100644 index 3818d137e0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/managerclient/utils.go +++ /dev/null @@ -1,307 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package managerclient - -import ( - "fmt" - "io" - "math" - "net/url" - "path" - "strings" - "time" - - "github.com/go-openapi/strfmt" - "github.com/pkg/errors" - "github.com/scylladb/scylla-manager/v3/pkg/util/sizesuffix" - "github.com/scylladb/scylla-manager/v3/pkg/util/timeutc" - "github.com/scylladb/scylla-manager/v3/pkg/util/uuid" - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -const rfc822WithSec = "02 Jan 06 15:04:05 MST" - -// TaskSplit attempts to split a string into task type and ID. -// It accepts task type without ID, and validates task type against TasksTypes. -func TaskSplit(s string) (taskType string, taskID uuid.UUID, taskName string, err error) { - if TasksTypes.Has(s) { - taskType = s - return - } - - i := strings.LastIndex(s, "/") - if i != -1 { - taskType = s[:i] - } else { - taskType = s - } - if !TasksTypes.Has(taskType) { - err = errors.Errorf("unknown task type %s", taskType) - return - } - - txt := s[i+1:] - if id, err := uuid.Parse(txt); err != nil { - taskName = txt - } else { - taskID = id - } - - return -} - -// TaskID creates a string in the form `taskType/taskName` or `taskType/taskID`. -func TaskID(t *Task) string { - id := t.Name - if id == "" { - id = t.ID - } - return taskJoin(t.Type, id) -} - -// taskJoin creates a new type id string in the form `taskType/taskId`. -func taskJoin(taskType string, taskID interface{}) string { - return fmt.Sprint(taskType, "/", taskID) -} - -func uuidFromLocation(location string) (uuid.UUID, error) { - l, err := url.Parse(location) - if err != nil { - return uuid.Nil, err - } - _, id := path.Split(l.Path) - - return uuid.Parse(id) -} - -// FormatRepairProgress returns string representation of percentage of -// successful and error repair ranges. -func FormatRepairProgress(total, success, failed int64) string { - if total == 0 { - return "-" - } - out := fmt.Sprintf("%.f%%", math.Floor(float64(success)*100/float64(total))) - if failed > 0 { - out += fmt.Sprintf("/%.f%%", math.Ceil(float64(failed)*100/float64(total))) - } - return out -} - -// FormatTotalRepairProgress returns string representation of weighted repair progress. -func FormatTotalRepairProgress(successPr, errorPr int64) string { - if successPr < 0 || errorPr < 0 { - return "-" - } - out := fmt.Sprintf("%d%%", successPr) - if errorPr > 0 { - out += fmt.Sprintf("/%d%%", errorPr) - } - return out -} - -// FormatRepairParallel return string representation of currently used and maximal parallel value. -func FormatRepairParallel(parallel, maxParallel int64) string { - if maxParallel <= 0 { - return fmt.Sprint(parallel) - } - if parallel > maxParallel { - parallel = maxParallel - } - if parallel == 0 { - return fmt.Sprintf("%d/%d (max)", maxParallel, maxParallel) - } - return fmt.Sprintf("%d/%d", parallel, maxParallel) -} - -// FormatRepairIntensity return string representation of currently used and maximal intensity value. -func FormatRepairIntensity(intensity, maxIntensity float64) string { - if maxIntensity <= 0 { - return fmt.Sprint(intensity) - } - if intensity > maxIntensity { - intensity = maxIntensity - } - if intensity == 0 { - return fmt.Sprintf("%.0f/%.0f (max)", maxIntensity, maxIntensity) - } - return fmt.Sprintf("%.0f/%.0f", intensity, maxIntensity) -} - -// FormatUploadProgress calculates percentage of success and failed uploads. -func FormatUploadProgress(size, uploaded, skipped, failed int64) string { - if size == 0 { - return "100%" - } - transferred := uploaded + skipped - out := fmt.Sprintf("%.f%%", math.Floor(float64(transferred)*100/float64(size))) - if failed > 0 { - out += fmt.Sprintf("/%.f%%", math.Ceil(float64(failed)*100/float64(size))) - } - return out -} - -// FormatRestoreProgress calculates percentage of success and failed downloads and restores. -func FormatRestoreProgress(size, restored, downloaded, failed int64) string { - if size == 0 { - return "100%" - } - out := fmt.Sprintf("%.f%%", math.Floor(float64(restored)*100/float64(size))) - out += fmt.Sprintf(" | %.f%%", math.Floor(float64(downloaded)*100/float64(size))) - if failed > 0 { - out += fmt.Sprintf(" / failed: %.f%%", math.Ceil(float64(failed)*100/float64(size))) - } - return out -} - -// FormatSizeSuffix returns string printing size with a unit. -func FormatSizeSuffix(b int64) string { - return sizesuffix.SizeSuffix(b).String() -} - -// FormatTime formats the supplied DateTime in `02 Jan 06 15:04:05 MST` format. -func FormatTime(t strfmt.DateTime) string { - if isZero(t) { - return "" - } - return time.Time(t).Local().Format(rfc822WithSec) //nolint: gosmopolitan -} - -// FormatTimePointer see FormatTime. -func FormatTimePointer(t *strfmt.DateTime) string { - var tf strfmt.DateTime - if t != nil { - tf = *t - } - return FormatTime(tf) -} - -// FormatDuration creates and formats the duration between -// the supplied DateTime values. -// If t1 is zero it will default to current time. -func FormatDuration(t0, t1 strfmt.DateTime) string { - if isZero(t0) && isZero(t1) { - return "0s" - } - var d time.Duration - if isZero(t1) { - d = timeutc.Now().Sub(time.Time(t0)) - } else { - d = time.Time(t1).Sub(time.Time(t0)) - } - - return d.Truncate(time.Second).String() -} - -// FormatMsDuration returns string representation of given amount of milliseconds -// as duration rounded up to a full second. -func FormatMsDuration(d int64) string { - return (time.Duration(d)*time.Millisecond + time.Second - 1).Truncate(time.Second).String() -} - -func isZero(t strfmt.DateTime) bool { - return time.Time(t).IsZero() -} - -// FormatTables returns tables listing if number of tables is lower than -// threshold. It prints (n tables) or (table_a, table_b, ...). -func FormatTables(threshold int, tables []string, all bool) string { - var out string - if len(tables) == 0 || threshold == 0 || (threshold > 0 && len(tables) > threshold) { - if len(tables) == 1 { - out = "(1 table)" - } else { - out = fmt.Sprintf("(%d tables)", len(tables)) - } - } - if out == "" { - out = "(" + strings.Join(tables, ", ") + ")" - } - if all { - out = "all " + out - } - return out -} - -// FormatRestoreTables returns tables listing if number of tables is lower than -// threshold. It prints (n tables) or (table_a: size_a, table_b: size_b, ...). -func FormatRestoreTables(threshold int, tables []*models.RestoreTable) string { - var out string - if len(tables) == 0 || threshold == 0 || (threshold > 0 && len(tables) > threshold) { - if len(tables) == 1 { - out = "(1 table)" - } else { - out = fmt.Sprintf("(%d tables)", len(tables)) - } - } - if out == "" { - var tableStr []string - for _, t := range tables { - tableStr = append(tableStr, fmt.Sprintf("%s: %s", t.Table, FormatSizeSuffix(t.Size))) - } - - out = "(" + strings.Join(tableStr, ", ") + ")" - } - return out -} - -// FormatClusterName writes cluster name and id to the writer. -func FormatClusterName(w io.Writer, c *Cluster) { - fmt.Fprintf(w, "Cluster: %s (%s)\n", c.Name, c.ID) -} - -// FormatIntensity returns text representation of repair intensity. -func FormatIntensity(v float64) string { - if v == -1 { - return "max" - } - if math.Floor(v) == v { - return fmt.Sprintf("%d", int(v)) - } - return fmt.Sprintf("%.2f", v) -} - -// FormatRetentionPolicy returns text representation of retention policy. -func FormatRetentionPolicy(retention, retentionDays int64) string { - var res string - if retention == 0 && retentionDays == 0 { - res += " - Scylla Manager will not purge any backups created by this task\n" - } - if retention > 0 { - res += " - Last " - if retention == 1 { - res += "backup\n" - } else { - res += fmt.Sprintf("%d backups\n", retention) - } - } - if retentionDays > 0 { - res += fmt.Sprintf(" - Backups not older than %d ", retentionDays) - if retentionDays == 1 { - res += "day\n" - } else { - res += "days\n" - } - } - return res -} - -// FormatTablesProgress calculates percent of restored table bytes. -func FormatTablesProgress(tables []*models.One2OneRestoreTableProgress) string { - var sumSize, sumRestored int64 - for _, t := range tables { - sumSize += t.Size - sumRestored += t.Restored - } - return fmt.Sprintf("%d%%", sumRestored*100/sumSize) -} - -// FormatViewsProgress calculates percent of restored views. -func FormatViewsProgress(views []*models.One2OneRestoreViewProgress) string { - var done int - for _, v := range views { - if v.Status == models.One2OneRestoreTableProgressStatusDone { - done++ - } - } - return fmt.Sprintf("%d%%", done*100/len(views)) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/LICENSE b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/LICENSE deleted file mode 100644 index 0ad25db4bd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/certutil/certutil.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/certutil/certutil.go deleted file mode 100644 index 6d545a78e2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/certutil/certutil.go +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package certutil - -import ( - "crypto/ecdsa" - "crypto/elliptic" - "crypto/rand" - "crypto/tls" - "crypto/x509" - "crypto/x509/pkix" - "math/big" - "net" - - "github.com/pkg/errors" - "github.com/scylladb/scylla-manager/v3/pkg/util/timeutc" -) - -// GenerateSelfSignedCertificate generates a P256 certificate that can be used -// to start an HTTPS server. -// The certificate is valid for a year after it's generated. -func GenerateSelfSignedCertificate(hosts []string) (tls.Certificate, error) { - var cert tls.Certificate - - priv, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader) - if err != nil { - return cert, err - } - - serialNumberLimit := new(big.Int).Lsh(big.NewInt(1), 128) - serialNumber, err := rand.Int(rand.Reader, serialNumberLimit) - if err != nil { - return cert, errors.Wrap(err, "generate serial number") - } - - now := timeutc.Now() - - template := x509.Certificate{ - SerialNumber: serialNumber, - Subject: pkix.Name{ - Organization: []string{"Scylla"}, - }, - NotBefore: now, - NotAfter: now.AddDate(1, 0, 0), - KeyUsage: x509.KeyUsageDigitalSignature, - ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth}, - BasicConstraintsValid: true, - } - - for i := range hosts { - h, _, err := net.SplitHostPort(hosts[i]) - if err != nil { - h = hosts[i] - } - if ip := net.ParseIP(h); ip != nil { - template.IPAddresses = append(template.IPAddresses, ip) - } else { - template.DNSNames = append(template.DNSNames, h) - } - } - - template.IsCA = true - template.KeyUsage |= x509.KeyUsageCertSign - - derBytes, err := x509.CreateCertificate(rand.Reader, &template, &template, &priv.PublicKey, priv) - if err != nil { - return cert, errors.Wrap(err, "generate certificate") - } - - cert.Certificate = [][]byte{derBytes} - cert.PrivateKey = priv - - return cert, nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/cfgutil/cfgutil.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/cfgutil/cfgutil.go deleted file mode 100644 index 9d3c7f430c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/cfgutil/cfgutil.go +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package cfgutil - -import ( - "os" - "reflect" - - "github.com/pkg/errors" - "go.uber.org/config" -) - -// ParseYAML attempts to load and parse the files given by files and store -// the contents of the files in the struct given by target. -// It will overwrite any conflicting keys by the keys in the subsequent files. -// Missing files will not cause an error but will just be skipped. -// After parsing all files any top level structs which are empty will be -// replaced by their value from def. -func ParseYAML(target, def interface{}, files ...string) error { - opts, err := fileOpts(files) - if err != nil { - return err - } - - if err := parseYaml(target, opts); err != nil { - return err - } - - return mergeZeroStructs(target, def) -} - -func mergeZeroStructs(dst, src interface{}) error { - d := reflect.ValueOf(dst).Elem() - s := reflect.ValueOf(src) - - if d.Type() != s.Type() { - return errors.New("cannot merge structs of differing types") - } - - for i := 0; i < d.NumField(); i++ { - field := d.Field(i) - if field.Kind() == reflect.Struct && field.IsZero() { - field.Set(s.Field(i)) - } - } - - return nil -} - -// PermissiveParseYAML is a variant of ParseYAML that disables gopkg.in/yaml.v2's strict mode -// -// DO NOT USE. -func PermissiveParseYAML(target interface{}, files ...string) error { - opts, err := fileOpts(files) - if err != nil { - return err - } - opts = append(opts, config.Permissive()) - return parseYaml(target, opts) -} - -func parseYaml(target interface{}, opts []config.YAMLOption) error { - cfg, err := config.NewYAML(opts...) - if err != nil { - return err - } - return cfg.Get(config.Root).Populate(target) -} - -func fileOpts(files []string) ([]config.YAMLOption, error) { - var opts []config.YAMLOption - for _, f := range files { - exists, err := fileExists(f) - if err != nil { - return nil, err - } - if exists { - opts = append(opts, config.File(f)) - } - } - return opts, nil -} - -func fileExists(filename string) (bool, error) { - info, err := os.Stat(filename) - if err != nil { - if os.IsNotExist(err) { - return false, nil - } - return false, err - } - return !info.IsDir(), nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/clipper/clipper.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/clipper/clipper.go deleted file mode 100644 index f085806294..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/clipper/clipper.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package clipper - -import ( - "io" - "strings" -) - -var clipperPrefixes = []string{ - ` __ `, - `/ \ `, - `@ @ `, - `| | `, - `|| |/`, - `|| ||`, - `|\_/|`, - `\___/`, -} -var clipperLength = len(clipperPrefixes[0]) - -// Say prints message with clipper asci art. Similar to `cowsay` on linux. -func Say(w io.Writer, lines ...string) error { - const indent = " " - - sb := strings.Builder{} - for i, prefix := range clipperPrefixes { - sb.WriteString(prefix) - // message from second line of clipper - if i != 0 && len(lines) > i-1 { - sb.WriteString(indent) - sb.WriteString(lines[i-1]) - } - sb.WriteRune('\n') - } - for i := len(clipperPrefixes) - 1; i < len(lines); i++ { - for k := 0; k < clipperLength; k++ { - sb.WriteRune(' ') - } - sb.WriteString(indent) - sb.WriteString(lines[i]) - sb.WriteRune('\n') - } - - _, err := io.WriteString(w, sb.String()) - return err -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/cpuset/cpuset.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/cpuset/cpuset.go deleted file mode 100644 index 78c4aea02c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/cpuset/cpuset.go +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package cpuset - -import ( - "bufio" - "os" - "regexp" - "sort" - "strconv" - "strings" - - "github.com/pkg/errors" - "github.com/scylladb/go-set/iset" -) - -const ( - // scyllaConfigFile is a file generated by a Scylla configuration tools, - // it contains additional flags --cpuset and --smp that are passed to - // scylla-server on start. - scyllaConfigFile = "/etc/scylla.d/cpuset.conf" - // cpuSetPattern matches the configuration line in the scyllaConfigFile ex. - // CPUSET="--cpuset 0 --smp 1". - cpuSetPattern = `^\s*CPUSET=\s*\"(?:\s*--cpuset(?:\s*|=)(?P\d+(?:[-,]\d+)*))?(?:\s*--smp(?:\s*|=)(?P\d+))?\s*"` -) - -// ErrNoCPUSetConfig is returned in presence of an empty cpuset.conf file. -var ErrNoCPUSetConfig = errors.New("no CPUSET configuration") - -// ParseScyllaConfigFile returns a list of busy CPUs based on /etc/scylla.d/cpuset.conf -// contents. -func ParseScyllaConfigFile() ([]int, error) { - return parseConfigFile(scyllaConfigFile) -} - -func parseConfigFile(name string) ([]int, error) { - file, err := os.Open(name) - if err != nil { - return nil, err - } - defer file.Close() - - var groups []string - p := regexp.MustCompile(cpuSetPattern) - s := bufio.NewScanner(file) - for s.Scan() { - if m := p.FindStringSubmatch(s.Text()); m != nil { - groups = m - } - } - if err := s.Err(); err != nil { - return nil, err - } - if groups == nil { - return nil, ErrNoCPUSetConfig // nolint: errorlint - } - - idx := 0 - for i, n := range p.SubexpNames() { - if n == "cpuset" { - idx = i - break - } - } - - if groups[idx] == "" { - return nil, errors.New("CPUSET configuration is missing cpuset flag") - } - - return parseCPUSet(groups[idx]) -} - -func parseCPUSet(s string) ([]int, error) { - cpus := iset.New() - - for _, g := range strings.Split(s, ",") { - v := strings.Split(g, "-") - start, err := strconv.ParseInt(v[0], 10, 64) - if err != nil { - return nil, err - } - end, err := strconv.ParseInt(v[len(v)-1], 10, 64) - if err != nil { - return nil, err - } - for i := start; i <= end; i++ { - cpus.Add(int(i)) - } - } - - l := cpus.List() - sort.Ints(l) - return l, nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/cpuset/cpuset_linux.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/cpuset/cpuset_linux.go deleted file mode 100644 index 5c7b379e2a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/cpuset/cpuset_linux.go +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (C) 2017 ScyllaDB -//go:build linux -// +build linux - -package cpuset - -import ( - "fmt" - "os" - "strconv" - - "github.com/pkg/errors" - "go.uber.org/multierr" - "golang.org/x/sys/unix" -) - -// AvailableCPUs returns a list of CPUs of length wantCPUs that does not contain -// any of the busyCPUs. If the conditions cannot be met error is returned. -// AvailableCPUs selects the CPUs with the highest available indexes to offload -// shard 0... -func AvailableCPUs(busyCPUs []int) ([]int, error) { - var cpus unix.CPUSet - if err := unix.SchedGetaffinity(os.Getpid(), &cpus); err != nil { - return nil, errors.Wrap(err, "get affinity") - } - for _, c := range busyCPUs { - cpus.Clear(c) - } - - n := cpus.Count() - if n == 0 { - return nil, errors.Errorf("no available CPUs") - } - - return cpulist(&cpus), nil -} - -// SchedSetAffinity makes all of this process threads run on the provided set -// of CPUs only. -func SchedSetAffinity(useCPUs []int) error { - pids, err := osTasks(os.Getpid()) - if err != nil { - return errors.Wrap(err, "get tasks") - } - - return schedSetAffinityToMany(pids, cpuset(useCPUs)) -} - -func schedSetAffinityToMany(pids []int, set *unix.CPUSet) (err error) { - for _, pid := range pids { - err = multierr.Append(unix.SchedSetaffinity(pid, set), errors.Wrapf(err, "pid %d", pid)) - } - return -} - -// SchedGetAffinity gets a union of CPUs used by this process threads. -func SchedGetAffinity() ([]int, error) { - pids, err := osTasks(os.Getpid()) - if err != nil { - return nil, errors.Wrap(err, "get tasks") - } - - union := make(map[int]struct{}) - for _, pid := range pids { - var cpus unix.CPUSet - if err := unix.SchedGetaffinity(pid, &cpus); err != nil { - return nil, errors.Wrap(err, "get affinity") - } - for _, cpu := range cpulist(&cpus) { - union[cpu] = struct{}{} - } - } - - var out []int - for cpu := range union { - out = append(out, cpu) - } - return out, nil -} - -func cpuset(cpus []int) *unix.CPUSet { - set := &unix.CPUSet{} - set.Zero() - for _, c := range cpus { - set.Set(c) - } - return set -} - -func cpulist(set *unix.CPUSet) []int { - var cpus []int - - n := set.Count() - for i := 0; len(cpus) < n; i++ { - if set.IsSet(i) { - cpus = append(cpus, i) - } - } - - return cpus -} - -func osTasks(pid int) ([]int, error) { - files, err := os.ReadDir(fmt.Sprint("/proc/", pid, "/task")) - if err != nil { - return nil, err - } - - var pids []int - for _, f := range files { - p, _ := strconv.ParseInt(f.Name(), 10, 64) // nolint: errcheck - pids = append(pids, int(p)) - } - - return pids, nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/cpuset/cpuset_others.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/cpuset/cpuset_others.go deleted file mode 100644 index 515685dad5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/cpuset/cpuset_others.go +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2017 ScyllaDB -//go:build !linux -// +build !linux - -package cpuset - -// AvailableCPUs is a no-op implementation for all systems but Linux. -// This is intended for development purposes only. -// Scylla Manager supports only Linux OS. -func AvailableCPUs(cpus []int) ([]int, error) { - return cpus, nil -} - -// SchedSetAffinity is a no-op implementation for all systems but Linux. -// This is intended for development purposes only. -// Scylla Manager supports only Linux OS. -func SchedSetAffinity(useCPUs []int) error { - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/duration.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/duration.go deleted file mode 100644 index 15223ffaf7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/duration.go +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package util - -import "time" - -// EpsilonRange returns start and end of range 5% close to provided value. -func EpsilonRange(d time.Duration) (a, b time.Duration) { - e := time.Duration(float64(d) * 1.05) - return d - e, d + e -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/duration/duration.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/duration/duration.go deleted file mode 100644 index 7a65e3117e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/duration/duration.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package duration - -import ( - "time" - - "github.com/gocql/gocql" -) - -// Duration adds marshalling to time.Duration. -type Duration time.Duration - -// MarshalCQL implements gocql.Marshaler. -func (d Duration) MarshalCQL(info gocql.TypeInfo) ([]byte, error) { - return gocql.Marshal(info, int(time.Duration(d).Seconds())) -} - -// UnmarshalCQL implements gocql.Unmarshaler. -func (d *Duration) UnmarshalCQL(info gocql.TypeInfo, data []byte) error { - var t time.Duration - if err := gocql.Unmarshal(info, data, &t); err != nil { - return err - } - *d = Duration(t * time.Second) - return nil -} - -// MarshalText implements text.Marshaller. -func (d Duration) MarshalText() ([]byte, error) { - if d == 0 { - return []byte{}, nil - } - return []byte(d.String()), nil -} - -// UnmarshalText implements text.Marshaller. -func (d *Duration) UnmarshalText(b []byte) error { - if len(b) == 0 { - *d = 0 - return nil - } - - t, err := ParseDuration(string(b)) - if err != nil { - return err - } - *d = t - return nil -} - -// Duration returns this duration as time.Duration. -func (d Duration) Duration() time.Duration { - return time.Duration(d) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/duration/duration_string.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/duration/duration_string.go deleted file mode 100644 index ded5007617..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/duration/duration_string.go +++ /dev/null @@ -1,153 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -// Copyright 2010 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// This file contains a modified version of time.Duration String function from -// go stdlib src/time/duration.go file together with all required helper functions. - -package duration - -import "time" - -// String is a modified time.Duration String function that supports printing -// days with d suffix, note that day is equal to 24h. This is not supported by -// time.Duration because of issues with leap year and different time zones. We -// decide to ignore that as we are working with UTC. -// -// The implementation is changed not to print units if value is 0 to keep the -// representation shorter i.e. instead of 7d0h0m0s we print just 7d. -// -// String returns a string representing the duration in the form "72h3m0.5s". -// Leading zero units are omitted. As a special case, durations less than one -// second format use a smaller unit (milli-, micro-, or nanoseconds) to ensure -// that the leading digit is non-zero. The zero duration formats as 0s. -func (d Duration) String() string { - // Largest time is 2540400h10m10.000000000s - var buf [32]byte - w := len(buf) - - u := uint64(d) - neg := d < 0 - if neg { - u = -u - } - - if u < uint64(time.Second) { - // Special case: if duration is smaller than a second, - // use smaller units, like 1.2ms - var prec int - w-- - buf[w] = 's' - w-- - switch { - case u == 0: - return "0s" - case u < uint64(time.Microsecond): - // print nanoseconds - prec = 0 - buf[w] = 'n' - case u < uint64(time.Millisecond): - // print microseconds - prec = 3 - // U+00B5 'µ' micro sign == 0xC2 0xB5 - w-- // Need room for two bytes. - copy(buf[w:], "µ") - default: - // print milliseconds - prec = 6 - buf[w] = 'm' - } - w, u = fmtFrac(buf[:w], u, prec) - w = fmtInt(buf[:w], u) - } else { - w-- - buf[w] = 's' - - w, u = fmtFrac(buf[:w], u, 9) - - // u is now integer seconds - if u%60 != 0 || w != len(buf)-1 { - w = fmtInt(buf[:w], u%60) - } else { - w = len(buf) - } - u /= 60 - - // u is now integer minutes - if u > 0 { - if u%60 != 0 { - w-- - buf[w] = 'm' - w = fmtInt(buf[:w], u%60) - } - u /= 60 - - // u is now integer hours - if u > 0 { - if u%24 != 0 { - w-- - buf[w] = 'h' - w = fmtInt(buf[:w], u%24) - } - u /= 24 - - // u is now integer days - if u > 0 { - w-- - buf[w] = 'd' - w = fmtInt(buf[:w], u) - } - } - } - } - - if neg { - w-- - buf[w] = '-' - } - - return string(buf[w:]) -} - -// fmtFrac formats the fraction of v/10**prec (e.g., ".12345") into the -// tail of buf, omitting trailing zeros. It omits the decimal -// point too when the fraction is 0. It returns the index where the -// output bytes begin and the value v/10**prec. -func fmtFrac(buf []byte, v uint64, prec int) (nw int, nv uint64) { - // Omit trailing zeros up to and including decimal point. - w := len(buf) - print := false - for i := 0; i < prec; i++ { - digit := v % 10 - print = print || digit != 0 - if print { - w-- - buf[w] = byte(digit) + '0' - } - v /= 10 - } - if print { - w-- - buf[w] = '.' - } - return w, v -} - -// fmtInt formats v into the tail of buf. -// It returns the index where the output begins. -func fmtInt(buf []byte, v uint64) int { - w := len(buf) - if v == 0 { - w-- - buf[w] = '0' - } else { - for v > 0 { - w-- - buf[w] = byte(v%10) + '0' - v /= 10 - } - } - return w -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/duration/format.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/duration/format.go deleted file mode 100644 index c84ebf07fd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/duration/format.go +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -// Copyright 2010 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// This file contains a modified version of ParseDuration function from -// go stdlib src/time/format.go file together with all required helper functions. - -package duration - -import ( - "errors" - "time" -) - -// unitMap is modified by eliminating ms and below units and by adding d that -// denotes 24 hours. -var unitMap = map[string]int64{ - "s": int64(time.Second), - "m": int64(time.Minute), - "h": int64(time.Hour), - "d": int64(24 * time.Hour), -} - -// ParseDuration parses a duration string. -// A duration string is a possibly signed sequence of -// decimal numbers, each with optional fraction and a unit suffix, -// such as "300ms", "-1.5h" or "2h45m". -// Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". -func ParseDuration(s string) (Duration, error) { // nolint: gocognit - // [-+]?([0-9]*(\.[0-9]*)?[a-z]+)+ - orig := s - var d int64 - neg := false - - // Consume [-+]? - if s != "" { - c := s[0] - if c == '-' || c == '+' { - neg = c == '-' - s = s[1:] - } - } - // Special case: if all that is left is "0", this is zero. - if s == "0" { - return 0, nil - } - if s == "" { - return 0, errors.New("time: invalid duration " + orig) - } - for s != "" { - var ( - v, f int64 // integers before, after decimal point - scale float64 = 1 // value = v + f/scale - ) - - var err error - - // The next character must be [0-9.] - if !(s[0] == '.' || '0' <= s[0] && s[0] <= '9') { - return 0, errors.New("time: invalid duration " + orig) - } - // Consume [0-9]* - pl := len(s) - v, s, err = leadingInt(s) - if err != nil { - return 0, errors.New("time: invalid duration " + orig) - } - pre := pl != len(s) // whether we consumed anything before a period - - // Consume (\.[0-9]*)? - post := false - if s != "" && s[0] == '.' { - s = s[1:] - pl := len(s) - f, scale, s = leadingFraction(s) - post = pl != len(s) - } - if !pre && !post { - // no digits (e.g. ".s" or "-.s") - return 0, errors.New("time: invalid duration " + orig) - } - - // Consume unit. - i := 0 - for ; i < len(s); i++ { - c := s[i] - if c == '.' || '0' <= c && c <= '9' { - break - } - } - if i == 0 { - return 0, errors.New("time: missing unit in duration " + orig) - } - u := s[:i] - s = s[i:] - unit, ok := unitMap[u] - if !ok { - return 0, errors.New("time: unknown unit " + u + " in duration " + orig) - } - if v > (1<<63-1)/unit { - // overflow - return 0, errors.New("time: invalid duration " + orig) - } - v *= unit - if f > 0 { - // float64 is needed to be nanosecond accurate for fractions of hours. - // v >= 0 && (f*unit/scale) <= 3.6e+12 (ns/h, h is the largest unit) - v += int64(float64(f) * (float64(unit) / scale)) - if v < 0 { - // overflow - return 0, errors.New("time: invalid duration " + orig) - } - } - d += v - if d < 0 { - // overflow - return 0, errors.New("time: invalid duration " + orig) - } - } - - if neg { - d = -d - } - return Duration(d), nil -} - -// leadingFraction consumes the leading [0-9]* from s. -// It is used only for fractions, so does not return an error on overflow, -// it just stops accumulating precision. -func leadingFraction(s string) (x int64, scale float64, rem string) { - i := 0 - scale = 1 - overflow := false - for ; i < len(s); i++ { - c := s[i] - if c < '0' || c > '9' { - break - } - if overflow { - continue - } - if x > (1<<63-1)/10 { - // It's possible for overflow to give a positive number, so take care. - overflow = true - continue - } - y := x*10 + int64(c) - '0' - if y < 0 { - overflow = true - continue - } - x = y - scale *= 10 - } - return x, scale, s[i:] -} - -var errLeadingInt = errors.New("time: bad [0-9]*") // never printed - -// leadingInt consumes the leading [0-9]* from s. -func leadingInt(s string) (x int64, rem string, err error) { - i := 0 - for ; i < len(s); i++ { - c := s[i] - if c < '0' || c > '9' { - break - } - if x > (1<<63-1)/10 { - // overflow - return 0, "", errLeadingInt - } - x = x*10 + int64(c) - '0' - if x < 0 { - // overflow - return 0, "", errLeadingInt - } - } - return x, s[i:], nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/errors.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/errors.go deleted file mode 100644 index 464f561c7a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/errors.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package util - -import ( - "github.com/gocql/gocql" - "github.com/pkg/errors" -) - -// Common errors. -var ( - ErrNotFound = gocql.ErrNotFound - ErrNilPtr = errors.New("nil") -) - -// errValidate is a validation error caused by inner error. -type errValidate struct { // nolint: errname - err error -} - -// ErrValidate marks error as a validation error, if err is not nil. -func ErrValidate(err error) error { - if err == nil { - return nil - } - return errValidate{err: err} -} - -// IsErrValidate checks if given error is a validation error. -func IsErrValidate(err error) bool { - _, ok := err.(errValidate) // nolint: errorlint - return ok -} - -// Error implements error. -func (e errValidate) Error() string { - return e.err.Error() -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/fsutil/expand.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/fsutil/expand.go deleted file mode 100644 index 1a8e5f115e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/fsutil/expand.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package fsutil - -import ( - "os" - "path/filepath" - - "github.com/pkg/errors" -) - -// ExpandPath expands the path to include the home directory if the path -// is prefixed with `~`. If it isn't prefixed with `~`, the path is -// returned as-is. -func ExpandPath(path string) (string, error) { - if path == "" { - return path, nil - } - - if path[0] != '~' { - return path, nil - } - - if len(path) > 1 && path[1] != '/' && path[1] != '\\' { - return "", errors.New("cannot expand user-specific home dir") - } - - home, err := os.UserHomeDir() - if err != nil { - return "", errors.Wrap(err, "get home dir") - } - - return filepath.Join(home, path[1:]), nil -} - -// ReadFile expands path and calls os.ReadFile. -func ReadFile(filename string) ([]byte, error) { - p, err := ExpandPath(filename) - if err != nil { - return nil, err - } - return os.ReadFile(p) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/httplog/log.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/httplog/log.go deleted file mode 100644 index 31cbd1a6e4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/httplog/log.go +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package httplog - -import ( - "fmt" - "net/http" - "time" - - "github.com/go-chi/chi/v5/middleware" - "github.com/scylladb/go-log" -) - -// TraceID adds trace ID to incoming request. -func TraceID(next http.Handler) http.Handler { - return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - r = r.WithContext(log.WithTraceID(r.Context())) - next.ServeHTTP(w, r) - }) -} - -// RequestLogger logs requests and responses. -func RequestLogger(logger log.Logger) func(next http.Handler) http.Handler { - return middleware.RequestLogger(&logFormatter{logger: logger}) -} - -// RequestLoggerSetRequestError adds error to request for rendering. -func RequestLoggerSetRequestError(r *http.Request, err error) { - if le, _ := middleware.GetLogEntry(r).(*logEntry); le != nil { - le.err = err - } -} - -type logFormatter struct { - logger log.Logger -} - -func (lf logFormatter) NewLogEntry(r *http.Request) middleware.LogEntry { - return &logEntry{ - r: r, - l: lf.logger, - } -} - -type logEntry struct { - r *http.Request - l log.Logger - err error -} - -func (le *logEntry) Write(status, bytes int, _ http.Header, elapsed time.Duration, _ interface{}) { - f := []interface{}{ - "from", le.r.RemoteAddr, - "status", status, - "bytes", bytes, - "duration", fmt.Sprintf("%dms", elapsed.Milliseconds()), - } - if le.err != nil { - f = append(f, "error", le.err) - } - le.l.Info(le.r.Context(), le.r.Method+" "+le.r.URL.RequestURI(), f...) -} - -func (le *logEntry) Panic(v interface{}, stack []byte) { - le.l.Error(le.r.Context(), "Panic", "panic", v, "stack", stack) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/httppprof/pprof.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/httppprof/pprof.go deleted file mode 100644 index ad9aabf581..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/httppprof/pprof.go +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package httppprof - -import ( - "net/http" - "net/http/pprof" -) - -// Handler returns http.Handler serving pprof endpoints. -func Handler() http.Handler { - m := http.NewServeMux() - m.HandleFunc("/debug/pprof/", pprof.Index) - m.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline) - m.HandleFunc("/debug/pprof/profile", pprof.Profile) - m.HandleFunc("/debug/pprof/symbol", pprof.Symbol) - m.HandleFunc("/debug/pprof/trace", pprof.Trace) - return m -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/httpx/clone.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/httpx/clone.go deleted file mode 100644 index 4f8a54588f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/httpx/clone.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package httpx - -import ( - "net/http" - "net/url" -) - -// CloneRequest creates a shallow copy of the request along with a deep copy -// of the Headers and URL. -func CloneRequest(req *http.Request) *http.Request { - r := new(http.Request) - - // Shallow clone - *r = *req - - // Copy ctx - r = r.WithContext(req.Context()) - - // Deep copy headers - r.Header = CloneHeader(req.Header) - - // Deep copy URL - r.URL = new(url.URL) - *r.URL = *req.URL - - return r -} - -// CloneHeader creates a deep copy of an http.Header. -func CloneHeader(in http.Header) http.Header { - out := make(http.Header, len(in)) - for key, values := range in { - newValues := make([]string, len(values)) - copy(newValues, values) - out[key] = newValues - } - return out -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/httpx/resp.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/httpx/resp.go deleted file mode 100644 index b6f56f384b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/httpx/resp.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package httpx - -import ( - "bytes" - "fmt" - "io" - "net/http" -) - -// MakeResponse creates a minimal response for a request and status code. -func MakeResponse(req *http.Request, statusCode int) *http.Response { - return &http.Response{ - Status: http.StatusText(statusCode), - StatusCode: statusCode, - Proto: "HTTP/1.1", - ProtoMajor: 1, - ProtoMinor: 1, - Request: req, - Header: make(http.Header), - Body: http.NoBody, - } -} - -// MakeAgentErrorResponse creates an agent error response that can be used in testing. -func MakeAgentErrorResponse(req *http.Request, statusCode int, msg string) *http.Response { - resp := MakeResponse(req, statusCode) - resp.Header.Set("Content-type", "application/json") - resp.Body = io.NopCloser(bytes.NewBufferString(fmt.Sprintf(`{"status": %d, "message": "%s"}`, statusCode, msg))) // nolint: gocritic - return resp -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/httpx/rt.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/httpx/rt.go deleted file mode 100644 index 1cd0aaf06a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/httpx/rt.go +++ /dev/null @@ -1,15 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package httpx - -import "net/http" - -// The RoundTripperFunc type is an adapter to allow the use of ordinary -// functions as RoundTrippers. If f is a function with the appropriate -// signature, RountTripperFunc(f) is a RoundTripper that calls f. -type RoundTripperFunc func(req *http.Request) (*http.Response, error) - -// RoundTrip implements the RoundTripper interface. -func (rt RoundTripperFunc) RoundTrip(r *http.Request) (*http.Response, error) { - return rt(r) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/inexlist/dcfilter/dcfilter.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/inexlist/dcfilter/dcfilter.go deleted file mode 100644 index 22f7843ae0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/inexlist/dcfilter/dcfilter.go +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package dcfilter - -import ( - "sort" - - "github.com/pkg/errors" - "github.com/scylladb/scylla-manager/v3/pkg/util" - "github.com/scylladb/scylla-manager/v3/pkg/util/inexlist" -) - -// Apply returns DCs matched by the filters. -// If no DCs are found or a filter is invalid a validation error is returned. -func Apply(dcMap map[string][]string, filters []string) ([]string, error) { - dcInclExcl, err := inexlist.ParseInExList(decorate(filters)) - if err != nil { - return nil, err - } - - dcs := make([]string, 0, len(dcMap)) - for dc := range dcMap { - dcs = append(dcs, dc) - } - - // Filter - filtered := dcInclExcl.Filter(dcs) - - // Report error if there is no match - if len(filtered) == 0 { - return nil, util.ErrValidate(errors.Errorf("no matching DCs found for filters %s", filters)) - } - - // Sort lexicographically - sort.Strings(filtered) - - return filtered, nil -} - -// Filter that lets you filter datacenters. -type Filter struct { - filters []string - inex inexlist.InExList -} - -func NewFilter(filters []string) (*Filter, error) { - // Decorate filters and create inexlist - inex, err := inexlist.ParseInExList(decorate(filters)) - if err != nil { - return nil, errors.Wrapf(err, "parse dc filter %v", filters) - } - return &Filter{ - filters: filters, - inex: inex, - }, nil -} - -// Check returns true iff dc matches filter. -func (f *Filter) Check(dc string) bool { - return len(f.inex.Filter([]string{dc})) > 0 -} - -func decorate(filters []string) []string { - if len(filters) == 0 { - filters = append(filters, "*") - } - return filters -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/inexlist/inexlist.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/inexlist/inexlist.go deleted file mode 100644 index 600427f49c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/inexlist/inexlist.go +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package inexlist - -import ( - "fmt" - "strings" - - "github.com/gobwas/glob" - "github.com/pkg/errors" - "github.com/scylladb/scylla-manager/v3/pkg/util" -) - -type sign bool - -func (s sign) String() string { - if s { - return "" - } - return "!" -} - -type signedPattern struct { - Sign sign - Pattern string - g glob.Glob -} - -// InExList is an include/exclude list that can filter string slices based on -// a given set of glob patterns. -type InExList struct { - patterns []string - list []signedPattern -} - -func (sp signedPattern) String() string { - return fmt.Sprintf("%s%s", sp.Sign, sp.Pattern) -} - -// ParseInExList takes a list of patterns such as -// [keyspace_1.table_1 !keyspace_1.table_2] and parses it into executable rules. -// If any of the glob pattern is invalid an error is returned. -func ParseInExList(patterns []string) (InExList, error) { - inExList := InExList{ - patterns: patterns, - } - - parsed := make([]signedPattern, 0, len(patterns)) - - for i, p := range patterns { - p = strings.TrimSpace(p) - if p == "" { - continue - } - s := !strings.HasPrefix(p, "!") - p = strings.TrimLeft(p, "!") - g, err := glob.Compile(p) - if err != nil { - return InExList{}, util.ErrValidate(errors.Errorf("invalid glob p on position %d: %s", i, p)) - } - parsed = append(parsed, signedPattern{Sign: sign(s), Pattern: p, g: g}) - } - - inExList.list = parsed - - return inExList, nil -} - -// Filter simply applies the rules to the supplied list of strings. -// If an earlier rule excludes a given entry a succeeding rule can later add it back. -func (ie InExList) Filter(in []string) []string { - if len(ie.patterns) == 0 { - return in - } - - var out []string - - for _, v := range in { - ok := false - for _, p := range ie.list { - if p.g.Match(v) { - ok = bool(p.Sign) - } - } - if ok { - out = append(out, v) - } - } - - return out -} - -// FirstMatch takes a string and tries to find a matching rule and -// if it finds one the position of that rule is returned. -// If no matching rule is found then -1 is returned. -func (ie InExList) FirstMatch(s string) int { - for i, sp := range ie.list { - if bool(sp.Sign) && sp.g.Match(s) { - return i - } - } - - return -1 -} - -// Size returns the number of patterns. -func (ie InExList) Size() int { - return len(ie.list) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/inexlist/ksfilter/ksfilter.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/inexlist/ksfilter/ksfilter.go deleted file mode 100644 index a6b46b6953..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/inexlist/ksfilter/ksfilter.go +++ /dev/null @@ -1,182 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package ksfilter - -import ( - "sort" - "strings" - - "github.com/pkg/errors" - "github.com/scylladb/scylla-manager/v3/pkg/util" - "github.com/scylladb/scylla-manager/v3/pkg/util/inexlist" - "go.uber.org/multierr" -) - -// Unit specifies keyspace and it's tables. -type Unit struct { - Keyspace string - Tables []string - AllTables bool -} - -// Filter is a builder that let's you filter keyspaces and tables by adding them -// on keyspace by keyspace basis. -type Filter struct { - filters []string - inex inexlist.InExList - units []Unit - keyspaces []string -} - -func NewFilter(filters []string) (*Filter, error) { - // Validate filters - var errs error - for i, f := range filters { - err := validate(filters[i]) - if err != nil { - errs = multierr.Append(errs, errors.Wrapf(err, "%q on position %d", f, i)) - continue - } - } - if errs != nil { - return nil, util.ErrValidate(errors.Wrap(errs, "invalid filters")) - } - - // Decorate filters and create inexlist - inex, err := inexlist.ParseInExList(decorate(filters)) - if err != nil { - return nil, err - } - - return &Filter{ - filters: filters, - inex: inex, - }, nil -} - -func validate(filter string) error { - if filter == "*" || filter == "!*" { - return nil - } - if strings.HasPrefix(filter, ".") { - return errors.New("missing keyspace") - } - return nil -} - -func decorate(filters []string) []string { - if len(filters) == 0 { - filters = append(filters, "*.*") - } - - for i, f := range filters { - if strings.Contains(f, ".") { - continue - } - if strings.HasSuffix(f, "*") { - filters[i] = strings.TrimSuffix(f, "*") + "*.*" - } else { - filters[i] += ".*" - } - } - - return filters -} - -// Add filters the keyspace and tables, if they match it adds a new unit to the -// Filter. -func (f *Filter) Add(keyspace string, tables []string) { - // Add prefix - prefix := keyspace + "." - for i := 0; i < len(tables); i++ { - tables[i] = prefix + tables[i] - } - - // Filter - filtered := f.inex.Filter(tables) - - // No data, skip the keyspace - if len(filtered) == 0 { - return - } - - // Remove prefix - for i := 0; i < len(filtered); i++ { - filtered[i] = strings.TrimPrefix(filtered[i], prefix) - } - - // Add unit - u := Unit{ - Keyspace: keyspace, - Tables: filtered, - AllTables: len(filtered) == len(tables), - } - f.units = append(f.units, u) - - f.keyspaces = append(f.keyspaces, keyspace) -} - -// Check returns true iff table matches filter. -func (f *Filter) Check(keyspace, table string) bool { - key := keyspace + "." + table - return len(f.inex.Filter([]string{key})) > 0 -} - -// Apply returns the resulting units. The units are sorted by position of a -// first match in the filters. -// If no units are found or a filter is invalid a validation error is returned. -// The validation error may be disabled by providing the force=true. -func (f *Filter) Apply(force bool) ([]Unit, error) { - if len(f.units) == 0 && !force { - return nil, util.ErrValidate(errors.Errorf("no keyspace matched criteria %s - available keyspaces are: %s", f.filters, f.keyspaces)) - } - - // Sort units by the presence - sortUnits(f.units, f.inex) - - return f.units, nil -} - -func sortUnits(units []Unit, inclExcl inexlist.InExList) { - positions := make(map[string]int) - for _, u := range units { - min := inclExcl.Size() - for _, t := range u.Tables { - if p := inclExcl.FirstMatch(u.Keyspace + "." + t); p >= 0 && p < min { - min = p - } - } - positions[u.Keyspace] = min - } - - sort.Slice(units, func(i, j int) bool { - // order by position - switch { - case positions[units[i].Keyspace] < positions[units[j].Keyspace]: - return true - case positions[units[i].Keyspace] > positions[units[j].Keyspace]: - return false - default: - // promote system keyspaces - l := strings.HasPrefix(units[i].Keyspace, "system") - r := strings.HasPrefix(units[j].Keyspace, "system") - switch { - case l && !r: - return true - case !l && r: - return false - default: - // order by name - return units[i].Keyspace < units[j].Keyspace - } - } - }) -} - -// Filters returns the original filters used to create the instance. -func (f *Filter) Filters() []string { - if f == nil { - return nil - } - return f.filters -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/jsonutil/set.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/jsonutil/set.go deleted file mode 100644 index cf0eb299f2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/jsonutil/set.go +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package jsonutil - -import ( - "encoding/json" -) - -// Set returns a copy of the message where key=value. -func Set(msg json.RawMessage, key string, value interface{}) json.RawMessage { - m := map[string]interface{}{} - if err := json.Unmarshal(msg, &m); err != nil { - panic(err) - } - m[key] = value - v, err := json.Marshal(m) - if err != nil { - panic(err) - } - return v -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/logutil/logutil.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/logutil/logutil.go deleted file mode 100644 index 605f81cc0a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/logutil/logutil.go +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (C) 2024 ScyllaDB - -package logutil - -import ( - "context" - - "github.com/scylladb/go-log" -) - -// LogOnError logs provided msg and keyvals only when f results encounters error. -// It's useful for logging resource cleanup errors that don't directly influence function execution. -func LogOnError(ctx context.Context, log log.Logger, f func() error, msg string, keyvals ...interface{}) { - if err := f(); err != nil { - log.Error(ctx, msg, append(append([]any{}, keyvals...), "error", err)...) - } -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/maputil/map.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/maputil/map.go deleted file mode 100644 index 6ae9e5234e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/maputil/map.go +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (C) 2024 ScyllaDB - -package maputil - -// Equal checks if m1 and m2 are the same mapping. -func Equal[K, V comparable](m1, m2 map[K]V) bool { - if len(m1) != len(m2) { - return false - } - for k, v1 := range m1 { - if v2, ok := m2[k]; !ok || v1 != v2 { - return false - } - } - return true -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/netwait/netwait.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/netwait/netwait.go deleted file mode 100644 index b334825f21..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/netwait/netwait.go +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package netwait - -import ( - "context" - "net" - "time" - - "github.com/pkg/errors" - "github.com/scylladb/go-log" - "go.uber.org/multierr" -) - -// AnyAddr tries to open a TCP connection to any of the provided addresses, -// returns first address it could connect to. -func AnyAddr(ctx context.Context, addr ...string) (string, error) { - return DefaultWaiter.WaitAnyAddr(ctx, addr...) -} - -// AnyHostPort tries to connect to any of the hosts, returns first host if -// could connect to over the given port. -func AnyHostPort(ctx context.Context, hosts []string, port string) (string, error) { - return DefaultWaiter.WaitAnyHostPort(ctx, hosts, port) -} - -// Waiter specifies waiting parameters. -type Waiter struct { - DialTimeout time.Duration - RetryBackoff time.Duration - MaxAttempts int - Logger log.Logger -} - -var DefaultWaiter = Waiter{ - DialTimeout: 1 * time.Second, - RetryBackoff: 2 * time.Second, - MaxAttempts: 60, -} - -// WaitAnyAddr tries to open a TCP connection to any of the provided addresses, -// returns first address it could connect to. -func (w Waiter) WaitAnyAddr(ctx context.Context, addr ...string) (string, error) { - t := time.NewTimer(w.RetryBackoff) - defer t.Stop() - - var ( - a string - err error - ) - for i := 0; i < w.MaxAttempts; i++ { - t.Reset(w.RetryBackoff) - - a, err = tryConnectToAny(addr, w.DialTimeout) - - if err != nil { - w.Logger.Info(ctx, "Waiting for network connection", - "sleep", w.RetryBackoff, - "error", err, - ) - select { - case <-t.C: - continue - case <-ctx.Done(): - return "", err - } - } - - return a, nil - } - - return "", errors.Wrapf(err, "giving up after %d attempts", w.MaxAttempts) -} - -// tryConnectToAny tries to open a TCP connection to any of the provided -// addresses, attempts are sequential, it returns first successful address or -// error if failed to connect to any address. -func tryConnectToAny(addrs []string, timeout time.Duration) (string, error) { - var errs error - - for _, addr := range addrs { - var conn net.Conn - var err error - - if timeout != 0 { - conn, err = net.DialTimeout("tcp", addr, timeout) - } else { - conn, err = net.Dial("tcp", addr) - } - - if conn != nil { - conn.Close() - } - if err == nil { - return addr, nil - } - errs = multierr.Append(errs, err) - } - - return "", errs -} - -// WaitAnyHostPort tries to connect to any of the hosts, returns first host if -// could connect to over the given port. -func (w Waiter) WaitAnyHostPort(ctx context.Context, hosts []string, port string) (string, error) { - addr, err := w.WaitAnyAddr(ctx, joinHostsPort(hosts, port)...) - if err != nil { - return addr, err - } - - // Extract host from address before returning - host, _, _ := net.SplitHostPort(addr) - return host, nil -} - -func joinHostsPort(hosts []string, port string) []string { - out := make([]string, len(hosts)) - for i, h := range hosts { - out[i] = net.JoinHostPort(h, port) - } - return out -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/osutil/osutil.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/osutil/osutil.go deleted file mode 100644 index 9985831d0a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/osutil/osutil.go +++ /dev/null @@ -1,159 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package osutil - -import ( - "bufio" - "bytes" - "io" - "os" - "os/exec" - "regexp" - "strings" - - "github.com/scylladb/scylla-manager/v3/pkg/util/uuid" -) - -// Distro is string representation of the linux distribution. -type Distro string - -const ( - // Amazon Linux distribution id. - Amazon Distro = "amzn" - // Centos Linux distribution id. - Centos Distro = "centos" - // Debian Linux distribution id. - Debian Distro = "debian" - // Fedora Linux distribution id. - Fedora Distro = "fedora" - // Rehl Red Hat Linux distribution id. - Rehl Distro = "rehl" - // Ubuntu Linux distribution id. - Ubuntu Distro = "ubuntu" - // Unknown distro. - Unknown Distro = "unknown" -) - -// osReleaseFile used for override in tests. -var osReleaseFile = "/etc/os-release" - -// LinuxDistro returns Linux distribution id. -// Common ids are defined as constants. -// Unknown is returned if distro can't be detected. -func LinuxDistro() Distro { - f, err := os.Open(osReleaseFile) - if err != nil { - return Unknown - } - defer f.Close() - s := bufio.NewScanner(f) - release := "unknown" - for s.Scan() { - l := s.Text() - if strings.HasPrefix(l, "ID=") { - release = strings.Trim(l[3:], `"`) - break - } - } - return Distro(release) -} - -// dockerEnvFile used for override in tests. -var dockerEnvFile = "/.dockerenv" - -// cGroupFile used for override in tests. -var cGroupFile = "/proc/1/cgroup" - -// Docker returns true if application is running inside docker environment. -// Tests presence of "/.dockerenv" file or "docker|lxc" in /proc/1/cgroup. -func Docker() bool { - if f, err := os.Open(dockerEnvFile); err == nil { - f.Close() - return true - } - if f, err := os.Open(cGroupFile); err == nil { - defer f.Close() - b, err := io.ReadAll(f) - if err != nil { - return false - } - if bytes.Contains(b, []byte("docker")) || bytes.Contains(b, []byte("lxc")) { - return true - } - } - - return false -} - -// macUUIDFile used for override in tests. -var macUUIDFile = "/var/tmp/scylla-manager-macuuid" - -// MacUUID returns unique id of the machine that application is running on. -// Implementation is using file to generate this value. -// If the file system is/ not persistent like in Docker it will be different -// every time this file is removed. -func MacUUID() uuid.UUID { - f, err := os.Open(macUUIDFile) - if err != nil { - macUUID := uuid.NewTime() - f, err := os.OpenFile(macUUIDFile, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, os.ModePerm) - if err != nil { - return uuid.Nil - } - n, err := f.WriteString(macUUID.String()) - if err == nil && n < len(macUUID.String()) { - return uuid.Nil - } - if err := f.Close(); err != nil { - return uuid.Nil - } - return macUUID - } - defer f.Close() - out, err := io.ReadAll(f) - if err != nil { - return uuid.Nil - } - id, err := uuid.Parse(string(out)) - if err != nil { - return uuid.Nil - } - return id -} - -var ( - // regExecCommand used for override in tests. - regExecCommand = func(name string, args ...string) ([]byte, error) { - cmd := exec.Command(name, args...) - return cmd.CombinedOutput() - } - // Sample repository URL: - // https://repositories.scylladb.com/scylla/downloads/scylladb/f3d53efa-ee7e-4f4e-9d4b-7ee6b9ea48da/scylla-manager/rpm/centos/scylladb-manager-1.3 - idRegex = regexp.MustCompile("(?s)scylladb/([a-z0-9-]+)/scylla-manager") -) - -// RegUUID extracts registration id from scylla-manager package repositories. -func RegUUID() uuid.UUID { - var out []byte - var err error - switch LinuxDistro() { - case Ubuntu, Debian: - out, err = regExecCommand("apt-cache", "policy", "scylla-manager-server") - case Amazon, Rehl, Centos, Fedora: - out, err = regExecCommand("repoquery", "-a", "--nolock", "--location", "scylla-manager-server") - default: - return uuid.Nil - } - if err != nil { - return uuid.Nil - } - match := idRegex.FindStringSubmatch(string(out)) - if len(match) < 2 { - return uuid.Nil - } - id, err := uuid.Parse(match[1]) - if err != nil { - return uuid.Nil - } - return id -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/parallel/parallel.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/parallel/parallel.go deleted file mode 100644 index 2754865178..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/parallel/parallel.go +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package parallel - -import ( - "go.uber.org/atomic" -) - -// NoLimit means full parallelism mode. -const NoLimit = 0 - -// ErrAbort is a special kind of error that aborts all further execution. -// Function calls that are in progress will continue to execute but no new -// functions will be called. -type ErrAbort struct { - error -} - -// Abort is special kind of error that aborts all further execution. -func Abort(err error) ErrAbort { - return ErrAbort{error: err} -} - -func isErrAbort(err error) (bool, error) { - a, ok := err.(ErrAbort) // nolint: errorlint - if !ok { - return false, nil - } - return true, a.error -} - -// NopNotify does not perform any operation when encountering an error during Run. -func NopNotify(int, error) {} - -// Run executes function f with arguments ranging from 0 to n-1 executing at -// most limit in parallel. -// If limit is 0 it runs f(0),f(1),...,f(n-1) in parallel. -// Notify is called when worker i encounters error err. -func Run(n, limit int, f func(i int) error, notify func(i int, err error)) error { - if n == 0 { - return nil - } - if n == 1 { - return f(0) - } - - if limit <= 0 || limit > n { - limit = n - } - - var ( - idx = atomic.NewInt32(0) - out = make(chan error) - abrt = atomic.NewBool(false) - ) - for j := 0; j < limit; j++ { - go func() { - for { - // Exit when there is nothing to do - i := int(idx.Inc()) - 1 - if i >= n { - return - } - - // Exit if aborted - if abrt.Load() { - out <- nil - continue - } - - // Execute - err := f(i) - if ok, inner := isErrAbort(err); ok { - abrt.Store(true) - err = inner - } - out <- err - if err != nil { - notify(i, err) - } - } - }() - } - - var retErr error - for i := 0; i < n; i++ { - err := <-out - // Appending all errors reduces readability, so it's enough to return only one of them - // (the other errors has already been logged via notify). - if retErr == nil { - retErr = err - } - } - return retErr -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/pathparser/parser.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/pathparser/parser.go deleted file mode 100644 index c3d25f26f7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/pathparser/parser.go +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package pathparser - -import ( - "strings" - - "github.com/pkg/errors" - "github.com/scylladb/scylla-manager/v3/pkg/util/uuid" -) - -// PathParser can be used to parse parts of string separated by provided sep. -type PathParser struct { - value string - sep string -} - -// New returns instance of PathParser. -func New(v, sep string) *PathParser { - return &PathParser{ - value: v, - sep: sep, - } -} - -// Parser describes interface of part parser, user can implement his own parsers. -// PartGetter is used for part retrieval, single parser may consume multiple parts. -type Parser func(string) error - -// Parse iterates over provided parsers which consumes string parts. -func (p PathParser) Parse(parsers ...Parser) (int, error) { - parts := strings.Split(p.value, p.sep) - for i, p := range parsers { - if i >= len(parts) { - return i, nil - } - if err := p(parts[i]); err != nil { - return i, errors.Wrapf(err, "invalid path element at position %d", i) - } - } - return len(parsers), nil -} - -// ID parser saves UUID value under given ptr. -func ID(ptr *uuid.UUID) Parser { - return func(v string) error { - return ptr.UnmarshalText([]byte(v)) - } -} - -// String parser saves string under given ptr. -func String(ptr *string) Parser { - return func(v string) error { - *ptr = v - return nil - } -} - -// Static validates a path part is one of the provided values. -func Static(s ...string) Parser { - if len(s) == 0 { - panic("Expected list of values") - } - return func(v string) error { - if len(s) == 1 { - if v != s[0] { - return errors.Errorf("expected %s got %s", s[0], v) - } - } else { - var ok bool - for i := range s { - if v == s[i] { - ok = true - break - } - } - if !ok { - return errors.Errorf("expected one of %s got %s", s, v) - } - } - return nil - } -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/pointer/pointer.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/pointer/pointer.go deleted file mode 100644 index c0733d36e9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/pointer/pointer.go +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package pointer - -import "time" - -// Int32Ptr returns a pointer to an int32. -func Int32Ptr(i int32) *int32 { - return &i -} - -// Int32PtrDerefOr dereference the int32 ptr and returns it if not nil, -// else returns def. -func Int32PtrDerefOr(ptr *int32, def int32) int32 { - if ptr != nil { - return *ptr - } - return def -} - -// Int64Ptr returns a pointer to an int64. -func Int64Ptr(i int64) *int64 { - return &i -} - -// Int64PtrDerefOr dereference the int64 ptr and returns it if not nil, -// else returns def. -func Int64PtrDerefOr(ptr *int64, def int64) int64 { - if ptr != nil { - return *ptr - } - return def -} - -// BoolPtr returns a pointer to a bool. -func BoolPtr(b bool) *bool { - return &b -} - -// BoolPtrDerefOr dereference the bool ptr and returns it if not nil, -// else returns def. -func BoolPtrDerefOr(ptr *bool, def bool) bool { - if ptr != nil { - return *ptr - } - return def -} - -// StringPtr returns a pointer to the passed string. -func StringPtr(s string) *string { - return &s -} - -// StringPtrDerefOr dereference the string ptr and returns it if not nil, -// else returns def. -func StringPtrDerefOr(ptr *string, def string) string { - if ptr != nil { - return *ptr - } - return def -} - -// Float32Ptr returns a pointer to the passed float32. -func Float32Ptr(i float32) *float32 { - return &i -} - -// Float32PtrDerefOr dereference the float32 ptr and returns it if not nil, -// else returns def. -func Float32PtrDerefOr(ptr *float32, def float32) float32 { - if ptr != nil { - return *ptr - } - return def -} - -// Float64Ptr returns a pointer to the passed float64. -func Float64Ptr(i float64) *float64 { - return &i -} - -// Float64PtrDerefOr dereference the float64 ptr and returns it if not nil, -// else returns def. -func Float64PtrDerefOr(ptr *float64, def float64) float64 { - if ptr != nil { - return *ptr - } - return def -} - -// TimePtr returns a pointer to the passed Time. -func TimePtr(i time.Time) *time.Time { - return &i -} - -// TimePtrDerefOr dereference the time.Time ptr and returns it if not nil, -// else returns def. -func TimePtrDerefOr(ptr *time.Time, def time.Time) time.Time { - if ptr != nil { - return *ptr - } - return def -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/prom/parse.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/prom/parse.go deleted file mode 100644 index c919a7eb4c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/prom/parse.go +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package prom - -import ( - "io" - - dto "github.com/prometheus/client_model/go" - "github.com/prometheus/common/expfmt" -) - -// MetricFamily represent single prometheus metric. -type MetricFamily = dto.MetricFamily - -// ParseText parses text format of prometheus metrics from input reader. -func ParseText(r io.Reader) (map[string]*MetricFamily, error) { - var p expfmt.TextParser - return p.TextToMetricFamilies(r) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/query/query.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/query/query.go deleted file mode 100644 index 006738b93c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/query/query.go +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (C) 2023 ScyllaDB - -package query - -import ( - "fmt" - "strings" - - "github.com/gocql/gocql" - "github.com/pkg/errors" - "github.com/scylladb/go-set/strset" - "github.com/scylladb/gocqlx/v2" - "github.com/scylladb/gocqlx/v2/qb" - "github.com/scylladb/scylla-manager/v3/pkg/util/uuid" -) - -// GetAllViews returns set of all views present in cluster. -func GetAllViews(s gocqlx.Session) (*strset.Set, error) { - q := qb.Select("system_schema.views"). - Columns("keyspace_name", "view_name"). - Query(s) - defer q.Release() - iter := q.Iter() - - views := strset.New() - var keyspace, view string - for iter.Scan(&keyspace, &view) { - views.Add(keyspace + "." + view) - } - - return views, iter.Close() -} - -// GetTableVersion returns given table version. -func GetTableVersion(s gocqlx.Session, keyspace, table string) (string, error) { - q := qb.Select("system_schema.tables"). - Columns("id"). - Where(qb.Eq("keyspace_name"), qb.Eq("table_name")). - Query(s). - Bind(keyspace, table) - - defer q.Release() - - var version string - if err := q.Scan(&version); err != nil { - return "", err - } - // Table's version is stripped of '-' characters - version = strings.ReplaceAll(version, "-", "") - - return version, nil -} - -// DescribedSchema describes output of DESCRIBE SCHEMA WITH INTERNALS. -type DescribedSchema []DescribedSchemaRow - -// DescribedSchemaRow describes a single row returned by DESCRIBE SCHEMA WITH INTERNALS. -type DescribedSchemaRow struct { - Keyspace string `json:"keyspace"` - Type string `json:"type"` - Name string `json:"name"` - CQLStmt string `json:"cql_stmt"` -} - -// DescribeSchemaWithInternals returns the output of DESCRIBE SCHEMA WITH INTERNALS query parsed into DescribedSchema. -func DescribeSchemaWithInternals(session gocqlx.Session) (DescribedSchema, error) { - it := session.Query("DESCRIBE SCHEMA WITH INTERNALS", nil).Iter() - var ks, t, name, cql string - var schema DescribedSchema - for it.Scan(&ks, &t, &name, &cql) { - schema = append(schema, DescribedSchemaRow{ - Keyspace: ks, - Type: t, - Name: name, - CQLStmt: cql, - }) - } - - if err := it.Close(); err != nil { - return DescribedSchema{}, errors.Wrap(err, "describe schema with internals") - } - return schema, nil -} - -// RaftReadBarrier performs read barrier on a random node to which session is connected to. -// When used with single host session, it can be used to ensure that given node -// has already applied all raft commands present in the raft log. -func RaftReadBarrier(session gocqlx.Session) error { - // As this functionality is not available from Scylla API, - // SM uses the workaround described in https://github.com/scylladb/scylladb/issues/19213. - // Read barrier is performed before any schema change, so it's enough to try to apply - // some dummy schema changing CQL statement. - // In order to avoid misleading errors, it's good to use the IF EXISTS clause. - // Still, it might happen that SM does not have the permissions to perform dummy schema change. - // As described in the issue, this type of error still results in performing read barrier, - // so SM should treat it as if everything went fine. - // TODO: swap workaround with proper API call when mentioned issue is fixed. - // nolint: godox - tmpName := strings.ReplaceAll(uuid.NewTime().String(), "-", "") - readBarrierStmt := fmt.Sprintf("DROP TABLE IF EXISTS %q.%q", tmpName, tmpName) - if err := session.ExecStmt(readBarrierStmt); err != nil && !isGocqlUnauthorizedError(err) { - return errors.Wrap(err, "exec dummy schema change") - } - return nil -} - -func isGocqlUnauthorizedError(err error) bool { - var reqErr gocql.RequestError - return errors.As(err, &reqErr) && reqErr.Code() == gocql.ErrCodeUnauthorized -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/retry/backoff.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/retry/backoff.go deleted file mode 100644 index 30982ba4f9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/retry/backoff.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package retry - -import ( - "time" - - "github.com/cenkalti/backoff/v4" -) - -// Backoff specifies a policy for how long to wait between retries. -// It is called after a failing request, to determine the amount of time -// that should pass before trying again. -type Backoff = backoff.BackOff - -// Stop indicates that no more retries should be made. -const Stop time.Duration = -1 - -// NewExponentialBackoff returns Backoff implementation that increases each -// wait period exponentially. -// Multiplier controls how fast each wait period grows, and randomizationFactor -// allows to inject some jitter between periods. -func NewExponentialBackoff(initialInterval, maxElapsedTime, maxInterval time.Duration, multiplier, randomizationFactor float64) Backoff { - b := backoff.NewExponentialBackOff() - b.InitialInterval = initialInterval - b.MaxElapsedTime = maxElapsedTime - b.MaxInterval = maxInterval - - b.Multiplier = multiplier - b.RandomizationFactor = randomizationFactor - b.Reset() - return b -} - -// WithMaxRetries allows to set maximum number of retries for given backoff strategy. -func WithMaxRetries(b Backoff, maxRetries uint64) Backoff { - return backoff.WithMaxRetries(b, maxRetries) -} - -// BackoffFunc type is an adapter to allow the use of ordinary -// functions as Backoff. -type BackoffFunc func() time.Duration - -// NextBackOff returns the duration to wait before retrying the operation. -func (b BackoffFunc) NextBackOff() time.Duration { - return b() -} - -// Reset to initial state. -func (b BackoffFunc) Reset() {} - -// Clone returns a copy of BackoffFunc. -func (b BackoffFunc) Clone() Backoff { - return b -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/retry/retry.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/retry/retry.go deleted file mode 100644 index 2ca25e14f4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/retry/retry.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package retry - -import ( - "context" - - "github.com/cenkalti/backoff/v4" - "github.com/pkg/errors" -) - -// An Operation is executing by WithNotify(). -// The operation will be retried using a backoff policy if it returns an error. -type Operation = backoff.Operation - -// Notify is a notify-on-error function. It receives an operation error and -// backoff delay if the operation failed (with an error). -type Notify = backoff.Notify - -// WithNotify calls notify function with the error and wait duration -// for each failed attempt before sleep. -func WithNotify(ctx context.Context, op Operation, b Backoff, n Notify) error { - return backoff.RetryNotify(op, backoff.WithContext(b, ctx), n) -} - -// Permanent wraps the given err in a *backoff.PermanentError. -// This error interrupts further retries and causes retrying mechanism. -func Permanent(err error) error { - return backoff.Permanent(err) -} - -// IsPermanent checks if an error is a permanent error created with Permanent. -func IsPermanent(err error) bool { - var perr *backoff.PermanentError - return errors.As(err, &perr) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/schedules/cron.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/schedules/cron.go deleted file mode 100644 index 550d7ccf79..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/schedules/cron.go +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package schedules - -import ( - "github.com/robfig/cron/v3" -) - -var cronParser = cron.NewParser(cron.SecondOptional | cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor) - -// NewCronTrigger returns a cron Trigger for a given spec. -func NewCronTrigger(spec string) (Trigger, error) { - return cronParser.Parse(spec) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/schedules/legacy.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/schedules/legacy.go deleted file mode 100644 index ee2c4fdc82..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/schedules/legacy.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package schedules - -import ( - "time" -) - -type legacy struct { - startDate time.Time - interval time.Duration -} - -// NewLegacy returns Trigger based on interval duration that was used in -// Scylla Manager 2.x and before. -func NewLegacy(startDate time.Time, interval time.Duration) Trigger { - return legacy{startDate: startDate, interval: interval} -} - -func (l legacy) Next(now time.Time) time.Time { - if l.startDate.After(now) { - return l.startDate - } - if l.interval == 0 { - return time.Time{} - } - lastStart := l.startDate.Add(now.Sub(l.startDate).Round(l.interval)) - for lastStart.Before(now) { - lastStart = lastStart.Add(l.interval) - } - return lastStart -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/schedules/multi.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/schedules/multi.go deleted file mode 100644 index e2534de698..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/schedules/multi.go +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package schedules - -import ( - "time" -) - -type multi []Trigger - -// NewMulti returns a trigger that joins multiple triggers. -func NewMulti(t ...Trigger) Trigger { - return multi(t) -} - -func (m multi) Next(now time.Time) time.Time { - var min time.Time - for _, t := range m { - next := t.Next(now) - if min.IsZero() { - min = next - } else if !next.IsZero() && next.Before(min) { - min = next - } - } - return min -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/schedules/once.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/schedules/once.go deleted file mode 100644 index 270792aa18..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/schedules/once.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package schedules - -import ( - "time" - - "go.uber.org/atomic" -) - -type once struct { - v *atomic.Bool -} - -// NewOnce creates a trigger that fires once at a specified time. -// There is a sub second threshold to enable starting once now. -func NewOnce() Trigger { - return once{ - v: atomic.NewBool(false), - } -} - -func (o once) Next(now time.Time) time.Time { - if o.v.CompareAndSwap(false, true) { - return now - } - return time.Time{} -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/schedules/schedule.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/schedules/schedule.go deleted file mode 100644 index cf23956abc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/schedules/schedule.go +++ /dev/null @@ -1,123 +0,0 @@ -package schedules - -import ( - "encoding/json" - "time" - - "github.com/gocql/gocql" - "github.com/pkg/errors" - "go.uber.org/multierr" -) - -// Trigger provides the next activation date. -// Implementations must return the same values for the same now parameter. -// A zero time can be returned to indicate no more executions. -type Trigger interface { - Next(now time.Time) time.Time -} - -// Cron implements a trigger based on cron expression. -// It supports the extended syntax including @monthly, @weekly, @daily, @midnight, @hourly, @every . -type Cron struct { - CronSpecification - inner Trigger -} - -// CronSpecification combines specification for cron together with the start dates -// that defines the moment when the cron is being started. -type CronSpecification struct { - Spec string `json:"spec"` - StartDate time.Time `json:"start_date"` -} - -func NewCron(spec string, startDate time.Time) (Cron, error) { - t, err := NewCronTrigger(spec) - if err != nil { - return Cron{}, err - } - - return Cron{ - CronSpecification: CronSpecification{ - Spec: spec, - StartDate: startDate, - }, - inner: t, - }, nil -} - -func NewCronEvery(d time.Duration, startDate time.Time) Cron { - c, _ := NewCron("@every "+d.String(), startDate) // nolint: errcheck - return c -} - -// MustCron calls NewCron and panics on error. -func MustCron(spec string, startDate time.Time) Cron { - c, err := NewCron(spec, startDate) - if err != nil { - panic(err) - } - return c -} - -// Next implements scheduler.Trigger. -func (c Cron) Next(now time.Time) time.Time { - if c.inner == nil { - return time.Time{} - } - if c.StartDate.After(now) { - return c.inner.Next(c.StartDate) - } - return c.inner.Next(now) -} - -func (c Cron) MarshalText() (text []byte, err error) { - bytes, err := json.Marshal(c.CronSpecification) - if err != nil { - return nil, errors.Wrapf(err, "cannot json marshal {%v}", c.CronSpecification) - } - return bytes, nil -} - -func (c *Cron) UnmarshalText(text []byte) error { - if len(text) == 0 { - return nil - } - - var cronSpec CronSpecification - err := json.Unmarshal(text, &cronSpec) - if err != nil { - // fallback to the < 3.2.6 approach where cron was not coupled with start date - cronSpec = CronSpecification{ - Spec: string(text), - } - } - - if cronSpec.Spec == "" { - return nil - } - v, err2 := NewCron(cronSpec.Spec, cronSpec.StartDate) - if err2 != nil { - return errors.Wrap(multierr.Combine(err, err2), "cron") - } - - *c = v - return nil -} - -func (c Cron) MarshalCQL(info gocql.TypeInfo) ([]byte, error) { - if i := info.Type(); i != gocql.TypeText && i != gocql.TypeVarchar { - return nil, errors.Errorf("invalid gocql type %s expected %s", info.Type(), gocql.TypeText) - } - return c.MarshalText() -} - -func (c *Cron) UnmarshalCQL(info gocql.TypeInfo, data []byte) error { - if i := info.Type(); i != gocql.TypeText && i != gocql.TypeVarchar { - return errors.Errorf("invalid gocql type %s expected %s", info.Type(), gocql.TypeText) - } - return c.UnmarshalText(data) -} - -func (c Cron) IsZero() bool { - return c.inner == nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/sizesuffix/sizesuffix.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/sizesuffix/sizesuffix.go deleted file mode 100644 index 068e566305..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/sizesuffix/sizesuffix.go +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright (C) 2017 ScyllaDB -// -// Copyright Rclone https://github.com/rclone/rclone - -package sizesuffix - -// SizeSuffix is parsed by flag with k/M/G suffixes -import ( - "fmt" - "math" - "sort" - "strconv" - "strings" - - "github.com/pkg/errors" -) - -// SizeSuffix is an int64 with a friendly way of printing setting -type SizeSuffix int64 - -// Common multipliers for SizeSuffix -const ( - Byte SizeSuffix = 1 << (iota * 10) - KibiByte - MebiByte - GibiByte - TebiByte - PebiByte - ExbiByte -) - -// Turn SizeSuffix into a string and a suffix -func (x SizeSuffix) string() (string, string) { - scaled := float64(0) - suffix := "" - switch { - case x < 0: - return "off", "" - case x == 0: - return "0", "B" - case x < 1<<10: - scaled = float64(x) - suffix = "B" - case x < 1<<20: - scaled = float64(x) / (1 << 10) - suffix = "KiB" - case x < 1<<30: - scaled = float64(x) / (1 << 20) - suffix = "MiB" - case x < 1<<40: - scaled = float64(x) / (1 << 30) - suffix = "GiB" - case x < 1<<50: - scaled = float64(x) / (1 << 40) - suffix = "TiB" - default: - scaled = float64(x) / (1 << 50) - suffix = "PiB" - } - if math.Floor(scaled) == scaled { - return fmt.Sprintf("%.0f", scaled), suffix - } - return fmt.Sprintf("%.3f", scaled), suffix -} - -// String turns SizeSuffix into a string -func (x SizeSuffix) String() string { - val, suffix := x.string() - return val + suffix -} - -// Unit turns SizeSuffix into a string with a unit -func (x SizeSuffix) Unit(unit string) string { - val, suffix := x.string() - if val == "off" { - return val - } - return val + " " + suffix + unit -} - -// Set a SizeSuffix -func (x *SizeSuffix) Set(s string) error { - if len(s) == 0 { - return errors.New("empty string") - } - if strings.ToLower(s) == "off" { - *x = -1 - return nil - } - suffix := s[len(s)-1] - suffixLen := 1 - var multiplier float64 - switch suffix { - case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '.': - suffixLen = 0 - multiplier = 1 << 10 - case 'b', 'B': - multiplier = 1 - case 'k', 'K': - multiplier = 1 << 10 - case 'm', 'M': - multiplier = 1 << 20 - case 'g', 'G': - multiplier = 1 << 30 - case 't', 'T': - multiplier = 1 << 40 - case 'p', 'P': - multiplier = 1 << 50 - default: - return errors.Errorf("bad suffix %q", suffix) - } - s = s[:len(s)-suffixLen] - value, err := strconv.ParseFloat(s, 64) - if err != nil { - return err - } - if value < 0 { - return errors.Errorf("size can't be negative %q", s) - } - value *= multiplier - *x = SizeSuffix(value) - return nil -} - -// Type of the value -func (x *SizeSuffix) Type() string { - return "SizeSuffix" -} - -// Scan implements the fmt.Scanner interface -func (x *SizeSuffix) Scan(s fmt.ScanState, ch rune) error { - token, err := s.Token(true, nil) - if err != nil { - return err - } - return x.Set(string(token)) -} - -// SizeSuffixList is a slice SizeSuffix values -type SizeSuffixList []SizeSuffix - -func (l SizeSuffixList) Len() int { return len(l) } -func (l SizeSuffixList) Swap(i, j int) { l[i], l[j] = l[j], l[i] } -func (l SizeSuffixList) Less(i, j int) bool { return l[i] < l[j] } - -// Sort sorts the list -func (l SizeSuffixList) Sort() { - sort.Sort(l) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/slice/contains.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/slice/contains.go deleted file mode 100644 index b93c6c8ce0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/slice/contains.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package slice - -import "fmt" - -// Contains is a general purpose function to check if a slice contains element. -// It has a linear complexity, and does not assume any structure of data. -// Most likely you want to use one of the typed functions `ContainsX` from this -// package instead of this function. -func Contains(n int, match func(i int) bool) bool { - for i := 0; i < n; i++ { - if match(i) { - return true - } - } - return false -} - -// ContainsString returns true iff one of elements of a is s. -func ContainsString(a []string, s string) bool { - return Contains(len(a), func(i int) bool { - return a[i] == s - }) -} - -// Index returns position of e in s or panics if e can't be found in s. -func Index[T comparable](s []T, e T) int { - for i := range s { - if e == s[i] { - return i - } - } - panic(fmt.Sprintf("unknown element: %v in slice: %v", e, s)) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/timeutc/timeutc.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/timeutc/timeutc.go deleted file mode 100644 index 1e25f90dfa..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/timeutc/timeutc.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package timeutc - -import "time" - -// Now returns current time in UTC. -func Now() time.Time { - return time.Now().UTC() -} - -// Parse calls time.Parse and returns value in UTC. -func Parse(layout, value string) (time.Time, error) { - t, err := time.Parse(layout, value) - return t.UTC(), err -} - -// Since returns the time elapsed since t. -func Since(t time.Time) time.Duration { - return Now().Sub(t.UTC()) -} - -// TodayMidnight returns local midnight time in UTC. -func TodayMidnight() time.Time { - t := time.Now().AddDate(0, 0, 1) - return time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 0, time.Local).UTC() // nolint: gosmopolitan -} - -// MustParse call time.Parse and returns value in UTC. -// It panics on time.Parse error. -func MustParse(layout, value string) time.Time { - t, err := Parse(layout, value) - if err != nil { - panic(err) - } - return t -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/timeutc/zoneinfo.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/timeutc/zoneinfo.go deleted file mode 100644 index 8ed107388d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/timeutc/zoneinfo.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (C) 2021 ScyllaDB - -package timeutc - -import ( - "os" - "strings" - "time" -) - -// LocalName is name of the local time zone conforming to the IANA Time Zone database, such as "America/New_York". -// Using time.Local if timezone is read from /etc/localtime its name is overwritten by "Local". -// LocalName provides the name as read from /etc/localtime static link. -var LocalName string - -func init() { - tz := time.Local.String() //nolint: gosmopolitan - if tz == "Local" { - p, err := os.Readlink("/etc/localtime") - if err != nil { - return - } - i := strings.LastIndex(p, "/zoneinfo/") - if i < 0 { - return - } - tz = p[i+len("/zoneinfo/"):] - if _, err := time.LoadLocation(tz); err != nil { - return - } - } - - LocalName = tz -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/uuid/flags.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/uuid/flags.go deleted file mode 100644 index 925367a94b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/uuid/flags.go +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package uuid - -type Value UUID - -func (v *Value) String() string { - if v.Value() == Nil { - return "" - } - return UUID(*v).String() -} - -func (v *Value) Set(s string) error { - return (*UUID)(v).UnmarshalText([]byte(s)) -} - -func (v *Value) Type() string { - return "string" -} - -func (v *Value) Value() UUID { - return UUID(*v) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/uuid/sort.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/uuid/sort.go deleted file mode 100644 index e80e80a1a3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/uuid/sort.go +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package uuid - -import "bytes" - -// Compare returns an integer comparing two UUIDs. -// The result will be 0 if a==b, -1 if a < b, and +1 if a > b. -func Compare(a, b UUID) int { - return bytes.Compare(a.Bytes(), b.Bytes()) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/uuid/uuid.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/uuid/uuid.go deleted file mode 100644 index fad12129c9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/uuid/uuid.go +++ /dev/null @@ -1,160 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package uuid - -import ( - "encoding/binary" - "time" - - "github.com/gocql/gocql" - "github.com/pkg/errors" -) - -// UUID reference: -// https://tools.ietf.org/html/rfc4122 - -// Nil UUID is special form of UUID that is specified to have all 128 bits set -// to zero (see https://tools.ietf.org/html/rfc4122#section-4.1.7). -var Nil UUID - -// UUID is a wrapper for a UUID type. -type UUID struct { - uuid gocql.UUID -} - -// NewRandom returns a random (Version 4) UUID and error if it fails to read -// from it's random source. -func NewRandom() (UUID, error) { - u, err := gocql.RandomUUID() - if err != nil { - return Nil, errors.Wrap(err, "random") - } - return UUID{u}, nil -} - -// MustRandom works like NewRandom but will panic on error. -func MustRandom() UUID { - u, err := gocql.RandomUUID() - if err != nil { - panic(err) - } - return UUID{u} -} - -// NewTime generates a new time based UUID (version 1) using the current -// time as the timestamp. -func NewTime() UUID { - return UUID{gocql.TimeUUID()} -} - -// NewFromTime generates a new time based UUID (version 1) using the provided time. -func NewFromTime(t time.Time) UUID { - return UUID{gocql.UUIDFromTime(t)} -} - -// NewFromUint64 creates a UUID from a uint64 pair. -func NewFromUint64(l, h uint64) UUID { - var b [16]byte - binary.LittleEndian.PutUint64(b[:8], l) - binary.LittleEndian.PutUint64(b[8:], h) - - b[6] &= 0x0F // clear version - b[6] |= 0x40 // set version to 4 (random uuid) - b[8] &= 0x3F // clear variant - b[8] |= 0x80 // set to IETF variant - - return UUID{b} -} - -// Parse creates a new UUID from string. -func Parse(s string) (UUID, error) { - var u UUID - err := u.UnmarshalText([]byte(s)) - return u, err -} - -// MustParse creates a new UUID from string and panics if s is not an UUID. -func MustParse(s string) UUID { - u, err := Parse(s) - if err != nil { - panic(err) - } - return u -} - -// Bytes returns the raw byte slice for this UUID. A UUID is always 128 bits -// (16 bytes) long. -func (u UUID) Bytes() []byte { - b := make([]byte, 16) - copy(b, u.uuid[:]) - return b -} - -// Bytes16 returns the raw byte array for this UUID. -func (u UUID) Bytes16() [16]byte { - return u.uuid -} - -// MarshalCQL implements gocql.Marshaler. -func (u UUID) MarshalCQL(info gocql.TypeInfo) ([]byte, error) { - if u == Nil { - return nil, nil - } - - switch info.Type() { - case gocql.TypeUUID: - return u.uuid[:], nil - case gocql.TypeTimeUUID: - if u.uuid[6]&0x10 != 0x10 { - return nil, errors.New("not a timeuuid") - } - return u.uuid[:], nil - default: - return nil, errors.Errorf("unsupported type %q", info.Type()) - } -} - -// UnmarshalCQL implements gocql.Unmarshaler. -func (u *UUID) UnmarshalCQL(info gocql.TypeInfo, data []byte) error { - if info.Type() != gocql.TypeUUID && info.Type() != gocql.TypeTimeUUID { - return errors.Errorf("unsupported type %q", info.Type()) - } - - if len(data) == 0 { - *u = Nil - return nil - } - - if len(data) != 16 { - return errors.New("UUIDs must be exactly 16 bytes long") - } - - copy(u.uuid[:], data) - return nil -} - -// MarshalJSON implements json.Marshaller. -func (u UUID) MarshalJSON() ([]byte, error) { - return u.uuid.MarshalJSON() -} - -// UnmarshalJSON implements json.Unmarshaler. -func (u *UUID) UnmarshalJSON(data []byte) error { - return u.uuid.UnmarshalJSON(data) -} - -// MarshalText implements text.Marshaller. -func (u UUID) MarshalText() ([]byte, error) { - return u.uuid.MarshalText() -} - -// UnmarshalText implements text.Marshaller. -func (u *UUID) UnmarshalText(text []byte) error { - return u.uuid.UnmarshalText(text) -} - -// String returns the UUID in it's canonical form, a 32 digit hexadecimal -// number in the form of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. -func (u UUID) String() string { - return u.uuid.String() -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/version/version.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/version/version.go deleted file mode 100644 index ba668112c9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/version/version.go +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (C) 2017 ScyllaDB - -package version - -import ( - "fmt" - "regexp" - "strings" - - "github.com/hashicorp/go-version" - "github.com/pkg/errors" -) - -// Short excludes any metadata or pre-release information. For example, -// for a version "1.2.3-20200101.b41b3dbs1b", it will return "1.2.3". -// If provided string isn't version, it will return input string. -func Short(v string) string { - ver, err := version.NewVersion(v) - if err != nil { - return v - } - - parts := make([]string, len(ver.Segments())) - for i, s := range ver.Segments() { - parts[i] = fmt.Sprint(s) - } - - return strings.Join(parts, ".") -} - -const ( - masterMajorVersion = "666" - masterEnterpriseMajorVersion = "9999" - - masterVersionSuffix = ".dev" - masterVersionLongSuffix = ".development" - masterEnterpriseVersionSuffix = ".enterprise_dev" - - masterVersion = masterMajorVersion + masterVersionSuffix - masterLongVersion = masterMajorVersion + masterVersionLongSuffix - masterEnterpriseMasterVersion = masterEnterpriseMajorVersion + masterEnterpriseVersionSuffix -) - -// MasterVersion returns whether provided version string originates from master branch. -func MasterVersion(v string) bool { - v = strings.Split(v, "-")[0] - return v == masterLongVersion || v == masterEnterpriseMasterVersion || v == masterVersion -} - -// TrimMaster returns version string without master branch bloat breaking semantic -// format constraints. -func TrimMaster(v string) string { - if v == "Snapshot" { - return masterMajorVersion - } - - v = strings.Split(v, "-")[0] - v = strings.TrimSuffix(v, masterVersionSuffix) - v = strings.TrimSuffix(v, masterVersionLongSuffix) - v = strings.TrimSuffix(v, masterEnterpriseVersionSuffix) - - return v -} - -var releaseCandidateRe = regexp.MustCompile(`\.rc([0-9]+)`) - -// TransformReleaseCandidate replaces `.rcX` in version string with `~` instead -// of the dot. -func TransformReleaseCandidate(v string) string { - v = releaseCandidateRe.ReplaceAllString(v, `~rc$1`) - - return v -} - -var verRe = regexp.MustCompile(`^[0-9]+\.[0-9]+(\.[0-9]+)?`) - -// CheckConstraint returns whether version fulfills given constraint. -func CheckConstraint(ver, constraint string) (bool, error) { - if verRe.FindString(ver) == "" { - return false, errors.Errorf("Unsupported Scylla version: %s", ver) - } - - // Extract only version number - ver = verRe.FindString(ver) - - v, err := version.NewSemver(ver) - if err != nil { - return false, err - } - - c, err := version.NewConstraint(constraint) - if err != nil { - return false, fmt.Errorf("version constraint syntax error: %w", err) - } - return c.Check(v), nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/workerpool/pool.go b/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/workerpool/pool.go deleted file mode 100644 index 116abb5f74..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/pkg/util/workerpool/pool.go +++ /dev/null @@ -1,173 +0,0 @@ -// Copyright (C) 2023 ScyllaDB - -package workerpool - -import ( - "context" - "sync" -) - -// JobHandler describes handler for tasks of type T which returns results of type R. -type JobHandler[T, R any] interface { - // HandleJob is called when worker receives task from the pool. - HandleJob(ctx context.Context, task T) R - // Done is called when worker exits. - Done(ctx context.Context) -} - -// Pool allows for executing homogeneous JobHandlers with ongoing control over parallelism. -// Use Spawn, Kill and SetSize methods to change the current amount of workers. -// Use Submit to submit new task and Results to wait for the results. -// Pool can be closed with Close or drained with cancelling workers context. -type Pool[W JobHandler[T, R], T, R any] struct { - workerCtx context.Context // nolint: containedctx - spawnWorker func(ctx context.Context, id int) W - - tasks chan T - results chan R - killWorker chan struct{} - size int - totalSize int - wait sync.WaitGroup - closed bool - mu sync.Mutex -} - -// New returns newly created Pool. -// WorkerCtx is passed to ever HandleJob execution and can be cancelled -// to shut down the pool. -// Spawn function is used for creating new JobHandlers with unique ID. -// ChanSize describes the max number of unprocessed tasks and results -// before operations start blocking. -func New[W JobHandler[T, R], T, R any](workerCtx context.Context, spawn func(context.Context, int) W, chanSize int) *Pool[W, T, R] { - return &Pool[W, T, R]{ - workerCtx: workerCtx, - spawnWorker: spawn, - tasks: make(chan T, chanSize), - results: make(chan R, chanSize), - killWorker: make(chan struct{}, chanSize), - size: 0, - totalSize: 0, - wait: sync.WaitGroup{}, - closed: false, - mu: sync.Mutex{}, - } -} - -// Spawn adds a single worker to the pool. -func (p *Pool[_, _, _]) Spawn() { - p.mu.Lock() - defer p.mu.Unlock() - if p.closed { - return - } - p.spawn() -} - -func (p *Pool[_, _, _]) spawn() { - p.wait.Add(1) - p.size++ - p.totalSize++ - id := p.totalSize - w := p.spawnWorker(p.workerCtx, id) - - go func() { - defer func() { - p.wait.Done() - w.Done(p.workerCtx) - }() - - for { - select { - case <-p.killWorker: - return - default: - } - if p.workerCtx.Err() != nil { - return - } - - select { - case <-p.workerCtx.Done(): - return - case <-p.killWorker: - return - case t, ok := <-p.tasks: - if !ok { - return - } - p.results <- w.HandleJob(p.workerCtx, t) - } - } - }() -} - -func (p *Pool[_, _, _]) kill() { - p.killWorker <- struct{}{} - p.size-- -} - -// Kill removes single worker from the pool. -func (p *Pool[_, _, _]) Kill() { - p.mu.Lock() - defer p.mu.Unlock() - if p.closed { - return - } - p.kill() -} - -// SetSize spawns or kills worker to achieve desired pool size. -func (p *Pool[_, _, _]) SetSize(size int) { - p.mu.Lock() - defer p.mu.Unlock() - if p.closed { - return - } - - for p.size > size { - p.kill() - } - for p.size < size { - p.spawn() - } -} - -// Submit queues task to be picked up by a free worker. -// Might block when chanSize is too little. -func (p *Pool[_, T, _]) Submit(task T) { - p.tasks <- task -} - -// Results returns channel that can be used to wait for -// the results of submitted tasks. -func (p *Pool[_, _, R]) Results() chan R { - return p.results -} - -// Size returns the current number of workers. -func (p *Pool[_, _, _]) Size() int { - p.mu.Lock() - defer p.mu.Unlock() - - return p.size -} - -// Close kills all workers and makes submitting new tasks panic. -func (p *Pool[_, _, _]) Close() { - p.mu.Lock() - defer p.mu.Unlock() - - if p.closed { - return - } - close(p.killWorker) - close(p.tasks) - p.size = 0 - p.closed = true -} - -// Wait returns when all workers have exited. -func (p *Pool[_, _, _]) Wait() { - p.wait.Wait() -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/LICENSE b/vendor/github.com/scylladb/scylla-manager/v3/swagger/LICENSE deleted file mode 100644 index 0ad25db4bd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/LICENSE +++ /dev/null @@ -1,661 +0,0 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. - - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. - - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. - - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU Affero General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published - by the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see -. diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/agent_client.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/agent_client.go deleted file mode 100644 index c1fadfbb1e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/agent_client.go +++ /dev/null @@ -1,111 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package client - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/runtime" - httptransport "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations" -) - -// Default agent HTTP client. -var Default = NewHTTPClient(nil) - -const ( - // DefaultHost is the default Host - // found in Meta (info) section of spec file - DefaultHost string = "scylla-manager.magic.host" - // DefaultBasePath is the default BasePath - // found in Meta (info) section of spec file - DefaultBasePath string = "/agent" -) - -// DefaultSchemes are the default schemes found in Meta (info) section of spec file -var DefaultSchemes = []string{"http"} - -// NewHTTPClient creates a new agent HTTP client. -func NewHTTPClient(formats strfmt.Registry) *Agent { - return NewHTTPClientWithConfig(formats, nil) -} - -// NewHTTPClientWithConfig creates a new agent HTTP client, -// using a customizable transport config. -func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Agent { - // ensure nullable parameters have default - if cfg == nil { - cfg = DefaultTransportConfig() - } - - // create transport and client - transport := httptransport.New(cfg.Host, cfg.BasePath, cfg.Schemes) - return New(transport, formats) -} - -// New creates a new agent client -func New(transport runtime.ClientTransport, formats strfmt.Registry) *Agent { - // ensure nullable parameters have default - if formats == nil { - formats = strfmt.Default - } - - cli := new(Agent) - cli.Transport = transport - cli.Operations = operations.New(transport, formats) - return cli -} - -// DefaultTransportConfig creates a TransportConfig with the -// default settings taken from the meta section of the spec file. -func DefaultTransportConfig() *TransportConfig { - return &TransportConfig{ - Host: DefaultHost, - BasePath: DefaultBasePath, - Schemes: DefaultSchemes, - } -} - -// TransportConfig contains the transport related info, -// found in the meta section of the spec file. -type TransportConfig struct { - Host string - BasePath string - Schemes []string -} - -// WithHost overrides the default host, -// provided by the meta section of the spec file. -func (cfg *TransportConfig) WithHost(host string) *TransportConfig { - cfg.Host = host - return cfg -} - -// WithBasePath overrides the default basePath, -// provided by the meta section of the spec file. -func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig { - cfg.BasePath = basePath - return cfg -} - -// WithSchemes overrides the default schemes, -// provided by the meta section of the spec file. -func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig { - cfg.Schemes = schemes - return cfg -} - -// Agent is a client for agent -type Agent struct { - Operations operations.ClientService - - Transport runtime.ClientTransport -} - -// SetTransport changes the transport on the client and all its subresources -func (c *Agent) SetTransport(transport runtime.ClientTransport) { - c.Transport = transport - c.Operations.SetTransport(transport) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_bwlimit_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_bwlimit_parameters.go deleted file mode 100644 index 62ac422409..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_bwlimit_parameters.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NewCoreBwlimitParams creates a new CoreBwlimitParams object -// with the default values initialized. -func NewCoreBwlimitParams() *CoreBwlimitParams { - var () - return &CoreBwlimitParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCoreBwlimitParamsWithTimeout creates a new CoreBwlimitParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCoreBwlimitParamsWithTimeout(timeout time.Duration) *CoreBwlimitParams { - var () - return &CoreBwlimitParams{ - - timeout: timeout, - } -} - -// NewCoreBwlimitParamsWithContext creates a new CoreBwlimitParams object -// with the default values initialized, and the ability to set a context for a request -func NewCoreBwlimitParamsWithContext(ctx context.Context) *CoreBwlimitParams { - var () - return &CoreBwlimitParams{ - - Context: ctx, - } -} - -// NewCoreBwlimitParamsWithHTTPClient creates a new CoreBwlimitParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCoreBwlimitParamsWithHTTPClient(client *http.Client) *CoreBwlimitParams { - var () - return &CoreBwlimitParams{ - HTTPClient: client, - } -} - -/* -CoreBwlimitParams contains all the parameters to send to the API endpoint -for the core bwlimit operation typically these are written to a http.Request -*/ -type CoreBwlimitParams struct { - - /*BandwidthRate - bandwidth rate - - */ - BandwidthRate *models.Bandwidth - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the core bwlimit params -func (o *CoreBwlimitParams) WithTimeout(timeout time.Duration) *CoreBwlimitParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the core bwlimit params -func (o *CoreBwlimitParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the core bwlimit params -func (o *CoreBwlimitParams) WithContext(ctx context.Context) *CoreBwlimitParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the core bwlimit params -func (o *CoreBwlimitParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the core bwlimit params -func (o *CoreBwlimitParams) WithHTTPClient(client *http.Client) *CoreBwlimitParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the core bwlimit params -func (o *CoreBwlimitParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithBandwidthRate adds the bandwidthRate to the core bwlimit params -func (o *CoreBwlimitParams) WithBandwidthRate(bandwidthRate *models.Bandwidth) *CoreBwlimitParams { - o.SetBandwidthRate(bandwidthRate) - return o -} - -// SetBandwidthRate adds the bandwidthRate to the core bwlimit params -func (o *CoreBwlimitParams) SetBandwidthRate(bandwidthRate *models.Bandwidth) { - o.BandwidthRate = bandwidthRate -} - -// WriteToRequest writes these params to a swagger request -func (o *CoreBwlimitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.BandwidthRate != nil { - if err := r.SetBodyParam(o.BandwidthRate); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_bwlimit_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_bwlimit_responses.go deleted file mode 100644 index d2b5c33a64..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_bwlimit_responses.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// CoreBwlimitReader is a Reader for the CoreBwlimit structure. -type CoreBwlimitReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CoreBwlimitReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCoreBwlimitOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCoreBwlimitDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCoreBwlimitOK creates a CoreBwlimitOK with default headers values -func NewCoreBwlimitOK() *CoreBwlimitOK { - return &CoreBwlimitOK{} -} - -/* -CoreBwlimitOK handles this case with default header values. - -bandwidth rate -*/ -type CoreBwlimitOK struct { - Payload *models.Bandwidth - JobID int64 -} - -func (o *CoreBwlimitOK) GetPayload() *models.Bandwidth { - return o.Payload -} - -func (o *CoreBwlimitOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.Bandwidth) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewCoreBwlimitDefault creates a CoreBwlimitDefault with default headers values -func NewCoreBwlimitDefault(code int) *CoreBwlimitDefault { - return &CoreBwlimitDefault{ - _statusCode: code, - } -} - -/* -CoreBwlimitDefault handles this case with default header values. - -Server error -*/ -type CoreBwlimitDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the core bwlimit default response -func (o *CoreBwlimitDefault) Code() int { - return o._statusCode -} - -func (o *CoreBwlimitDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *CoreBwlimitDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *CoreBwlimitDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_stats_delete_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_stats_delete_parameters.go deleted file mode 100644 index e729150475..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_stats_delete_parameters.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NewCoreStatsDeleteParams creates a new CoreStatsDeleteParams object -// with the default values initialized. -func NewCoreStatsDeleteParams() *CoreStatsDeleteParams { - var () - return &CoreStatsDeleteParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCoreStatsDeleteParamsWithTimeout creates a new CoreStatsDeleteParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCoreStatsDeleteParamsWithTimeout(timeout time.Duration) *CoreStatsDeleteParams { - var () - return &CoreStatsDeleteParams{ - - timeout: timeout, - } -} - -// NewCoreStatsDeleteParamsWithContext creates a new CoreStatsDeleteParams object -// with the default values initialized, and the ability to set a context for a request -func NewCoreStatsDeleteParamsWithContext(ctx context.Context) *CoreStatsDeleteParams { - var () - return &CoreStatsDeleteParams{ - - Context: ctx, - } -} - -// NewCoreStatsDeleteParamsWithHTTPClient creates a new CoreStatsDeleteParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCoreStatsDeleteParamsWithHTTPClient(client *http.Client) *CoreStatsDeleteParams { - var () - return &CoreStatsDeleteParams{ - HTTPClient: client, - } -} - -/* -CoreStatsDeleteParams contains all the parameters to send to the API endpoint -for the core stats delete operation typically these are written to a http.Request -*/ -type CoreStatsDeleteParams struct { - - /*StatsParams - Stats parameters - - */ - StatsParams *models.StatsParams - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the core stats delete params -func (o *CoreStatsDeleteParams) WithTimeout(timeout time.Duration) *CoreStatsDeleteParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the core stats delete params -func (o *CoreStatsDeleteParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the core stats delete params -func (o *CoreStatsDeleteParams) WithContext(ctx context.Context) *CoreStatsDeleteParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the core stats delete params -func (o *CoreStatsDeleteParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the core stats delete params -func (o *CoreStatsDeleteParams) WithHTTPClient(client *http.Client) *CoreStatsDeleteParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the core stats delete params -func (o *CoreStatsDeleteParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithStatsParams adds the statsParams to the core stats delete params -func (o *CoreStatsDeleteParams) WithStatsParams(statsParams *models.StatsParams) *CoreStatsDeleteParams { - o.SetStatsParams(statsParams) - return o -} - -// SetStatsParams adds the statsParams to the core stats delete params -func (o *CoreStatsDeleteParams) SetStatsParams(statsParams *models.StatsParams) { - o.StatsParams = statsParams -} - -// WriteToRequest writes these params to a swagger request -func (o *CoreStatsDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.StatsParams != nil { - if err := r.SetBodyParam(o.StatsParams); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_stats_delete_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_stats_delete_responses.go deleted file mode 100644 index ada73d24a0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_stats_delete_responses.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// CoreStatsDeleteReader is a Reader for the CoreStatsDelete structure. -type CoreStatsDeleteReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CoreStatsDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCoreStatsDeleteOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCoreStatsDeleteDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCoreStatsDeleteOK creates a CoreStatsDeleteOK with default headers values -func NewCoreStatsDeleteOK() *CoreStatsDeleteOK { - return &CoreStatsDeleteOK{} -} - -/* -CoreStatsDeleteOK handles this case with default header values. - -Empty object -*/ -type CoreStatsDeleteOK struct { - Payload interface{} - JobID int64 -} - -func (o *CoreStatsDeleteOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CoreStatsDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewCoreStatsDeleteDefault creates a CoreStatsDeleteDefault with default headers values -func NewCoreStatsDeleteDefault(code int) *CoreStatsDeleteDefault { - return &CoreStatsDeleteDefault{ - _statusCode: code, - } -} - -/* -CoreStatsDeleteDefault handles this case with default header values. - -Server error -*/ -type CoreStatsDeleteDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the core stats delete default response -func (o *CoreStatsDeleteDefault) Code() int { - return o._statusCode -} - -func (o *CoreStatsDeleteDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *CoreStatsDeleteDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *CoreStatsDeleteDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_stats_reset_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_stats_reset_parameters.go deleted file mode 100644 index 8a0fcc09eb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_stats_reset_parameters.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NewCoreStatsResetParams creates a new CoreStatsResetParams object -// with the default values initialized. -func NewCoreStatsResetParams() *CoreStatsResetParams { - var () - return &CoreStatsResetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCoreStatsResetParamsWithTimeout creates a new CoreStatsResetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCoreStatsResetParamsWithTimeout(timeout time.Duration) *CoreStatsResetParams { - var () - return &CoreStatsResetParams{ - - timeout: timeout, - } -} - -// NewCoreStatsResetParamsWithContext creates a new CoreStatsResetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCoreStatsResetParamsWithContext(ctx context.Context) *CoreStatsResetParams { - var () - return &CoreStatsResetParams{ - - Context: ctx, - } -} - -// NewCoreStatsResetParamsWithHTTPClient creates a new CoreStatsResetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCoreStatsResetParamsWithHTTPClient(client *http.Client) *CoreStatsResetParams { - var () - return &CoreStatsResetParams{ - HTTPClient: client, - } -} - -/* -CoreStatsResetParams contains all the parameters to send to the API endpoint -for the core stats reset operation typically these are written to a http.Request -*/ -type CoreStatsResetParams struct { - - /*StatsParams - Stats parameters - - */ - StatsParams *models.StatsParams - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the core stats reset params -func (o *CoreStatsResetParams) WithTimeout(timeout time.Duration) *CoreStatsResetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the core stats reset params -func (o *CoreStatsResetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the core stats reset params -func (o *CoreStatsResetParams) WithContext(ctx context.Context) *CoreStatsResetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the core stats reset params -func (o *CoreStatsResetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the core stats reset params -func (o *CoreStatsResetParams) WithHTTPClient(client *http.Client) *CoreStatsResetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the core stats reset params -func (o *CoreStatsResetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithStatsParams adds the statsParams to the core stats reset params -func (o *CoreStatsResetParams) WithStatsParams(statsParams *models.StatsParams) *CoreStatsResetParams { - o.SetStatsParams(statsParams) - return o -} - -// SetStatsParams adds the statsParams to the core stats reset params -func (o *CoreStatsResetParams) SetStatsParams(statsParams *models.StatsParams) { - o.StatsParams = statsParams -} - -// WriteToRequest writes these params to a swagger request -func (o *CoreStatsResetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.StatsParams != nil { - if err := r.SetBodyParam(o.StatsParams); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_stats_reset_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_stats_reset_responses.go deleted file mode 100644 index a954eea654..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_stats_reset_responses.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// CoreStatsResetReader is a Reader for the CoreStatsReset structure. -type CoreStatsResetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CoreStatsResetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCoreStatsResetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCoreStatsResetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCoreStatsResetOK creates a CoreStatsResetOK with default headers values -func NewCoreStatsResetOK() *CoreStatsResetOK { - return &CoreStatsResetOK{} -} - -/* -CoreStatsResetOK handles this case with default header values. - -Empty object -*/ -type CoreStatsResetOK struct { - Payload interface{} - JobID int64 -} - -func (o *CoreStatsResetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CoreStatsResetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewCoreStatsResetDefault creates a CoreStatsResetDefault with default headers values -func NewCoreStatsResetDefault(code int) *CoreStatsResetDefault { - return &CoreStatsResetDefault{ - _statusCode: code, - } -} - -/* -CoreStatsResetDefault handles this case with default header values. - -Server error -*/ -type CoreStatsResetDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the core stats reset default response -func (o *CoreStatsResetDefault) Code() int { - return o._statusCode -} - -func (o *CoreStatsResetDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *CoreStatsResetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *CoreStatsResetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_transfers_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_transfers_parameters.go deleted file mode 100644 index 9f95b7c669..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_transfers_parameters.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NewCoreTransfersParams creates a new CoreTransfersParams object -// with the default values initialized. -func NewCoreTransfersParams() *CoreTransfersParams { - var () - return &CoreTransfersParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCoreTransfersParamsWithTimeout creates a new CoreTransfersParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCoreTransfersParamsWithTimeout(timeout time.Duration) *CoreTransfersParams { - var () - return &CoreTransfersParams{ - - timeout: timeout, - } -} - -// NewCoreTransfersParamsWithContext creates a new CoreTransfersParams object -// with the default values initialized, and the ability to set a context for a request -func NewCoreTransfersParamsWithContext(ctx context.Context) *CoreTransfersParams { - var () - return &CoreTransfersParams{ - - Context: ctx, - } -} - -// NewCoreTransfersParamsWithHTTPClient creates a new CoreTransfersParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCoreTransfersParamsWithHTTPClient(client *http.Client) *CoreTransfersParams { - var () - return &CoreTransfersParams{ - HTTPClient: client, - } -} - -/* -CoreTransfersParams contains all the parameters to send to the API endpoint -for the core transfers operation typically these are written to a http.Request -*/ -type CoreTransfersParams struct { - - /*Transfers - The number of file transfers to run in parallel. Accepts a special value '-1' describing that transfers from rclone config file should be used - - */ - Transfers *models.Transfers - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the core transfers params -func (o *CoreTransfersParams) WithTimeout(timeout time.Duration) *CoreTransfersParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the core transfers params -func (o *CoreTransfersParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the core transfers params -func (o *CoreTransfersParams) WithContext(ctx context.Context) *CoreTransfersParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the core transfers params -func (o *CoreTransfersParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the core transfers params -func (o *CoreTransfersParams) WithHTTPClient(client *http.Client) *CoreTransfersParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the core transfers params -func (o *CoreTransfersParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithTransfers adds the transfers to the core transfers params -func (o *CoreTransfersParams) WithTransfers(transfers *models.Transfers) *CoreTransfersParams { - o.SetTransfers(transfers) - return o -} - -// SetTransfers adds the transfers to the core transfers params -func (o *CoreTransfersParams) SetTransfers(transfers *models.Transfers) { - o.Transfers = transfers -} - -// WriteToRequest writes these params to a swagger request -func (o *CoreTransfersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Transfers != nil { - if err := r.SetBodyParam(o.Transfers); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_transfers_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_transfers_responses.go deleted file mode 100644 index af096646f1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/core_transfers_responses.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// CoreTransfersReader is a Reader for the CoreTransfers structure. -type CoreTransfersReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CoreTransfersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCoreTransfersOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCoreTransfersDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCoreTransfersOK creates a CoreTransfersOK with default headers values -func NewCoreTransfersOK() *CoreTransfersOK { - return &CoreTransfersOK{} -} - -/* -CoreTransfersOK handles this case with default header values. - -transfers -*/ -type CoreTransfersOK struct { - Payload *models.Transfers - JobID int64 -} - -func (o *CoreTransfersOK) GetPayload() *models.Transfers { - return o.Payload -} - -func (o *CoreTransfersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.Transfers) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewCoreTransfersDefault creates a CoreTransfersDefault with default headers values -func NewCoreTransfersDefault(code int) *CoreTransfersDefault { - return &CoreTransfersDefault{ - _statusCode: code, - } -} - -/* -CoreTransfersDefault handles this case with default header values. - -Server error -*/ -type CoreTransfersDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the core transfers default response -func (o *CoreTransfersDefault) Code() int { - return o._statusCode -} - -func (o *CoreTransfersDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *CoreTransfersDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *CoreTransfersDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/free_o_s_memory_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/free_o_s_memory_parameters.go deleted file mode 100644 index 587403775c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/free_o_s_memory_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFreeOSMemoryParams creates a new FreeOSMemoryParams object -// with the default values initialized. -func NewFreeOSMemoryParams() *FreeOSMemoryParams { - - return &FreeOSMemoryParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFreeOSMemoryParamsWithTimeout creates a new FreeOSMemoryParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFreeOSMemoryParamsWithTimeout(timeout time.Duration) *FreeOSMemoryParams { - - return &FreeOSMemoryParams{ - - timeout: timeout, - } -} - -// NewFreeOSMemoryParamsWithContext creates a new FreeOSMemoryParams object -// with the default values initialized, and the ability to set a context for a request -func NewFreeOSMemoryParamsWithContext(ctx context.Context) *FreeOSMemoryParams { - - return &FreeOSMemoryParams{ - - Context: ctx, - } -} - -// NewFreeOSMemoryParamsWithHTTPClient creates a new FreeOSMemoryParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFreeOSMemoryParamsWithHTTPClient(client *http.Client) *FreeOSMemoryParams { - - return &FreeOSMemoryParams{ - HTTPClient: client, - } -} - -/* -FreeOSMemoryParams contains all the parameters to send to the API endpoint -for the free o s memory operation typically these are written to a http.Request -*/ -type FreeOSMemoryParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the free o s memory params -func (o *FreeOSMemoryParams) WithTimeout(timeout time.Duration) *FreeOSMemoryParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the free o s memory params -func (o *FreeOSMemoryParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the free o s memory params -func (o *FreeOSMemoryParams) WithContext(ctx context.Context) *FreeOSMemoryParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the free o s memory params -func (o *FreeOSMemoryParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the free o s memory params -func (o *FreeOSMemoryParams) WithHTTPClient(client *http.Client) *FreeOSMemoryParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the free o s memory params -func (o *FreeOSMemoryParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FreeOSMemoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/free_o_s_memory_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/free_o_s_memory_responses.go deleted file mode 100644 index 51313ddac8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/free_o_s_memory_responses.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// FreeOSMemoryReader is a Reader for the FreeOSMemory structure. -type FreeOSMemoryReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FreeOSMemoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFreeOSMemoryOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFreeOSMemoryDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFreeOSMemoryOK creates a FreeOSMemoryOK with default headers values -func NewFreeOSMemoryOK() *FreeOSMemoryOK { - return &FreeOSMemoryOK{} -} - -/* -FreeOSMemoryOK handles this case with default header values. - -Empty object -*/ -type FreeOSMemoryOK struct { - Payload interface{} - JobID int64 -} - -func (o *FreeOSMemoryOK) GetPayload() interface{} { - return o.Payload -} - -func (o *FreeOSMemoryOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewFreeOSMemoryDefault creates a FreeOSMemoryDefault with default headers values -func NewFreeOSMemoryDefault(code int) *FreeOSMemoryDefault { - return &FreeOSMemoryDefault{ - _statusCode: code, - } -} - -/* -FreeOSMemoryDefault handles this case with default header values. - -Server error -*/ -type FreeOSMemoryDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the free o s memory default response -func (o *FreeOSMemoryDefault) Code() int { - return o._statusCode -} - -func (o *FreeOSMemoryDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *FreeOSMemoryDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *FreeOSMemoryDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/get_cpu_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/get_cpu_parameters.go deleted file mode 100644 index 1e48d3ae8c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/get_cpu_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetCPUParams creates a new GetCPUParams object -// with the default values initialized. -func NewGetCPUParams() *GetCPUParams { - - return &GetCPUParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetCPUParamsWithTimeout creates a new GetCPUParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetCPUParamsWithTimeout(timeout time.Duration) *GetCPUParams { - - return &GetCPUParams{ - - timeout: timeout, - } -} - -// NewGetCPUParamsWithContext creates a new GetCPUParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetCPUParamsWithContext(ctx context.Context) *GetCPUParams { - - return &GetCPUParams{ - - Context: ctx, - } -} - -// NewGetCPUParamsWithHTTPClient creates a new GetCPUParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetCPUParamsWithHTTPClient(client *http.Client) *GetCPUParams { - - return &GetCPUParams{ - HTTPClient: client, - } -} - -/* -GetCPUParams contains all the parameters to send to the API endpoint -for the get Cpu operation typically these are written to a http.Request -*/ -type GetCPUParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get Cpu params -func (o *GetCPUParams) WithTimeout(timeout time.Duration) *GetCPUParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get Cpu params -func (o *GetCPUParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get Cpu params -func (o *GetCPUParams) WithContext(ctx context.Context) *GetCPUParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get Cpu params -func (o *GetCPUParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get Cpu params -func (o *GetCPUParams) WithHTTPClient(client *http.Client) *GetCPUParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get Cpu params -func (o *GetCPUParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *GetCPUParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/get_cpu_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/get_cpu_responses.go deleted file mode 100644 index aba30ba14b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/get_cpu_responses.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// GetCPUReader is a Reader for the GetCPU structure. -type GetCPUReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetCPUReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetCPUOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetCPUDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetCPUOK creates a GetCPUOK with default headers values -func NewGetCPUOK() *GetCPUOK { - return &GetCPUOK{} -} - -/* -GetCPUOK handles this case with default header values. - -CPUs to which agent is pinned -*/ -type GetCPUOK struct { - Payload *models.Cpus - JobID int64 -} - -func (o *GetCPUOK) GetPayload() *models.Cpus { - return o.Payload -} - -func (o *GetCPUOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.Cpus) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewGetCPUDefault creates a GetCPUDefault with default headers values -func NewGetCPUDefault(code int) *GetCPUDefault { - return &GetCPUDefault{ - _statusCode: code, - } -} - -/* -GetCPUDefault handles this case with default header values. - -Server error -*/ -type GetCPUDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the get Cpu default response -func (o *GetCPUDefault) Code() int { - return o._statusCode -} - -func (o *GetCPUDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetCPUDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *GetCPUDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/job_info_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/job_info_parameters.go deleted file mode 100644 index 294e47e8ee..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/job_info_parameters.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NewJobInfoParams creates a new JobInfoParams object -// with the default values initialized. -func NewJobInfoParams() *JobInfoParams { - var () - return &JobInfoParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewJobInfoParamsWithTimeout creates a new JobInfoParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewJobInfoParamsWithTimeout(timeout time.Duration) *JobInfoParams { - var () - return &JobInfoParams{ - - timeout: timeout, - } -} - -// NewJobInfoParamsWithContext creates a new JobInfoParams object -// with the default values initialized, and the ability to set a context for a request -func NewJobInfoParamsWithContext(ctx context.Context) *JobInfoParams { - var () - return &JobInfoParams{ - - Context: ctx, - } -} - -// NewJobInfoParamsWithHTTPClient creates a new JobInfoParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewJobInfoParamsWithHTTPClient(client *http.Client) *JobInfoParams { - var () - return &JobInfoParams{ - HTTPClient: client, - } -} - -/* -JobInfoParams contains all the parameters to send to the API endpoint -for the job info operation typically these are written to a http.Request -*/ -type JobInfoParams struct { - - /*Jobinfo - Job info params with id and long polling - - */ - Jobinfo *models.JobInfoParams - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the job info params -func (o *JobInfoParams) WithTimeout(timeout time.Duration) *JobInfoParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the job info params -func (o *JobInfoParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the job info params -func (o *JobInfoParams) WithContext(ctx context.Context) *JobInfoParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the job info params -func (o *JobInfoParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the job info params -func (o *JobInfoParams) WithHTTPClient(client *http.Client) *JobInfoParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the job info params -func (o *JobInfoParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithJobinfo adds the jobinfo to the job info params -func (o *JobInfoParams) WithJobinfo(jobinfo *models.JobInfoParams) *JobInfoParams { - o.SetJobinfo(jobinfo) - return o -} - -// SetJobinfo adds the jobinfo to the job info params -func (o *JobInfoParams) SetJobinfo(jobinfo *models.JobInfoParams) { - o.Jobinfo = jobinfo -} - -// WriteToRequest writes these params to a swagger request -func (o *JobInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Jobinfo != nil { - if err := r.SetBodyParam(o.Jobinfo); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/job_info_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/job_info_responses.go deleted file mode 100644 index 06df084dc8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/job_info_responses.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// JobInfoReader is a Reader for the JobInfo structure. -type JobInfoReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *JobInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewJobInfoOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewJobInfoDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewJobInfoOK creates a JobInfoOK with default headers values -func NewJobInfoOK() *JobInfoOK { - return &JobInfoOK{} -} - -/* -JobInfoOK handles this case with default header values. - -Aggregated info about job transfers -*/ -type JobInfoOK struct { - Payload *models.JobInfo - JobID int64 -} - -func (o *JobInfoOK) GetPayload() *models.JobInfo { - return o.Payload -} - -func (o *JobInfoOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.JobInfo) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewJobInfoDefault creates a JobInfoDefault with default headers values -func NewJobInfoDefault(code int) *JobInfoDefault { - return &JobInfoDefault{ - _statusCode: code, - } -} - -/* -JobInfoDefault handles this case with default header values. - -Server error -*/ -type JobInfoDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the job info default response -func (o *JobInfoDefault) Code() int { - return o._statusCode -} - -func (o *JobInfoDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *JobInfoDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *JobInfoDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/job_progress_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/job_progress_parameters.go deleted file mode 100644 index e50bcfe381..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/job_progress_parameters.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NewJobProgressParams creates a new JobProgressParams object -// with the default values initialized. -func NewJobProgressParams() *JobProgressParams { - var () - return &JobProgressParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewJobProgressParamsWithTimeout creates a new JobProgressParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewJobProgressParamsWithTimeout(timeout time.Duration) *JobProgressParams { - var () - return &JobProgressParams{ - - timeout: timeout, - } -} - -// NewJobProgressParamsWithContext creates a new JobProgressParams object -// with the default values initialized, and the ability to set a context for a request -func NewJobProgressParamsWithContext(ctx context.Context) *JobProgressParams { - var () - return &JobProgressParams{ - - Context: ctx, - } -} - -// NewJobProgressParamsWithHTTPClient creates a new JobProgressParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewJobProgressParamsWithHTTPClient(client *http.Client) *JobProgressParams { - var () - return &JobProgressParams{ - HTTPClient: client, - } -} - -/* -JobProgressParams contains all the parameters to send to the API endpoint -for the job progress operation typically these are written to a http.Request -*/ -type JobProgressParams struct { - - /*Jobinfo - Job info params with id and long polling - - */ - Jobinfo *models.JobInfoParams - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the job progress params -func (o *JobProgressParams) WithTimeout(timeout time.Duration) *JobProgressParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the job progress params -func (o *JobProgressParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the job progress params -func (o *JobProgressParams) WithContext(ctx context.Context) *JobProgressParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the job progress params -func (o *JobProgressParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the job progress params -func (o *JobProgressParams) WithHTTPClient(client *http.Client) *JobProgressParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the job progress params -func (o *JobProgressParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithJobinfo adds the jobinfo to the job progress params -func (o *JobProgressParams) WithJobinfo(jobinfo *models.JobInfoParams) *JobProgressParams { - o.SetJobinfo(jobinfo) - return o -} - -// SetJobinfo adds the jobinfo to the job progress params -func (o *JobProgressParams) SetJobinfo(jobinfo *models.JobInfoParams) { - o.Jobinfo = jobinfo -} - -// WriteToRequest writes these params to a swagger request -func (o *JobProgressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Jobinfo != nil { - if err := r.SetBodyParam(o.Jobinfo); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/job_progress_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/job_progress_responses.go deleted file mode 100644 index a3f2ee6c6c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/job_progress_responses.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// JobProgressReader is a Reader for the JobProgress structure. -type JobProgressReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *JobProgressReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewJobProgressOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewJobProgressDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewJobProgressOK creates a JobProgressOK with default headers values -func NewJobProgressOK() *JobProgressOK { - return &JobProgressOK{} -} - -/* -JobProgressOK handles this case with default header values. - -Aggregated info about job transfers -*/ -type JobProgressOK struct { - Payload *models.JobProgress - JobID int64 -} - -func (o *JobProgressOK) GetPayload() *models.JobProgress { - return o.Payload -} - -func (o *JobProgressOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.JobProgress) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewJobProgressDefault creates a JobProgressDefault with default headers values -func NewJobProgressDefault(code int) *JobProgressDefault { - return &JobProgressDefault{ - _statusCode: code, - } -} - -/* -JobProgressDefault handles this case with default header values. - -Server error -*/ -type JobProgressDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the job progress default response -func (o *JobProgressDefault) Code() int { - return o._statusCode -} - -func (o *JobProgressDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *JobProgressDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *JobProgressDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/job_stop_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/job_stop_parameters.go deleted file mode 100644 index ade24bf1c2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/job_stop_parameters.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NewJobStopParams creates a new JobStopParams object -// with the default values initialized. -func NewJobStopParams() *JobStopParams { - var () - return &JobStopParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewJobStopParamsWithTimeout creates a new JobStopParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewJobStopParamsWithTimeout(timeout time.Duration) *JobStopParams { - var () - return &JobStopParams{ - - timeout: timeout, - } -} - -// NewJobStopParamsWithContext creates a new JobStopParams object -// with the default values initialized, and the ability to set a context for a request -func NewJobStopParamsWithContext(ctx context.Context) *JobStopParams { - var () - return &JobStopParams{ - - Context: ctx, - } -} - -// NewJobStopParamsWithHTTPClient creates a new JobStopParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewJobStopParamsWithHTTPClient(client *http.Client) *JobStopParams { - var () - return &JobStopParams{ - HTTPClient: client, - } -} - -/* -JobStopParams contains all the parameters to send to the API endpoint -for the job stop operation typically these are written to a http.Request -*/ -type JobStopParams struct { - - /*Jobid - jobid - - */ - Jobid *models.Jobid - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the job stop params -func (o *JobStopParams) WithTimeout(timeout time.Duration) *JobStopParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the job stop params -func (o *JobStopParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the job stop params -func (o *JobStopParams) WithContext(ctx context.Context) *JobStopParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the job stop params -func (o *JobStopParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the job stop params -func (o *JobStopParams) WithHTTPClient(client *http.Client) *JobStopParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the job stop params -func (o *JobStopParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithJobid adds the jobid to the job stop params -func (o *JobStopParams) WithJobid(jobid *models.Jobid) *JobStopParams { - o.SetJobid(jobid) - return o -} - -// SetJobid adds the jobid to the job stop params -func (o *JobStopParams) SetJobid(jobid *models.Jobid) { - o.Jobid = jobid -} - -// WriteToRequest writes these params to a swagger request -func (o *JobStopParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Jobid != nil { - if err := r.SetBodyParam(o.Jobid); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/job_stop_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/job_stop_responses.go deleted file mode 100644 index 7dd272a47f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/job_stop_responses.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// JobStopReader is a Reader for the JobStop structure. -type JobStopReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *JobStopReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewJobStopOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewJobStopDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewJobStopOK creates a JobStopOK with default headers values -func NewJobStopOK() *JobStopOK { - return &JobStopOK{} -} - -/* -JobStopOK handles this case with default header values. - -Empty object -*/ -type JobStopOK struct { - Payload interface{} - JobID int64 -} - -func (o *JobStopOK) GetPayload() interface{} { - return o.Payload -} - -func (o *JobStopOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewJobStopDefault creates a JobStopDefault with default headers values -func NewJobStopDefault(code int) *JobStopDefault { - return &JobStopDefault{ - _statusCode: code, - } -} - -/* -JobStopDefault handles this case with default header values. - -Server error -*/ -type JobStopDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the job stop default response -func (o *JobStopDefault) Code() int { - return o._statusCode -} - -func (o *JobStopDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *JobStopDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *JobStopDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/metadata_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/metadata_parameters.go deleted file mode 100644 index aede911a53..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/metadata_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewMetadataParams creates a new MetadataParams object -// with the default values initialized. -func NewMetadataParams() *MetadataParams { - - return &MetadataParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewMetadataParamsWithTimeout creates a new MetadataParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewMetadataParamsWithTimeout(timeout time.Duration) *MetadataParams { - - return &MetadataParams{ - - timeout: timeout, - } -} - -// NewMetadataParamsWithContext creates a new MetadataParams object -// with the default values initialized, and the ability to set a context for a request -func NewMetadataParamsWithContext(ctx context.Context) *MetadataParams { - - return &MetadataParams{ - - Context: ctx, - } -} - -// NewMetadataParamsWithHTTPClient creates a new MetadataParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewMetadataParamsWithHTTPClient(client *http.Client) *MetadataParams { - - return &MetadataParams{ - HTTPClient: client, - } -} - -/* -MetadataParams contains all the parameters to send to the API endpoint -for the metadata operation typically these are written to a http.Request -*/ -type MetadataParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the metadata params -func (o *MetadataParams) WithTimeout(timeout time.Duration) *MetadataParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the metadata params -func (o *MetadataParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the metadata params -func (o *MetadataParams) WithContext(ctx context.Context) *MetadataParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the metadata params -func (o *MetadataParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the metadata params -func (o *MetadataParams) WithHTTPClient(client *http.Client) *MetadataParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the metadata params -func (o *MetadataParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *MetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/metadata_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/metadata_responses.go deleted file mode 100644 index 31089cc9e9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/metadata_responses.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// MetadataReader is a Reader for the Metadata structure. -type MetadataReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *MetadataReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewMetadataOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewMetadataDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewMetadataOK creates a MetadataOK with default headers values -func NewMetadataOK() *MetadataOK { - return &MetadataOK{} -} - -/* -MetadataOK handles this case with default header values. - -Instance metadata -*/ -type MetadataOK struct { - Payload *models.InstanceMetadata - JobID int64 -} - -func (o *MetadataOK) GetPayload() *models.InstanceMetadata { - return o.Payload -} - -func (o *MetadataOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.InstanceMetadata) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewMetadataDefault creates a MetadataDefault with default headers values -func NewMetadataDefault(code int) *MetadataDefault { - return &MetadataDefault{ - _statusCode: code, - } -} - -/* -MetadataDefault handles this case with default header values. - -Server error -*/ -type MetadataDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the metadata default response -func (o *MetadataDefault) Code() int { - return o._statusCode -} - -func (o *MetadataDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *MetadataDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *MetadataDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/node_info_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/node_info_parameters.go deleted file mode 100644 index 22b2ccb83c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/node_info_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewNodeInfoParams creates a new NodeInfoParams object -// with the default values initialized. -func NewNodeInfoParams() *NodeInfoParams { - - return &NodeInfoParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewNodeInfoParamsWithTimeout creates a new NodeInfoParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewNodeInfoParamsWithTimeout(timeout time.Duration) *NodeInfoParams { - - return &NodeInfoParams{ - - timeout: timeout, - } -} - -// NewNodeInfoParamsWithContext creates a new NodeInfoParams object -// with the default values initialized, and the ability to set a context for a request -func NewNodeInfoParamsWithContext(ctx context.Context) *NodeInfoParams { - - return &NodeInfoParams{ - - Context: ctx, - } -} - -// NewNodeInfoParamsWithHTTPClient creates a new NodeInfoParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewNodeInfoParamsWithHTTPClient(client *http.Client) *NodeInfoParams { - - return &NodeInfoParams{ - HTTPClient: client, - } -} - -/* -NodeInfoParams contains all the parameters to send to the API endpoint -for the node info operation typically these are written to a http.Request -*/ -type NodeInfoParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the node info params -func (o *NodeInfoParams) WithTimeout(timeout time.Duration) *NodeInfoParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the node info params -func (o *NodeInfoParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the node info params -func (o *NodeInfoParams) WithContext(ctx context.Context) *NodeInfoParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the node info params -func (o *NodeInfoParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the node info params -func (o *NodeInfoParams) WithHTTPClient(client *http.Client) *NodeInfoParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the node info params -func (o *NodeInfoParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *NodeInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/node_info_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/node_info_responses.go deleted file mode 100644 index 48671cc35f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/node_info_responses.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NodeInfoReader is a Reader for the NodeInfo structure. -type NodeInfoReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *NodeInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewNodeInfoOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewNodeInfoDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewNodeInfoOK creates a NodeInfoOK with default headers values -func NewNodeInfoOK() *NodeInfoOK { - return &NodeInfoOK{} -} - -/* -NodeInfoOK handles this case with default header values. - -node information -*/ -type NodeInfoOK struct { - Payload *models.NodeInfo - JobID int64 -} - -func (o *NodeInfoOK) GetPayload() *models.NodeInfo { - return o.Payload -} - -func (o *NodeInfoOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.NodeInfo) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewNodeInfoDefault creates a NodeInfoDefault with default headers values -func NewNodeInfoDefault(code int) *NodeInfoDefault { - return &NodeInfoDefault{ - _statusCode: code, - } -} - -/* -NodeInfoDefault handles this case with default header values. - -Server error -*/ -type NodeInfoDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the node info default response -func (o *NodeInfoDefault) Code() int { - return o._statusCode -} - -func (o *NodeInfoDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *NodeInfoDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *NodeInfoDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_about_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_about_parameters.go deleted file mode 100644 index 4b2d93957f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_about_parameters.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NewOperationsAboutParams creates a new OperationsAboutParams object -// with the default values initialized. -func NewOperationsAboutParams() *OperationsAboutParams { - var () - return &OperationsAboutParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewOperationsAboutParamsWithTimeout creates a new OperationsAboutParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewOperationsAboutParamsWithTimeout(timeout time.Duration) *OperationsAboutParams { - var () - return &OperationsAboutParams{ - - timeout: timeout, - } -} - -// NewOperationsAboutParamsWithContext creates a new OperationsAboutParams object -// with the default values initialized, and the ability to set a context for a request -func NewOperationsAboutParamsWithContext(ctx context.Context) *OperationsAboutParams { - var () - return &OperationsAboutParams{ - - Context: ctx, - } -} - -// NewOperationsAboutParamsWithHTTPClient creates a new OperationsAboutParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewOperationsAboutParamsWithHTTPClient(client *http.Client) *OperationsAboutParams { - var () - return &OperationsAboutParams{ - HTTPClient: client, - } -} - -/* -OperationsAboutParams contains all the parameters to send to the API endpoint -for the operations about operation typically these are written to a http.Request -*/ -type OperationsAboutParams struct { - - /*RemotePath - Remote path - - */ - RemotePath *models.RemotePath - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the operations about params -func (o *OperationsAboutParams) WithTimeout(timeout time.Duration) *OperationsAboutParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the operations about params -func (o *OperationsAboutParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the operations about params -func (o *OperationsAboutParams) WithContext(ctx context.Context) *OperationsAboutParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the operations about params -func (o *OperationsAboutParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the operations about params -func (o *OperationsAboutParams) WithHTTPClient(client *http.Client) *OperationsAboutParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the operations about params -func (o *OperationsAboutParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithRemotePath adds the remotePath to the operations about params -func (o *OperationsAboutParams) WithRemotePath(remotePath *models.RemotePath) *OperationsAboutParams { - o.SetRemotePath(remotePath) - return o -} - -// SetRemotePath adds the remotePath to the operations about params -func (o *OperationsAboutParams) SetRemotePath(remotePath *models.RemotePath) { - o.RemotePath = remotePath -} - -// WriteToRequest writes these params to a swagger request -func (o *OperationsAboutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.RemotePath != nil { - if err := r.SetBodyParam(o.RemotePath); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_about_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_about_responses.go deleted file mode 100644 index b9a4573292..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_about_responses.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// OperationsAboutReader is a Reader for the OperationsAbout structure. -type OperationsAboutReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *OperationsAboutReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewOperationsAboutOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewOperationsAboutDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewOperationsAboutOK creates a OperationsAboutOK with default headers values -func NewOperationsAboutOK() *OperationsAboutOK { - return &OperationsAboutOK{} -} - -/* -OperationsAboutOK handles this case with default header values. - -File system details -*/ -type OperationsAboutOK struct { - Payload *models.FileSystemDetails - JobID int64 -} - -func (o *OperationsAboutOK) GetPayload() *models.FileSystemDetails { - return o.Payload -} - -func (o *OperationsAboutOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.FileSystemDetails) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewOperationsAboutDefault creates a OperationsAboutDefault with default headers values -func NewOperationsAboutDefault(code int) *OperationsAboutDefault { - return &OperationsAboutDefault{ - _statusCode: code, - } -} - -/* -OperationsAboutDefault handles this case with default header values. - -Server error -*/ -type OperationsAboutDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the operations about default response -func (o *OperationsAboutDefault) Code() int { - return o._statusCode -} - -func (o *OperationsAboutDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *OperationsAboutDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *OperationsAboutDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_check_permissions_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_check_permissions_parameters.go deleted file mode 100644 index ca746a0270..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_check_permissions_parameters.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NewOperationsCheckPermissionsParams creates a new OperationsCheckPermissionsParams object -// with the default values initialized. -func NewOperationsCheckPermissionsParams() *OperationsCheckPermissionsParams { - var () - return &OperationsCheckPermissionsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewOperationsCheckPermissionsParamsWithTimeout creates a new OperationsCheckPermissionsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewOperationsCheckPermissionsParamsWithTimeout(timeout time.Duration) *OperationsCheckPermissionsParams { - var () - return &OperationsCheckPermissionsParams{ - - timeout: timeout, - } -} - -// NewOperationsCheckPermissionsParamsWithContext creates a new OperationsCheckPermissionsParams object -// with the default values initialized, and the ability to set a context for a request -func NewOperationsCheckPermissionsParamsWithContext(ctx context.Context) *OperationsCheckPermissionsParams { - var () - return &OperationsCheckPermissionsParams{ - - Context: ctx, - } -} - -// NewOperationsCheckPermissionsParamsWithHTTPClient creates a new OperationsCheckPermissionsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewOperationsCheckPermissionsParamsWithHTTPClient(client *http.Client) *OperationsCheckPermissionsParams { - var () - return &OperationsCheckPermissionsParams{ - HTTPClient: client, - } -} - -/* -OperationsCheckPermissionsParams contains all the parameters to send to the API endpoint -for the operations check permissions operation typically these are written to a http.Request -*/ -type OperationsCheckPermissionsParams struct { - - /*RemotePath - Remote path - - */ - RemotePath *models.RemotePath - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the operations check permissions params -func (o *OperationsCheckPermissionsParams) WithTimeout(timeout time.Duration) *OperationsCheckPermissionsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the operations check permissions params -func (o *OperationsCheckPermissionsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the operations check permissions params -func (o *OperationsCheckPermissionsParams) WithContext(ctx context.Context) *OperationsCheckPermissionsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the operations check permissions params -func (o *OperationsCheckPermissionsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the operations check permissions params -func (o *OperationsCheckPermissionsParams) WithHTTPClient(client *http.Client) *OperationsCheckPermissionsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the operations check permissions params -func (o *OperationsCheckPermissionsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithRemotePath adds the remotePath to the operations check permissions params -func (o *OperationsCheckPermissionsParams) WithRemotePath(remotePath *models.RemotePath) *OperationsCheckPermissionsParams { - o.SetRemotePath(remotePath) - return o -} - -// SetRemotePath adds the remotePath to the operations check permissions params -func (o *OperationsCheckPermissionsParams) SetRemotePath(remotePath *models.RemotePath) { - o.RemotePath = remotePath -} - -// WriteToRequest writes these params to a swagger request -func (o *OperationsCheckPermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.RemotePath != nil { - if err := r.SetBodyParam(o.RemotePath); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_check_permissions_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_check_permissions_responses.go deleted file mode 100644 index abaf73fb8a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_check_permissions_responses.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// OperationsCheckPermissionsReader is a Reader for the OperationsCheckPermissions structure. -type OperationsCheckPermissionsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *OperationsCheckPermissionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewOperationsCheckPermissionsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewOperationsCheckPermissionsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewOperationsCheckPermissionsOK creates a OperationsCheckPermissionsOK with default headers values -func NewOperationsCheckPermissionsOK() *OperationsCheckPermissionsOK { - return &OperationsCheckPermissionsOK{} -} - -/* -OperationsCheckPermissionsOK handles this case with default header values. - -Empty object -*/ -type OperationsCheckPermissionsOK struct { - Payload interface{} - JobID int64 -} - -func (o *OperationsCheckPermissionsOK) GetPayload() interface{} { - return o.Payload -} - -func (o *OperationsCheckPermissionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewOperationsCheckPermissionsDefault creates a OperationsCheckPermissionsDefault with default headers values -func NewOperationsCheckPermissionsDefault(code int) *OperationsCheckPermissionsDefault { - return &OperationsCheckPermissionsDefault{ - _statusCode: code, - } -} - -/* -OperationsCheckPermissionsDefault handles this case with default header values. - -Server error -*/ -type OperationsCheckPermissionsDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the operations check permissions default response -func (o *OperationsCheckPermissionsDefault) Code() int { - return o._statusCode -} - -func (o *OperationsCheckPermissionsDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *OperationsCheckPermissionsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *OperationsCheckPermissionsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_client.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_client.go deleted file mode 100644 index 82b0987511..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_client.go +++ /dev/null @@ -1,996 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// New creates a new operations API client. -func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { - return &Client{transport: transport, formats: formats} -} - -/* -Client for operations API -*/ -type Client struct { - transport runtime.ClientTransport - formats strfmt.Registry -} - -// ClientService is the interface for Client methods -type ClientService interface { - CoreBwlimit(params *CoreBwlimitParams) (*CoreBwlimitOK, error) - - CoreStatsDelete(params *CoreStatsDeleteParams) (*CoreStatsDeleteOK, error) - - CoreStatsReset(params *CoreStatsResetParams) (*CoreStatsResetOK, error) - - CoreTransfers(params *CoreTransfersParams) (*CoreTransfersOK, error) - - FreeOSMemory(params *FreeOSMemoryParams) (*FreeOSMemoryOK, error) - - GetCPU(params *GetCPUParams) (*GetCPUOK, error) - - JobInfo(params *JobInfoParams) (*JobInfoOK, error) - - JobProgress(params *JobProgressParams) (*JobProgressOK, error) - - JobStop(params *JobStopParams) (*JobStopOK, error) - - Metadata(params *MetadataParams) (*MetadataOK, error) - - NodeInfo(params *NodeInfoParams) (*NodeInfoOK, error) - - OperationsAbout(params *OperationsAboutParams) (*OperationsAboutOK, error) - - OperationsCheckPermissions(params *OperationsCheckPermissionsParams) (*OperationsCheckPermissionsOK, error) - - OperationsCopyfile(params *OperationsCopyfileParams) (*OperationsCopyfileOK, error) - - OperationsDeletefile(params *OperationsDeletefileParams) (*OperationsDeletefileOK, error) - - OperationsDeletepaths(params *OperationsDeletepathsParams) (*OperationsDeletepathsOK, error) - - OperationsFileInfo(params *OperationsFileInfoParams) (*OperationsFileInfoOK, error) - - OperationsList(params *OperationsListParams) (*OperationsListOK, error) - - OperationsMovefile(params *OperationsMovefileParams) (*OperationsMovefileOK, error) - - OperationsPurge(params *OperationsPurgeParams) (*OperationsPurgeOK, error) - - PinCPU(params *PinCPUParams) (*PinCPUOK, error) - - Reload(params *ReloadParams) (*ReloadOK, error) - - SyncCopyDir(params *SyncCopyDirParams) (*SyncCopyDirOK, error) - - SyncCopyPaths(params *SyncCopyPathsParams) (*SyncCopyPathsOK, error) - - SyncMoveDir(params *SyncMoveDirParams) (*SyncMoveDirOK, error) - - UnpinCPU(params *UnpinCPUParams) (*UnpinCPUOK, error) - - SetTransport(transport runtime.ClientTransport) -} - -/* -CoreBwlimit sets the bandwidth limit - -This sets the bandwidth limit to that passed in. If the rate parameter is not supplied then the bandwidth is queried -*/ -func (a *Client) CoreBwlimit(params *CoreBwlimitParams) (*CoreBwlimitOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCoreBwlimitParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CoreBwlimit", - Method: "POST", - PathPattern: "/rclone/core/bwlimit", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CoreBwlimitReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CoreBwlimitOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CoreBwlimitDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CoreStatsDelete deletes specific stats group - -Delete stats -*/ -func (a *Client) CoreStatsDelete(params *CoreStatsDeleteParams) (*CoreStatsDeleteOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCoreStatsDeleteParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CoreStatsDelete", - Method: "POST", - PathPattern: "/rclone/core/stats-delete", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CoreStatsDeleteReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CoreStatsDeleteOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CoreStatsDeleteDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CoreStatsReset resets all or specific stats group - -Resets stats -*/ -func (a *Client) CoreStatsReset(params *CoreStatsResetParams) (*CoreStatsResetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCoreStatsResetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CoreStatsReset", - Method: "POST", - PathPattern: "/rclone/core/stats-reset", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CoreStatsResetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CoreStatsResetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CoreStatsResetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CoreTransfers sets transfers - -This sets the default amount of transfers to that passed in. If the transfers parameter is not supplied then the transfers are queried -*/ -func (a *Client) CoreTransfers(params *CoreTransfersParams) (*CoreTransfersOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCoreTransfersParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CoreTransfers", - Method: "POST", - PathPattern: "/rclone/core/transfers", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CoreTransfersReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CoreTransfersOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CoreTransfersDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FreeOSMemory returns memory to o s - -Run debug.FreeOSMemory on the agent -*/ -func (a *Client) FreeOSMemory(params *FreeOSMemoryParams) (*FreeOSMemoryOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFreeOSMemoryParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "FreeOSMemory", - Method: "POST", - PathPattern: "/free_os_memory", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FreeOSMemoryReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FreeOSMemoryOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FreeOSMemoryDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetCPU gets c p us to which agent is pinned - -Get CPUs to which agent is pinned -*/ -func (a *Client) GetCPU(params *GetCPUParams) (*GetCPUOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetCPUParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetCpu", - Method: "GET", - PathPattern: "/pin_cpu", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetCPUReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetCPUOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetCPUDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -JobInfo transfers stats about the job - -Returns current, completed transfers and job stats -*/ -func (a *Client) JobInfo(params *JobInfoParams) (*JobInfoOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewJobInfoParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "JobInfo", - Method: "POST", - PathPattern: "/rclone/job/info", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &JobInfoReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*JobInfoOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*JobInfoDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -JobProgress returns aggregated job stats - -Returns aggregated job stats -*/ -func (a *Client) JobProgress(params *JobProgressParams) (*JobProgressOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewJobProgressParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "JobProgress", - Method: "POST", - PathPattern: "/rclone/job/progress", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &JobProgressReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*JobProgressOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*JobProgressDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -JobStop stops async job - -Stops job with provided ID -*/ -func (a *Client) JobStop(params *JobStopParams) (*JobStopOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewJobStopParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "JobStop", - Method: "POST", - PathPattern: "/rclone/job/stop", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &JobStopReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*JobStopOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*JobStopDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -Metadata returns instance metadata - -Collect instance metadata on a node -*/ -func (a *Client) Metadata(params *MetadataParams) (*MetadataOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewMetadataParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "Metadata", - Method: "GET", - PathPattern: "/cloud/metadata", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &MetadataReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*MetadataOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*MetadataDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -NodeInfo gets information about scylla node - -Get information about Scylla node -*/ -func (a *Client) NodeInfo(params *NodeInfoParams) (*NodeInfoOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewNodeInfoParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "NodeInfo", - Method: "GET", - PathPattern: "/node_info", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &NodeInfoReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*NodeInfoOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*NodeInfoDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -OperationsAbout abouts remote - -Get usage information from the remote -*/ -func (a *Client) OperationsAbout(params *OperationsAboutParams) (*OperationsAboutOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewOperationsAboutParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "OperationsAbout", - Method: "POST", - PathPattern: "/rclone/operations/about", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &OperationsAboutReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*OperationsAboutOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*OperationsAboutDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -OperationsCheckPermissions checks fs - -Check if the fs is fully accessible -*/ -func (a *Client) OperationsCheckPermissions(params *OperationsCheckPermissionsParams) (*OperationsCheckPermissionsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewOperationsCheckPermissionsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "OperationsCheckPermissions", - Method: "POST", - PathPattern: "/rclone/operations/check-permissions", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &OperationsCheckPermissionsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*OperationsCheckPermissionsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*OperationsCheckPermissionsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -OperationsCopyfile copies a file - -Copy a file from source remote to destination remote -*/ -func (a *Client) OperationsCopyfile(params *OperationsCopyfileParams) (*OperationsCopyfileOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewOperationsCopyfileParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "OperationsCopyfile", - Method: "POST", - PathPattern: "/rclone/operations/copyfile", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &OperationsCopyfileReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*OperationsCopyfileOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*OperationsCopyfileDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -OperationsDeletefile deletes file - -Remove the single file pointed to -*/ -func (a *Client) OperationsDeletefile(params *OperationsDeletefileParams) (*OperationsDeletefileOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewOperationsDeletefileParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "OperationsDeletefile", - Method: "POST", - PathPattern: "/rclone/operations/deletefile", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &OperationsDeletefileReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*OperationsDeletefileOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*OperationsDeletefileDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -OperationsDeletepaths deletes paths - -Delete provided list of paths -*/ -func (a *Client) OperationsDeletepaths(params *OperationsDeletepathsParams) (*OperationsDeletepathsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewOperationsDeletepathsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "OperationsDeletepaths", - Method: "POST", - PathPattern: "/rclone/operations/deletepaths", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &OperationsDeletepathsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*OperationsDeletepathsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*OperationsDeletepathsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -OperationsFileInfo objects info - -Get basic file information -*/ -func (a *Client) OperationsFileInfo(params *OperationsFileInfoParams) (*OperationsFileInfoOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewOperationsFileInfoParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "OperationsFileInfo", - Method: "POST", - PathPattern: "/rclone/operations/fileinfo", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &OperationsFileInfoReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*OperationsFileInfoOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*OperationsFileInfoDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -OperationsList lists remote - -List the given remote and path -*/ -func (a *Client) OperationsList(params *OperationsListParams) (*OperationsListOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewOperationsListParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "OperationsList", - Method: "POST", - PathPattern: "/rclone/operations/list", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &OperationsListReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*OperationsListOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*OperationsListDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -OperationsMovefile moves a file - -Move a file from source remote to destination remote -*/ -func (a *Client) OperationsMovefile(params *OperationsMovefileParams) (*OperationsMovefileOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewOperationsMovefileParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "OperationsMovefile", - Method: "POST", - PathPattern: "/rclone/operations/movefile", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &OperationsMovefileReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*OperationsMovefileOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*OperationsMovefileDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -OperationsPurge purges container - -Remove a directory or container and all of its contents -*/ -func (a *Client) OperationsPurge(params *OperationsPurgeParams) (*OperationsPurgeOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewOperationsPurgeParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "OperationsPurge", - Method: "POST", - PathPattern: "/rclone/operations/purge", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &OperationsPurgeReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*OperationsPurgeOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*OperationsPurgeDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -PinCPU pins agent to c p us according to start up logic - -Pin agent to CPUs according to start-up logic -*/ -func (a *Client) PinCPU(params *PinCPUParams) (*PinCPUOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewPinCPUParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "PinCpu", - Method: "POST", - PathPattern: "/pin_cpu", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &PinCPUReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*PinCPUOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*PinCPUDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -Reload reloads agent config - -Reload agent config -*/ -func (a *Client) Reload(params *ReloadParams) (*ReloadOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewReloadParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "Reload", - Method: "POST", - PathPattern: "/terminate", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ReloadReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ReloadOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ReloadDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -SyncCopyDir copies dir contents to directory - -Copy contents from path on source fs to path on destination fs -*/ -func (a *Client) SyncCopyDir(params *SyncCopyDirParams) (*SyncCopyDirOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewSyncCopyDirParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "SyncCopyDir", - Method: "POST", - PathPattern: "/rclone/sync/copydir", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &SyncCopyDirReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*SyncCopyDirOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*SyncCopyDirDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -SyncCopyPaths copies paths from fsrc remote src paths to fdst remote dst paths - -Copy provided list of paths from directory on source fs to directory on destination fs -*/ -func (a *Client) SyncCopyPaths(params *SyncCopyPathsParams) (*SyncCopyPathsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewSyncCopyPathsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "SyncCopyPaths", - Method: "POST", - PathPattern: "/rclone/sync/copypaths", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &SyncCopyPathsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*SyncCopyPathsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*SyncCopyPathsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -SyncMoveDir moves dir contents to directory - -Move contents from path on source fs to path on destination fs -*/ -func (a *Client) SyncMoveDir(params *SyncMoveDirParams) (*SyncMoveDirOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewSyncMoveDirParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "SyncMoveDir", - Method: "POST", - PathPattern: "/rclone/sync/movedir", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &SyncMoveDirReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*SyncMoveDirOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*SyncMoveDirDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -UnpinCPU unpins agent from c p us - -Unpin agent from CPUs -*/ -func (a *Client) UnpinCPU(params *UnpinCPUParams) (*UnpinCPUOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewUnpinCPUParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "UnpinCpu", - Method: "DELETE", - PathPattern: "/pin_cpu", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &UnpinCPUReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*UnpinCPUOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*UnpinCPUDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -// SetTransport changes the transport on the client -func (a *Client) SetTransport(transport runtime.ClientTransport) { - a.transport = transport -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_copyfile_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_copyfile_parameters.go deleted file mode 100644 index 0f931785d9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_copyfile_parameters.go +++ /dev/null @@ -1,164 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NewOperationsCopyfileParams creates a new OperationsCopyfileParams object -// with the default values initialized. -func NewOperationsCopyfileParams() *OperationsCopyfileParams { - var () - return &OperationsCopyfileParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewOperationsCopyfileParamsWithTimeout creates a new OperationsCopyfileParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewOperationsCopyfileParamsWithTimeout(timeout time.Duration) *OperationsCopyfileParams { - var () - return &OperationsCopyfileParams{ - - timeout: timeout, - } -} - -// NewOperationsCopyfileParamsWithContext creates a new OperationsCopyfileParams object -// with the default values initialized, and the ability to set a context for a request -func NewOperationsCopyfileParamsWithContext(ctx context.Context) *OperationsCopyfileParams { - var () - return &OperationsCopyfileParams{ - - Context: ctx, - } -} - -// NewOperationsCopyfileParamsWithHTTPClient creates a new OperationsCopyfileParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewOperationsCopyfileParamsWithHTTPClient(client *http.Client) *OperationsCopyfileParams { - var () - return &OperationsCopyfileParams{ - HTTPClient: client, - } -} - -/* -OperationsCopyfileParams contains all the parameters to send to the API endpoint -for the operations copyfile operation typically these are written to a http.Request -*/ -type OperationsCopyfileParams struct { - - /*Options - Options - - */ - Options *models.MoveOrCopyFileOptions - /*Group - Place this operation under this stat group - - */ - Group string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the operations copyfile params -func (o *OperationsCopyfileParams) WithTimeout(timeout time.Duration) *OperationsCopyfileParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the operations copyfile params -func (o *OperationsCopyfileParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the operations copyfile params -func (o *OperationsCopyfileParams) WithContext(ctx context.Context) *OperationsCopyfileParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the operations copyfile params -func (o *OperationsCopyfileParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the operations copyfile params -func (o *OperationsCopyfileParams) WithHTTPClient(client *http.Client) *OperationsCopyfileParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the operations copyfile params -func (o *OperationsCopyfileParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithOptions adds the options to the operations copyfile params -func (o *OperationsCopyfileParams) WithOptions(options *models.MoveOrCopyFileOptions) *OperationsCopyfileParams { - o.SetOptions(options) - return o -} - -// SetOptions adds the options to the operations copyfile params -func (o *OperationsCopyfileParams) SetOptions(options *models.MoveOrCopyFileOptions) { - o.Options = options -} - -// WithGroup adds the group to the operations copyfile params -func (o *OperationsCopyfileParams) WithGroup(group string) *OperationsCopyfileParams { - o.SetGroup(group) - return o -} - -// SetGroup adds the group to the operations copyfile params -func (o *OperationsCopyfileParams) SetGroup(group string) { - o.Group = group -} - -// WriteToRequest writes these params to a swagger request -func (o *OperationsCopyfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Options != nil { - if err := r.SetBodyParam(o.Options); err != nil { - return err - } - } - - // query param _group - qrGroup := o.Group - qGroup := qrGroup - if qGroup != "" { - if err := r.SetQueryParam("_group", qGroup); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_copyfile_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_copyfile_responses.go deleted file mode 100644 index 188278a84d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_copyfile_responses.go +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// OperationsCopyfileReader is a Reader for the OperationsCopyfile structure. -type OperationsCopyfileReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *OperationsCopyfileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewOperationsCopyfileOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewOperationsCopyfileDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewOperationsCopyfileOK creates a OperationsCopyfileOK with default headers values -func NewOperationsCopyfileOK() *OperationsCopyfileOK { - return &OperationsCopyfileOK{} -} - -/* -OperationsCopyfileOK handles this case with default header values. - -Empty object -*/ -type OperationsCopyfileOK struct { - JobID int64 -} - -func (o *OperationsCopyfileOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewOperationsCopyfileDefault creates a OperationsCopyfileDefault with default headers values -func NewOperationsCopyfileDefault(code int) *OperationsCopyfileDefault { - return &OperationsCopyfileDefault{ - _statusCode: code, - } -} - -/* -OperationsCopyfileDefault handles this case with default header values. - -Server error -*/ -type OperationsCopyfileDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the operations copyfile default response -func (o *OperationsCopyfileDefault) Code() int { - return o._statusCode -} - -func (o *OperationsCopyfileDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *OperationsCopyfileDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *OperationsCopyfileDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_deletefile_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_deletefile_parameters.go deleted file mode 100644 index 587e30092d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_deletefile_parameters.go +++ /dev/null @@ -1,202 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NewOperationsDeletefileParams creates a new OperationsDeletefileParams object -// with the default values initialized. -func NewOperationsDeletefileParams() *OperationsDeletefileParams { - var ( - asyncDefault = bool(true) - ) - return &OperationsDeletefileParams{ - Async: asyncDefault, - - timeout: cr.DefaultTimeout, - } -} - -// NewOperationsDeletefileParamsWithTimeout creates a new OperationsDeletefileParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewOperationsDeletefileParamsWithTimeout(timeout time.Duration) *OperationsDeletefileParams { - var ( - asyncDefault = bool(true) - ) - return &OperationsDeletefileParams{ - Async: asyncDefault, - - timeout: timeout, - } -} - -// NewOperationsDeletefileParamsWithContext creates a new OperationsDeletefileParams object -// with the default values initialized, and the ability to set a context for a request -func NewOperationsDeletefileParamsWithContext(ctx context.Context) *OperationsDeletefileParams { - var ( - asyncDefault = bool(true) - ) - return &OperationsDeletefileParams{ - Async: asyncDefault, - - Context: ctx, - } -} - -// NewOperationsDeletefileParamsWithHTTPClient creates a new OperationsDeletefileParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewOperationsDeletefileParamsWithHTTPClient(client *http.Client) *OperationsDeletefileParams { - var ( - asyncDefault = bool(true) - ) - return &OperationsDeletefileParams{ - Async: asyncDefault, - HTTPClient: client, - } -} - -/* -OperationsDeletefileParams contains all the parameters to send to the API endpoint -for the operations deletefile operation typically these are written to a http.Request -*/ -type OperationsDeletefileParams struct { - - /*RemotePath - Remote path - - */ - RemotePath *models.RemotePath - /*Async - Async request - - */ - Async bool - /*Group - Place this operation under this stat group - - */ - Group string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the operations deletefile params -func (o *OperationsDeletefileParams) WithTimeout(timeout time.Duration) *OperationsDeletefileParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the operations deletefile params -func (o *OperationsDeletefileParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the operations deletefile params -func (o *OperationsDeletefileParams) WithContext(ctx context.Context) *OperationsDeletefileParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the operations deletefile params -func (o *OperationsDeletefileParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the operations deletefile params -func (o *OperationsDeletefileParams) WithHTTPClient(client *http.Client) *OperationsDeletefileParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the operations deletefile params -func (o *OperationsDeletefileParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithRemotePath adds the remotePath to the operations deletefile params -func (o *OperationsDeletefileParams) WithRemotePath(remotePath *models.RemotePath) *OperationsDeletefileParams { - o.SetRemotePath(remotePath) - return o -} - -// SetRemotePath adds the remotePath to the operations deletefile params -func (o *OperationsDeletefileParams) SetRemotePath(remotePath *models.RemotePath) { - o.RemotePath = remotePath -} - -// WithAsync adds the async to the operations deletefile params -func (o *OperationsDeletefileParams) WithAsync(async bool) *OperationsDeletefileParams { - o.SetAsync(async) - return o -} - -// SetAsync adds the async to the operations deletefile params -func (o *OperationsDeletefileParams) SetAsync(async bool) { - o.Async = async -} - -// WithGroup adds the group to the operations deletefile params -func (o *OperationsDeletefileParams) WithGroup(group string) *OperationsDeletefileParams { - o.SetGroup(group) - return o -} - -// SetGroup adds the group to the operations deletefile params -func (o *OperationsDeletefileParams) SetGroup(group string) { - o.Group = group -} - -// WriteToRequest writes these params to a swagger request -func (o *OperationsDeletefileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.RemotePath != nil { - if err := r.SetBodyParam(o.RemotePath); err != nil { - return err - } - } - - // query param _async - qrAsync := o.Async - qAsync := swag.FormatBool(qrAsync) - if qAsync != "" { - if err := r.SetQueryParam("_async", qAsync); err != nil { - return err - } - } - - // query param _group - qrGroup := o.Group - qGroup := qrGroup - if qGroup != "" { - if err := r.SetQueryParam("_group", qGroup); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_deletefile_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_deletefile_responses.go deleted file mode 100644 index 707fd78c65..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_deletefile_responses.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// OperationsDeletefileReader is a Reader for the OperationsDeletefile structure. -type OperationsDeletefileReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *OperationsDeletefileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewOperationsDeletefileOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewOperationsDeletefileDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewOperationsDeletefileOK creates a OperationsDeletefileOK with default headers values -func NewOperationsDeletefileOK() *OperationsDeletefileOK { - return &OperationsDeletefileOK{} -} - -/* -OperationsDeletefileOK handles this case with default header values. - -Job ID -*/ -type OperationsDeletefileOK struct { - Payload *models.Jobid - JobID int64 -} - -func (o *OperationsDeletefileOK) GetPayload() *models.Jobid { - return o.Payload -} - -func (o *OperationsDeletefileOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.Jobid) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewOperationsDeletefileDefault creates a OperationsDeletefileDefault with default headers values -func NewOperationsDeletefileDefault(code int) *OperationsDeletefileDefault { - return &OperationsDeletefileDefault{ - _statusCode: code, - } -} - -/* -OperationsDeletefileDefault handles this case with default header values. - -Server error -*/ -type OperationsDeletefileDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the operations deletefile default response -func (o *OperationsDeletefileDefault) Code() int { - return o._statusCode -} - -func (o *OperationsDeletefileDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *OperationsDeletefileDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *OperationsDeletefileDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_deletepaths_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_deletepaths_parameters.go deleted file mode 100644 index df4589fc8a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_deletepaths_parameters.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NewOperationsDeletepathsParams creates a new OperationsDeletepathsParams object -// with the default values initialized. -func NewOperationsDeletepathsParams() *OperationsDeletepathsParams { - var () - return &OperationsDeletepathsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewOperationsDeletepathsParamsWithTimeout creates a new OperationsDeletepathsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewOperationsDeletepathsParamsWithTimeout(timeout time.Duration) *OperationsDeletepathsParams { - var () - return &OperationsDeletepathsParams{ - - timeout: timeout, - } -} - -// NewOperationsDeletepathsParamsWithContext creates a new OperationsDeletepathsParams object -// with the default values initialized, and the ability to set a context for a request -func NewOperationsDeletepathsParamsWithContext(ctx context.Context) *OperationsDeletepathsParams { - var () - return &OperationsDeletepathsParams{ - - Context: ctx, - } -} - -// NewOperationsDeletepathsParamsWithHTTPClient creates a new OperationsDeletepathsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewOperationsDeletepathsParamsWithHTTPClient(client *http.Client) *OperationsDeletepathsParams { - var () - return &OperationsDeletepathsParams{ - HTTPClient: client, - } -} - -/* -OperationsDeletepathsParams contains all the parameters to send to the API endpoint -for the operations deletepaths operation typically these are written to a http.Request -*/ -type OperationsDeletepathsParams struct { - - /*Options - Options - - */ - Options *models.DeletePathsOptions - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the operations deletepaths params -func (o *OperationsDeletepathsParams) WithTimeout(timeout time.Duration) *OperationsDeletepathsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the operations deletepaths params -func (o *OperationsDeletepathsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the operations deletepaths params -func (o *OperationsDeletepathsParams) WithContext(ctx context.Context) *OperationsDeletepathsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the operations deletepaths params -func (o *OperationsDeletepathsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the operations deletepaths params -func (o *OperationsDeletepathsParams) WithHTTPClient(client *http.Client) *OperationsDeletepathsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the operations deletepaths params -func (o *OperationsDeletepathsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithOptions adds the options to the operations deletepaths params -func (o *OperationsDeletepathsParams) WithOptions(options *models.DeletePathsOptions) *OperationsDeletepathsParams { - o.SetOptions(options) - return o -} - -// SetOptions adds the options to the operations deletepaths params -func (o *OperationsDeletepathsParams) SetOptions(options *models.DeletePathsOptions) { - o.Options = options -} - -// WriteToRequest writes these params to a swagger request -func (o *OperationsDeletepathsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Options != nil { - if err := r.SetBodyParam(o.Options); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_deletepaths_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_deletepaths_responses.go deleted file mode 100644 index 4838cf8cb6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_deletepaths_responses.go +++ /dev/null @@ -1,169 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// OperationsDeletepathsReader is a Reader for the OperationsDeletepaths structure. -type OperationsDeletepathsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *OperationsDeletepathsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewOperationsDeletepathsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewOperationsDeletepathsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewOperationsDeletepathsOK creates a OperationsDeletepathsOK with default headers values -func NewOperationsDeletepathsOK() *OperationsDeletepathsOK { - return &OperationsDeletepathsOK{} -} - -/* -OperationsDeletepathsOK handles this case with default header values. - -Deleted files count -*/ -type OperationsDeletepathsOK struct { - Payload *OperationsDeletepathsOKBody - JobID int64 -} - -func (o *OperationsDeletepathsOK) GetPayload() *OperationsDeletepathsOKBody { - return o.Payload -} - -func (o *OperationsDeletepathsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(OperationsDeletepathsOKBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewOperationsDeletepathsDefault creates a OperationsDeletepathsDefault with default headers values -func NewOperationsDeletepathsDefault(code int) *OperationsDeletepathsDefault { - return &OperationsDeletepathsDefault{ - _statusCode: code, - } -} - -/* -OperationsDeletepathsDefault handles this case with default header values. - -Server error -*/ -type OperationsDeletepathsDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the operations deletepaths default response -func (o *OperationsDeletepathsDefault) Code() int { - return o._statusCode -} - -func (o *OperationsDeletepathsDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *OperationsDeletepathsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *OperationsDeletepathsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} - -/* -OperationsDeletepathsOKBody operations deletepaths o k body -swagger:model OperationsDeletepathsOKBody -*/ -type OperationsDeletepathsOKBody struct { - - // deletes - Deletes int64 `json:"deletes,omitempty"` -} - -// Validate validates this operations deletepaths o k body -func (o *OperationsDeletepathsOKBody) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *OperationsDeletepathsOKBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *OperationsDeletepathsOKBody) UnmarshalBinary(b []byte) error { - var res OperationsDeletepathsOKBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_file_info_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_file_info_parameters.go deleted file mode 100644 index d77627e800..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_file_info_parameters.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NewOperationsFileInfoParams creates a new OperationsFileInfoParams object -// with the default values initialized. -func NewOperationsFileInfoParams() *OperationsFileInfoParams { - var () - return &OperationsFileInfoParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewOperationsFileInfoParamsWithTimeout creates a new OperationsFileInfoParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewOperationsFileInfoParamsWithTimeout(timeout time.Duration) *OperationsFileInfoParams { - var () - return &OperationsFileInfoParams{ - - timeout: timeout, - } -} - -// NewOperationsFileInfoParamsWithContext creates a new OperationsFileInfoParams object -// with the default values initialized, and the ability to set a context for a request -func NewOperationsFileInfoParamsWithContext(ctx context.Context) *OperationsFileInfoParams { - var () - return &OperationsFileInfoParams{ - - Context: ctx, - } -} - -// NewOperationsFileInfoParamsWithHTTPClient creates a new OperationsFileInfoParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewOperationsFileInfoParamsWithHTTPClient(client *http.Client) *OperationsFileInfoParams { - var () - return &OperationsFileInfoParams{ - HTTPClient: client, - } -} - -/* -OperationsFileInfoParams contains all the parameters to send to the API endpoint -for the operations file info operation typically these are written to a http.Request -*/ -type OperationsFileInfoParams struct { - - /*RemotePath - Remote path - - */ - RemotePath *models.RemotePath - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the operations file info params -func (o *OperationsFileInfoParams) WithTimeout(timeout time.Duration) *OperationsFileInfoParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the operations file info params -func (o *OperationsFileInfoParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the operations file info params -func (o *OperationsFileInfoParams) WithContext(ctx context.Context) *OperationsFileInfoParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the operations file info params -func (o *OperationsFileInfoParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the operations file info params -func (o *OperationsFileInfoParams) WithHTTPClient(client *http.Client) *OperationsFileInfoParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the operations file info params -func (o *OperationsFileInfoParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithRemotePath adds the remotePath to the operations file info params -func (o *OperationsFileInfoParams) WithRemotePath(remotePath *models.RemotePath) *OperationsFileInfoParams { - o.SetRemotePath(remotePath) - return o -} - -// SetRemotePath adds the remotePath to the operations file info params -func (o *OperationsFileInfoParams) SetRemotePath(remotePath *models.RemotePath) { - o.RemotePath = remotePath -} - -// WriteToRequest writes these params to a swagger request -func (o *OperationsFileInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.RemotePath != nil { - if err := r.SetBodyParam(o.RemotePath); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_file_info_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_file_info_responses.go deleted file mode 100644 index ae52cf8a70..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_file_info_responses.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// OperationsFileInfoReader is a Reader for the OperationsFileInfo structure. -type OperationsFileInfoReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *OperationsFileInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewOperationsFileInfoOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewOperationsFileInfoDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewOperationsFileInfoOK creates a OperationsFileInfoOK with default headers values -func NewOperationsFileInfoOK() *OperationsFileInfoOK { - return &OperationsFileInfoOK{} -} - -/* -OperationsFileInfoOK handles this case with default header values. - -File information -*/ -type OperationsFileInfoOK struct { - Payload *models.FileInfo - JobID int64 -} - -func (o *OperationsFileInfoOK) GetPayload() *models.FileInfo { - return o.Payload -} - -func (o *OperationsFileInfoOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.FileInfo) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewOperationsFileInfoDefault creates a OperationsFileInfoDefault with default headers values -func NewOperationsFileInfoDefault(code int) *OperationsFileInfoDefault { - return &OperationsFileInfoDefault{ - _statusCode: code, - } -} - -/* -OperationsFileInfoDefault handles this case with default header values. - -Server error -*/ -type OperationsFileInfoDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the operations file info default response -func (o *OperationsFileInfoDefault) Code() int { - return o._statusCode -} - -func (o *OperationsFileInfoDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *OperationsFileInfoDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *OperationsFileInfoDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_list_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_list_parameters.go deleted file mode 100644 index cd77d39377..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_list_parameters.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NewOperationsListParams creates a new OperationsListParams object -// with the default values initialized. -func NewOperationsListParams() *OperationsListParams { - var () - return &OperationsListParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewOperationsListParamsWithTimeout creates a new OperationsListParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewOperationsListParamsWithTimeout(timeout time.Duration) *OperationsListParams { - var () - return &OperationsListParams{ - - timeout: timeout, - } -} - -// NewOperationsListParamsWithContext creates a new OperationsListParams object -// with the default values initialized, and the ability to set a context for a request -func NewOperationsListParamsWithContext(ctx context.Context) *OperationsListParams { - var () - return &OperationsListParams{ - - Context: ctx, - } -} - -// NewOperationsListParamsWithHTTPClient creates a new OperationsListParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewOperationsListParamsWithHTTPClient(client *http.Client) *OperationsListParams { - var () - return &OperationsListParams{ - HTTPClient: client, - } -} - -/* -OperationsListParams contains all the parameters to send to the API endpoint -for the operations list operation typically these are written to a http.Request -*/ -type OperationsListParams struct { - - /*ListOpts - listOpts - - */ - ListOpts *models.ListOptions - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the operations list params -func (o *OperationsListParams) WithTimeout(timeout time.Duration) *OperationsListParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the operations list params -func (o *OperationsListParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the operations list params -func (o *OperationsListParams) WithContext(ctx context.Context) *OperationsListParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the operations list params -func (o *OperationsListParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the operations list params -func (o *OperationsListParams) WithHTTPClient(client *http.Client) *OperationsListParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the operations list params -func (o *OperationsListParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithListOpts adds the listOpts to the operations list params -func (o *OperationsListParams) WithListOpts(listOpts *models.ListOptions) *OperationsListParams { - o.SetListOpts(listOpts) - return o -} - -// SetListOpts adds the listOpts to the operations list params -func (o *OperationsListParams) SetListOpts(listOpts *models.ListOptions) { - o.ListOpts = listOpts -} - -// WriteToRequest writes these params to a swagger request -func (o *OperationsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.ListOpts != nil { - if err := r.SetBodyParam(o.ListOpts); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_list_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_list_responses.go deleted file mode 100644 index 5ed3ca3a55..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_list_responses.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// OperationsListReader is a Reader for the OperationsList structure. -type OperationsListReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *OperationsListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewOperationsListOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewOperationsListDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewOperationsListOK creates a OperationsListOK with default headers values -func NewOperationsListOK() *OperationsListOK { - return &OperationsListOK{} -} - -/* -OperationsListOK handles this case with default header values. - -List of items -*/ -type OperationsListOK struct { - Payload *OperationsListOKBody - JobID int64 -} - -func (o *OperationsListOK) GetPayload() *OperationsListOKBody { - return o.Payload -} - -func (o *OperationsListOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(OperationsListOKBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewOperationsListDefault creates a OperationsListDefault with default headers values -func NewOperationsListDefault(code int) *OperationsListDefault { - return &OperationsListDefault{ - _statusCode: code, - } -} - -/* -OperationsListDefault handles this case with default header values. - -Server error -*/ -type OperationsListDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the operations list default response -func (o *OperationsListDefault) Code() int { - return o._statusCode -} - -func (o *OperationsListDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *OperationsListDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *OperationsListDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} - -/* -OperationsListOKBody operations list o k body -swagger:model OperationsListOKBody -*/ -type OperationsListOKBody struct { - - // list - List []*models.ListItem `json:"list"` -} - -// Validate validates this operations list o k body -func (o *OperationsListOKBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateList(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *OperationsListOKBody) validateList(formats strfmt.Registry) error { - - if swag.IsZero(o.List) { // not required - return nil - } - - for i := 0; i < len(o.List); i++ { - if swag.IsZero(o.List[i]) { // not required - continue - } - - if o.List[i] != nil { - if err := o.List[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("operationsListOK" + "." + "list" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (o *OperationsListOKBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *OperationsListOKBody) UnmarshalBinary(b []byte) error { - var res OperationsListOKBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_movefile_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_movefile_parameters.go deleted file mode 100644 index 8c412feb28..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_movefile_parameters.go +++ /dev/null @@ -1,164 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NewOperationsMovefileParams creates a new OperationsMovefileParams object -// with the default values initialized. -func NewOperationsMovefileParams() *OperationsMovefileParams { - var () - return &OperationsMovefileParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewOperationsMovefileParamsWithTimeout creates a new OperationsMovefileParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewOperationsMovefileParamsWithTimeout(timeout time.Duration) *OperationsMovefileParams { - var () - return &OperationsMovefileParams{ - - timeout: timeout, - } -} - -// NewOperationsMovefileParamsWithContext creates a new OperationsMovefileParams object -// with the default values initialized, and the ability to set a context for a request -func NewOperationsMovefileParamsWithContext(ctx context.Context) *OperationsMovefileParams { - var () - return &OperationsMovefileParams{ - - Context: ctx, - } -} - -// NewOperationsMovefileParamsWithHTTPClient creates a new OperationsMovefileParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewOperationsMovefileParamsWithHTTPClient(client *http.Client) *OperationsMovefileParams { - var () - return &OperationsMovefileParams{ - HTTPClient: client, - } -} - -/* -OperationsMovefileParams contains all the parameters to send to the API endpoint -for the operations movefile operation typically these are written to a http.Request -*/ -type OperationsMovefileParams struct { - - /*Options - Options - - */ - Options *models.MoveOrCopyFileOptions - /*Group - Place this operation under this stat group - - */ - Group string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the operations movefile params -func (o *OperationsMovefileParams) WithTimeout(timeout time.Duration) *OperationsMovefileParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the operations movefile params -func (o *OperationsMovefileParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the operations movefile params -func (o *OperationsMovefileParams) WithContext(ctx context.Context) *OperationsMovefileParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the operations movefile params -func (o *OperationsMovefileParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the operations movefile params -func (o *OperationsMovefileParams) WithHTTPClient(client *http.Client) *OperationsMovefileParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the operations movefile params -func (o *OperationsMovefileParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithOptions adds the options to the operations movefile params -func (o *OperationsMovefileParams) WithOptions(options *models.MoveOrCopyFileOptions) *OperationsMovefileParams { - o.SetOptions(options) - return o -} - -// SetOptions adds the options to the operations movefile params -func (o *OperationsMovefileParams) SetOptions(options *models.MoveOrCopyFileOptions) { - o.Options = options -} - -// WithGroup adds the group to the operations movefile params -func (o *OperationsMovefileParams) WithGroup(group string) *OperationsMovefileParams { - o.SetGroup(group) - return o -} - -// SetGroup adds the group to the operations movefile params -func (o *OperationsMovefileParams) SetGroup(group string) { - o.Group = group -} - -// WriteToRequest writes these params to a swagger request -func (o *OperationsMovefileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Options != nil { - if err := r.SetBodyParam(o.Options); err != nil { - return err - } - } - - // query param _group - qrGroup := o.Group - qGroup := qrGroup - if qGroup != "" { - if err := r.SetQueryParam("_group", qGroup); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_movefile_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_movefile_responses.go deleted file mode 100644 index 1ad635d7d3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_movefile_responses.go +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// OperationsMovefileReader is a Reader for the OperationsMovefile structure. -type OperationsMovefileReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *OperationsMovefileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewOperationsMovefileOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewOperationsMovefileDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewOperationsMovefileOK creates a OperationsMovefileOK with default headers values -func NewOperationsMovefileOK() *OperationsMovefileOK { - return &OperationsMovefileOK{} -} - -/* -OperationsMovefileOK handles this case with default header values. - -Empty object -*/ -type OperationsMovefileOK struct { - JobID int64 -} - -func (o *OperationsMovefileOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewOperationsMovefileDefault creates a OperationsMovefileDefault with default headers values -func NewOperationsMovefileDefault(code int) *OperationsMovefileDefault { - return &OperationsMovefileDefault{ - _statusCode: code, - } -} - -/* -OperationsMovefileDefault handles this case with default header values. - -Server error -*/ -type OperationsMovefileDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the operations movefile default response -func (o *OperationsMovefileDefault) Code() int { - return o._statusCode -} - -func (o *OperationsMovefileDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *OperationsMovefileDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *OperationsMovefileDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_purge_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_purge_parameters.go deleted file mode 100644 index 7de11ad494..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_purge_parameters.go +++ /dev/null @@ -1,202 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NewOperationsPurgeParams creates a new OperationsPurgeParams object -// with the default values initialized. -func NewOperationsPurgeParams() *OperationsPurgeParams { - var ( - asyncDefault = bool(true) - ) - return &OperationsPurgeParams{ - Async: asyncDefault, - - timeout: cr.DefaultTimeout, - } -} - -// NewOperationsPurgeParamsWithTimeout creates a new OperationsPurgeParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewOperationsPurgeParamsWithTimeout(timeout time.Duration) *OperationsPurgeParams { - var ( - asyncDefault = bool(true) - ) - return &OperationsPurgeParams{ - Async: asyncDefault, - - timeout: timeout, - } -} - -// NewOperationsPurgeParamsWithContext creates a new OperationsPurgeParams object -// with the default values initialized, and the ability to set a context for a request -func NewOperationsPurgeParamsWithContext(ctx context.Context) *OperationsPurgeParams { - var ( - asyncDefault = bool(true) - ) - return &OperationsPurgeParams{ - Async: asyncDefault, - - Context: ctx, - } -} - -// NewOperationsPurgeParamsWithHTTPClient creates a new OperationsPurgeParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewOperationsPurgeParamsWithHTTPClient(client *http.Client) *OperationsPurgeParams { - var ( - asyncDefault = bool(true) - ) - return &OperationsPurgeParams{ - Async: asyncDefault, - HTTPClient: client, - } -} - -/* -OperationsPurgeParams contains all the parameters to send to the API endpoint -for the operations purge operation typically these are written to a http.Request -*/ -type OperationsPurgeParams struct { - - /*RemotePath - Remote path - - */ - RemotePath *models.RemotePath - /*Async - Async request - - */ - Async bool - /*Group - Place this operation under this stat group - - */ - Group string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the operations purge params -func (o *OperationsPurgeParams) WithTimeout(timeout time.Duration) *OperationsPurgeParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the operations purge params -func (o *OperationsPurgeParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the operations purge params -func (o *OperationsPurgeParams) WithContext(ctx context.Context) *OperationsPurgeParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the operations purge params -func (o *OperationsPurgeParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the operations purge params -func (o *OperationsPurgeParams) WithHTTPClient(client *http.Client) *OperationsPurgeParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the operations purge params -func (o *OperationsPurgeParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithRemotePath adds the remotePath to the operations purge params -func (o *OperationsPurgeParams) WithRemotePath(remotePath *models.RemotePath) *OperationsPurgeParams { - o.SetRemotePath(remotePath) - return o -} - -// SetRemotePath adds the remotePath to the operations purge params -func (o *OperationsPurgeParams) SetRemotePath(remotePath *models.RemotePath) { - o.RemotePath = remotePath -} - -// WithAsync adds the async to the operations purge params -func (o *OperationsPurgeParams) WithAsync(async bool) *OperationsPurgeParams { - o.SetAsync(async) - return o -} - -// SetAsync adds the async to the operations purge params -func (o *OperationsPurgeParams) SetAsync(async bool) { - o.Async = async -} - -// WithGroup adds the group to the operations purge params -func (o *OperationsPurgeParams) WithGroup(group string) *OperationsPurgeParams { - o.SetGroup(group) - return o -} - -// SetGroup adds the group to the operations purge params -func (o *OperationsPurgeParams) SetGroup(group string) { - o.Group = group -} - -// WriteToRequest writes these params to a swagger request -func (o *OperationsPurgeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.RemotePath != nil { - if err := r.SetBodyParam(o.RemotePath); err != nil { - return err - } - } - - // query param _async - qrAsync := o.Async - qAsync := swag.FormatBool(qrAsync) - if qAsync != "" { - if err := r.SetQueryParam("_async", qAsync); err != nil { - return err - } - } - - // query param _group - qrGroup := o.Group - qGroup := qrGroup - if qGroup != "" { - if err := r.SetQueryParam("_group", qGroup); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_purge_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_purge_responses.go deleted file mode 100644 index 3ff317064d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/operations_purge_responses.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// OperationsPurgeReader is a Reader for the OperationsPurge structure. -type OperationsPurgeReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *OperationsPurgeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewOperationsPurgeOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewOperationsPurgeDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewOperationsPurgeOK creates a OperationsPurgeOK with default headers values -func NewOperationsPurgeOK() *OperationsPurgeOK { - return &OperationsPurgeOK{} -} - -/* -OperationsPurgeOK handles this case with default header values. - -Job ID -*/ -type OperationsPurgeOK struct { - Payload *models.Jobid - JobID int64 -} - -func (o *OperationsPurgeOK) GetPayload() *models.Jobid { - return o.Payload -} - -func (o *OperationsPurgeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.Jobid) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewOperationsPurgeDefault creates a OperationsPurgeDefault with default headers values -func NewOperationsPurgeDefault(code int) *OperationsPurgeDefault { - return &OperationsPurgeDefault{ - _statusCode: code, - } -} - -/* -OperationsPurgeDefault handles this case with default header values. - -Server error -*/ -type OperationsPurgeDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the operations purge default response -func (o *OperationsPurgeDefault) Code() int { - return o._statusCode -} - -func (o *OperationsPurgeDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *OperationsPurgeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *OperationsPurgeDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/pin_cpu_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/pin_cpu_parameters.go deleted file mode 100644 index 7fa59de8a2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/pin_cpu_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewPinCPUParams creates a new PinCPUParams object -// with the default values initialized. -func NewPinCPUParams() *PinCPUParams { - - return &PinCPUParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewPinCPUParamsWithTimeout creates a new PinCPUParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewPinCPUParamsWithTimeout(timeout time.Duration) *PinCPUParams { - - return &PinCPUParams{ - - timeout: timeout, - } -} - -// NewPinCPUParamsWithContext creates a new PinCPUParams object -// with the default values initialized, and the ability to set a context for a request -func NewPinCPUParamsWithContext(ctx context.Context) *PinCPUParams { - - return &PinCPUParams{ - - Context: ctx, - } -} - -// NewPinCPUParamsWithHTTPClient creates a new PinCPUParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewPinCPUParamsWithHTTPClient(client *http.Client) *PinCPUParams { - - return &PinCPUParams{ - HTTPClient: client, - } -} - -/* -PinCPUParams contains all the parameters to send to the API endpoint -for the pin Cpu operation typically these are written to a http.Request -*/ -type PinCPUParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the pin Cpu params -func (o *PinCPUParams) WithTimeout(timeout time.Duration) *PinCPUParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the pin Cpu params -func (o *PinCPUParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the pin Cpu params -func (o *PinCPUParams) WithContext(ctx context.Context) *PinCPUParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the pin Cpu params -func (o *PinCPUParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the pin Cpu params -func (o *PinCPUParams) WithHTTPClient(client *http.Client) *PinCPUParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the pin Cpu params -func (o *PinCPUParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *PinCPUParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/pin_cpu_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/pin_cpu_responses.go deleted file mode 100644 index 13e3e79c45..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/pin_cpu_responses.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// PinCPUReader is a Reader for the PinCPU structure. -type PinCPUReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *PinCPUReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewPinCPUOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewPinCPUDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewPinCPUOK creates a PinCPUOK with default headers values -func NewPinCPUOK() *PinCPUOK { - return &PinCPUOK{} -} - -/* -PinCPUOK handles this case with default header values. - -Empty object -*/ -type PinCPUOK struct { - Payload interface{} - JobID int64 -} - -func (o *PinCPUOK) GetPayload() interface{} { - return o.Payload -} - -func (o *PinCPUOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewPinCPUDefault creates a PinCPUDefault with default headers values -func NewPinCPUDefault(code int) *PinCPUDefault { - return &PinCPUDefault{ - _statusCode: code, - } -} - -/* -PinCPUDefault handles this case with default header values. - -Server error -*/ -type PinCPUDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the pin Cpu default response -func (o *PinCPUDefault) Code() int { - return o._statusCode -} - -func (o *PinCPUDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *PinCPUDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *PinCPUDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/reload_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/reload_parameters.go deleted file mode 100644 index 90f806b23d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/reload_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewReloadParams creates a new ReloadParams object -// with the default values initialized. -func NewReloadParams() *ReloadParams { - - return &ReloadParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewReloadParamsWithTimeout creates a new ReloadParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewReloadParamsWithTimeout(timeout time.Duration) *ReloadParams { - - return &ReloadParams{ - - timeout: timeout, - } -} - -// NewReloadParamsWithContext creates a new ReloadParams object -// with the default values initialized, and the ability to set a context for a request -func NewReloadParamsWithContext(ctx context.Context) *ReloadParams { - - return &ReloadParams{ - - Context: ctx, - } -} - -// NewReloadParamsWithHTTPClient creates a new ReloadParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewReloadParamsWithHTTPClient(client *http.Client) *ReloadParams { - - return &ReloadParams{ - HTTPClient: client, - } -} - -/* -ReloadParams contains all the parameters to send to the API endpoint -for the reload operation typically these are written to a http.Request -*/ -type ReloadParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the reload params -func (o *ReloadParams) WithTimeout(timeout time.Duration) *ReloadParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the reload params -func (o *ReloadParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the reload params -func (o *ReloadParams) WithContext(ctx context.Context) *ReloadParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the reload params -func (o *ReloadParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the reload params -func (o *ReloadParams) WithHTTPClient(client *http.Client) *ReloadParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the reload params -func (o *ReloadParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ReloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/reload_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/reload_responses.go deleted file mode 100644 index 41e3e2646a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/reload_responses.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// ReloadReader is a Reader for the Reload structure. -type ReloadReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ReloadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewReloadOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewReloadDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewReloadOK creates a ReloadOK with default headers values -func NewReloadOK() *ReloadOK { - return &ReloadOK{} -} - -/* -ReloadOK handles this case with default header values. - -Empty object -*/ -type ReloadOK struct { - Payload interface{} - JobID int64 -} - -func (o *ReloadOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ReloadOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewReloadDefault creates a ReloadDefault with default headers values -func NewReloadDefault(code int) *ReloadDefault { - return &ReloadDefault{ - _statusCode: code, - } -} - -/* -ReloadDefault handles this case with default header values. - -Server error -*/ -type ReloadDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the reload default response -func (o *ReloadDefault) Code() int { - return o._statusCode -} - -func (o *ReloadDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *ReloadDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *ReloadDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/sync_copy_dir_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/sync_copy_dir_parameters.go deleted file mode 100644 index 638f12721a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/sync_copy_dir_parameters.go +++ /dev/null @@ -1,202 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NewSyncCopyDirParams creates a new SyncCopyDirParams object -// with the default values initialized. -func NewSyncCopyDirParams() *SyncCopyDirParams { - var ( - asyncDefault = bool(true) - ) - return &SyncCopyDirParams{ - Async: asyncDefault, - - timeout: cr.DefaultTimeout, - } -} - -// NewSyncCopyDirParamsWithTimeout creates a new SyncCopyDirParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewSyncCopyDirParamsWithTimeout(timeout time.Duration) *SyncCopyDirParams { - var ( - asyncDefault = bool(true) - ) - return &SyncCopyDirParams{ - Async: asyncDefault, - - timeout: timeout, - } -} - -// NewSyncCopyDirParamsWithContext creates a new SyncCopyDirParams object -// with the default values initialized, and the ability to set a context for a request -func NewSyncCopyDirParamsWithContext(ctx context.Context) *SyncCopyDirParams { - var ( - asyncDefault = bool(true) - ) - return &SyncCopyDirParams{ - Async: asyncDefault, - - Context: ctx, - } -} - -// NewSyncCopyDirParamsWithHTTPClient creates a new SyncCopyDirParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewSyncCopyDirParamsWithHTTPClient(client *http.Client) *SyncCopyDirParams { - var ( - asyncDefault = bool(true) - ) - return &SyncCopyDirParams{ - Async: asyncDefault, - HTTPClient: client, - } -} - -/* -SyncCopyDirParams contains all the parameters to send to the API endpoint -for the sync copy dir operation typically these are written to a http.Request -*/ -type SyncCopyDirParams struct { - - /*Options - Options - - */ - Options *models.MoveOrCopyFileOptions - /*Async - Async request - - */ - Async bool - /*Group - Place this operation under this stat group - - */ - Group string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the sync copy dir params -func (o *SyncCopyDirParams) WithTimeout(timeout time.Duration) *SyncCopyDirParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the sync copy dir params -func (o *SyncCopyDirParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the sync copy dir params -func (o *SyncCopyDirParams) WithContext(ctx context.Context) *SyncCopyDirParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the sync copy dir params -func (o *SyncCopyDirParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the sync copy dir params -func (o *SyncCopyDirParams) WithHTTPClient(client *http.Client) *SyncCopyDirParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the sync copy dir params -func (o *SyncCopyDirParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithOptions adds the options to the sync copy dir params -func (o *SyncCopyDirParams) WithOptions(options *models.MoveOrCopyFileOptions) *SyncCopyDirParams { - o.SetOptions(options) - return o -} - -// SetOptions adds the options to the sync copy dir params -func (o *SyncCopyDirParams) SetOptions(options *models.MoveOrCopyFileOptions) { - o.Options = options -} - -// WithAsync adds the async to the sync copy dir params -func (o *SyncCopyDirParams) WithAsync(async bool) *SyncCopyDirParams { - o.SetAsync(async) - return o -} - -// SetAsync adds the async to the sync copy dir params -func (o *SyncCopyDirParams) SetAsync(async bool) { - o.Async = async -} - -// WithGroup adds the group to the sync copy dir params -func (o *SyncCopyDirParams) WithGroup(group string) *SyncCopyDirParams { - o.SetGroup(group) - return o -} - -// SetGroup adds the group to the sync copy dir params -func (o *SyncCopyDirParams) SetGroup(group string) { - o.Group = group -} - -// WriteToRequest writes these params to a swagger request -func (o *SyncCopyDirParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Options != nil { - if err := r.SetBodyParam(o.Options); err != nil { - return err - } - } - - // query param _async - qrAsync := o.Async - qAsync := swag.FormatBool(qrAsync) - if qAsync != "" { - if err := r.SetQueryParam("_async", qAsync); err != nil { - return err - } - } - - // query param _group - qrGroup := o.Group - qGroup := qrGroup - if qGroup != "" { - if err := r.SetQueryParam("_group", qGroup); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/sync_copy_dir_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/sync_copy_dir_responses.go deleted file mode 100644 index c262b00049..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/sync_copy_dir_responses.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// SyncCopyDirReader is a Reader for the SyncCopyDir structure. -type SyncCopyDirReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *SyncCopyDirReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewSyncCopyDirOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewSyncCopyDirDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewSyncCopyDirOK creates a SyncCopyDirOK with default headers values -func NewSyncCopyDirOK() *SyncCopyDirOK { - return &SyncCopyDirOK{} -} - -/* -SyncCopyDirOK handles this case with default header values. - -Job ID -*/ -type SyncCopyDirOK struct { - Payload *models.Jobid - JobID int64 -} - -func (o *SyncCopyDirOK) GetPayload() *models.Jobid { - return o.Payload -} - -func (o *SyncCopyDirOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.Jobid) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewSyncCopyDirDefault creates a SyncCopyDirDefault with default headers values -func NewSyncCopyDirDefault(code int) *SyncCopyDirDefault { - return &SyncCopyDirDefault{ - _statusCode: code, - } -} - -/* -SyncCopyDirDefault handles this case with default header values. - -Server error -*/ -type SyncCopyDirDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the sync copy dir default response -func (o *SyncCopyDirDefault) Code() int { - return o._statusCode -} - -func (o *SyncCopyDirDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *SyncCopyDirDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *SyncCopyDirDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/sync_copy_paths_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/sync_copy_paths_parameters.go deleted file mode 100644 index 20ec989c2c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/sync_copy_paths_parameters.go +++ /dev/null @@ -1,202 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NewSyncCopyPathsParams creates a new SyncCopyPathsParams object -// with the default values initialized. -func NewSyncCopyPathsParams() *SyncCopyPathsParams { - var ( - asyncDefault = bool(true) - ) - return &SyncCopyPathsParams{ - Async: asyncDefault, - - timeout: cr.DefaultTimeout, - } -} - -// NewSyncCopyPathsParamsWithTimeout creates a new SyncCopyPathsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewSyncCopyPathsParamsWithTimeout(timeout time.Duration) *SyncCopyPathsParams { - var ( - asyncDefault = bool(true) - ) - return &SyncCopyPathsParams{ - Async: asyncDefault, - - timeout: timeout, - } -} - -// NewSyncCopyPathsParamsWithContext creates a new SyncCopyPathsParams object -// with the default values initialized, and the ability to set a context for a request -func NewSyncCopyPathsParamsWithContext(ctx context.Context) *SyncCopyPathsParams { - var ( - asyncDefault = bool(true) - ) - return &SyncCopyPathsParams{ - Async: asyncDefault, - - Context: ctx, - } -} - -// NewSyncCopyPathsParamsWithHTTPClient creates a new SyncCopyPathsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewSyncCopyPathsParamsWithHTTPClient(client *http.Client) *SyncCopyPathsParams { - var ( - asyncDefault = bool(true) - ) - return &SyncCopyPathsParams{ - Async: asyncDefault, - HTTPClient: client, - } -} - -/* -SyncCopyPathsParams contains all the parameters to send to the API endpoint -for the sync copy paths operation typically these are written to a http.Request -*/ -type SyncCopyPathsParams struct { - - /*Options - Options - - */ - Options *models.CopyPathsOptions - /*Async - Async request - - */ - Async bool - /*Group - Place this operation under this stat group - - */ - Group string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the sync copy paths params -func (o *SyncCopyPathsParams) WithTimeout(timeout time.Duration) *SyncCopyPathsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the sync copy paths params -func (o *SyncCopyPathsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the sync copy paths params -func (o *SyncCopyPathsParams) WithContext(ctx context.Context) *SyncCopyPathsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the sync copy paths params -func (o *SyncCopyPathsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the sync copy paths params -func (o *SyncCopyPathsParams) WithHTTPClient(client *http.Client) *SyncCopyPathsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the sync copy paths params -func (o *SyncCopyPathsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithOptions adds the options to the sync copy paths params -func (o *SyncCopyPathsParams) WithOptions(options *models.CopyPathsOptions) *SyncCopyPathsParams { - o.SetOptions(options) - return o -} - -// SetOptions adds the options to the sync copy paths params -func (o *SyncCopyPathsParams) SetOptions(options *models.CopyPathsOptions) { - o.Options = options -} - -// WithAsync adds the async to the sync copy paths params -func (o *SyncCopyPathsParams) WithAsync(async bool) *SyncCopyPathsParams { - o.SetAsync(async) - return o -} - -// SetAsync adds the async to the sync copy paths params -func (o *SyncCopyPathsParams) SetAsync(async bool) { - o.Async = async -} - -// WithGroup adds the group to the sync copy paths params -func (o *SyncCopyPathsParams) WithGroup(group string) *SyncCopyPathsParams { - o.SetGroup(group) - return o -} - -// SetGroup adds the group to the sync copy paths params -func (o *SyncCopyPathsParams) SetGroup(group string) { - o.Group = group -} - -// WriteToRequest writes these params to a swagger request -func (o *SyncCopyPathsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Options != nil { - if err := r.SetBodyParam(o.Options); err != nil { - return err - } - } - - // query param _async - qrAsync := o.Async - qAsync := swag.FormatBool(qrAsync) - if qAsync != "" { - if err := r.SetQueryParam("_async", qAsync); err != nil { - return err - } - } - - // query param _group - qrGroup := o.Group - qGroup := qrGroup - if qGroup != "" { - if err := r.SetQueryParam("_group", qGroup); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/sync_copy_paths_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/sync_copy_paths_responses.go deleted file mode 100644 index 529fd7b1ca..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/sync_copy_paths_responses.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// SyncCopyPathsReader is a Reader for the SyncCopyPaths structure. -type SyncCopyPathsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *SyncCopyPathsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewSyncCopyPathsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewSyncCopyPathsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewSyncCopyPathsOK creates a SyncCopyPathsOK with default headers values -func NewSyncCopyPathsOK() *SyncCopyPathsOK { - return &SyncCopyPathsOK{} -} - -/* -SyncCopyPathsOK handles this case with default header values. - -Job ID -*/ -type SyncCopyPathsOK struct { - Payload *models.Jobid - JobID int64 -} - -func (o *SyncCopyPathsOK) GetPayload() *models.Jobid { - return o.Payload -} - -func (o *SyncCopyPathsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.Jobid) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewSyncCopyPathsDefault creates a SyncCopyPathsDefault with default headers values -func NewSyncCopyPathsDefault(code int) *SyncCopyPathsDefault { - return &SyncCopyPathsDefault{ - _statusCode: code, - } -} - -/* -SyncCopyPathsDefault handles this case with default header values. - -Server error -*/ -type SyncCopyPathsDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the sync copy paths default response -func (o *SyncCopyPathsDefault) Code() int { - return o._statusCode -} - -func (o *SyncCopyPathsDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *SyncCopyPathsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *SyncCopyPathsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/sync_move_dir_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/sync_move_dir_parameters.go deleted file mode 100644 index 7221984684..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/sync_move_dir_parameters.go +++ /dev/null @@ -1,202 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// NewSyncMoveDirParams creates a new SyncMoveDirParams object -// with the default values initialized. -func NewSyncMoveDirParams() *SyncMoveDirParams { - var ( - asyncDefault = bool(true) - ) - return &SyncMoveDirParams{ - Async: asyncDefault, - - timeout: cr.DefaultTimeout, - } -} - -// NewSyncMoveDirParamsWithTimeout creates a new SyncMoveDirParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewSyncMoveDirParamsWithTimeout(timeout time.Duration) *SyncMoveDirParams { - var ( - asyncDefault = bool(true) - ) - return &SyncMoveDirParams{ - Async: asyncDefault, - - timeout: timeout, - } -} - -// NewSyncMoveDirParamsWithContext creates a new SyncMoveDirParams object -// with the default values initialized, and the ability to set a context for a request -func NewSyncMoveDirParamsWithContext(ctx context.Context) *SyncMoveDirParams { - var ( - asyncDefault = bool(true) - ) - return &SyncMoveDirParams{ - Async: asyncDefault, - - Context: ctx, - } -} - -// NewSyncMoveDirParamsWithHTTPClient creates a new SyncMoveDirParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewSyncMoveDirParamsWithHTTPClient(client *http.Client) *SyncMoveDirParams { - var ( - asyncDefault = bool(true) - ) - return &SyncMoveDirParams{ - Async: asyncDefault, - HTTPClient: client, - } -} - -/* -SyncMoveDirParams contains all the parameters to send to the API endpoint -for the sync move dir operation typically these are written to a http.Request -*/ -type SyncMoveDirParams struct { - - /*Options - Options - - */ - Options *models.MoveOrCopyFileOptions - /*Async - Async request - - */ - Async bool - /*Group - Place this operation under this stat group - - */ - Group string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the sync move dir params -func (o *SyncMoveDirParams) WithTimeout(timeout time.Duration) *SyncMoveDirParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the sync move dir params -func (o *SyncMoveDirParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the sync move dir params -func (o *SyncMoveDirParams) WithContext(ctx context.Context) *SyncMoveDirParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the sync move dir params -func (o *SyncMoveDirParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the sync move dir params -func (o *SyncMoveDirParams) WithHTTPClient(client *http.Client) *SyncMoveDirParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the sync move dir params -func (o *SyncMoveDirParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithOptions adds the options to the sync move dir params -func (o *SyncMoveDirParams) WithOptions(options *models.MoveOrCopyFileOptions) *SyncMoveDirParams { - o.SetOptions(options) - return o -} - -// SetOptions adds the options to the sync move dir params -func (o *SyncMoveDirParams) SetOptions(options *models.MoveOrCopyFileOptions) { - o.Options = options -} - -// WithAsync adds the async to the sync move dir params -func (o *SyncMoveDirParams) WithAsync(async bool) *SyncMoveDirParams { - o.SetAsync(async) - return o -} - -// SetAsync adds the async to the sync move dir params -func (o *SyncMoveDirParams) SetAsync(async bool) { - o.Async = async -} - -// WithGroup adds the group to the sync move dir params -func (o *SyncMoveDirParams) WithGroup(group string) *SyncMoveDirParams { - o.SetGroup(group) - return o -} - -// SetGroup adds the group to the sync move dir params -func (o *SyncMoveDirParams) SetGroup(group string) { - o.Group = group -} - -// WriteToRequest writes these params to a swagger request -func (o *SyncMoveDirParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Options != nil { - if err := r.SetBodyParam(o.Options); err != nil { - return err - } - } - - // query param _async - qrAsync := o.Async - qAsync := swag.FormatBool(qrAsync) - if qAsync != "" { - if err := r.SetQueryParam("_async", qAsync); err != nil { - return err - } - } - - // query param _group - qrGroup := o.Group - qGroup := qrGroup - if qGroup != "" { - if err := r.SetQueryParam("_group", qGroup); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/sync_move_dir_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/sync_move_dir_responses.go deleted file mode 100644 index 78c89ceb61..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/sync_move_dir_responses.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// SyncMoveDirReader is a Reader for the SyncMoveDir structure. -type SyncMoveDirReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *SyncMoveDirReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewSyncMoveDirOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewSyncMoveDirDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewSyncMoveDirOK creates a SyncMoveDirOK with default headers values -func NewSyncMoveDirOK() *SyncMoveDirOK { - return &SyncMoveDirOK{} -} - -/* -SyncMoveDirOK handles this case with default header values. - -Job ID -*/ -type SyncMoveDirOK struct { - Payload *models.Jobid - JobID int64 -} - -func (o *SyncMoveDirOK) GetPayload() *models.Jobid { - return o.Payload -} - -func (o *SyncMoveDirOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.Jobid) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewSyncMoveDirDefault creates a SyncMoveDirDefault with default headers values -func NewSyncMoveDirDefault(code int) *SyncMoveDirDefault { - return &SyncMoveDirDefault{ - _statusCode: code, - } -} - -/* -SyncMoveDirDefault handles this case with default header values. - -Server error -*/ -type SyncMoveDirDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the sync move dir default response -func (o *SyncMoveDirDefault) Code() int { - return o._statusCode -} - -func (o *SyncMoveDirDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *SyncMoveDirDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *SyncMoveDirDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/unpin_cpu_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/unpin_cpu_parameters.go deleted file mode 100644 index 968e1b092e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/unpin_cpu_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewUnpinCPUParams creates a new UnpinCPUParams object -// with the default values initialized. -func NewUnpinCPUParams() *UnpinCPUParams { - - return &UnpinCPUParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewUnpinCPUParamsWithTimeout creates a new UnpinCPUParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewUnpinCPUParamsWithTimeout(timeout time.Duration) *UnpinCPUParams { - - return &UnpinCPUParams{ - - timeout: timeout, - } -} - -// NewUnpinCPUParamsWithContext creates a new UnpinCPUParams object -// with the default values initialized, and the ability to set a context for a request -func NewUnpinCPUParamsWithContext(ctx context.Context) *UnpinCPUParams { - - return &UnpinCPUParams{ - - Context: ctx, - } -} - -// NewUnpinCPUParamsWithHTTPClient creates a new UnpinCPUParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewUnpinCPUParamsWithHTTPClient(client *http.Client) *UnpinCPUParams { - - return &UnpinCPUParams{ - HTTPClient: client, - } -} - -/* -UnpinCPUParams contains all the parameters to send to the API endpoint -for the unpin Cpu operation typically these are written to a http.Request -*/ -type UnpinCPUParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the unpin Cpu params -func (o *UnpinCPUParams) WithTimeout(timeout time.Duration) *UnpinCPUParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the unpin Cpu params -func (o *UnpinCPUParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the unpin Cpu params -func (o *UnpinCPUParams) WithContext(ctx context.Context) *UnpinCPUParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the unpin Cpu params -func (o *UnpinCPUParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the unpin Cpu params -func (o *UnpinCPUParams) WithHTTPClient(client *http.Client) *UnpinCPUParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the unpin Cpu params -func (o *UnpinCPUParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *UnpinCPUParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/unpin_cpu_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/unpin_cpu_responses.go deleted file mode 100644 index b4a31d1c47..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations/unpin_cpu_responses.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models" -) - -// UnpinCPUReader is a Reader for the UnpinCPU structure. -type UnpinCPUReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *UnpinCPUReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewUnpinCPUOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewUnpinCPUDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewUnpinCPUOK creates a UnpinCPUOK with default headers values -func NewUnpinCPUOK() *UnpinCPUOK { - return &UnpinCPUOK{} -} - -/* -UnpinCPUOK handles this case with default header values. - -Empty object -*/ -type UnpinCPUOK struct { - Payload interface{} - JobID int64 -} - -func (o *UnpinCPUOK) GetPayload() interface{} { - return o.Payload -} - -func (o *UnpinCPUOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -// NewUnpinCPUDefault creates a UnpinCPUDefault with default headers values -func NewUnpinCPUDefault(code int) *UnpinCPUDefault { - return &UnpinCPUDefault{ - _statusCode: code, - } -} - -/* -UnpinCPUDefault handles this case with default header values. - -Server error -*/ -type UnpinCPUDefault struct { - _statusCode int - - Payload *models.ErrorResponse - JobID int64 -} - -// Code gets the status code for the unpin Cpu default response -func (o *UnpinCPUDefault) Code() int { - return o._statusCode -} - -func (o *UnpinCPUDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *UnpinCPUDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - if jobIDHeader := response.GetHeader("x-rclone-jobid"); jobIDHeader != "" { - jobID, err := strconv.ParseInt(jobIDHeader, 10, 64) - if err != nil { - return err - } - - o.JobID = jobID - } - return nil -} - -func (o *UnpinCPUDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/bandwidth.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/bandwidth.go deleted file mode 100644 index f4c9f0f348..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/bandwidth.go +++ /dev/null @@ -1,45 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// Bandwidth bandwidth rate -// -// # Rate at witch to rate limit bandwidth -// -// swagger:model Bandwidth -type Bandwidth struct { - - // String representation of the bandwidth rate limit (eg. 100k, 1M, ...). - Rate string `json:"rate,omitempty"` -} - -// Validate validates this bandwidth -func (m *Bandwidth) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *Bandwidth) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Bandwidth) UnmarshalBinary(b []byte) error { - var res Bandwidth - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/content.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/content.go deleted file mode 100644 index dbf886bb6f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/content.go +++ /dev/null @@ -1,44 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// Content content -// -// swagger:model Content -type Content struct { - - // File content - // Format: byte - Content strfmt.Base64 `json:"Content,omitempty"` -} - -// Validate validates this content -func (m *Content) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *Content) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Content) UnmarshalBinary(b []byte) error { - var res Content - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/copy_paths_options.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/copy_paths_options.go deleted file mode 100644 index ce80477888..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/copy_paths_options.go +++ /dev/null @@ -1,61 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// CopyPathsOptions copy paths options -// -// swagger:model CopyPathsOptions -type CopyPathsOptions struct { - - // String representation of the bandwidth rate limit (eg. 100k, 1M, ...) - BandwidthRate string `json:"bandwidth_rate,omitempty"` - - // Destination file system e.g. s3: or gcs: - DstFs string `json:"dstFs,omitempty"` - - // A directory within that remote eg. files/ for the destination - DstRemote string `json:"dstRemote,omitempty"` - - // Paths relative to srcRemote/dstRemote eg. file.txt for both source and destination - Paths []string `json:"paths"` - - // Source file system e.g. s3: or gcs: - SrcFs string `json:"srcFs,omitempty"` - - // A directory within that remote eg. files/ for the source - SrcRemote string `json:"srcRemote,omitempty"` - - // The number of file transfers to run in parallel. Accepts a special value '-1' describing that transfers from rclone config file should be used - Transfers int64 `json:"transfers,omitempty"` -} - -// Validate validates this copy paths options -func (m *CopyPathsOptions) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *CopyPathsOptions) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *CopyPathsOptions) UnmarshalBinary(b []byte) error { - var res CopyPathsOptions - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/cpus.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/cpus.go deleted file mode 100644 index 9f463b04e2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/cpus.go +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// Cpus cpus -// -// swagger:model Cpus -type Cpus struct { - - // List of cpus - CPU []int64 `json:"cpu"` -} - -// Validate validates this cpus -func (m *Cpus) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *Cpus) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Cpus) UnmarshalBinary(b []byte) error { - var res Cpus - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/delete_paths_options.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/delete_paths_options.go deleted file mode 100644 index a1d72c5b7f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/delete_paths_options.go +++ /dev/null @@ -1,49 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// DeletePathsOptions delete paths options -// -// swagger:model DeletePathsOptions -type DeletePathsOptions struct { - - // File system e.g. s3: or gcs: - Fs string `json:"fs,omitempty"` - - // Paths relative to remote eg. file.txt - Paths []string `json:"paths"` - - // A directory within that remote eg. files/ - Remote string `json:"remote,omitempty"` -} - -// Validate validates this delete paths options -func (m *DeletePathsOptions) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *DeletePathsOptions) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *DeletePathsOptions) UnmarshalBinary(b []byte) error { - var res DeletePathsOptions - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/error_response.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/error_response.go deleted file mode 100644 index 4721a24e42..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/error_response.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// ErrorResponse error -// -// # Details about error response -// -// swagger:model ErrorResponse -type ErrorResponse struct { - - // Map of request parameters - Input interface{} `json:"input,omitempty"` - - // Error description - Message string `json:"message,omitempty"` - - // Requested path - Path string `json:"path,omitempty"` - - // HTTP status code - Status int64 `json:"status,omitempty"` -} - -// Validate validates this error response -func (m *ErrorResponse) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *ErrorResponse) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *ErrorResponse) UnmarshalBinary(b []byte) error { - var res ErrorResponse - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/file_info.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/file_info.go deleted file mode 100644 index c21015f6da..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/file_info.go +++ /dev/null @@ -1,71 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// FileInfo file info -// -// swagger:model FileInfo -type FileInfo struct { - - // Modification time - // Format: date-time - ModTime strfmt.DateTime `json:"modTime,omitempty"` - - // Size in bytes - Size int64 `json:"size,omitempty"` -} - -// Validate validates this file info -func (m *FileInfo) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateModTime(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *FileInfo) validateModTime(formats strfmt.Registry) error { - - if swag.IsZero(m.ModTime) { // not required - return nil - } - - if err := validate.FormatOf("modTime", "body", "date-time", m.ModTime.String(), formats); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *FileInfo) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *FileInfo) UnmarshalBinary(b []byte) error { - var res FileInfo - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/file_system_details.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/file_system_details.go deleted file mode 100644 index 64efd5c564..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/file_system_details.go +++ /dev/null @@ -1,49 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// FileSystemDetails file system details -// -// swagger:model FileSystemDetails -type FileSystemDetails struct { - - // Free space in bytes - Free int64 `json:"free,omitempty"` - - // Available space in bytes - Total int64 `json:"total,omitempty"` - - // Used space in bytes - Used int64 `json:"used,omitempty"` -} - -// Validate validates this file system details -func (m *FileSystemDetails) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *FileSystemDetails) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *FileSystemDetails) UnmarshalBinary(b []byte) error { - var res FileSystemDetails - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/group_list.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/group_list.go deleted file mode 100644 index e7a63b9072..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/group_list.go +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// GroupList group list -// -// swagger:model GroupList -type GroupList struct { - - // groups - Groups []string `json:"groups"` -} - -// Validate validates this group list -func (m *GroupList) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *GroupList) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *GroupList) UnmarshalBinary(b []byte) error { - var res GroupList - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/instance_metadata.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/instance_metadata.go deleted file mode 100644 index ca21a3c354..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/instance_metadata.go +++ /dev/null @@ -1,111 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "encoding/json" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// InstanceMetadata instance metadata -// -// # Information about instance on which agent is running -// -// swagger:model InstanceMetadata -type InstanceMetadata struct { - - // Cloud provider - // Enum: [aws gcp azure ] - CloudProvider string `json:"cloud_provider,omitempty"` - - // Cloud machine type, e.g. Standard-A3 - InstanceType string `json:"instance_type,omitempty"` -} - -// Validate validates this instance metadata -func (m *InstanceMetadata) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateCloudProvider(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var instanceMetadataTypeCloudProviderPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["aws","gcp","azure",""]`), &res); err != nil { - panic(err) - } - for _, v := range res { - instanceMetadataTypeCloudProviderPropEnum = append(instanceMetadataTypeCloudProviderPropEnum, v) - } -} - -const ( - - // InstanceMetadataCloudProviderAws captures enum value "aws" - InstanceMetadataCloudProviderAws string = "aws" - - // InstanceMetadataCloudProviderGcp captures enum value "gcp" - InstanceMetadataCloudProviderGcp string = "gcp" - - // InstanceMetadataCloudProviderAzure captures enum value "azure" - InstanceMetadataCloudProviderAzure string = "azure" - - // InstanceMetadataCloudProviderEmpty captures enum value "" - InstanceMetadataCloudProviderEmpty string = "" -) - -// prop value enum -func (m *InstanceMetadata) validateCloudProviderEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, instanceMetadataTypeCloudProviderPropEnum, true); err != nil { - return err - } - return nil -} - -func (m *InstanceMetadata) validateCloudProvider(formats strfmt.Registry) error { - - if swag.IsZero(m.CloudProvider) { // not required - return nil - } - - // value enum - if err := m.validateCloudProviderEnum("cloud_provider", "body", m.CloudProvider); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *InstanceMetadata) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *InstanceMetadata) UnmarshalBinary(b []byte) error { - var res InstanceMetadata - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/job.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/job.go deleted file mode 100644 index 3a995559b0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/job.go +++ /dev/null @@ -1,109 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// Job job -// -// # Status information about the job -// -// swagger:model Job -type Job struct { - - // Time in seconds that the job ran for - Duration float64 `json:"duration,omitempty"` - - // Time the job finished (eg 2018-10-26T18:50:20.528746884+01:00) - // Format: date-time - EndTime strfmt.DateTime `json:"endTime,omitempty"` - - // Error from the job or empty string for no error - Error string `json:"error,omitempty"` - - // Job has finished execution - Finished bool `json:"finished,omitempty"` - - // ID of the job - ID int64 `json:"id,omitempty"` - - // Output of the job as would have been returned if called synchronously - Output interface{} `json:"output,omitempty"` - - // Time the job started (eg 2018-10-26T18:50:20.528746884+01:00) - // Format: date-time - StartTime strfmt.DateTime `json:"startTime,omitempty"` - - // True for success false otherwise - Success bool `json:"success,omitempty"` -} - -// Validate validates this job -func (m *Job) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateEndTime(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStartTime(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *Job) validateEndTime(formats strfmt.Registry) error { - - if swag.IsZero(m.EndTime) { // not required - return nil - } - - if err := validate.FormatOf("endTime", "body", "date-time", m.EndTime.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *Job) validateStartTime(formats strfmt.Registry) error { - - if swag.IsZero(m.StartTime) { // not required - return nil - } - - if err := validate.FormatOf("startTime", "body", "date-time", m.StartTime.String(), formats); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *Job) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Job) UnmarshalBinary(b []byte) error { - var res Job - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/job_info.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/job_info.go deleted file mode 100644 index 8f22d0f6ed..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/job_info.go +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// JobInfo job info -// -// swagger:model JobInfo -type JobInfo struct { - - // job - Job *Job `json:"job,omitempty"` - - // Core status - Stats *Stats `json:"stats,omitempty"` - - // Completed transfers - Transferred []*Transfer `json:"transferred"` -} - -// Validate validates this job info -func (m *JobInfo) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateJob(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStats(formats); err != nil { - res = append(res, err) - } - - if err := m.validateTransferred(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *JobInfo) validateJob(formats strfmt.Registry) error { - - if swag.IsZero(m.Job) { // not required - return nil - } - - if m.Job != nil { - if err := m.Job.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("job") - } - return err - } - } - - return nil -} - -func (m *JobInfo) validateStats(formats strfmt.Registry) error { - - if swag.IsZero(m.Stats) { // not required - return nil - } - - if m.Stats != nil { - if err := m.Stats.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("stats") - } - return err - } - } - - return nil -} - -func (m *JobInfo) validateTransferred(formats strfmt.Registry) error { - - if swag.IsZero(m.Transferred) { // not required - return nil - } - - for i := 0; i < len(m.Transferred); i++ { - if swag.IsZero(m.Transferred[i]) { // not required - continue - } - - if m.Transferred[i] != nil { - if err := m.Transferred[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("transferred" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *JobInfo) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *JobInfo) UnmarshalBinary(b []byte) error { - var res JobInfo - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/job_info_params.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/job_info_params.go deleted file mode 100644 index 435c85d185..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/job_info_params.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// JobInfoParams job info params -// -// swagger:model JobInfoParams -type JobInfoParams struct { - - // ID of the job - Jobid int64 `json:"jobid,omitempty"` - - // Duration in seconds - Wait int64 `json:"wait,omitempty"` -} - -// Validate validates this job info params -func (m *JobInfoParams) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *JobInfoParams) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *JobInfoParams) UnmarshalBinary(b []byte) error { - var res JobInfoParams - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/job_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/job_progress.go deleted file mode 100644 index a66dcaa620..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/job_progress.go +++ /dev/null @@ -1,160 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "encoding/json" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// JobProgress job progress -// -// swagger:model JobProgress -type JobProgress struct { - - // time at which job completed - // Format: date-time - CompletedAt strfmt.DateTime `json:"completed_at,omitempty"` - - // string description of the error (empty if successful) - Error string `json:"error,omitempty"` - - // number of bytes that failed transfer - Failed int64 `json:"failed,omitempty"` - - // number of bytes that were skipped - Skipped int64 `json:"skipped,omitempty"` - - // time at which job started - // Format: date-time - StartedAt strfmt.DateTime `json:"started_at,omitempty"` - - // status of the job - // Enum: [success error running not_found] - Status string `json:"status,omitempty"` - - // number of bytes that are successfully uploaded - Uploaded int64 `json:"uploaded,omitempty"` -} - -// Validate validates this job progress -func (m *JobProgress) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateCompletedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStartedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStatus(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *JobProgress) validateCompletedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.CompletedAt) { // not required - return nil - } - - if err := validate.FormatOf("completed_at", "body", "date-time", m.CompletedAt.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *JobProgress) validateStartedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.StartedAt) { // not required - return nil - } - - if err := validate.FormatOf("started_at", "body", "date-time", m.StartedAt.String(), formats); err != nil { - return err - } - - return nil -} - -var jobProgressTypeStatusPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["success","error","running","not_found"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - jobProgressTypeStatusPropEnum = append(jobProgressTypeStatusPropEnum, v) - } -} - -const ( - - // JobProgressStatusSuccess captures enum value "success" - JobProgressStatusSuccess string = "success" - - // JobProgressStatusError captures enum value "error" - JobProgressStatusError string = "error" - - // JobProgressStatusRunning captures enum value "running" - JobProgressStatusRunning string = "running" - - // JobProgressStatusNotFound captures enum value "not_found" - JobProgressStatusNotFound string = "not_found" -) - -// prop value enum -func (m *JobProgress) validateStatusEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, jobProgressTypeStatusPropEnum, true); err != nil { - return err - } - return nil -} - -func (m *JobProgress) validateStatus(formats strfmt.Registry) error { - - if swag.IsZero(m.Status) { // not required - return nil - } - - // value enum - if err := m.validateStatusEnum("status", "body", m.Status); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *JobProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *JobProgress) UnmarshalBinary(b []byte) error { - var res JobProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/jobid.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/jobid.go deleted file mode 100644 index e878cdd096..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/jobid.go +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// Jobid jobid -// -// swagger:model Jobid -type Jobid struct { - - // ID of the job - Jobid int64 `json:"jobid,omitempty"` -} - -// Validate validates this jobid -func (m *Jobid) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *Jobid) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Jobid) UnmarshalBinary(b []byte) error { - var res Jobid - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/list_item.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/list_item.go deleted file mode 100644 index 7f981eff4b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/list_item.go +++ /dev/null @@ -1,95 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// ListItem list item -// -// swagger:model ListItem -type ListItem struct { - - // Encrypted name - Encrypted string `json:"Encrypted,omitempty"` - - // Hash of the item - Hashes interface{} `json:"Hashes,omitempty"` - - // ID of the item - ID string `json:"ID,omitempty"` - - // true if item is directory - IsDir bool `json:"IsDir,omitempty"` - - // mime type of the item - MimeType string `json:"MimeType,omitempty"` - - // Modification time - // Format: date-time - ModTime strfmt.DateTime `json:"ModTime,omitempty"` - - // Name of the item - Name string `json:"Name,omitempty"` - - // Original ID of the item - OrigID string `json:"OrigID,omitempty"` - - // Path of the item - Path string `json:"Path,omitempty"` - - // Size in bytes - Size int64 `json:"Size,omitempty"` -} - -// Validate validates this list item -func (m *ListItem) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateModTime(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *ListItem) validateModTime(formats strfmt.Registry) error { - - if swag.IsZero(m.ModTime) { // not required - return nil - } - - if err := validate.FormatOf("ModTime", "body", "date-time", m.ModTime.String(), formats); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *ListItem) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *ListItem) UnmarshalBinary(b []byte) error { - var res ListItem - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/list_options.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/list_options.go deleted file mode 100644 index cc2be53ce2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/list_options.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// ListOptions list options -// -// swagger:model ListOptions -type ListOptions struct { - - // A remote name string eg. drive: - // Required: true - Fs *string `json:"fs"` - - // Show only the newest versions of files (no snapshot tag suffix attached) - NewestOnly bool `json:"newestOnly,omitempty"` - - // opt - Opt *ListOptionsOpt `json:"opt,omitempty"` - - // A path within that remote eg. dir - // Required: true - Remote *string `json:"remote"` - - // Show older version of files (snapshot tag suffix attached) - VersionedOnly bool `json:"versionedOnly,omitempty"` -} - -// Validate validates this list options -func (m *ListOptions) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateFs(formats); err != nil { - res = append(res, err) - } - - if err := m.validateOpt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateRemote(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *ListOptions) validateFs(formats strfmt.Registry) error { - - if err := validate.Required("fs", "body", m.Fs); err != nil { - return err - } - - return nil -} - -func (m *ListOptions) validateOpt(formats strfmt.Registry) error { - - if swag.IsZero(m.Opt) { // not required - return nil - } - - if m.Opt != nil { - if err := m.Opt.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("opt") - } - return err - } - } - - return nil -} - -func (m *ListOptions) validateRemote(formats strfmt.Registry) error { - - if err := validate.Required("remote", "body", m.Remote); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *ListOptions) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *ListOptions) UnmarshalBinary(b []byte) error { - var res ListOptions - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} - -// ListOptionsOpt A path within that remote eg. dir -// -// swagger:model ListOptionsOpt -type ListOptionsOpt struct { - - // Show only directories in the listing - DirsOnly bool `json:"dirsOnly,omitempty"` - - // Show only files in the listing - FilesOnly bool `json:"filesOnly,omitempty"` - - // Don't read the mime type time (can speed things up) - NoMimeType bool `json:"noMimeType,omitempty"` - - // Don't read the modification time (can speed things up) - NoModTime bool `json:"noModTime,omitempty"` - - // Recurse into the listing - Recurse bool `json:"recurse,omitempty"` - - // Show the encrypted names - ShowEncrypted bool `json:"showEncrypted,omitempty"` - - // Include hashes in the output (may take longer) - ShowHash bool `json:"showHash,omitempty"` - - // Show the ID of the underlying Object - ShowOrigIDs bool `json:"showOrigIDs,omitempty"` -} - -// Validate validates this list options opt -func (m *ListOptionsOpt) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *ListOptionsOpt) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *ListOptionsOpt) UnmarshalBinary(b []byte) error { - var res ListOptionsOpt - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/move_or_copy_file_options.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/move_or_copy_file_options.go deleted file mode 100644 index 66b121bfe3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/move_or_copy_file_options.go +++ /dev/null @@ -1,61 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// MoveOrCopyFileOptions move or copy file options -// -// swagger:model MoveOrCopyFileOptions -type MoveOrCopyFileOptions struct { - - // String representation of the bandwidth rate limit (eg. 100k, 1M, ...) - BandwidthRate string `json:"bandwidth_rate,omitempty"` - - // Destination file system e.g. s3: or gcs: - DstFs string `json:"dstFs,omitempty"` - - // A path within that remote eg. file.txt for the destination - DstRemote string `json:"dstRemote,omitempty"` - - // Source file system e.g. s3: or gcs: - SrcFs string `json:"srcFs,omitempty"` - - // A path within that remote eg. file.txt for the source - SrcRemote string `json:"srcRemote,omitempty"` - - // A suffix which will be added to otherwise overwritten or deleted files - Suffix string `json:"suffix,omitempty"` - - // The number of file transfers to run in parallel. Accepts a special value '-1' describing that transfers from rclone config file should be used - Transfers int64 `json:"transfers,omitempty"` -} - -// Validate validates this move or copy file options -func (m *MoveOrCopyFileOptions) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *MoveOrCopyFileOptions) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *MoveOrCopyFileOptions) UnmarshalBinary(b []byte) error { - var res MoveOrCopyFileOptions - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/node_info.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/node_info.go deleted file mode 100644 index 3ea664981f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/node_info.go +++ /dev/null @@ -1,283 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// NodeInfo node info -// -// Information about Scylla node. -// -// swagger:model NodeInfo -type NodeInfo struct { - - // Scylla Manager Agent version. - AgentVersion string `json:"agent_version,omitempty"` - - // Address for Alternator API requests. - AlternatorAddress string `json:"alternator_address,omitempty"` - - // Whether Alternator requires authentication. - AlternatorEnforceAuthorization bool `json:"alternator_enforce_authorization,omitempty"` - - // Port for Alternator HTTPS API server. - AlternatorHTTPSPort string `json:"alternator_https_port,omitempty"` - - // Port for Alternator API server. - AlternatorPort string `json:"alternator_port,omitempty"` - - // Address for REST API requests. - APIAddress string `json:"api_address,omitempty"` - - // Port for REST API server. - APIPort string `json:"api_port,omitempty"` - - // Address that is broadcasted to tell other Scylla nodes to connect to. Related to listen_address. - BroadcastAddress string `json:"broadcast_address,omitempty"` - - // Address that is broadcasted to tell the clients to connect to. - BroadcastRPCAddress string `json:"broadcast_rpc_address,omitempty"` - - // Whether client encryption is enabled. - ClientEncryptionEnabled bool `json:"client_encryption_enabled,omitempty"` - - // Whether client authorization is required. - ClientEncryptionRequireAuth bool `json:"client_encryption_require_auth,omitempty"` - - // Whether Scylla uses RAFT for cluster management and DDL. - ConsistentClusterManagement bool `json:"consistent_cluster_management,omitempty"` - - // Logical CPU count. - CPUCount int64 `json:"cpu_count,omitempty"` - - // Whether CQL requires password authentication. - CqlPasswordProtected bool `json:"cql_password_protected,omitempty"` - - // First entry from `data_file_directories` list from scylla config file. - DataDirectory string `json:"data_directory,omitempty"` - - // Whether tablets are enabled. - EnableTablets bool `json:"enable_tablets,omitempty"` - - // Address Scylla listens for connections from other nodes. - ListenAddress string `json:"listen_address,omitempty"` - - // Total available memory. - MemoryTotal int64 `json:"memory_total,omitempty"` - - // Port for the CQL native transport to listen for clients on. - NativeTransportPort string `json:"native_transport_port,omitempty"` - - // Port for the encrypted CQL native transport to listen for clients on. - NativeTransportPortSsl string `json:"native_transport_port_ssl,omitempty"` - - // Maps endpoint name to endpoint configuration encoded in json string (see https://github.com/scylladb/scylladb/blob/master/docs/dev/object_storage.md). - ObjectStorageEndpoints map[string]ObjectStorageEndpoint `json:"object_storage_endpoints,omitempty"` - - // Address for Prometheus queries. - PrometheusAddress string `json:"prometheus_address,omitempty"` - - // Port for Prometheus server. - PrometheusPort string `json:"prometheus_port,omitempty"` - - // rclone backend config - RcloneBackendConfig NodeInfoRcloneBackendConfig `json:"rclone_backend_config,omitempty"` - - // Address on which Scylla is going to expect Thrift and CQL clients connections. - RPCAddress string `json:"rpc_address,omitempty"` - - // Port for Thrift to listen for clients on. - RPCPort string `json:"rpc_port,omitempty"` - - // Scylla version. - ScyllaVersion string `json:"scylla_version,omitempty"` - - // Whether Scylla supports uuid-like sstable naming. - SstableUUIDFormat bool `json:"sstable_uuid_format,omitempty"` - - // Total disk size of the first entry from `data_file_directories` list from scylla config file. In bytes. - StorageSize uint64 `json:"storage_size,omitempty"` - - // Uptime in seconds. - Uptime int64 `json:"uptime,omitempty"` -} - -// Validate validates this node info -func (m *NodeInfo) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateObjectStorageEndpoints(formats); err != nil { - res = append(res, err) - } - - if err := m.validateRcloneBackendConfig(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *NodeInfo) validateObjectStorageEndpoints(formats strfmt.Registry) error { - - if swag.IsZero(m.ObjectStorageEndpoints) { // not required - return nil - } - - for k := range m.ObjectStorageEndpoints { - - if err := validate.Required("object_storage_endpoints"+"."+k, "body", m.ObjectStorageEndpoints[k]); err != nil { - return err - } - if val, ok := m.ObjectStorageEndpoints[k]; ok { - if err := val.Validate(formats); err != nil { - return err - } - } - - } - - return nil -} - -func (m *NodeInfo) validateRcloneBackendConfig(formats strfmt.Registry) error { - - if swag.IsZero(m.RcloneBackendConfig) { // not required - return nil - } - - if err := m.RcloneBackendConfig.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("rclone_backend_config") - } - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *NodeInfo) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *NodeInfo) UnmarshalBinary(b []byte) error { - var res NodeInfo - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} - -// NodeInfoRcloneBackendConfig Subset of rclone backend configuration from 'scylla-manager-agent.yaml'. -// -// swagger:model NodeInfoRcloneBackendConfig -type NodeInfoRcloneBackendConfig struct { - - // azure - Azure interface{} `json:"azure,omitempty"` - - // gcs - Gcs interface{} `json:"gcs,omitempty"` - - // s3 - S3 NodeInfoRcloneBackendConfigS3 `json:"s3,omitempty"` -} - -// Validate validates this node info rclone backend config -func (m *NodeInfoRcloneBackendConfig) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateS3(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *NodeInfoRcloneBackendConfig) validateS3(formats strfmt.Registry) error { - - if swag.IsZero(m.S3) { // not required - return nil - } - - if err := m.S3.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("rclone_backend_config" + "." + "s3") - } - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *NodeInfoRcloneBackendConfig) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *NodeInfoRcloneBackendConfig) UnmarshalBinary(b []byte) error { - var res NodeInfoRcloneBackendConfig - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} - -// NodeInfoRcloneBackendConfigS3 node info rclone backend config s3 -// -// swagger:model NodeInfoRcloneBackendConfigS3 -type NodeInfoRcloneBackendConfigS3 struct { - - // endpoint - Endpoint string `json:"endpoint,omitempty"` - - // region - Region string `json:"region,omitempty"` -} - -// Validate validates this node info rclone backend config s3 -func (m *NodeInfoRcloneBackendConfigS3) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *NodeInfoRcloneBackendConfigS3) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *NodeInfoRcloneBackendConfigS3) UnmarshalBinary(b []byte) error { - var res NodeInfoRcloneBackendConfigS3 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/object_storage_endpoint.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/object_storage_endpoint.go deleted file mode 100644 index 8fa8267c07..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/object_storage_endpoint.go +++ /dev/null @@ -1,55 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// ObjectStorageEndpoint Object storage endpoint configuration as described in https://github.com/scylladb/scylladb/blob/master/docs/dev/object_storage.md -// -// swagger:model ObjectStorageEndpoint -type ObjectStorageEndpoint struct { - - // aws region - AwsRegion string `json:"aws_region,omitempty"` - - // iam role arn - IamRoleArn string `json:"iam_role_arn,omitempty"` - - // name - Name string `json:"name,omitempty"` - - // port - Port int64 `json:"port,omitempty"` - - // use https - UseHTTPS bool `json:"use_https,omitempty"` -} - -// Validate validates this object storage endpoint -func (m *ObjectStorageEndpoint) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *ObjectStorageEndpoint) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *ObjectStorageEndpoint) UnmarshalBinary(b []byte) error { - var res ObjectStorageEndpoint - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/remote.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/remote.go deleted file mode 100644 index a168cb89c4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/remote.go +++ /dev/null @@ -1,49 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// Remote remote -// -// swagger:model Remote -type Remote struct { - - // Name of the remote - Name string `json:"name,omitempty"` - - // Additional parameters for the remote - Parameters interface{} `json:"parameters,omitempty"` - - // Type of the new remote - Type string `json:"type,omitempty"` -} - -// Validate validates this remote -func (m *Remote) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *Remote) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Remote) UnmarshalBinary(b []byte) error { - var res Remote - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/remote_path.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/remote_path.go deleted file mode 100644 index 5895374882..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/remote_path.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// RemotePath remote path -// -// swagger:model RemotePath -type RemotePath struct { - - // A remote name string eg. drive: - Fs string `json:"fs,omitempty"` - - // A path within that remote eg. dir - Remote string `json:"remote,omitempty"` -} - -// Validate validates this remote path -func (m *RemotePath) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *RemotePath) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *RemotePath) UnmarshalBinary(b []byte) error { - var res RemotePath - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/stats.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/stats.go deleted file mode 100644 index 5c90cd5e93..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/stats.go +++ /dev/null @@ -1,163 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// Stats stats -// -// swagger:model Stats -type Stats struct { - - // total transferred bytes since the start of the process - Bytes int64 `json:"bytes,omitempty"` - - // an array of names of currently active file checks - Checking []string `json:"checking"` - - // number of checked files - Checks int64 `json:"checks,omitempty"` - - // number of deleted files - Deletes int64 `json:"deletes,omitempty"` - - // time in seconds since the start of the process - ElapsedTime float64 `json:"elapsedTime,omitempty"` - - // number of errors - Errors int64 `json:"errors,omitempty"` - - // whether there has been at least one FatalError - FatalError bool `json:"fatalError,omitempty"` - - // last occurred error - LastError string `json:"lastError,omitempty"` - - // whether there has been at least one non-NoRetryError - RetryError bool `json:"retryError,omitempty"` - - // average speed in bytes/sec since start of the process - Speed float64 `json:"speed,omitempty"` - - // an array of currently active file transfers - Transferring []*StatsTransferringItems0 `json:"transferring"` - - // number of transferred files - Transfers int64 `json:"transfers,omitempty"` -} - -// Validate validates this stats -func (m *Stats) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateTransferring(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *Stats) validateTransferring(formats strfmt.Registry) error { - - if swag.IsZero(m.Transferring) { // not required - return nil - } - - for i := 0; i < len(m.Transferring); i++ { - if swag.IsZero(m.Transferring[i]) { // not required - continue - } - - if m.Transferring[i] != nil { - if err := m.Transferring[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("transferring" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *Stats) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Stats) UnmarshalBinary(b []byte) error { - var res Stats - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} - -// StatsTransferringItems0 stats transferring items0 -// -// swagger:model StatsTransferringItems0 -type StatsTransferringItems0 struct { - - // total transferred bytes for this file - Bytes int64 `json:"bytes,omitempty"` - - // estimated time in seconds until file transfer completion - Eta float64 `json:"eta,omitempty"` - - // name of the file - Name string `json:"name,omitempty"` - - // progress of the file transfer in percent - Percentage float64 `json:"percentage,omitempty"` - - // size of the file in bytes - Size int64 `json:"size,omitempty"` - - // speed in bytes/sec - Speed float64 `json:"speed,omitempty"` - - // speed in bytes/sec as an exponentially weighted moving average - SpeedAvg float64 `json:"speedAvg,omitempty"` -} - -// Validate validates this stats transferring items0 -func (m *StatsTransferringItems0) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *StatsTransferringItems0) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *StatsTransferringItems0) UnmarshalBinary(b []byte) error { - var res StatsTransferringItems0 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/stats_params.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/stats_params.go deleted file mode 100644 index e47cdc7438..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/stats_params.go +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// StatsParams stats params -// -// swagger:model StatsParams -type StatsParams struct { - - // group name - Group string `json:"group,omitempty"` -} - -// Validate validates this stats params -func (m *StatsParams) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *StatsParams) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *StatsParams) UnmarshalBinary(b []byte) error { - var res StatsParams - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/transfer.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/transfer.go deleted file mode 100644 index f537796905..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/transfer.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// Transfer transfer -// -// swagger:model Transfer -type Transfer struct { - - // total transferred bytes for this file - Bytes int64 `json:"bytes,omitempty"` - - // if the transfer is only checked (skipped, deleted) - Checked bool `json:"checked,omitempty"` - - // time at which transfer completed - // Format: date-time - CompletedAt strfmt.DateTime `json:"completed_at,omitempty"` - - // string description of the error (empty if successful) - Error string `json:"error,omitempty"` - - // name of the file - Name string `json:"name,omitempty"` - - // size of the file in bytes - Size int64 `json:"size,omitempty"` - - // time at which transfer started - // Format: date-time - StartedAt strfmt.DateTime `json:"started_at,omitempty"` -} - -// Validate validates this transfer -func (m *Transfer) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateCompletedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStartedAt(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *Transfer) validateCompletedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.CompletedAt) { // not required - return nil - } - - if err := validate.FormatOf("completed_at", "body", "date-time", m.CompletedAt.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *Transfer) validateStartedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.StartedAt) { // not required - return nil - } - - if err := validate.FormatOf("started_at", "body", "date-time", m.StartedAt.String(), formats); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *Transfer) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Transfer) UnmarshalBinary(b []byte) error { - var res Transfer - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/transfers.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/transfers.go deleted file mode 100644 index 45422b1b06..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models/transfers.go +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// Transfers transfers -// -// swagger:model Transfers -type Transfers struct { - - // The number of file transfers to run in parallel - Transfers int64 `json:"transfers,omitempty"` -} - -// Validate validates this transfers -func (m *Transfers) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *Transfers) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Transfers) UnmarshalBinary(b []byte) error { - var res Transfers - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/delete_cluster_cluster_id_backups_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/delete_cluster_cluster_id_backups_parameters.go deleted file mode 100644 index fb501e32f5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/delete_cluster_cluster_id_backups_parameters.go +++ /dev/null @@ -1,176 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewDeleteClusterClusterIDBackupsParams creates a new DeleteClusterClusterIDBackupsParams object -// with the default values initialized. -func NewDeleteClusterClusterIDBackupsParams() *DeleteClusterClusterIDBackupsParams { - var () - return &DeleteClusterClusterIDBackupsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewDeleteClusterClusterIDBackupsParamsWithTimeout creates a new DeleteClusterClusterIDBackupsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewDeleteClusterClusterIDBackupsParamsWithTimeout(timeout time.Duration) *DeleteClusterClusterIDBackupsParams { - var () - return &DeleteClusterClusterIDBackupsParams{ - - timeout: timeout, - } -} - -// NewDeleteClusterClusterIDBackupsParamsWithContext creates a new DeleteClusterClusterIDBackupsParams object -// with the default values initialized, and the ability to set a context for a request -func NewDeleteClusterClusterIDBackupsParamsWithContext(ctx context.Context) *DeleteClusterClusterIDBackupsParams { - var () - return &DeleteClusterClusterIDBackupsParams{ - - Context: ctx, - } -} - -// NewDeleteClusterClusterIDBackupsParamsWithHTTPClient creates a new DeleteClusterClusterIDBackupsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewDeleteClusterClusterIDBackupsParamsWithHTTPClient(client *http.Client) *DeleteClusterClusterIDBackupsParams { - var () - return &DeleteClusterClusterIDBackupsParams{ - HTTPClient: client, - } -} - -/* -DeleteClusterClusterIDBackupsParams contains all the parameters to send to the API endpoint -for the delete cluster cluster ID backups operation typically these are written to a http.Request -*/ -type DeleteClusterClusterIDBackupsParams struct { - - /*ClusterID*/ - ClusterID string - /*Locations*/ - Locations []string - /*SnapshotTags*/ - SnapshotTags []string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the delete cluster cluster ID backups params -func (o *DeleteClusterClusterIDBackupsParams) WithTimeout(timeout time.Duration) *DeleteClusterClusterIDBackupsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the delete cluster cluster ID backups params -func (o *DeleteClusterClusterIDBackupsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the delete cluster cluster ID backups params -func (o *DeleteClusterClusterIDBackupsParams) WithContext(ctx context.Context) *DeleteClusterClusterIDBackupsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the delete cluster cluster ID backups params -func (o *DeleteClusterClusterIDBackupsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the delete cluster cluster ID backups params -func (o *DeleteClusterClusterIDBackupsParams) WithHTTPClient(client *http.Client) *DeleteClusterClusterIDBackupsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the delete cluster cluster ID backups params -func (o *DeleteClusterClusterIDBackupsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the delete cluster cluster ID backups params -func (o *DeleteClusterClusterIDBackupsParams) WithClusterID(clusterID string) *DeleteClusterClusterIDBackupsParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the delete cluster cluster ID backups params -func (o *DeleteClusterClusterIDBackupsParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithLocations adds the locations to the delete cluster cluster ID backups params -func (o *DeleteClusterClusterIDBackupsParams) WithLocations(locations []string) *DeleteClusterClusterIDBackupsParams { - o.SetLocations(locations) - return o -} - -// SetLocations adds the locations to the delete cluster cluster ID backups params -func (o *DeleteClusterClusterIDBackupsParams) SetLocations(locations []string) { - o.Locations = locations -} - -// WithSnapshotTags adds the snapshotTags to the delete cluster cluster ID backups params -func (o *DeleteClusterClusterIDBackupsParams) WithSnapshotTags(snapshotTags []string) *DeleteClusterClusterIDBackupsParams { - o.SetSnapshotTags(snapshotTags) - return o -} - -// SetSnapshotTags adds the snapshotTags to the delete cluster cluster ID backups params -func (o *DeleteClusterClusterIDBackupsParams) SetSnapshotTags(snapshotTags []string) { - o.SnapshotTags = snapshotTags -} - -// WriteToRequest writes these params to a swagger request -func (o *DeleteClusterClusterIDBackupsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - valuesLocations := o.Locations - - joinedLocations := swag.JoinByFormat(valuesLocations, "") - // query array param locations - if err := r.SetQueryParam("locations", joinedLocations...); err != nil { - return err - } - - valuesSnapshotTags := o.SnapshotTags - - joinedSnapshotTags := swag.JoinByFormat(valuesSnapshotTags, "") - // query array param snapshot_tags - if err := r.SetQueryParam("snapshot_tags", joinedSnapshotTags...); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/delete_cluster_cluster_id_backups_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/delete_cluster_cluster_id_backups_responses.go deleted file mode 100644 index fe6bdb3c58..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/delete_cluster_cluster_id_backups_responses.go +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// DeleteClusterClusterIDBackupsReader is a Reader for the DeleteClusterClusterIDBackups structure. -type DeleteClusterClusterIDBackupsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *DeleteClusterClusterIDBackupsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewDeleteClusterClusterIDBackupsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewDeleteClusterClusterIDBackupsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewDeleteClusterClusterIDBackupsOK creates a DeleteClusterClusterIDBackupsOK with default headers values -func NewDeleteClusterClusterIDBackupsOK() *DeleteClusterClusterIDBackupsOK { - return &DeleteClusterClusterIDBackupsOK{} -} - -/* -DeleteClusterClusterIDBackupsOK handles this case with default header values. - -OK -*/ -type DeleteClusterClusterIDBackupsOK struct { -} - -func (o *DeleteClusterClusterIDBackupsOK) Error() string { - return fmt.Sprintf("[DELETE /cluster/{cluster_id}/backups][%d] deleteClusterClusterIdBackupsOK ", 200) -} - -func (o *DeleteClusterClusterIDBackupsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewDeleteClusterClusterIDBackupsDefault creates a DeleteClusterClusterIDBackupsDefault with default headers values -func NewDeleteClusterClusterIDBackupsDefault(code int) *DeleteClusterClusterIDBackupsDefault { - return &DeleteClusterClusterIDBackupsDefault{ - _statusCode: code, - } -} - -/* -DeleteClusterClusterIDBackupsDefault handles this case with default header values. - -Error -*/ -type DeleteClusterClusterIDBackupsDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the delete cluster cluster ID backups default response -func (o *DeleteClusterClusterIDBackupsDefault) Code() int { - return o._statusCode -} - -func (o *DeleteClusterClusterIDBackupsDefault) Error() string { - return fmt.Sprintf("[DELETE /cluster/{cluster_id}/backups][%d] DeleteClusterClusterIDBackups default %+v", o._statusCode, o.Payload) -} - -func (o *DeleteClusterClusterIDBackupsDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *DeleteClusterClusterIDBackupsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/delete_cluster_cluster_id_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/delete_cluster_cluster_id_parameters.go deleted file mode 100644 index 702af9acf9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/delete_cluster_cluster_id_parameters.go +++ /dev/null @@ -1,221 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewDeleteClusterClusterIDParams creates a new DeleteClusterClusterIDParams object -// with the default values initialized. -func NewDeleteClusterClusterIDParams() *DeleteClusterClusterIDParams { - var () - return &DeleteClusterClusterIDParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewDeleteClusterClusterIDParamsWithTimeout creates a new DeleteClusterClusterIDParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewDeleteClusterClusterIDParamsWithTimeout(timeout time.Duration) *DeleteClusterClusterIDParams { - var () - return &DeleteClusterClusterIDParams{ - - timeout: timeout, - } -} - -// NewDeleteClusterClusterIDParamsWithContext creates a new DeleteClusterClusterIDParams object -// with the default values initialized, and the ability to set a context for a request -func NewDeleteClusterClusterIDParamsWithContext(ctx context.Context) *DeleteClusterClusterIDParams { - var () - return &DeleteClusterClusterIDParams{ - - Context: ctx, - } -} - -// NewDeleteClusterClusterIDParamsWithHTTPClient creates a new DeleteClusterClusterIDParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewDeleteClusterClusterIDParamsWithHTTPClient(client *http.Client) *DeleteClusterClusterIDParams { - var () - return &DeleteClusterClusterIDParams{ - HTTPClient: client, - } -} - -/* -DeleteClusterClusterIDParams contains all the parameters to send to the API endpoint -for the delete cluster cluster ID operation typically these are written to a http.Request -*/ -type DeleteClusterClusterIDParams struct { - - /*AlternatorCreds*/ - AlternatorCreds *bool - /*ClusterID*/ - ClusterID string - /*CqlCreds*/ - CqlCreds *bool - /*SslUserCert*/ - SslUserCert *bool - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the delete cluster cluster ID params -func (o *DeleteClusterClusterIDParams) WithTimeout(timeout time.Duration) *DeleteClusterClusterIDParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the delete cluster cluster ID params -func (o *DeleteClusterClusterIDParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the delete cluster cluster ID params -func (o *DeleteClusterClusterIDParams) WithContext(ctx context.Context) *DeleteClusterClusterIDParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the delete cluster cluster ID params -func (o *DeleteClusterClusterIDParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the delete cluster cluster ID params -func (o *DeleteClusterClusterIDParams) WithHTTPClient(client *http.Client) *DeleteClusterClusterIDParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the delete cluster cluster ID params -func (o *DeleteClusterClusterIDParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAlternatorCreds adds the alternatorCreds to the delete cluster cluster ID params -func (o *DeleteClusterClusterIDParams) WithAlternatorCreds(alternatorCreds *bool) *DeleteClusterClusterIDParams { - o.SetAlternatorCreds(alternatorCreds) - return o -} - -// SetAlternatorCreds adds the alternatorCreds to the delete cluster cluster ID params -func (o *DeleteClusterClusterIDParams) SetAlternatorCreds(alternatorCreds *bool) { - o.AlternatorCreds = alternatorCreds -} - -// WithClusterID adds the clusterID to the delete cluster cluster ID params -func (o *DeleteClusterClusterIDParams) WithClusterID(clusterID string) *DeleteClusterClusterIDParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the delete cluster cluster ID params -func (o *DeleteClusterClusterIDParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithCqlCreds adds the cqlCreds to the delete cluster cluster ID params -func (o *DeleteClusterClusterIDParams) WithCqlCreds(cqlCreds *bool) *DeleteClusterClusterIDParams { - o.SetCqlCreds(cqlCreds) - return o -} - -// SetCqlCreds adds the cqlCreds to the delete cluster cluster ID params -func (o *DeleteClusterClusterIDParams) SetCqlCreds(cqlCreds *bool) { - o.CqlCreds = cqlCreds -} - -// WithSslUserCert adds the sslUserCert to the delete cluster cluster ID params -func (o *DeleteClusterClusterIDParams) WithSslUserCert(sslUserCert *bool) *DeleteClusterClusterIDParams { - o.SetSslUserCert(sslUserCert) - return o -} - -// SetSslUserCert adds the sslUserCert to the delete cluster cluster ID params -func (o *DeleteClusterClusterIDParams) SetSslUserCert(sslUserCert *bool) { - o.SslUserCert = sslUserCert -} - -// WriteToRequest writes these params to a swagger request -func (o *DeleteClusterClusterIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.AlternatorCreds != nil { - - // query param alternator_creds - var qrAlternatorCreds bool - if o.AlternatorCreds != nil { - qrAlternatorCreds = *o.AlternatorCreds - } - qAlternatorCreds := swag.FormatBool(qrAlternatorCreds) - if qAlternatorCreds != "" { - if err := r.SetQueryParam("alternator_creds", qAlternatorCreds); err != nil { - return err - } - } - - } - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - if o.CqlCreds != nil { - - // query param cql_creds - var qrCqlCreds bool - if o.CqlCreds != nil { - qrCqlCreds = *o.CqlCreds - } - qCqlCreds := swag.FormatBool(qrCqlCreds) - if qCqlCreds != "" { - if err := r.SetQueryParam("cql_creds", qCqlCreds); err != nil { - return err - } - } - - } - - if o.SslUserCert != nil { - - // query param ssl_user_cert - var qrSslUserCert bool - if o.SslUserCert != nil { - qrSslUserCert = *o.SslUserCert - } - qSslUserCert := swag.FormatBool(qrSslUserCert) - if qSslUserCert != "" { - if err := r.SetQueryParam("ssl_user_cert", qSslUserCert); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/delete_cluster_cluster_id_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/delete_cluster_cluster_id_responses.go deleted file mode 100644 index cfb172cfa6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/delete_cluster_cluster_id_responses.go +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// DeleteClusterClusterIDReader is a Reader for the DeleteClusterClusterID structure. -type DeleteClusterClusterIDReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *DeleteClusterClusterIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewDeleteClusterClusterIDOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewDeleteClusterClusterIDDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewDeleteClusterClusterIDOK creates a DeleteClusterClusterIDOK with default headers values -func NewDeleteClusterClusterIDOK() *DeleteClusterClusterIDOK { - return &DeleteClusterClusterIDOK{} -} - -/* -DeleteClusterClusterIDOK handles this case with default header values. - -Cluster deleted -*/ -type DeleteClusterClusterIDOK struct { -} - -func (o *DeleteClusterClusterIDOK) Error() string { - return fmt.Sprintf("[DELETE /cluster/{cluster_id}][%d] deleteClusterClusterIdOK ", 200) -} - -func (o *DeleteClusterClusterIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewDeleteClusterClusterIDDefault creates a DeleteClusterClusterIDDefault with default headers values -func NewDeleteClusterClusterIDDefault(code int) *DeleteClusterClusterIDDefault { - return &DeleteClusterClusterIDDefault{ - _statusCode: code, - } -} - -/* -DeleteClusterClusterIDDefault handles this case with default header values. - -Error -*/ -type DeleteClusterClusterIDDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the delete cluster cluster ID default response -func (o *DeleteClusterClusterIDDefault) Code() int { - return o._statusCode -} - -func (o *DeleteClusterClusterIDDefault) Error() string { - return fmt.Sprintf("[DELETE /cluster/{cluster_id}][%d] DeleteClusterClusterID default %+v", o._statusCode, o.Payload) -} - -func (o *DeleteClusterClusterIDDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *DeleteClusterClusterIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/delete_cluster_cluster_id_task_task_type_task_id_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/delete_cluster_cluster_id_task_task_type_task_id_parameters.go deleted file mode 100644 index 53d17dad4b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/delete_cluster_cluster_id_task_task_type_task_id_parameters.go +++ /dev/null @@ -1,169 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewDeleteClusterClusterIDTaskTaskTypeTaskIDParams creates a new DeleteClusterClusterIDTaskTaskTypeTaskIDParams object -// with the default values initialized. -func NewDeleteClusterClusterIDTaskTaskTypeTaskIDParams() *DeleteClusterClusterIDTaskTaskTypeTaskIDParams { - var () - return &DeleteClusterClusterIDTaskTaskTypeTaskIDParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewDeleteClusterClusterIDTaskTaskTypeTaskIDParamsWithTimeout creates a new DeleteClusterClusterIDTaskTaskTypeTaskIDParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewDeleteClusterClusterIDTaskTaskTypeTaskIDParamsWithTimeout(timeout time.Duration) *DeleteClusterClusterIDTaskTaskTypeTaskIDParams { - var () - return &DeleteClusterClusterIDTaskTaskTypeTaskIDParams{ - - timeout: timeout, - } -} - -// NewDeleteClusterClusterIDTaskTaskTypeTaskIDParamsWithContext creates a new DeleteClusterClusterIDTaskTaskTypeTaskIDParams object -// with the default values initialized, and the ability to set a context for a request -func NewDeleteClusterClusterIDTaskTaskTypeTaskIDParamsWithContext(ctx context.Context) *DeleteClusterClusterIDTaskTaskTypeTaskIDParams { - var () - return &DeleteClusterClusterIDTaskTaskTypeTaskIDParams{ - - Context: ctx, - } -} - -// NewDeleteClusterClusterIDTaskTaskTypeTaskIDParamsWithHTTPClient creates a new DeleteClusterClusterIDTaskTaskTypeTaskIDParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewDeleteClusterClusterIDTaskTaskTypeTaskIDParamsWithHTTPClient(client *http.Client) *DeleteClusterClusterIDTaskTaskTypeTaskIDParams { - var () - return &DeleteClusterClusterIDTaskTaskTypeTaskIDParams{ - HTTPClient: client, - } -} - -/* -DeleteClusterClusterIDTaskTaskTypeTaskIDParams contains all the parameters to send to the API endpoint -for the delete cluster cluster ID task task type task ID operation typically these are written to a http.Request -*/ -type DeleteClusterClusterIDTaskTaskTypeTaskIDParams struct { - - /*ClusterID*/ - ClusterID string - /*TaskID*/ - TaskID string - /*TaskType*/ - TaskType string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the delete cluster cluster ID task task type task ID params -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDParams) WithTimeout(timeout time.Duration) *DeleteClusterClusterIDTaskTaskTypeTaskIDParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the delete cluster cluster ID task task type task ID params -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the delete cluster cluster ID task task type task ID params -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDParams) WithContext(ctx context.Context) *DeleteClusterClusterIDTaskTaskTypeTaskIDParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the delete cluster cluster ID task task type task ID params -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the delete cluster cluster ID task task type task ID params -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDParams) WithHTTPClient(client *http.Client) *DeleteClusterClusterIDTaskTaskTypeTaskIDParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the delete cluster cluster ID task task type task ID params -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the delete cluster cluster ID task task type task ID params -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDParams) WithClusterID(clusterID string) *DeleteClusterClusterIDTaskTaskTypeTaskIDParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the delete cluster cluster ID task task type task ID params -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithTaskID adds the taskID to the delete cluster cluster ID task task type task ID params -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDParams) WithTaskID(taskID string) *DeleteClusterClusterIDTaskTaskTypeTaskIDParams { - o.SetTaskID(taskID) - return o -} - -// SetTaskID adds the taskId to the delete cluster cluster ID task task type task ID params -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDParams) SetTaskID(taskID string) { - o.TaskID = taskID -} - -// WithTaskType adds the taskType to the delete cluster cluster ID task task type task ID params -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDParams) WithTaskType(taskType string) *DeleteClusterClusterIDTaskTaskTypeTaskIDParams { - o.SetTaskType(taskType) - return o -} - -// SetTaskType adds the taskType to the delete cluster cluster ID task task type task ID params -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDParams) SetTaskType(taskType string) { - o.TaskType = taskType -} - -// WriteToRequest writes these params to a swagger request -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - // path param task_id - if err := r.SetPathParam("task_id", o.TaskID); err != nil { - return err - } - - // path param task_type - if err := r.SetPathParam("task_type", o.TaskType); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/delete_cluster_cluster_id_task_task_type_task_id_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/delete_cluster_cluster_id_task_task_type_task_id_responses.go deleted file mode 100644 index 096fe4fe1d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/delete_cluster_cluster_id_task_task_type_task_id_responses.go +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// DeleteClusterClusterIDTaskTaskTypeTaskIDReader is a Reader for the DeleteClusterClusterIDTaskTaskTypeTaskID structure. -type DeleteClusterClusterIDTaskTaskTypeTaskIDReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewDeleteClusterClusterIDTaskTaskTypeTaskIDOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewDeleteClusterClusterIDTaskTaskTypeTaskIDDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewDeleteClusterClusterIDTaskTaskTypeTaskIDOK creates a DeleteClusterClusterIDTaskTaskTypeTaskIDOK with default headers values -func NewDeleteClusterClusterIDTaskTaskTypeTaskIDOK() *DeleteClusterClusterIDTaskTaskTypeTaskIDOK { - return &DeleteClusterClusterIDTaskTaskTypeTaskIDOK{} -} - -/* -DeleteClusterClusterIDTaskTaskTypeTaskIDOK handles this case with default header values. - -Task deleted -*/ -type DeleteClusterClusterIDTaskTaskTypeTaskIDOK struct { -} - -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDOK) Error() string { - return fmt.Sprintf("[DELETE /cluster/{cluster_id}/task/{task_type}/{task_id}][%d] deleteClusterClusterIdTaskTaskTypeTaskIdOK ", 200) -} - -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewDeleteClusterClusterIDTaskTaskTypeTaskIDDefault creates a DeleteClusterClusterIDTaskTaskTypeTaskIDDefault with default headers values -func NewDeleteClusterClusterIDTaskTaskTypeTaskIDDefault(code int) *DeleteClusterClusterIDTaskTaskTypeTaskIDDefault { - return &DeleteClusterClusterIDTaskTaskTypeTaskIDDefault{ - _statusCode: code, - } -} - -/* -DeleteClusterClusterIDTaskTaskTypeTaskIDDefault handles this case with default header values. - -Error -*/ -type DeleteClusterClusterIDTaskTaskTypeTaskIDDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the delete cluster cluster ID task task type task ID default response -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDDefault) Code() int { - return o._statusCode -} - -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDDefault) Error() string { - return fmt.Sprintf("[DELETE /cluster/{cluster_id}/task/{task_type}/{task_id}][%d] DeleteClusterClusterIDTaskTaskTypeTaskID default %+v", o._statusCode, o.Payload) -} - -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *DeleteClusterClusterIDTaskTaskTypeTaskIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_backups_files_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_backups_files_parameters.go deleted file mode 100644 index 6e193dac42..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_backups_files_parameters.go +++ /dev/null @@ -1,227 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewGetClusterClusterIDBackupsFilesParams creates a new GetClusterClusterIDBackupsFilesParams object -// with the default values initialized. -func NewGetClusterClusterIDBackupsFilesParams() *GetClusterClusterIDBackupsFilesParams { - var () - return &GetClusterClusterIDBackupsFilesParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetClusterClusterIDBackupsFilesParamsWithTimeout creates a new GetClusterClusterIDBackupsFilesParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetClusterClusterIDBackupsFilesParamsWithTimeout(timeout time.Duration) *GetClusterClusterIDBackupsFilesParams { - var () - return &GetClusterClusterIDBackupsFilesParams{ - - timeout: timeout, - } -} - -// NewGetClusterClusterIDBackupsFilesParamsWithContext creates a new GetClusterClusterIDBackupsFilesParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetClusterClusterIDBackupsFilesParamsWithContext(ctx context.Context) *GetClusterClusterIDBackupsFilesParams { - var () - return &GetClusterClusterIDBackupsFilesParams{ - - Context: ctx, - } -} - -// NewGetClusterClusterIDBackupsFilesParamsWithHTTPClient creates a new GetClusterClusterIDBackupsFilesParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetClusterClusterIDBackupsFilesParamsWithHTTPClient(client *http.Client) *GetClusterClusterIDBackupsFilesParams { - var () - return &GetClusterClusterIDBackupsFilesParams{ - HTTPClient: client, - } -} - -/* -GetClusterClusterIDBackupsFilesParams contains all the parameters to send to the API endpoint -for the get cluster cluster ID backups files operation typically these are written to a http.Request -*/ -type GetClusterClusterIDBackupsFilesParams struct { - - /*ClusterID*/ - ClusterID string - /*Keyspace*/ - Keyspace []string - /*Locations*/ - Locations []string - /*QueryClusterID*/ - QueryClusterID *string - /*SnapshotTag*/ - SnapshotTag string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get cluster cluster ID backups files params -func (o *GetClusterClusterIDBackupsFilesParams) WithTimeout(timeout time.Duration) *GetClusterClusterIDBackupsFilesParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get cluster cluster ID backups files params -func (o *GetClusterClusterIDBackupsFilesParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get cluster cluster ID backups files params -func (o *GetClusterClusterIDBackupsFilesParams) WithContext(ctx context.Context) *GetClusterClusterIDBackupsFilesParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get cluster cluster ID backups files params -func (o *GetClusterClusterIDBackupsFilesParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get cluster cluster ID backups files params -func (o *GetClusterClusterIDBackupsFilesParams) WithHTTPClient(client *http.Client) *GetClusterClusterIDBackupsFilesParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get cluster cluster ID backups files params -func (o *GetClusterClusterIDBackupsFilesParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the get cluster cluster ID backups files params -func (o *GetClusterClusterIDBackupsFilesParams) WithClusterID(clusterID string) *GetClusterClusterIDBackupsFilesParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the get cluster cluster ID backups files params -func (o *GetClusterClusterIDBackupsFilesParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithKeyspace adds the keyspace to the get cluster cluster ID backups files params -func (o *GetClusterClusterIDBackupsFilesParams) WithKeyspace(keyspace []string) *GetClusterClusterIDBackupsFilesParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the get cluster cluster ID backups files params -func (o *GetClusterClusterIDBackupsFilesParams) SetKeyspace(keyspace []string) { - o.Keyspace = keyspace -} - -// WithLocations adds the locations to the get cluster cluster ID backups files params -func (o *GetClusterClusterIDBackupsFilesParams) WithLocations(locations []string) *GetClusterClusterIDBackupsFilesParams { - o.SetLocations(locations) - return o -} - -// SetLocations adds the locations to the get cluster cluster ID backups files params -func (o *GetClusterClusterIDBackupsFilesParams) SetLocations(locations []string) { - o.Locations = locations -} - -// WithQueryClusterID adds the queryClusterID to the get cluster cluster ID backups files params -func (o *GetClusterClusterIDBackupsFilesParams) WithQueryClusterID(queryClusterID *string) *GetClusterClusterIDBackupsFilesParams { - o.SetQueryClusterID(queryClusterID) - return o -} - -// SetQueryClusterID adds the queryClusterId to the get cluster cluster ID backups files params -func (o *GetClusterClusterIDBackupsFilesParams) SetQueryClusterID(queryClusterID *string) { - o.QueryClusterID = queryClusterID -} - -// WithSnapshotTag adds the snapshotTag to the get cluster cluster ID backups files params -func (o *GetClusterClusterIDBackupsFilesParams) WithSnapshotTag(snapshotTag string) *GetClusterClusterIDBackupsFilesParams { - o.SetSnapshotTag(snapshotTag) - return o -} - -// SetSnapshotTag adds the snapshotTag to the get cluster cluster ID backups files params -func (o *GetClusterClusterIDBackupsFilesParams) SetSnapshotTag(snapshotTag string) { - o.SnapshotTag = snapshotTag -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClusterClusterIDBackupsFilesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - valuesKeyspace := o.Keyspace - - joinedKeyspace := swag.JoinByFormat(valuesKeyspace, "") - // query array param keyspace - if err := r.SetQueryParam("keyspace", joinedKeyspace...); err != nil { - return err - } - - valuesLocations := o.Locations - - joinedLocations := swag.JoinByFormat(valuesLocations, "") - // query array param locations - if err := r.SetQueryParam("locations", joinedLocations...); err != nil { - return err - } - - if o.QueryClusterID != nil { - - // query param query_cluster_id - var qrQueryClusterID string - if o.QueryClusterID != nil { - qrQueryClusterID = *o.QueryClusterID - } - qQueryClusterID := qrQueryClusterID - if qQueryClusterID != "" { - if err := r.SetQueryParam("query_cluster_id", qQueryClusterID); err != nil { - return err - } - } - - } - - // query param snapshot_tag - qrSnapshotTag := o.SnapshotTag - qSnapshotTag := qrSnapshotTag - if qSnapshotTag != "" { - if err := r.SetQueryParam("snapshot_tag", qSnapshotTag); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_backups_files_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_backups_files_responses.go deleted file mode 100644 index afa118eb8c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_backups_files_responses.go +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetClusterClusterIDBackupsFilesReader is a Reader for the GetClusterClusterIDBackupsFiles structure. -type GetClusterClusterIDBackupsFilesReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClusterClusterIDBackupsFilesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClusterClusterIDBackupsFilesOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetClusterClusterIDBackupsFilesDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetClusterClusterIDBackupsFilesOK creates a GetClusterClusterIDBackupsFilesOK with default headers values -func NewGetClusterClusterIDBackupsFilesOK() *GetClusterClusterIDBackupsFilesOK { - return &GetClusterClusterIDBackupsFilesOK{} -} - -/* -GetClusterClusterIDBackupsFilesOK handles this case with default header values. - -Backup list -*/ -type GetClusterClusterIDBackupsFilesOK struct { - Payload []*models.BackupFilesInfo -} - -func (o *GetClusterClusterIDBackupsFilesOK) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/backups/files][%d] getClusterClusterIdBackupsFilesOK %+v", 200, o.Payload) -} - -func (o *GetClusterClusterIDBackupsFilesOK) GetPayload() []*models.BackupFilesInfo { - return o.Payload -} - -func (o *GetClusterClusterIDBackupsFilesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterClusterIDBackupsFilesDefault creates a GetClusterClusterIDBackupsFilesDefault with default headers values -func NewGetClusterClusterIDBackupsFilesDefault(code int) *GetClusterClusterIDBackupsFilesDefault { - return &GetClusterClusterIDBackupsFilesDefault{ - _statusCode: code, - } -} - -/* -GetClusterClusterIDBackupsFilesDefault handles this case with default header values. - -Error -*/ -type GetClusterClusterIDBackupsFilesDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get cluster cluster ID backups files default response -func (o *GetClusterClusterIDBackupsFilesDefault) Code() int { - return o._statusCode -} - -func (o *GetClusterClusterIDBackupsFilesDefault) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/backups/files][%d] GetClusterClusterIDBackupsFiles default %+v", o._statusCode, o.Payload) -} - -func (o *GetClusterClusterIDBackupsFilesDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetClusterClusterIDBackupsFilesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_backups_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_backups_parameters.go deleted file mode 100644 index c76f50740d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_backups_parameters.go +++ /dev/null @@ -1,263 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewGetClusterClusterIDBackupsParams creates a new GetClusterClusterIDBackupsParams object -// with the default values initialized. -func NewGetClusterClusterIDBackupsParams() *GetClusterClusterIDBackupsParams { - var () - return &GetClusterClusterIDBackupsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetClusterClusterIDBackupsParamsWithTimeout creates a new GetClusterClusterIDBackupsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetClusterClusterIDBackupsParamsWithTimeout(timeout time.Duration) *GetClusterClusterIDBackupsParams { - var () - return &GetClusterClusterIDBackupsParams{ - - timeout: timeout, - } -} - -// NewGetClusterClusterIDBackupsParamsWithContext creates a new GetClusterClusterIDBackupsParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetClusterClusterIDBackupsParamsWithContext(ctx context.Context) *GetClusterClusterIDBackupsParams { - var () - return &GetClusterClusterIDBackupsParams{ - - Context: ctx, - } -} - -// NewGetClusterClusterIDBackupsParamsWithHTTPClient creates a new GetClusterClusterIDBackupsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetClusterClusterIDBackupsParamsWithHTTPClient(client *http.Client) *GetClusterClusterIDBackupsParams { - var () - return &GetClusterClusterIDBackupsParams{ - HTTPClient: client, - } -} - -/* -GetClusterClusterIDBackupsParams contains all the parameters to send to the API endpoint -for the get cluster cluster ID backups operation typically these are written to a http.Request -*/ -type GetClusterClusterIDBackupsParams struct { - - /*ClusterID*/ - ClusterID string - /*Keyspace*/ - Keyspace []string - /*Locations*/ - Locations []string - /*MaxDate*/ - MaxDate *strfmt.DateTime - /*MinDate*/ - MinDate *strfmt.DateTime - /*QueryClusterID*/ - QueryClusterID *string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get cluster cluster ID backups params -func (o *GetClusterClusterIDBackupsParams) WithTimeout(timeout time.Duration) *GetClusterClusterIDBackupsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get cluster cluster ID backups params -func (o *GetClusterClusterIDBackupsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get cluster cluster ID backups params -func (o *GetClusterClusterIDBackupsParams) WithContext(ctx context.Context) *GetClusterClusterIDBackupsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get cluster cluster ID backups params -func (o *GetClusterClusterIDBackupsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get cluster cluster ID backups params -func (o *GetClusterClusterIDBackupsParams) WithHTTPClient(client *http.Client) *GetClusterClusterIDBackupsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get cluster cluster ID backups params -func (o *GetClusterClusterIDBackupsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the get cluster cluster ID backups params -func (o *GetClusterClusterIDBackupsParams) WithClusterID(clusterID string) *GetClusterClusterIDBackupsParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the get cluster cluster ID backups params -func (o *GetClusterClusterIDBackupsParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithKeyspace adds the keyspace to the get cluster cluster ID backups params -func (o *GetClusterClusterIDBackupsParams) WithKeyspace(keyspace []string) *GetClusterClusterIDBackupsParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the get cluster cluster ID backups params -func (o *GetClusterClusterIDBackupsParams) SetKeyspace(keyspace []string) { - o.Keyspace = keyspace -} - -// WithLocations adds the locations to the get cluster cluster ID backups params -func (o *GetClusterClusterIDBackupsParams) WithLocations(locations []string) *GetClusterClusterIDBackupsParams { - o.SetLocations(locations) - return o -} - -// SetLocations adds the locations to the get cluster cluster ID backups params -func (o *GetClusterClusterIDBackupsParams) SetLocations(locations []string) { - o.Locations = locations -} - -// WithMaxDate adds the maxDate to the get cluster cluster ID backups params -func (o *GetClusterClusterIDBackupsParams) WithMaxDate(maxDate *strfmt.DateTime) *GetClusterClusterIDBackupsParams { - o.SetMaxDate(maxDate) - return o -} - -// SetMaxDate adds the maxDate to the get cluster cluster ID backups params -func (o *GetClusterClusterIDBackupsParams) SetMaxDate(maxDate *strfmt.DateTime) { - o.MaxDate = maxDate -} - -// WithMinDate adds the minDate to the get cluster cluster ID backups params -func (o *GetClusterClusterIDBackupsParams) WithMinDate(minDate *strfmt.DateTime) *GetClusterClusterIDBackupsParams { - o.SetMinDate(minDate) - return o -} - -// SetMinDate adds the minDate to the get cluster cluster ID backups params -func (o *GetClusterClusterIDBackupsParams) SetMinDate(minDate *strfmt.DateTime) { - o.MinDate = minDate -} - -// WithQueryClusterID adds the queryClusterID to the get cluster cluster ID backups params -func (o *GetClusterClusterIDBackupsParams) WithQueryClusterID(queryClusterID *string) *GetClusterClusterIDBackupsParams { - o.SetQueryClusterID(queryClusterID) - return o -} - -// SetQueryClusterID adds the queryClusterId to the get cluster cluster ID backups params -func (o *GetClusterClusterIDBackupsParams) SetQueryClusterID(queryClusterID *string) { - o.QueryClusterID = queryClusterID -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClusterClusterIDBackupsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - valuesKeyspace := o.Keyspace - - joinedKeyspace := swag.JoinByFormat(valuesKeyspace, "") - // query array param keyspace - if err := r.SetQueryParam("keyspace", joinedKeyspace...); err != nil { - return err - } - - valuesLocations := o.Locations - - joinedLocations := swag.JoinByFormat(valuesLocations, "") - // query array param locations - if err := r.SetQueryParam("locations", joinedLocations...); err != nil { - return err - } - - if o.MaxDate != nil { - - // query param max_date - var qrMaxDate strfmt.DateTime - if o.MaxDate != nil { - qrMaxDate = *o.MaxDate - } - qMaxDate := qrMaxDate.String() - if qMaxDate != "" { - if err := r.SetQueryParam("max_date", qMaxDate); err != nil { - return err - } - } - - } - - if o.MinDate != nil { - - // query param min_date - var qrMinDate strfmt.DateTime - if o.MinDate != nil { - qrMinDate = *o.MinDate - } - qMinDate := qrMinDate.String() - if qMinDate != "" { - if err := r.SetQueryParam("min_date", qMinDate); err != nil { - return err - } - } - - } - - if o.QueryClusterID != nil { - - // query param query_cluster_id - var qrQueryClusterID string - if o.QueryClusterID != nil { - qrQueryClusterID = *o.QueryClusterID - } - qQueryClusterID := qrQueryClusterID - if qQueryClusterID != "" { - if err := r.SetQueryParam("query_cluster_id", qQueryClusterID); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_backups_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_backups_responses.go deleted file mode 100644 index db0ace2b33..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_backups_responses.go +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetClusterClusterIDBackupsReader is a Reader for the GetClusterClusterIDBackups structure. -type GetClusterClusterIDBackupsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClusterClusterIDBackupsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClusterClusterIDBackupsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetClusterClusterIDBackupsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetClusterClusterIDBackupsOK creates a GetClusterClusterIDBackupsOK with default headers values -func NewGetClusterClusterIDBackupsOK() *GetClusterClusterIDBackupsOK { - return &GetClusterClusterIDBackupsOK{} -} - -/* -GetClusterClusterIDBackupsOK handles this case with default header values. - -Backup list -*/ -type GetClusterClusterIDBackupsOK struct { - Payload []*models.BackupListItem -} - -func (o *GetClusterClusterIDBackupsOK) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/backups][%d] getClusterClusterIdBackupsOK %+v", 200, o.Payload) -} - -func (o *GetClusterClusterIDBackupsOK) GetPayload() []*models.BackupListItem { - return o.Payload -} - -func (o *GetClusterClusterIDBackupsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterClusterIDBackupsDefault creates a GetClusterClusterIDBackupsDefault with default headers values -func NewGetClusterClusterIDBackupsDefault(code int) *GetClusterClusterIDBackupsDefault { - return &GetClusterClusterIDBackupsDefault{ - _statusCode: code, - } -} - -/* -GetClusterClusterIDBackupsDefault handles this case with default header values. - -Error -*/ -type GetClusterClusterIDBackupsDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get cluster cluster ID backups default response -func (o *GetClusterClusterIDBackupsDefault) Code() int { - return o._statusCode -} - -func (o *GetClusterClusterIDBackupsDefault) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/backups][%d] GetClusterClusterIDBackups default %+v", o._statusCode, o.Payload) -} - -func (o *GetClusterClusterIDBackupsDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetClusterClusterIDBackupsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_backups_schema_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_backups_schema_parameters.go deleted file mode 100644 index 9238e5853a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_backups_schema_parameters.go +++ /dev/null @@ -1,250 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetClusterClusterIDBackupsSchemaParams creates a new GetClusterClusterIDBackupsSchemaParams object -// with the default values initialized. -func NewGetClusterClusterIDBackupsSchemaParams() *GetClusterClusterIDBackupsSchemaParams { - var () - return &GetClusterClusterIDBackupsSchemaParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetClusterClusterIDBackupsSchemaParamsWithTimeout creates a new GetClusterClusterIDBackupsSchemaParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetClusterClusterIDBackupsSchemaParamsWithTimeout(timeout time.Duration) *GetClusterClusterIDBackupsSchemaParams { - var () - return &GetClusterClusterIDBackupsSchemaParams{ - - timeout: timeout, - } -} - -// NewGetClusterClusterIDBackupsSchemaParamsWithContext creates a new GetClusterClusterIDBackupsSchemaParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetClusterClusterIDBackupsSchemaParamsWithContext(ctx context.Context) *GetClusterClusterIDBackupsSchemaParams { - var () - return &GetClusterClusterIDBackupsSchemaParams{ - - Context: ctx, - } -} - -// NewGetClusterClusterIDBackupsSchemaParamsWithHTTPClient creates a new GetClusterClusterIDBackupsSchemaParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetClusterClusterIDBackupsSchemaParamsWithHTTPClient(client *http.Client) *GetClusterClusterIDBackupsSchemaParams { - var () - return &GetClusterClusterIDBackupsSchemaParams{ - HTTPClient: client, - } -} - -/* -GetClusterClusterIDBackupsSchemaParams contains all the parameters to send to the API endpoint -for the get cluster cluster ID backups schema operation typically these are written to a http.Request -*/ -type GetClusterClusterIDBackupsSchemaParams struct { - - /*ClusterID - ID of the cluster which will fetch backed up schema - - */ - ClusterID string - /*Location - Location of the backup which schema will be fetched. In case of a multi-location backup, any location can be specified - - */ - Location string - /*QueryClusterID - ID of the cluster which backed up schema will be fetched. Used for filtering purposes - - */ - QueryClusterID *string - /*QueryTaskID - ID of the task which backed up schema. Used for filtering purposes - - */ - QueryTaskID *string - /*SnapshotTag - Snapshot tag of the backup which schema will be fetched - - */ - SnapshotTag string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get cluster cluster ID backups schema params -func (o *GetClusterClusterIDBackupsSchemaParams) WithTimeout(timeout time.Duration) *GetClusterClusterIDBackupsSchemaParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get cluster cluster ID backups schema params -func (o *GetClusterClusterIDBackupsSchemaParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get cluster cluster ID backups schema params -func (o *GetClusterClusterIDBackupsSchemaParams) WithContext(ctx context.Context) *GetClusterClusterIDBackupsSchemaParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get cluster cluster ID backups schema params -func (o *GetClusterClusterIDBackupsSchemaParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get cluster cluster ID backups schema params -func (o *GetClusterClusterIDBackupsSchemaParams) WithHTTPClient(client *http.Client) *GetClusterClusterIDBackupsSchemaParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get cluster cluster ID backups schema params -func (o *GetClusterClusterIDBackupsSchemaParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the get cluster cluster ID backups schema params -func (o *GetClusterClusterIDBackupsSchemaParams) WithClusterID(clusterID string) *GetClusterClusterIDBackupsSchemaParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the get cluster cluster ID backups schema params -func (o *GetClusterClusterIDBackupsSchemaParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithLocation adds the location to the get cluster cluster ID backups schema params -func (o *GetClusterClusterIDBackupsSchemaParams) WithLocation(location string) *GetClusterClusterIDBackupsSchemaParams { - o.SetLocation(location) - return o -} - -// SetLocation adds the location to the get cluster cluster ID backups schema params -func (o *GetClusterClusterIDBackupsSchemaParams) SetLocation(location string) { - o.Location = location -} - -// WithQueryClusterID adds the queryClusterID to the get cluster cluster ID backups schema params -func (o *GetClusterClusterIDBackupsSchemaParams) WithQueryClusterID(queryClusterID *string) *GetClusterClusterIDBackupsSchemaParams { - o.SetQueryClusterID(queryClusterID) - return o -} - -// SetQueryClusterID adds the queryClusterId to the get cluster cluster ID backups schema params -func (o *GetClusterClusterIDBackupsSchemaParams) SetQueryClusterID(queryClusterID *string) { - o.QueryClusterID = queryClusterID -} - -// WithQueryTaskID adds the queryTaskID to the get cluster cluster ID backups schema params -func (o *GetClusterClusterIDBackupsSchemaParams) WithQueryTaskID(queryTaskID *string) *GetClusterClusterIDBackupsSchemaParams { - o.SetQueryTaskID(queryTaskID) - return o -} - -// SetQueryTaskID adds the queryTaskId to the get cluster cluster ID backups schema params -func (o *GetClusterClusterIDBackupsSchemaParams) SetQueryTaskID(queryTaskID *string) { - o.QueryTaskID = queryTaskID -} - -// WithSnapshotTag adds the snapshotTag to the get cluster cluster ID backups schema params -func (o *GetClusterClusterIDBackupsSchemaParams) WithSnapshotTag(snapshotTag string) *GetClusterClusterIDBackupsSchemaParams { - o.SetSnapshotTag(snapshotTag) - return o -} - -// SetSnapshotTag adds the snapshotTag to the get cluster cluster ID backups schema params -func (o *GetClusterClusterIDBackupsSchemaParams) SetSnapshotTag(snapshotTag string) { - o.SnapshotTag = snapshotTag -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClusterClusterIDBackupsSchemaParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - // query param location - qrLocation := o.Location - qLocation := qrLocation - if qLocation != "" { - if err := r.SetQueryParam("location", qLocation); err != nil { - return err - } - } - - if o.QueryClusterID != nil { - - // query param query_cluster_id - var qrQueryClusterID string - if o.QueryClusterID != nil { - qrQueryClusterID = *o.QueryClusterID - } - qQueryClusterID := qrQueryClusterID - if qQueryClusterID != "" { - if err := r.SetQueryParam("query_cluster_id", qQueryClusterID); err != nil { - return err - } - } - - } - - if o.QueryTaskID != nil { - - // query param query_task_id - var qrQueryTaskID string - if o.QueryTaskID != nil { - qrQueryTaskID = *o.QueryTaskID - } - qQueryTaskID := qrQueryTaskID - if qQueryTaskID != "" { - if err := r.SetQueryParam("query_task_id", qQueryTaskID); err != nil { - return err - } - } - - } - - // query param snapshot_tag - qrSnapshotTag := o.SnapshotTag - qSnapshotTag := qrSnapshotTag - if qSnapshotTag != "" { - if err := r.SetQueryParam("snapshot_tag", qSnapshotTag); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_backups_schema_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_backups_schema_responses.go deleted file mode 100644 index 9526c18469..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_backups_schema_responses.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetClusterClusterIDBackupsSchemaReader is a Reader for the GetClusterClusterIDBackupsSchema structure. -type GetClusterClusterIDBackupsSchemaReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClusterClusterIDBackupsSchemaReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClusterClusterIDBackupsSchemaOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetClusterClusterIDBackupsSchemaDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetClusterClusterIDBackupsSchemaOK creates a GetClusterClusterIDBackupsSchemaOK with default headers values -func NewGetClusterClusterIDBackupsSchemaOK() *GetClusterClusterIDBackupsSchemaOK { - return &GetClusterClusterIDBackupsSchemaOK{} -} - -/* -GetClusterClusterIDBackupsSchemaOK handles this case with default header values. - -Described schema -*/ -type GetClusterClusterIDBackupsSchemaOK struct { - Payload *models.BackupDescribeSchema -} - -func (o *GetClusterClusterIDBackupsSchemaOK) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/backups/schema][%d] getClusterClusterIdBackupsSchemaOK %+v", 200, o.Payload) -} - -func (o *GetClusterClusterIDBackupsSchemaOK) GetPayload() *models.BackupDescribeSchema { - return o.Payload -} - -func (o *GetClusterClusterIDBackupsSchemaOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.BackupDescribeSchema) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterClusterIDBackupsSchemaDefault creates a GetClusterClusterIDBackupsSchemaDefault with default headers values -func NewGetClusterClusterIDBackupsSchemaDefault(code int) *GetClusterClusterIDBackupsSchemaDefault { - return &GetClusterClusterIDBackupsSchemaDefault{ - _statusCode: code, - } -} - -/* -GetClusterClusterIDBackupsSchemaDefault handles this case with default header values. - -Error -*/ -type GetClusterClusterIDBackupsSchemaDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get cluster cluster ID backups schema default response -func (o *GetClusterClusterIDBackupsSchemaDefault) Code() int { - return o._statusCode -} - -func (o *GetClusterClusterIDBackupsSchemaDefault) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/backups/schema][%d] GetClusterClusterIDBackupsSchema default %+v", o._statusCode, o.Payload) -} - -func (o *GetClusterClusterIDBackupsSchemaDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetClusterClusterIDBackupsSchemaDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_parameters.go deleted file mode 100644 index c262e7f35e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_parameters.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetClusterClusterIDParams creates a new GetClusterClusterIDParams object -// with the default values initialized. -func NewGetClusterClusterIDParams() *GetClusterClusterIDParams { - var () - return &GetClusterClusterIDParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetClusterClusterIDParamsWithTimeout creates a new GetClusterClusterIDParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetClusterClusterIDParamsWithTimeout(timeout time.Duration) *GetClusterClusterIDParams { - var () - return &GetClusterClusterIDParams{ - - timeout: timeout, - } -} - -// NewGetClusterClusterIDParamsWithContext creates a new GetClusterClusterIDParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetClusterClusterIDParamsWithContext(ctx context.Context) *GetClusterClusterIDParams { - var () - return &GetClusterClusterIDParams{ - - Context: ctx, - } -} - -// NewGetClusterClusterIDParamsWithHTTPClient creates a new GetClusterClusterIDParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetClusterClusterIDParamsWithHTTPClient(client *http.Client) *GetClusterClusterIDParams { - var () - return &GetClusterClusterIDParams{ - HTTPClient: client, - } -} - -/* -GetClusterClusterIDParams contains all the parameters to send to the API endpoint -for the get cluster cluster ID operation typically these are written to a http.Request -*/ -type GetClusterClusterIDParams struct { - - /*ClusterID*/ - ClusterID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get cluster cluster ID params -func (o *GetClusterClusterIDParams) WithTimeout(timeout time.Duration) *GetClusterClusterIDParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get cluster cluster ID params -func (o *GetClusterClusterIDParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get cluster cluster ID params -func (o *GetClusterClusterIDParams) WithContext(ctx context.Context) *GetClusterClusterIDParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get cluster cluster ID params -func (o *GetClusterClusterIDParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get cluster cluster ID params -func (o *GetClusterClusterIDParams) WithHTTPClient(client *http.Client) *GetClusterClusterIDParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get cluster cluster ID params -func (o *GetClusterClusterIDParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the get cluster cluster ID params -func (o *GetClusterClusterIDParams) WithClusterID(clusterID string) *GetClusterClusterIDParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the get cluster cluster ID params -func (o *GetClusterClusterIDParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClusterClusterIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_responses.go deleted file mode 100644 index 8b8affeee6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_responses.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetClusterClusterIDReader is a Reader for the GetClusterClusterID structure. -type GetClusterClusterIDReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClusterClusterIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClusterClusterIDOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetClusterClusterIDDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetClusterClusterIDOK creates a GetClusterClusterIDOK with default headers values -func NewGetClusterClusterIDOK() *GetClusterClusterIDOK { - return &GetClusterClusterIDOK{} -} - -/* -GetClusterClusterIDOK handles this case with default header values. - -Cluster info -*/ -type GetClusterClusterIDOK struct { - Payload *models.Cluster -} - -func (o *GetClusterClusterIDOK) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}][%d] getClusterClusterIdOK %+v", 200, o.Payload) -} - -func (o *GetClusterClusterIDOK) GetPayload() *models.Cluster { - return o.Payload -} - -func (o *GetClusterClusterIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.Cluster) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterClusterIDDefault creates a GetClusterClusterIDDefault with default headers values -func NewGetClusterClusterIDDefault(code int) *GetClusterClusterIDDefault { - return &GetClusterClusterIDDefault{ - _statusCode: code, - } -} - -/* -GetClusterClusterIDDefault handles this case with default header values. - -Error -*/ -type GetClusterClusterIDDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get cluster cluster ID default response -func (o *GetClusterClusterIDDefault) Code() int { - return o._statusCode -} - -func (o *GetClusterClusterIDDefault) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}][%d] GetClusterClusterID default %+v", o._statusCode, o.Payload) -} - -func (o *GetClusterClusterIDDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetClusterClusterIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_status_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_status_parameters.go deleted file mode 100644 index 0cc9c22c60..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_status_parameters.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetClusterClusterIDStatusParams creates a new GetClusterClusterIDStatusParams object -// with the default values initialized. -func NewGetClusterClusterIDStatusParams() *GetClusterClusterIDStatusParams { - var () - return &GetClusterClusterIDStatusParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetClusterClusterIDStatusParamsWithTimeout creates a new GetClusterClusterIDStatusParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetClusterClusterIDStatusParamsWithTimeout(timeout time.Duration) *GetClusterClusterIDStatusParams { - var () - return &GetClusterClusterIDStatusParams{ - - timeout: timeout, - } -} - -// NewGetClusterClusterIDStatusParamsWithContext creates a new GetClusterClusterIDStatusParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetClusterClusterIDStatusParamsWithContext(ctx context.Context) *GetClusterClusterIDStatusParams { - var () - return &GetClusterClusterIDStatusParams{ - - Context: ctx, - } -} - -// NewGetClusterClusterIDStatusParamsWithHTTPClient creates a new GetClusterClusterIDStatusParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetClusterClusterIDStatusParamsWithHTTPClient(client *http.Client) *GetClusterClusterIDStatusParams { - var () - return &GetClusterClusterIDStatusParams{ - HTTPClient: client, - } -} - -/* -GetClusterClusterIDStatusParams contains all the parameters to send to the API endpoint -for the get cluster cluster ID status operation typically these are written to a http.Request -*/ -type GetClusterClusterIDStatusParams struct { - - /*ClusterID*/ - ClusterID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get cluster cluster ID status params -func (o *GetClusterClusterIDStatusParams) WithTimeout(timeout time.Duration) *GetClusterClusterIDStatusParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get cluster cluster ID status params -func (o *GetClusterClusterIDStatusParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get cluster cluster ID status params -func (o *GetClusterClusterIDStatusParams) WithContext(ctx context.Context) *GetClusterClusterIDStatusParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get cluster cluster ID status params -func (o *GetClusterClusterIDStatusParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get cluster cluster ID status params -func (o *GetClusterClusterIDStatusParams) WithHTTPClient(client *http.Client) *GetClusterClusterIDStatusParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get cluster cluster ID status params -func (o *GetClusterClusterIDStatusParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the get cluster cluster ID status params -func (o *GetClusterClusterIDStatusParams) WithClusterID(clusterID string) *GetClusterClusterIDStatusParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the get cluster cluster ID status params -func (o *GetClusterClusterIDStatusParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClusterClusterIDStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_status_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_status_responses.go deleted file mode 100644 index 49c7b11dfb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_status_responses.go +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetClusterClusterIDStatusReader is a Reader for the GetClusterClusterIDStatus structure. -type GetClusterClusterIDStatusReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClusterClusterIDStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClusterClusterIDStatusOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetClusterClusterIDStatusDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetClusterClusterIDStatusOK creates a GetClusterClusterIDStatusOK with default headers values -func NewGetClusterClusterIDStatusOK() *GetClusterClusterIDStatusOK { - return &GetClusterClusterIDStatusOK{} -} - -/* -GetClusterClusterIDStatusOK handles this case with default header values. - -Cluster hosts and their statuses -*/ -type GetClusterClusterIDStatusOK struct { - Payload models.ClusterStatus -} - -func (o *GetClusterClusterIDStatusOK) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/status][%d] getClusterClusterIdStatusOK %+v", 200, o.Payload) -} - -func (o *GetClusterClusterIDStatusOK) GetPayload() models.ClusterStatus { - return o.Payload -} - -func (o *GetClusterClusterIDStatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterClusterIDStatusDefault creates a GetClusterClusterIDStatusDefault with default headers values -func NewGetClusterClusterIDStatusDefault(code int) *GetClusterClusterIDStatusDefault { - return &GetClusterClusterIDStatusDefault{ - _statusCode: code, - } -} - -/* -GetClusterClusterIDStatusDefault handles this case with default header values. - -Error -*/ -type GetClusterClusterIDStatusDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get cluster cluster ID status default response -func (o *GetClusterClusterIDStatusDefault) Code() int { - return o._statusCode -} - -func (o *GetClusterClusterIDStatusDefault) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/status][%d] GetClusterClusterIDStatus default %+v", o._statusCode, o.Payload) -} - -func (o *GetClusterClusterIDStatusDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetClusterClusterIDStatusDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_suspended_details_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_suspended_details_parameters.go deleted file mode 100644 index 74e98d9638..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_suspended_details_parameters.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetClusterClusterIDSuspendedDetailsParams creates a new GetClusterClusterIDSuspendedDetailsParams object -// with the default values initialized. -func NewGetClusterClusterIDSuspendedDetailsParams() *GetClusterClusterIDSuspendedDetailsParams { - var () - return &GetClusterClusterIDSuspendedDetailsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetClusterClusterIDSuspendedDetailsParamsWithTimeout creates a new GetClusterClusterIDSuspendedDetailsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetClusterClusterIDSuspendedDetailsParamsWithTimeout(timeout time.Duration) *GetClusterClusterIDSuspendedDetailsParams { - var () - return &GetClusterClusterIDSuspendedDetailsParams{ - - timeout: timeout, - } -} - -// NewGetClusterClusterIDSuspendedDetailsParamsWithContext creates a new GetClusterClusterIDSuspendedDetailsParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetClusterClusterIDSuspendedDetailsParamsWithContext(ctx context.Context) *GetClusterClusterIDSuspendedDetailsParams { - var () - return &GetClusterClusterIDSuspendedDetailsParams{ - - Context: ctx, - } -} - -// NewGetClusterClusterIDSuspendedDetailsParamsWithHTTPClient creates a new GetClusterClusterIDSuspendedDetailsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetClusterClusterIDSuspendedDetailsParamsWithHTTPClient(client *http.Client) *GetClusterClusterIDSuspendedDetailsParams { - var () - return &GetClusterClusterIDSuspendedDetailsParams{ - HTTPClient: client, - } -} - -/* -GetClusterClusterIDSuspendedDetailsParams contains all the parameters to send to the API endpoint -for the get cluster cluster ID suspended details operation typically these are written to a http.Request -*/ -type GetClusterClusterIDSuspendedDetailsParams struct { - - /*ClusterID*/ - ClusterID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get cluster cluster ID suspended details params -func (o *GetClusterClusterIDSuspendedDetailsParams) WithTimeout(timeout time.Duration) *GetClusterClusterIDSuspendedDetailsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get cluster cluster ID suspended details params -func (o *GetClusterClusterIDSuspendedDetailsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get cluster cluster ID suspended details params -func (o *GetClusterClusterIDSuspendedDetailsParams) WithContext(ctx context.Context) *GetClusterClusterIDSuspendedDetailsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get cluster cluster ID suspended details params -func (o *GetClusterClusterIDSuspendedDetailsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get cluster cluster ID suspended details params -func (o *GetClusterClusterIDSuspendedDetailsParams) WithHTTPClient(client *http.Client) *GetClusterClusterIDSuspendedDetailsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get cluster cluster ID suspended details params -func (o *GetClusterClusterIDSuspendedDetailsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the get cluster cluster ID suspended details params -func (o *GetClusterClusterIDSuspendedDetailsParams) WithClusterID(clusterID string) *GetClusterClusterIDSuspendedDetailsParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the get cluster cluster ID suspended details params -func (o *GetClusterClusterIDSuspendedDetailsParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClusterClusterIDSuspendedDetailsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_suspended_details_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_suspended_details_responses.go deleted file mode 100644 index 9ed9a25d56..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_suspended_details_responses.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetClusterClusterIDSuspendedDetailsReader is a Reader for the GetClusterClusterIDSuspendedDetails structure. -type GetClusterClusterIDSuspendedDetailsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClusterClusterIDSuspendedDetailsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClusterClusterIDSuspendedDetailsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetClusterClusterIDSuspendedDetailsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetClusterClusterIDSuspendedDetailsOK creates a GetClusterClusterIDSuspendedDetailsOK with default headers values -func NewGetClusterClusterIDSuspendedDetailsOK() *GetClusterClusterIDSuspendedDetailsOK { - return &GetClusterClusterIDSuspendedDetailsOK{} -} - -/* -GetClusterClusterIDSuspendedDetailsOK handles this case with default header values. - -OK -*/ -type GetClusterClusterIDSuspendedDetailsOK struct { - Payload *models.SuspendDetails -} - -func (o *GetClusterClusterIDSuspendedDetailsOK) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/suspended/details][%d] getClusterClusterIdSuspendedDetailsOK %+v", 200, o.Payload) -} - -func (o *GetClusterClusterIDSuspendedDetailsOK) GetPayload() *models.SuspendDetails { - return o.Payload -} - -func (o *GetClusterClusterIDSuspendedDetailsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.SuspendDetails) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterClusterIDSuspendedDetailsDefault creates a GetClusterClusterIDSuspendedDetailsDefault with default headers values -func NewGetClusterClusterIDSuspendedDetailsDefault(code int) *GetClusterClusterIDSuspendedDetailsDefault { - return &GetClusterClusterIDSuspendedDetailsDefault{ - _statusCode: code, - } -} - -/* -GetClusterClusterIDSuspendedDetailsDefault handles this case with default header values. - -Error -*/ -type GetClusterClusterIDSuspendedDetailsDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get cluster cluster ID suspended details default response -func (o *GetClusterClusterIDSuspendedDetailsDefault) Code() int { - return o._statusCode -} - -func (o *GetClusterClusterIDSuspendedDetailsDefault) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/suspended/details][%d] GetClusterClusterIDSuspendedDetails default %+v", o._statusCode, o.Payload) -} - -func (o *GetClusterClusterIDSuspendedDetailsDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetClusterClusterIDSuspendedDetailsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_suspended_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_suspended_parameters.go deleted file mode 100644 index 3ce5842041..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_suspended_parameters.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetClusterClusterIDSuspendedParams creates a new GetClusterClusterIDSuspendedParams object -// with the default values initialized. -func NewGetClusterClusterIDSuspendedParams() *GetClusterClusterIDSuspendedParams { - var () - return &GetClusterClusterIDSuspendedParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetClusterClusterIDSuspendedParamsWithTimeout creates a new GetClusterClusterIDSuspendedParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetClusterClusterIDSuspendedParamsWithTimeout(timeout time.Duration) *GetClusterClusterIDSuspendedParams { - var () - return &GetClusterClusterIDSuspendedParams{ - - timeout: timeout, - } -} - -// NewGetClusterClusterIDSuspendedParamsWithContext creates a new GetClusterClusterIDSuspendedParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetClusterClusterIDSuspendedParamsWithContext(ctx context.Context) *GetClusterClusterIDSuspendedParams { - var () - return &GetClusterClusterIDSuspendedParams{ - - Context: ctx, - } -} - -// NewGetClusterClusterIDSuspendedParamsWithHTTPClient creates a new GetClusterClusterIDSuspendedParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetClusterClusterIDSuspendedParamsWithHTTPClient(client *http.Client) *GetClusterClusterIDSuspendedParams { - var () - return &GetClusterClusterIDSuspendedParams{ - HTTPClient: client, - } -} - -/* -GetClusterClusterIDSuspendedParams contains all the parameters to send to the API endpoint -for the get cluster cluster ID suspended operation typically these are written to a http.Request -*/ -type GetClusterClusterIDSuspendedParams struct { - - /*ClusterID*/ - ClusterID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get cluster cluster ID suspended params -func (o *GetClusterClusterIDSuspendedParams) WithTimeout(timeout time.Duration) *GetClusterClusterIDSuspendedParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get cluster cluster ID suspended params -func (o *GetClusterClusterIDSuspendedParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get cluster cluster ID suspended params -func (o *GetClusterClusterIDSuspendedParams) WithContext(ctx context.Context) *GetClusterClusterIDSuspendedParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get cluster cluster ID suspended params -func (o *GetClusterClusterIDSuspendedParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get cluster cluster ID suspended params -func (o *GetClusterClusterIDSuspendedParams) WithHTTPClient(client *http.Client) *GetClusterClusterIDSuspendedParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get cluster cluster ID suspended params -func (o *GetClusterClusterIDSuspendedParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the get cluster cluster ID suspended params -func (o *GetClusterClusterIDSuspendedParams) WithClusterID(clusterID string) *GetClusterClusterIDSuspendedParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the get cluster cluster ID suspended params -func (o *GetClusterClusterIDSuspendedParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClusterClusterIDSuspendedParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_suspended_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_suspended_responses.go deleted file mode 100644 index 8580ff318d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_suspended_responses.go +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetClusterClusterIDSuspendedReader is a Reader for the GetClusterClusterIDSuspended structure. -type GetClusterClusterIDSuspendedReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClusterClusterIDSuspendedReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClusterClusterIDSuspendedOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetClusterClusterIDSuspendedDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetClusterClusterIDSuspendedOK creates a GetClusterClusterIDSuspendedOK with default headers values -func NewGetClusterClusterIDSuspendedOK() *GetClusterClusterIDSuspendedOK { - return &GetClusterClusterIDSuspendedOK{} -} - -/* -GetClusterClusterIDSuspendedOK handles this case with default header values. - -OK -*/ -type GetClusterClusterIDSuspendedOK struct { - Payload models.Suspended -} - -func (o *GetClusterClusterIDSuspendedOK) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/suspended][%d] getClusterClusterIdSuspendedOK %+v", 200, o.Payload) -} - -func (o *GetClusterClusterIDSuspendedOK) GetPayload() models.Suspended { - return o.Payload -} - -func (o *GetClusterClusterIDSuspendedOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterClusterIDSuspendedDefault creates a GetClusterClusterIDSuspendedDefault with default headers values -func NewGetClusterClusterIDSuspendedDefault(code int) *GetClusterClusterIDSuspendedDefault { - return &GetClusterClusterIDSuspendedDefault{ - _statusCode: code, - } -} - -/* -GetClusterClusterIDSuspendedDefault handles this case with default header values. - -Error -*/ -type GetClusterClusterIDSuspendedDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get cluster cluster ID suspended default response -func (o *GetClusterClusterIDSuspendedDefault) Code() int { - return o._statusCode -} - -func (o *GetClusterClusterIDSuspendedDefault) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/suspended][%d] GetClusterClusterIDSuspended default %+v", o._statusCode, o.Payload) -} - -func (o *GetClusterClusterIDSuspendedDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetClusterClusterIDSuspendedDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task11_restore_task_id_run_id_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task11_restore_task_id_run_id_parameters.go deleted file mode 100644 index 67350f38ea..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task11_restore_task_id_run_id_parameters.go +++ /dev/null @@ -1,169 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetClusterClusterIDTask11RestoreTaskIDRunIDParams creates a new GetClusterClusterIDTask11RestoreTaskIDRunIDParams object -// with the default values initialized. -func NewGetClusterClusterIDTask11RestoreTaskIDRunIDParams() *GetClusterClusterIDTask11RestoreTaskIDRunIDParams { - var () - return &GetClusterClusterIDTask11RestoreTaskIDRunIDParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetClusterClusterIDTask11RestoreTaskIDRunIDParamsWithTimeout creates a new GetClusterClusterIDTask11RestoreTaskIDRunIDParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetClusterClusterIDTask11RestoreTaskIDRunIDParamsWithTimeout(timeout time.Duration) *GetClusterClusterIDTask11RestoreTaskIDRunIDParams { - var () - return &GetClusterClusterIDTask11RestoreTaskIDRunIDParams{ - - timeout: timeout, - } -} - -// NewGetClusterClusterIDTask11RestoreTaskIDRunIDParamsWithContext creates a new GetClusterClusterIDTask11RestoreTaskIDRunIDParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetClusterClusterIDTask11RestoreTaskIDRunIDParamsWithContext(ctx context.Context) *GetClusterClusterIDTask11RestoreTaskIDRunIDParams { - var () - return &GetClusterClusterIDTask11RestoreTaskIDRunIDParams{ - - Context: ctx, - } -} - -// NewGetClusterClusterIDTask11RestoreTaskIDRunIDParamsWithHTTPClient creates a new GetClusterClusterIDTask11RestoreTaskIDRunIDParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetClusterClusterIDTask11RestoreTaskIDRunIDParamsWithHTTPClient(client *http.Client) *GetClusterClusterIDTask11RestoreTaskIDRunIDParams { - var () - return &GetClusterClusterIDTask11RestoreTaskIDRunIDParams{ - HTTPClient: client, - } -} - -/* -GetClusterClusterIDTask11RestoreTaskIDRunIDParams contains all the parameters to send to the API endpoint -for the get cluster cluster ID task11 restore task ID run ID operation typically these are written to a http.Request -*/ -type GetClusterClusterIDTask11RestoreTaskIDRunIDParams struct { - - /*ClusterID*/ - ClusterID string - /*RunID*/ - RunID string - /*TaskID*/ - TaskID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get cluster cluster ID task11 restore task ID run ID params -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDParams) WithTimeout(timeout time.Duration) *GetClusterClusterIDTask11RestoreTaskIDRunIDParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get cluster cluster ID task11 restore task ID run ID params -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get cluster cluster ID task11 restore task ID run ID params -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDParams) WithContext(ctx context.Context) *GetClusterClusterIDTask11RestoreTaskIDRunIDParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get cluster cluster ID task11 restore task ID run ID params -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get cluster cluster ID task11 restore task ID run ID params -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDParams) WithHTTPClient(client *http.Client) *GetClusterClusterIDTask11RestoreTaskIDRunIDParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get cluster cluster ID task11 restore task ID run ID params -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the get cluster cluster ID task11 restore task ID run ID params -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDParams) WithClusterID(clusterID string) *GetClusterClusterIDTask11RestoreTaskIDRunIDParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the get cluster cluster ID task11 restore task ID run ID params -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithRunID adds the runID to the get cluster cluster ID task11 restore task ID run ID params -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDParams) WithRunID(runID string) *GetClusterClusterIDTask11RestoreTaskIDRunIDParams { - o.SetRunID(runID) - return o -} - -// SetRunID adds the runId to the get cluster cluster ID task11 restore task ID run ID params -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDParams) SetRunID(runID string) { - o.RunID = runID -} - -// WithTaskID adds the taskID to the get cluster cluster ID task11 restore task ID run ID params -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDParams) WithTaskID(taskID string) *GetClusterClusterIDTask11RestoreTaskIDRunIDParams { - o.SetTaskID(taskID) - return o -} - -// SetTaskID adds the taskId to the get cluster cluster ID task11 restore task ID run ID params -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDParams) SetTaskID(taskID string) { - o.TaskID = taskID -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - // path param run_id - if err := r.SetPathParam("run_id", o.RunID); err != nil { - return err - } - - // path param task_id - if err := r.SetPathParam("task_id", o.TaskID); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task11_restore_task_id_run_id_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task11_restore_task_id_run_id_responses.go deleted file mode 100644 index 04a9573958..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task11_restore_task_id_run_id_responses.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetClusterClusterIDTask11RestoreTaskIDRunIDReader is a Reader for the GetClusterClusterIDTask11RestoreTaskIDRunID structure. -type GetClusterClusterIDTask11RestoreTaskIDRunIDReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClusterClusterIDTask11RestoreTaskIDRunIDOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetClusterClusterIDTask11RestoreTaskIDRunIDDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetClusterClusterIDTask11RestoreTaskIDRunIDOK creates a GetClusterClusterIDTask11RestoreTaskIDRunIDOK with default headers values -func NewGetClusterClusterIDTask11RestoreTaskIDRunIDOK() *GetClusterClusterIDTask11RestoreTaskIDRunIDOK { - return &GetClusterClusterIDTask11RestoreTaskIDRunIDOK{} -} - -/* -GetClusterClusterIDTask11RestoreTaskIDRunIDOK handles this case with default header values. - -1-1-restore progress -*/ -type GetClusterClusterIDTask11RestoreTaskIDRunIDOK struct { - Payload *models.TaskRunOne2OneRestoreProgress -} - -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDOK) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/task/1_1_restore/{task_id}/{run_id}][%d] getClusterClusterIdTask11RestoreTaskIdRunIdOK %+v", 200, o.Payload) -} - -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDOK) GetPayload() *models.TaskRunOne2OneRestoreProgress { - return o.Payload -} - -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.TaskRunOne2OneRestoreProgress) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterClusterIDTask11RestoreTaskIDRunIDDefault creates a GetClusterClusterIDTask11RestoreTaskIDRunIDDefault with default headers values -func NewGetClusterClusterIDTask11RestoreTaskIDRunIDDefault(code int) *GetClusterClusterIDTask11RestoreTaskIDRunIDDefault { - return &GetClusterClusterIDTask11RestoreTaskIDRunIDDefault{ - _statusCode: code, - } -} - -/* -GetClusterClusterIDTask11RestoreTaskIDRunIDDefault handles this case with default header values. - -Error -*/ -type GetClusterClusterIDTask11RestoreTaskIDRunIDDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get cluster cluster ID task11 restore task ID run ID default response -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDDefault) Code() int { - return o._statusCode -} - -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDDefault) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/task/1_1_restore/{task_id}/{run_id}][%d] GetClusterClusterIDTask11RestoreTaskIDRunID default %+v", o._statusCode, o.Payload) -} - -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetClusterClusterIDTask11RestoreTaskIDRunIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_backup_task_id_run_id_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_backup_task_id_run_id_parameters.go deleted file mode 100644 index 8ecd52a6dd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_backup_task_id_run_id_parameters.go +++ /dev/null @@ -1,169 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetClusterClusterIDTaskBackupTaskIDRunIDParams creates a new GetClusterClusterIDTaskBackupTaskIDRunIDParams object -// with the default values initialized. -func NewGetClusterClusterIDTaskBackupTaskIDRunIDParams() *GetClusterClusterIDTaskBackupTaskIDRunIDParams { - var () - return &GetClusterClusterIDTaskBackupTaskIDRunIDParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetClusterClusterIDTaskBackupTaskIDRunIDParamsWithTimeout creates a new GetClusterClusterIDTaskBackupTaskIDRunIDParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetClusterClusterIDTaskBackupTaskIDRunIDParamsWithTimeout(timeout time.Duration) *GetClusterClusterIDTaskBackupTaskIDRunIDParams { - var () - return &GetClusterClusterIDTaskBackupTaskIDRunIDParams{ - - timeout: timeout, - } -} - -// NewGetClusterClusterIDTaskBackupTaskIDRunIDParamsWithContext creates a new GetClusterClusterIDTaskBackupTaskIDRunIDParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetClusterClusterIDTaskBackupTaskIDRunIDParamsWithContext(ctx context.Context) *GetClusterClusterIDTaskBackupTaskIDRunIDParams { - var () - return &GetClusterClusterIDTaskBackupTaskIDRunIDParams{ - - Context: ctx, - } -} - -// NewGetClusterClusterIDTaskBackupTaskIDRunIDParamsWithHTTPClient creates a new GetClusterClusterIDTaskBackupTaskIDRunIDParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetClusterClusterIDTaskBackupTaskIDRunIDParamsWithHTTPClient(client *http.Client) *GetClusterClusterIDTaskBackupTaskIDRunIDParams { - var () - return &GetClusterClusterIDTaskBackupTaskIDRunIDParams{ - HTTPClient: client, - } -} - -/* -GetClusterClusterIDTaskBackupTaskIDRunIDParams contains all the parameters to send to the API endpoint -for the get cluster cluster ID task backup task ID run ID operation typically these are written to a http.Request -*/ -type GetClusterClusterIDTaskBackupTaskIDRunIDParams struct { - - /*ClusterID*/ - ClusterID string - /*RunID*/ - RunID string - /*TaskID*/ - TaskID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get cluster cluster ID task backup task ID run ID params -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDParams) WithTimeout(timeout time.Duration) *GetClusterClusterIDTaskBackupTaskIDRunIDParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get cluster cluster ID task backup task ID run ID params -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get cluster cluster ID task backup task ID run ID params -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDParams) WithContext(ctx context.Context) *GetClusterClusterIDTaskBackupTaskIDRunIDParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get cluster cluster ID task backup task ID run ID params -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get cluster cluster ID task backup task ID run ID params -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDParams) WithHTTPClient(client *http.Client) *GetClusterClusterIDTaskBackupTaskIDRunIDParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get cluster cluster ID task backup task ID run ID params -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the get cluster cluster ID task backup task ID run ID params -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDParams) WithClusterID(clusterID string) *GetClusterClusterIDTaskBackupTaskIDRunIDParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the get cluster cluster ID task backup task ID run ID params -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithRunID adds the runID to the get cluster cluster ID task backup task ID run ID params -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDParams) WithRunID(runID string) *GetClusterClusterIDTaskBackupTaskIDRunIDParams { - o.SetRunID(runID) - return o -} - -// SetRunID adds the runId to the get cluster cluster ID task backup task ID run ID params -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDParams) SetRunID(runID string) { - o.RunID = runID -} - -// WithTaskID adds the taskID to the get cluster cluster ID task backup task ID run ID params -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDParams) WithTaskID(taskID string) *GetClusterClusterIDTaskBackupTaskIDRunIDParams { - o.SetTaskID(taskID) - return o -} - -// SetTaskID adds the taskId to the get cluster cluster ID task backup task ID run ID params -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDParams) SetTaskID(taskID string) { - o.TaskID = taskID -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - // path param run_id - if err := r.SetPathParam("run_id", o.RunID); err != nil { - return err - } - - // path param task_id - if err := r.SetPathParam("task_id", o.TaskID); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_backup_task_id_run_id_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_backup_task_id_run_id_responses.go deleted file mode 100644 index 2957e829dc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_backup_task_id_run_id_responses.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetClusterClusterIDTaskBackupTaskIDRunIDReader is a Reader for the GetClusterClusterIDTaskBackupTaskIDRunID structure. -type GetClusterClusterIDTaskBackupTaskIDRunIDReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClusterClusterIDTaskBackupTaskIDRunIDOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetClusterClusterIDTaskBackupTaskIDRunIDDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetClusterClusterIDTaskBackupTaskIDRunIDOK creates a GetClusterClusterIDTaskBackupTaskIDRunIDOK with default headers values -func NewGetClusterClusterIDTaskBackupTaskIDRunIDOK() *GetClusterClusterIDTaskBackupTaskIDRunIDOK { - return &GetClusterClusterIDTaskBackupTaskIDRunIDOK{} -} - -/* -GetClusterClusterIDTaskBackupTaskIDRunIDOK handles this case with default header values. - -Backup progress -*/ -type GetClusterClusterIDTaskBackupTaskIDRunIDOK struct { - Payload *models.TaskRunBackupProgress -} - -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDOK) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/task/backup/{task_id}/{run_id}][%d] getClusterClusterIdTaskBackupTaskIdRunIdOK %+v", 200, o.Payload) -} - -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDOK) GetPayload() *models.TaskRunBackupProgress { - return o.Payload -} - -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.TaskRunBackupProgress) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterClusterIDTaskBackupTaskIDRunIDDefault creates a GetClusterClusterIDTaskBackupTaskIDRunIDDefault with default headers values -func NewGetClusterClusterIDTaskBackupTaskIDRunIDDefault(code int) *GetClusterClusterIDTaskBackupTaskIDRunIDDefault { - return &GetClusterClusterIDTaskBackupTaskIDRunIDDefault{ - _statusCode: code, - } -} - -/* -GetClusterClusterIDTaskBackupTaskIDRunIDDefault handles this case with default header values. - -Error -*/ -type GetClusterClusterIDTaskBackupTaskIDRunIDDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get cluster cluster ID task backup task ID run ID default response -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDDefault) Code() int { - return o._statusCode -} - -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDDefault) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/task/backup/{task_id}/{run_id}][%d] GetClusterClusterIDTaskBackupTaskIDRunID default %+v", o._statusCode, o.Payload) -} - -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetClusterClusterIDTaskBackupTaskIDRunIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_repair_task_id_run_id_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_repair_task_id_run_id_parameters.go deleted file mode 100644 index 37a89afc31..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_repair_task_id_run_id_parameters.go +++ /dev/null @@ -1,169 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetClusterClusterIDTaskRepairTaskIDRunIDParams creates a new GetClusterClusterIDTaskRepairTaskIDRunIDParams object -// with the default values initialized. -func NewGetClusterClusterIDTaskRepairTaskIDRunIDParams() *GetClusterClusterIDTaskRepairTaskIDRunIDParams { - var () - return &GetClusterClusterIDTaskRepairTaskIDRunIDParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetClusterClusterIDTaskRepairTaskIDRunIDParamsWithTimeout creates a new GetClusterClusterIDTaskRepairTaskIDRunIDParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetClusterClusterIDTaskRepairTaskIDRunIDParamsWithTimeout(timeout time.Duration) *GetClusterClusterIDTaskRepairTaskIDRunIDParams { - var () - return &GetClusterClusterIDTaskRepairTaskIDRunIDParams{ - - timeout: timeout, - } -} - -// NewGetClusterClusterIDTaskRepairTaskIDRunIDParamsWithContext creates a new GetClusterClusterIDTaskRepairTaskIDRunIDParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetClusterClusterIDTaskRepairTaskIDRunIDParamsWithContext(ctx context.Context) *GetClusterClusterIDTaskRepairTaskIDRunIDParams { - var () - return &GetClusterClusterIDTaskRepairTaskIDRunIDParams{ - - Context: ctx, - } -} - -// NewGetClusterClusterIDTaskRepairTaskIDRunIDParamsWithHTTPClient creates a new GetClusterClusterIDTaskRepairTaskIDRunIDParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetClusterClusterIDTaskRepairTaskIDRunIDParamsWithHTTPClient(client *http.Client) *GetClusterClusterIDTaskRepairTaskIDRunIDParams { - var () - return &GetClusterClusterIDTaskRepairTaskIDRunIDParams{ - HTTPClient: client, - } -} - -/* -GetClusterClusterIDTaskRepairTaskIDRunIDParams contains all the parameters to send to the API endpoint -for the get cluster cluster ID task repair task ID run ID operation typically these are written to a http.Request -*/ -type GetClusterClusterIDTaskRepairTaskIDRunIDParams struct { - - /*ClusterID*/ - ClusterID string - /*RunID*/ - RunID string - /*TaskID*/ - TaskID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get cluster cluster ID task repair task ID run ID params -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDParams) WithTimeout(timeout time.Duration) *GetClusterClusterIDTaskRepairTaskIDRunIDParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get cluster cluster ID task repair task ID run ID params -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get cluster cluster ID task repair task ID run ID params -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDParams) WithContext(ctx context.Context) *GetClusterClusterIDTaskRepairTaskIDRunIDParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get cluster cluster ID task repair task ID run ID params -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get cluster cluster ID task repair task ID run ID params -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDParams) WithHTTPClient(client *http.Client) *GetClusterClusterIDTaskRepairTaskIDRunIDParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get cluster cluster ID task repair task ID run ID params -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the get cluster cluster ID task repair task ID run ID params -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDParams) WithClusterID(clusterID string) *GetClusterClusterIDTaskRepairTaskIDRunIDParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the get cluster cluster ID task repair task ID run ID params -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithRunID adds the runID to the get cluster cluster ID task repair task ID run ID params -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDParams) WithRunID(runID string) *GetClusterClusterIDTaskRepairTaskIDRunIDParams { - o.SetRunID(runID) - return o -} - -// SetRunID adds the runId to the get cluster cluster ID task repair task ID run ID params -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDParams) SetRunID(runID string) { - o.RunID = runID -} - -// WithTaskID adds the taskID to the get cluster cluster ID task repair task ID run ID params -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDParams) WithTaskID(taskID string) *GetClusterClusterIDTaskRepairTaskIDRunIDParams { - o.SetTaskID(taskID) - return o -} - -// SetTaskID adds the taskId to the get cluster cluster ID task repair task ID run ID params -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDParams) SetTaskID(taskID string) { - o.TaskID = taskID -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - // path param run_id - if err := r.SetPathParam("run_id", o.RunID); err != nil { - return err - } - - // path param task_id - if err := r.SetPathParam("task_id", o.TaskID); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_repair_task_id_run_id_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_repair_task_id_run_id_responses.go deleted file mode 100644 index 82ffa8515b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_repair_task_id_run_id_responses.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetClusterClusterIDTaskRepairTaskIDRunIDReader is a Reader for the GetClusterClusterIDTaskRepairTaskIDRunID structure. -type GetClusterClusterIDTaskRepairTaskIDRunIDReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClusterClusterIDTaskRepairTaskIDRunIDOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetClusterClusterIDTaskRepairTaskIDRunIDDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetClusterClusterIDTaskRepairTaskIDRunIDOK creates a GetClusterClusterIDTaskRepairTaskIDRunIDOK with default headers values -func NewGetClusterClusterIDTaskRepairTaskIDRunIDOK() *GetClusterClusterIDTaskRepairTaskIDRunIDOK { - return &GetClusterClusterIDTaskRepairTaskIDRunIDOK{} -} - -/* -GetClusterClusterIDTaskRepairTaskIDRunIDOK handles this case with default header values. - -Repair progress -*/ -type GetClusterClusterIDTaskRepairTaskIDRunIDOK struct { - Payload *models.TaskRunRepairProgress -} - -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDOK) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/task/repair/{task_id}/{run_id}][%d] getClusterClusterIdTaskRepairTaskIdRunIdOK %+v", 200, o.Payload) -} - -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDOK) GetPayload() *models.TaskRunRepairProgress { - return o.Payload -} - -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.TaskRunRepairProgress) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterClusterIDTaskRepairTaskIDRunIDDefault creates a GetClusterClusterIDTaskRepairTaskIDRunIDDefault with default headers values -func NewGetClusterClusterIDTaskRepairTaskIDRunIDDefault(code int) *GetClusterClusterIDTaskRepairTaskIDRunIDDefault { - return &GetClusterClusterIDTaskRepairTaskIDRunIDDefault{ - _statusCode: code, - } -} - -/* -GetClusterClusterIDTaskRepairTaskIDRunIDDefault handles this case with default header values. - -Error -*/ -type GetClusterClusterIDTaskRepairTaskIDRunIDDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get cluster cluster ID task repair task ID run ID default response -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDDefault) Code() int { - return o._statusCode -} - -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDDefault) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/task/repair/{task_id}/{run_id}][%d] GetClusterClusterIDTaskRepairTaskIDRunID default %+v", o._statusCode, o.Payload) -} - -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetClusterClusterIDTaskRepairTaskIDRunIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_restore_task_id_run_id_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_restore_task_id_run_id_parameters.go deleted file mode 100644 index c0df972086..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_restore_task_id_run_id_parameters.go +++ /dev/null @@ -1,169 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetClusterClusterIDTaskRestoreTaskIDRunIDParams creates a new GetClusterClusterIDTaskRestoreTaskIDRunIDParams object -// with the default values initialized. -func NewGetClusterClusterIDTaskRestoreTaskIDRunIDParams() *GetClusterClusterIDTaskRestoreTaskIDRunIDParams { - var () - return &GetClusterClusterIDTaskRestoreTaskIDRunIDParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetClusterClusterIDTaskRestoreTaskIDRunIDParamsWithTimeout creates a new GetClusterClusterIDTaskRestoreTaskIDRunIDParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetClusterClusterIDTaskRestoreTaskIDRunIDParamsWithTimeout(timeout time.Duration) *GetClusterClusterIDTaskRestoreTaskIDRunIDParams { - var () - return &GetClusterClusterIDTaskRestoreTaskIDRunIDParams{ - - timeout: timeout, - } -} - -// NewGetClusterClusterIDTaskRestoreTaskIDRunIDParamsWithContext creates a new GetClusterClusterIDTaskRestoreTaskIDRunIDParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetClusterClusterIDTaskRestoreTaskIDRunIDParamsWithContext(ctx context.Context) *GetClusterClusterIDTaskRestoreTaskIDRunIDParams { - var () - return &GetClusterClusterIDTaskRestoreTaskIDRunIDParams{ - - Context: ctx, - } -} - -// NewGetClusterClusterIDTaskRestoreTaskIDRunIDParamsWithHTTPClient creates a new GetClusterClusterIDTaskRestoreTaskIDRunIDParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetClusterClusterIDTaskRestoreTaskIDRunIDParamsWithHTTPClient(client *http.Client) *GetClusterClusterIDTaskRestoreTaskIDRunIDParams { - var () - return &GetClusterClusterIDTaskRestoreTaskIDRunIDParams{ - HTTPClient: client, - } -} - -/* -GetClusterClusterIDTaskRestoreTaskIDRunIDParams contains all the parameters to send to the API endpoint -for the get cluster cluster ID task restore task ID run ID operation typically these are written to a http.Request -*/ -type GetClusterClusterIDTaskRestoreTaskIDRunIDParams struct { - - /*ClusterID*/ - ClusterID string - /*RunID*/ - RunID string - /*TaskID*/ - TaskID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get cluster cluster ID task restore task ID run ID params -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDParams) WithTimeout(timeout time.Duration) *GetClusterClusterIDTaskRestoreTaskIDRunIDParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get cluster cluster ID task restore task ID run ID params -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get cluster cluster ID task restore task ID run ID params -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDParams) WithContext(ctx context.Context) *GetClusterClusterIDTaskRestoreTaskIDRunIDParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get cluster cluster ID task restore task ID run ID params -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get cluster cluster ID task restore task ID run ID params -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDParams) WithHTTPClient(client *http.Client) *GetClusterClusterIDTaskRestoreTaskIDRunIDParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get cluster cluster ID task restore task ID run ID params -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the get cluster cluster ID task restore task ID run ID params -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDParams) WithClusterID(clusterID string) *GetClusterClusterIDTaskRestoreTaskIDRunIDParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the get cluster cluster ID task restore task ID run ID params -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithRunID adds the runID to the get cluster cluster ID task restore task ID run ID params -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDParams) WithRunID(runID string) *GetClusterClusterIDTaskRestoreTaskIDRunIDParams { - o.SetRunID(runID) - return o -} - -// SetRunID adds the runId to the get cluster cluster ID task restore task ID run ID params -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDParams) SetRunID(runID string) { - o.RunID = runID -} - -// WithTaskID adds the taskID to the get cluster cluster ID task restore task ID run ID params -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDParams) WithTaskID(taskID string) *GetClusterClusterIDTaskRestoreTaskIDRunIDParams { - o.SetTaskID(taskID) - return o -} - -// SetTaskID adds the taskId to the get cluster cluster ID task restore task ID run ID params -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDParams) SetTaskID(taskID string) { - o.TaskID = taskID -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - // path param run_id - if err := r.SetPathParam("run_id", o.RunID); err != nil { - return err - } - - // path param task_id - if err := r.SetPathParam("task_id", o.TaskID); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_restore_task_id_run_id_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_restore_task_id_run_id_responses.go deleted file mode 100644 index 54effbf18a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_restore_task_id_run_id_responses.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetClusterClusterIDTaskRestoreTaskIDRunIDReader is a Reader for the GetClusterClusterIDTaskRestoreTaskIDRunID structure. -type GetClusterClusterIDTaskRestoreTaskIDRunIDReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClusterClusterIDTaskRestoreTaskIDRunIDOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetClusterClusterIDTaskRestoreTaskIDRunIDDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetClusterClusterIDTaskRestoreTaskIDRunIDOK creates a GetClusterClusterIDTaskRestoreTaskIDRunIDOK with default headers values -func NewGetClusterClusterIDTaskRestoreTaskIDRunIDOK() *GetClusterClusterIDTaskRestoreTaskIDRunIDOK { - return &GetClusterClusterIDTaskRestoreTaskIDRunIDOK{} -} - -/* -GetClusterClusterIDTaskRestoreTaskIDRunIDOK handles this case with default header values. - -Restore progress -*/ -type GetClusterClusterIDTaskRestoreTaskIDRunIDOK struct { - Payload *models.TaskRunRestoreProgress -} - -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDOK) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/task/restore/{task_id}/{run_id}][%d] getClusterClusterIdTaskRestoreTaskIdRunIdOK %+v", 200, o.Payload) -} - -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDOK) GetPayload() *models.TaskRunRestoreProgress { - return o.Payload -} - -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.TaskRunRestoreProgress) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterClusterIDTaskRestoreTaskIDRunIDDefault creates a GetClusterClusterIDTaskRestoreTaskIDRunIDDefault with default headers values -func NewGetClusterClusterIDTaskRestoreTaskIDRunIDDefault(code int) *GetClusterClusterIDTaskRestoreTaskIDRunIDDefault { - return &GetClusterClusterIDTaskRestoreTaskIDRunIDDefault{ - _statusCode: code, - } -} - -/* -GetClusterClusterIDTaskRestoreTaskIDRunIDDefault handles this case with default header values. - -Error -*/ -type GetClusterClusterIDTaskRestoreTaskIDRunIDDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get cluster cluster ID task restore task ID run ID default response -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDDefault) Code() int { - return o._statusCode -} - -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDDefault) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/task/restore/{task_id}/{run_id}][%d] GetClusterClusterIDTaskRestoreTaskIDRunID default %+v", o._statusCode, o.Payload) -} - -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetClusterClusterIDTaskRestoreTaskIDRunIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_task_type_task_id_history_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_task_type_task_id_history_parameters.go deleted file mode 100644 index 2c5ebeb6d6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_task_type_task_id_history_parameters.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewGetClusterClusterIDTaskTaskTypeTaskIDHistoryParams creates a new GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams object -// with the default values initialized. -func NewGetClusterClusterIDTaskTaskTypeTaskIDHistoryParams() *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams { - var () - return &GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetClusterClusterIDTaskTaskTypeTaskIDHistoryParamsWithTimeout creates a new GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetClusterClusterIDTaskTaskTypeTaskIDHistoryParamsWithTimeout(timeout time.Duration) *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams { - var () - return &GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams{ - - timeout: timeout, - } -} - -// NewGetClusterClusterIDTaskTaskTypeTaskIDHistoryParamsWithContext creates a new GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetClusterClusterIDTaskTaskTypeTaskIDHistoryParamsWithContext(ctx context.Context) *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams { - var () - return &GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams{ - - Context: ctx, - } -} - -// NewGetClusterClusterIDTaskTaskTypeTaskIDHistoryParamsWithHTTPClient creates a new GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetClusterClusterIDTaskTaskTypeTaskIDHistoryParamsWithHTTPClient(client *http.Client) *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams { - var () - return &GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams{ - HTTPClient: client, - } -} - -/* -GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams contains all the parameters to send to the API endpoint -for the get cluster cluster ID task task type task ID history operation typically these are written to a http.Request -*/ -type GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams struct { - - /*ClusterID*/ - ClusterID string - /*Limit*/ - Limit *int64 - /*TaskID*/ - TaskID string - /*TaskType*/ - TaskType string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get cluster cluster ID task task type task ID history params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams) WithTimeout(timeout time.Duration) *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get cluster cluster ID task task type task ID history params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get cluster cluster ID task task type task ID history params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams) WithContext(ctx context.Context) *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get cluster cluster ID task task type task ID history params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get cluster cluster ID task task type task ID history params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams) WithHTTPClient(client *http.Client) *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get cluster cluster ID task task type task ID history params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the get cluster cluster ID task task type task ID history params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams) WithClusterID(clusterID string) *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the get cluster cluster ID task task type task ID history params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithLimit adds the limit to the get cluster cluster ID task task type task ID history params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams) WithLimit(limit *int64) *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams { - o.SetLimit(limit) - return o -} - -// SetLimit adds the limit to the get cluster cluster ID task task type task ID history params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams) SetLimit(limit *int64) { - o.Limit = limit -} - -// WithTaskID adds the taskID to the get cluster cluster ID task task type task ID history params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams) WithTaskID(taskID string) *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams { - o.SetTaskID(taskID) - return o -} - -// SetTaskID adds the taskId to the get cluster cluster ID task task type task ID history params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams) SetTaskID(taskID string) { - o.TaskID = taskID -} - -// WithTaskType adds the taskType to the get cluster cluster ID task task type task ID history params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams) WithTaskType(taskType string) *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams { - o.SetTaskType(taskType) - return o -} - -// SetTaskType adds the taskType to the get cluster cluster ID task task type task ID history params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams) SetTaskType(taskType string) { - o.TaskType = taskType -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - if o.Limit != nil { - - // query param limit - var qrLimit int64 - if o.Limit != nil { - qrLimit = *o.Limit - } - qLimit := swag.FormatInt64(qrLimit) - if qLimit != "" { - if err := r.SetQueryParam("limit", qLimit); err != nil { - return err - } - } - - } - - // path param task_id - if err := r.SetPathParam("task_id", o.TaskID); err != nil { - return err - } - - // path param task_type - if err := r.SetPathParam("task_type", o.TaskType); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_task_type_task_id_history_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_task_type_task_id_history_responses.go deleted file mode 100644 index dabf37e123..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_task_type_task_id_history_responses.go +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetClusterClusterIDTaskTaskTypeTaskIDHistoryReader is a Reader for the GetClusterClusterIDTaskTaskTypeTaskIDHistory structure. -type GetClusterClusterIDTaskTaskTypeTaskIDHistoryReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClusterClusterIDTaskTaskTypeTaskIDHistoryOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetClusterClusterIDTaskTaskTypeTaskIDHistoryDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetClusterClusterIDTaskTaskTypeTaskIDHistoryOK creates a GetClusterClusterIDTaskTaskTypeTaskIDHistoryOK with default headers values -func NewGetClusterClusterIDTaskTaskTypeTaskIDHistoryOK() *GetClusterClusterIDTaskTaskTypeTaskIDHistoryOK { - return &GetClusterClusterIDTaskTaskTypeTaskIDHistoryOK{} -} - -/* -GetClusterClusterIDTaskTaskTypeTaskIDHistoryOK handles this case with default header values. - -List of task runs -*/ -type GetClusterClusterIDTaskTaskTypeTaskIDHistoryOK struct { - Payload []*models.TaskRun -} - -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryOK) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/task/{task_type}/{task_id}/history][%d] getClusterClusterIdTaskTaskTypeTaskIdHistoryOK %+v", 200, o.Payload) -} - -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryOK) GetPayload() []*models.TaskRun { - return o.Payload -} - -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterClusterIDTaskTaskTypeTaskIDHistoryDefault creates a GetClusterClusterIDTaskTaskTypeTaskIDHistoryDefault with default headers values -func NewGetClusterClusterIDTaskTaskTypeTaskIDHistoryDefault(code int) *GetClusterClusterIDTaskTaskTypeTaskIDHistoryDefault { - return &GetClusterClusterIDTaskTaskTypeTaskIDHistoryDefault{ - _statusCode: code, - } -} - -/* -GetClusterClusterIDTaskTaskTypeTaskIDHistoryDefault handles this case with default header values. - -Error -*/ -type GetClusterClusterIDTaskTaskTypeTaskIDHistoryDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get cluster cluster ID task task type task ID history default response -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryDefault) Code() int { - return o._statusCode -} - -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryDefault) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/task/{task_type}/{task_id}/history][%d] GetClusterClusterIDTaskTaskTypeTaskIDHistory default %+v", o._statusCode, o.Payload) -} - -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetClusterClusterIDTaskTaskTypeTaskIDHistoryDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_task_type_task_id_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_task_type_task_id_parameters.go deleted file mode 100644 index cac9653b63..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_task_type_task_id_parameters.go +++ /dev/null @@ -1,169 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetClusterClusterIDTaskTaskTypeTaskIDParams creates a new GetClusterClusterIDTaskTaskTypeTaskIDParams object -// with the default values initialized. -func NewGetClusterClusterIDTaskTaskTypeTaskIDParams() *GetClusterClusterIDTaskTaskTypeTaskIDParams { - var () - return &GetClusterClusterIDTaskTaskTypeTaskIDParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetClusterClusterIDTaskTaskTypeTaskIDParamsWithTimeout creates a new GetClusterClusterIDTaskTaskTypeTaskIDParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetClusterClusterIDTaskTaskTypeTaskIDParamsWithTimeout(timeout time.Duration) *GetClusterClusterIDTaskTaskTypeTaskIDParams { - var () - return &GetClusterClusterIDTaskTaskTypeTaskIDParams{ - - timeout: timeout, - } -} - -// NewGetClusterClusterIDTaskTaskTypeTaskIDParamsWithContext creates a new GetClusterClusterIDTaskTaskTypeTaskIDParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetClusterClusterIDTaskTaskTypeTaskIDParamsWithContext(ctx context.Context) *GetClusterClusterIDTaskTaskTypeTaskIDParams { - var () - return &GetClusterClusterIDTaskTaskTypeTaskIDParams{ - - Context: ctx, - } -} - -// NewGetClusterClusterIDTaskTaskTypeTaskIDParamsWithHTTPClient creates a new GetClusterClusterIDTaskTaskTypeTaskIDParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetClusterClusterIDTaskTaskTypeTaskIDParamsWithHTTPClient(client *http.Client) *GetClusterClusterIDTaskTaskTypeTaskIDParams { - var () - return &GetClusterClusterIDTaskTaskTypeTaskIDParams{ - HTTPClient: client, - } -} - -/* -GetClusterClusterIDTaskTaskTypeTaskIDParams contains all the parameters to send to the API endpoint -for the get cluster cluster ID task task type task ID operation typically these are written to a http.Request -*/ -type GetClusterClusterIDTaskTaskTypeTaskIDParams struct { - - /*ClusterID*/ - ClusterID string - /*TaskID*/ - TaskID string - /*TaskType*/ - TaskType string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get cluster cluster ID task task type task ID params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDParams) WithTimeout(timeout time.Duration) *GetClusterClusterIDTaskTaskTypeTaskIDParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get cluster cluster ID task task type task ID params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get cluster cluster ID task task type task ID params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDParams) WithContext(ctx context.Context) *GetClusterClusterIDTaskTaskTypeTaskIDParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get cluster cluster ID task task type task ID params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get cluster cluster ID task task type task ID params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDParams) WithHTTPClient(client *http.Client) *GetClusterClusterIDTaskTaskTypeTaskIDParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get cluster cluster ID task task type task ID params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the get cluster cluster ID task task type task ID params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDParams) WithClusterID(clusterID string) *GetClusterClusterIDTaskTaskTypeTaskIDParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the get cluster cluster ID task task type task ID params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithTaskID adds the taskID to the get cluster cluster ID task task type task ID params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDParams) WithTaskID(taskID string) *GetClusterClusterIDTaskTaskTypeTaskIDParams { - o.SetTaskID(taskID) - return o -} - -// SetTaskID adds the taskId to the get cluster cluster ID task task type task ID params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDParams) SetTaskID(taskID string) { - o.TaskID = taskID -} - -// WithTaskType adds the taskType to the get cluster cluster ID task task type task ID params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDParams) WithTaskType(taskType string) *GetClusterClusterIDTaskTaskTypeTaskIDParams { - o.SetTaskType(taskType) - return o -} - -// SetTaskType adds the taskType to the get cluster cluster ID task task type task ID params -func (o *GetClusterClusterIDTaskTaskTypeTaskIDParams) SetTaskType(taskType string) { - o.TaskType = taskType -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClusterClusterIDTaskTaskTypeTaskIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - // path param task_id - if err := r.SetPathParam("task_id", o.TaskID); err != nil { - return err - } - - // path param task_type - if err := r.SetPathParam("task_type", o.TaskType); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_task_type_task_id_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_task_type_task_id_responses.go deleted file mode 100644 index 157676ffe7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_task_type_task_id_responses.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetClusterClusterIDTaskTaskTypeTaskIDReader is a Reader for the GetClusterClusterIDTaskTaskTypeTaskID structure. -type GetClusterClusterIDTaskTaskTypeTaskIDReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClusterClusterIDTaskTaskTypeTaskIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClusterClusterIDTaskTaskTypeTaskIDOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetClusterClusterIDTaskTaskTypeTaskIDDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetClusterClusterIDTaskTaskTypeTaskIDOK creates a GetClusterClusterIDTaskTaskTypeTaskIDOK with default headers values -func NewGetClusterClusterIDTaskTaskTypeTaskIDOK() *GetClusterClusterIDTaskTaskTypeTaskIDOK { - return &GetClusterClusterIDTaskTaskTypeTaskIDOK{} -} - -/* -GetClusterClusterIDTaskTaskTypeTaskIDOK handles this case with default header values. - -Task info -*/ -type GetClusterClusterIDTaskTaskTypeTaskIDOK struct { - Payload *models.Task -} - -func (o *GetClusterClusterIDTaskTaskTypeTaskIDOK) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/task/{task_type}/{task_id}][%d] getClusterClusterIdTaskTaskTypeTaskIdOK %+v", 200, o.Payload) -} - -func (o *GetClusterClusterIDTaskTaskTypeTaskIDOK) GetPayload() *models.Task { - return o.Payload -} - -func (o *GetClusterClusterIDTaskTaskTypeTaskIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.Task) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterClusterIDTaskTaskTypeTaskIDDefault creates a GetClusterClusterIDTaskTaskTypeTaskIDDefault with default headers values -func NewGetClusterClusterIDTaskTaskTypeTaskIDDefault(code int) *GetClusterClusterIDTaskTaskTypeTaskIDDefault { - return &GetClusterClusterIDTaskTaskTypeTaskIDDefault{ - _statusCode: code, - } -} - -/* -GetClusterClusterIDTaskTaskTypeTaskIDDefault handles this case with default header values. - -Error -*/ -type GetClusterClusterIDTaskTaskTypeTaskIDDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get cluster cluster ID task task type task ID default response -func (o *GetClusterClusterIDTaskTaskTypeTaskIDDefault) Code() int { - return o._statusCode -} - -func (o *GetClusterClusterIDTaskTaskTypeTaskIDDefault) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/task/{task_type}/{task_id}][%d] GetClusterClusterIDTaskTaskTypeTaskID default %+v", o._statusCode, o.Payload) -} - -func (o *GetClusterClusterIDTaskTaskTypeTaskIDDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetClusterClusterIDTaskTaskTypeTaskIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_validate_backup_task_id_run_id_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_validate_backup_task_id_run_id_parameters.go deleted file mode 100644 index f423f1384e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_validate_backup_task_id_run_id_parameters.go +++ /dev/null @@ -1,169 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetClusterClusterIDTaskValidateBackupTaskIDRunIDParams creates a new GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams object -// with the default values initialized. -func NewGetClusterClusterIDTaskValidateBackupTaskIDRunIDParams() *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams { - var () - return &GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetClusterClusterIDTaskValidateBackupTaskIDRunIDParamsWithTimeout creates a new GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetClusterClusterIDTaskValidateBackupTaskIDRunIDParamsWithTimeout(timeout time.Duration) *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams { - var () - return &GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams{ - - timeout: timeout, - } -} - -// NewGetClusterClusterIDTaskValidateBackupTaskIDRunIDParamsWithContext creates a new GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetClusterClusterIDTaskValidateBackupTaskIDRunIDParamsWithContext(ctx context.Context) *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams { - var () - return &GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams{ - - Context: ctx, - } -} - -// NewGetClusterClusterIDTaskValidateBackupTaskIDRunIDParamsWithHTTPClient creates a new GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetClusterClusterIDTaskValidateBackupTaskIDRunIDParamsWithHTTPClient(client *http.Client) *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams { - var () - return &GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams{ - HTTPClient: client, - } -} - -/* -GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams contains all the parameters to send to the API endpoint -for the get cluster cluster ID task validate backup task ID run ID operation typically these are written to a http.Request -*/ -type GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams struct { - - /*ClusterID*/ - ClusterID string - /*RunID*/ - RunID string - /*TaskID*/ - TaskID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get cluster cluster ID task validate backup task ID run ID params -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams) WithTimeout(timeout time.Duration) *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get cluster cluster ID task validate backup task ID run ID params -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get cluster cluster ID task validate backup task ID run ID params -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams) WithContext(ctx context.Context) *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get cluster cluster ID task validate backup task ID run ID params -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get cluster cluster ID task validate backup task ID run ID params -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams) WithHTTPClient(client *http.Client) *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get cluster cluster ID task validate backup task ID run ID params -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the get cluster cluster ID task validate backup task ID run ID params -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams) WithClusterID(clusterID string) *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the get cluster cluster ID task validate backup task ID run ID params -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithRunID adds the runID to the get cluster cluster ID task validate backup task ID run ID params -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams) WithRunID(runID string) *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams { - o.SetRunID(runID) - return o -} - -// SetRunID adds the runId to the get cluster cluster ID task validate backup task ID run ID params -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams) SetRunID(runID string) { - o.RunID = runID -} - -// WithTaskID adds the taskID to the get cluster cluster ID task validate backup task ID run ID params -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams) WithTaskID(taskID string) *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams { - o.SetTaskID(taskID) - return o -} - -// SetTaskID adds the taskId to the get cluster cluster ID task validate backup task ID run ID params -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams) SetTaskID(taskID string) { - o.TaskID = taskID -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - // path param run_id - if err := r.SetPathParam("run_id", o.RunID); err != nil { - return err - } - - // path param task_id - if err := r.SetPathParam("task_id", o.TaskID); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_validate_backup_task_id_run_id_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_validate_backup_task_id_run_id_responses.go deleted file mode 100644 index 45da535623..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_task_validate_backup_task_id_run_id_responses.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetClusterClusterIDTaskValidateBackupTaskIDRunIDReader is a Reader for the GetClusterClusterIDTaskValidateBackupTaskIDRunID structure. -type GetClusterClusterIDTaskValidateBackupTaskIDRunIDReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClusterClusterIDTaskValidateBackupTaskIDRunIDOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetClusterClusterIDTaskValidateBackupTaskIDRunIDDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetClusterClusterIDTaskValidateBackupTaskIDRunIDOK creates a GetClusterClusterIDTaskValidateBackupTaskIDRunIDOK with default headers values -func NewGetClusterClusterIDTaskValidateBackupTaskIDRunIDOK() *GetClusterClusterIDTaskValidateBackupTaskIDRunIDOK { - return &GetClusterClusterIDTaskValidateBackupTaskIDRunIDOK{} -} - -/* -GetClusterClusterIDTaskValidateBackupTaskIDRunIDOK handles this case with default header values. - -Backup validation progress -*/ -type GetClusterClusterIDTaskValidateBackupTaskIDRunIDOK struct { - Payload *models.TaskRunValidateBackupProgress -} - -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDOK) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/task/validate_backup/{task_id}/{run_id}][%d] getClusterClusterIdTaskValidateBackupTaskIdRunIdOK %+v", 200, o.Payload) -} - -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDOK) GetPayload() *models.TaskRunValidateBackupProgress { - return o.Payload -} - -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.TaskRunValidateBackupProgress) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterClusterIDTaskValidateBackupTaskIDRunIDDefault creates a GetClusterClusterIDTaskValidateBackupTaskIDRunIDDefault with default headers values -func NewGetClusterClusterIDTaskValidateBackupTaskIDRunIDDefault(code int) *GetClusterClusterIDTaskValidateBackupTaskIDRunIDDefault { - return &GetClusterClusterIDTaskValidateBackupTaskIDRunIDDefault{ - _statusCode: code, - } -} - -/* -GetClusterClusterIDTaskValidateBackupTaskIDRunIDDefault handles this case with default header values. - -Error -*/ -type GetClusterClusterIDTaskValidateBackupTaskIDRunIDDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get cluster cluster ID task validate backup task ID run ID default response -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDDefault) Code() int { - return o._statusCode -} - -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDDefault) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/task/validate_backup/{task_id}/{run_id}][%d] GetClusterClusterIDTaskValidateBackupTaskIDRunID default %+v", o._statusCode, o.Payload) -} - -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetClusterClusterIDTaskValidateBackupTaskIDRunIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_backup_target_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_backup_target_parameters.go deleted file mode 100644 index 8aba4d6603..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_backup_target_parameters.go +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// NewGetClusterClusterIDTasksBackupTargetParams creates a new GetClusterClusterIDTasksBackupTargetParams object -// with the default values initialized. -func NewGetClusterClusterIDTasksBackupTargetParams() *GetClusterClusterIDTasksBackupTargetParams { - var () - return &GetClusterClusterIDTasksBackupTargetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetClusterClusterIDTasksBackupTargetParamsWithTimeout creates a new GetClusterClusterIDTasksBackupTargetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetClusterClusterIDTasksBackupTargetParamsWithTimeout(timeout time.Duration) *GetClusterClusterIDTasksBackupTargetParams { - var () - return &GetClusterClusterIDTasksBackupTargetParams{ - - timeout: timeout, - } -} - -// NewGetClusterClusterIDTasksBackupTargetParamsWithContext creates a new GetClusterClusterIDTasksBackupTargetParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetClusterClusterIDTasksBackupTargetParamsWithContext(ctx context.Context) *GetClusterClusterIDTasksBackupTargetParams { - var () - return &GetClusterClusterIDTasksBackupTargetParams{ - - Context: ctx, - } -} - -// NewGetClusterClusterIDTasksBackupTargetParamsWithHTTPClient creates a new GetClusterClusterIDTasksBackupTargetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetClusterClusterIDTasksBackupTargetParamsWithHTTPClient(client *http.Client) *GetClusterClusterIDTasksBackupTargetParams { - var () - return &GetClusterClusterIDTasksBackupTargetParams{ - HTTPClient: client, - } -} - -/* -GetClusterClusterIDTasksBackupTargetParams contains all the parameters to send to the API endpoint -for the get cluster cluster ID tasks backup target operation typically these are written to a http.Request -*/ -type GetClusterClusterIDTasksBackupTargetParams struct { - - /*ClusterID*/ - ClusterID string - /*TaskFields*/ - TaskFields *models.TaskUpdate - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get cluster cluster ID tasks backup target params -func (o *GetClusterClusterIDTasksBackupTargetParams) WithTimeout(timeout time.Duration) *GetClusterClusterIDTasksBackupTargetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get cluster cluster ID tasks backup target params -func (o *GetClusterClusterIDTasksBackupTargetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get cluster cluster ID tasks backup target params -func (o *GetClusterClusterIDTasksBackupTargetParams) WithContext(ctx context.Context) *GetClusterClusterIDTasksBackupTargetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get cluster cluster ID tasks backup target params -func (o *GetClusterClusterIDTasksBackupTargetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get cluster cluster ID tasks backup target params -func (o *GetClusterClusterIDTasksBackupTargetParams) WithHTTPClient(client *http.Client) *GetClusterClusterIDTasksBackupTargetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get cluster cluster ID tasks backup target params -func (o *GetClusterClusterIDTasksBackupTargetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the get cluster cluster ID tasks backup target params -func (o *GetClusterClusterIDTasksBackupTargetParams) WithClusterID(clusterID string) *GetClusterClusterIDTasksBackupTargetParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the get cluster cluster ID tasks backup target params -func (o *GetClusterClusterIDTasksBackupTargetParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithTaskFields adds the taskFields to the get cluster cluster ID tasks backup target params -func (o *GetClusterClusterIDTasksBackupTargetParams) WithTaskFields(taskFields *models.TaskUpdate) *GetClusterClusterIDTasksBackupTargetParams { - o.SetTaskFields(taskFields) - return o -} - -// SetTaskFields adds the taskFields to the get cluster cluster ID tasks backup target params -func (o *GetClusterClusterIDTasksBackupTargetParams) SetTaskFields(taskFields *models.TaskUpdate) { - o.TaskFields = taskFields -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClusterClusterIDTasksBackupTargetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - if o.TaskFields != nil { - if err := r.SetBodyParam(o.TaskFields); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_backup_target_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_backup_target_responses.go deleted file mode 100644 index 367780b1c8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_backup_target_responses.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetClusterClusterIDTasksBackupTargetReader is a Reader for the GetClusterClusterIDTasksBackupTarget structure. -type GetClusterClusterIDTasksBackupTargetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClusterClusterIDTasksBackupTargetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClusterClusterIDTasksBackupTargetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetClusterClusterIDTasksBackupTargetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetClusterClusterIDTasksBackupTargetOK creates a GetClusterClusterIDTasksBackupTargetOK with default headers values -func NewGetClusterClusterIDTasksBackupTargetOK() *GetClusterClusterIDTasksBackupTargetOK { - return &GetClusterClusterIDTasksBackupTargetOK{} -} - -/* -GetClusterClusterIDTasksBackupTargetOK handles this case with default header values. - -Backup target -*/ -type GetClusterClusterIDTasksBackupTargetOK struct { - Payload *models.BackupTarget -} - -func (o *GetClusterClusterIDTasksBackupTargetOK) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/tasks/backup/target][%d] getClusterClusterIdTasksBackupTargetOK %+v", 200, o.Payload) -} - -func (o *GetClusterClusterIDTasksBackupTargetOK) GetPayload() *models.BackupTarget { - return o.Payload -} - -func (o *GetClusterClusterIDTasksBackupTargetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.BackupTarget) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterClusterIDTasksBackupTargetDefault creates a GetClusterClusterIDTasksBackupTargetDefault with default headers values -func NewGetClusterClusterIDTasksBackupTargetDefault(code int) *GetClusterClusterIDTasksBackupTargetDefault { - return &GetClusterClusterIDTasksBackupTargetDefault{ - _statusCode: code, - } -} - -/* -GetClusterClusterIDTasksBackupTargetDefault handles this case with default header values. - -Error -*/ -type GetClusterClusterIDTasksBackupTargetDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get cluster cluster ID tasks backup target default response -func (o *GetClusterClusterIDTasksBackupTargetDefault) Code() int { - return o._statusCode -} - -func (o *GetClusterClusterIDTasksBackupTargetDefault) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/tasks/backup/target][%d] GetClusterClusterIDTasksBackupTarget default %+v", o._statusCode, o.Payload) -} - -func (o *GetClusterClusterIDTasksBackupTargetDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetClusterClusterIDTasksBackupTargetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_parameters.go deleted file mode 100644 index b10e8a2959..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_parameters.go +++ /dev/null @@ -1,279 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewGetClusterClusterIDTasksParams creates a new GetClusterClusterIDTasksParams object -// with the default values initialized. -func NewGetClusterClusterIDTasksParams() *GetClusterClusterIDTasksParams { - var () - return &GetClusterClusterIDTasksParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetClusterClusterIDTasksParamsWithTimeout creates a new GetClusterClusterIDTasksParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetClusterClusterIDTasksParamsWithTimeout(timeout time.Duration) *GetClusterClusterIDTasksParams { - var () - return &GetClusterClusterIDTasksParams{ - - timeout: timeout, - } -} - -// NewGetClusterClusterIDTasksParamsWithContext creates a new GetClusterClusterIDTasksParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetClusterClusterIDTasksParamsWithContext(ctx context.Context) *GetClusterClusterIDTasksParams { - var () - return &GetClusterClusterIDTasksParams{ - - Context: ctx, - } -} - -// NewGetClusterClusterIDTasksParamsWithHTTPClient creates a new GetClusterClusterIDTasksParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetClusterClusterIDTasksParamsWithHTTPClient(client *http.Client) *GetClusterClusterIDTasksParams { - var () - return &GetClusterClusterIDTasksParams{ - HTTPClient: client, - } -} - -/* -GetClusterClusterIDTasksParams contains all the parameters to send to the API endpoint -for the get cluster cluster ID tasks operation typically these are written to a http.Request -*/ -type GetClusterClusterIDTasksParams struct { - - /*All*/ - All *bool - /*ClusterID*/ - ClusterID string - /*Short*/ - Short *bool - /*Status*/ - Status *string - /*TaskID*/ - TaskID *string - /*Type*/ - Type *string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get cluster cluster ID tasks params -func (o *GetClusterClusterIDTasksParams) WithTimeout(timeout time.Duration) *GetClusterClusterIDTasksParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get cluster cluster ID tasks params -func (o *GetClusterClusterIDTasksParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get cluster cluster ID tasks params -func (o *GetClusterClusterIDTasksParams) WithContext(ctx context.Context) *GetClusterClusterIDTasksParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get cluster cluster ID tasks params -func (o *GetClusterClusterIDTasksParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get cluster cluster ID tasks params -func (o *GetClusterClusterIDTasksParams) WithHTTPClient(client *http.Client) *GetClusterClusterIDTasksParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get cluster cluster ID tasks params -func (o *GetClusterClusterIDTasksParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAll adds the all to the get cluster cluster ID tasks params -func (o *GetClusterClusterIDTasksParams) WithAll(all *bool) *GetClusterClusterIDTasksParams { - o.SetAll(all) - return o -} - -// SetAll adds the all to the get cluster cluster ID tasks params -func (o *GetClusterClusterIDTasksParams) SetAll(all *bool) { - o.All = all -} - -// WithClusterID adds the clusterID to the get cluster cluster ID tasks params -func (o *GetClusterClusterIDTasksParams) WithClusterID(clusterID string) *GetClusterClusterIDTasksParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the get cluster cluster ID tasks params -func (o *GetClusterClusterIDTasksParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithShort adds the short to the get cluster cluster ID tasks params -func (o *GetClusterClusterIDTasksParams) WithShort(short *bool) *GetClusterClusterIDTasksParams { - o.SetShort(short) - return o -} - -// SetShort adds the short to the get cluster cluster ID tasks params -func (o *GetClusterClusterIDTasksParams) SetShort(short *bool) { - o.Short = short -} - -// WithStatus adds the status to the get cluster cluster ID tasks params -func (o *GetClusterClusterIDTasksParams) WithStatus(status *string) *GetClusterClusterIDTasksParams { - o.SetStatus(status) - return o -} - -// SetStatus adds the status to the get cluster cluster ID tasks params -func (o *GetClusterClusterIDTasksParams) SetStatus(status *string) { - o.Status = status -} - -// WithTaskID adds the taskID to the get cluster cluster ID tasks params -func (o *GetClusterClusterIDTasksParams) WithTaskID(taskID *string) *GetClusterClusterIDTasksParams { - o.SetTaskID(taskID) - return o -} - -// SetTaskID adds the taskId to the get cluster cluster ID tasks params -func (o *GetClusterClusterIDTasksParams) SetTaskID(taskID *string) { - o.TaskID = taskID -} - -// WithType adds the typeVar to the get cluster cluster ID tasks params -func (o *GetClusterClusterIDTasksParams) WithType(typeVar *string) *GetClusterClusterIDTasksParams { - o.SetType(typeVar) - return o -} - -// SetType adds the type to the get cluster cluster ID tasks params -func (o *GetClusterClusterIDTasksParams) SetType(typeVar *string) { - o.Type = typeVar -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClusterClusterIDTasksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.All != nil { - - // query param all - var qrAll bool - if o.All != nil { - qrAll = *o.All - } - qAll := swag.FormatBool(qrAll) - if qAll != "" { - if err := r.SetQueryParam("all", qAll); err != nil { - return err - } - } - - } - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - if o.Short != nil { - - // query param short - var qrShort bool - if o.Short != nil { - qrShort = *o.Short - } - qShort := swag.FormatBool(qrShort) - if qShort != "" { - if err := r.SetQueryParam("short", qShort); err != nil { - return err - } - } - - } - - if o.Status != nil { - - // query param status - var qrStatus string - if o.Status != nil { - qrStatus = *o.Status - } - qStatus := qrStatus - if qStatus != "" { - if err := r.SetQueryParam("status", qStatus); err != nil { - return err - } - } - - } - - if o.TaskID != nil { - - // query param task_id - var qrTaskID string - if o.TaskID != nil { - qrTaskID = *o.TaskID - } - qTaskID := qrTaskID - if qTaskID != "" { - if err := r.SetQueryParam("task_id", qTaskID); err != nil { - return err - } - } - - } - - if o.Type != nil { - - // query param type - var qrType string - if o.Type != nil { - qrType = *o.Type - } - qType := qrType - if qType != "" { - if err := r.SetQueryParam("type", qType); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_repair_target_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_repair_target_parameters.go deleted file mode 100644 index aeb8df26e3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_repair_target_parameters.go +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// NewGetClusterClusterIDTasksRepairTargetParams creates a new GetClusterClusterIDTasksRepairTargetParams object -// with the default values initialized. -func NewGetClusterClusterIDTasksRepairTargetParams() *GetClusterClusterIDTasksRepairTargetParams { - var () - return &GetClusterClusterIDTasksRepairTargetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetClusterClusterIDTasksRepairTargetParamsWithTimeout creates a new GetClusterClusterIDTasksRepairTargetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetClusterClusterIDTasksRepairTargetParamsWithTimeout(timeout time.Duration) *GetClusterClusterIDTasksRepairTargetParams { - var () - return &GetClusterClusterIDTasksRepairTargetParams{ - - timeout: timeout, - } -} - -// NewGetClusterClusterIDTasksRepairTargetParamsWithContext creates a new GetClusterClusterIDTasksRepairTargetParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetClusterClusterIDTasksRepairTargetParamsWithContext(ctx context.Context) *GetClusterClusterIDTasksRepairTargetParams { - var () - return &GetClusterClusterIDTasksRepairTargetParams{ - - Context: ctx, - } -} - -// NewGetClusterClusterIDTasksRepairTargetParamsWithHTTPClient creates a new GetClusterClusterIDTasksRepairTargetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetClusterClusterIDTasksRepairTargetParamsWithHTTPClient(client *http.Client) *GetClusterClusterIDTasksRepairTargetParams { - var () - return &GetClusterClusterIDTasksRepairTargetParams{ - HTTPClient: client, - } -} - -/* -GetClusterClusterIDTasksRepairTargetParams contains all the parameters to send to the API endpoint -for the get cluster cluster ID tasks repair target operation typically these are written to a http.Request -*/ -type GetClusterClusterIDTasksRepairTargetParams struct { - - /*ClusterID*/ - ClusterID string - /*TaskFields*/ - TaskFields *models.TaskUpdate - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get cluster cluster ID tasks repair target params -func (o *GetClusterClusterIDTasksRepairTargetParams) WithTimeout(timeout time.Duration) *GetClusterClusterIDTasksRepairTargetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get cluster cluster ID tasks repair target params -func (o *GetClusterClusterIDTasksRepairTargetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get cluster cluster ID tasks repair target params -func (o *GetClusterClusterIDTasksRepairTargetParams) WithContext(ctx context.Context) *GetClusterClusterIDTasksRepairTargetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get cluster cluster ID tasks repair target params -func (o *GetClusterClusterIDTasksRepairTargetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get cluster cluster ID tasks repair target params -func (o *GetClusterClusterIDTasksRepairTargetParams) WithHTTPClient(client *http.Client) *GetClusterClusterIDTasksRepairTargetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get cluster cluster ID tasks repair target params -func (o *GetClusterClusterIDTasksRepairTargetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the get cluster cluster ID tasks repair target params -func (o *GetClusterClusterIDTasksRepairTargetParams) WithClusterID(clusterID string) *GetClusterClusterIDTasksRepairTargetParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the get cluster cluster ID tasks repair target params -func (o *GetClusterClusterIDTasksRepairTargetParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithTaskFields adds the taskFields to the get cluster cluster ID tasks repair target params -func (o *GetClusterClusterIDTasksRepairTargetParams) WithTaskFields(taskFields *models.TaskUpdate) *GetClusterClusterIDTasksRepairTargetParams { - o.SetTaskFields(taskFields) - return o -} - -// SetTaskFields adds the taskFields to the get cluster cluster ID tasks repair target params -func (o *GetClusterClusterIDTasksRepairTargetParams) SetTaskFields(taskFields *models.TaskUpdate) { - o.TaskFields = taskFields -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClusterClusterIDTasksRepairTargetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - if o.TaskFields != nil { - if err := r.SetBodyParam(o.TaskFields); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_repair_target_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_repair_target_responses.go deleted file mode 100644 index a5ba329792..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_repair_target_responses.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetClusterClusterIDTasksRepairTargetReader is a Reader for the GetClusterClusterIDTasksRepairTarget structure. -type GetClusterClusterIDTasksRepairTargetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClusterClusterIDTasksRepairTargetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClusterClusterIDTasksRepairTargetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetClusterClusterIDTasksRepairTargetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetClusterClusterIDTasksRepairTargetOK creates a GetClusterClusterIDTasksRepairTargetOK with default headers values -func NewGetClusterClusterIDTasksRepairTargetOK() *GetClusterClusterIDTasksRepairTargetOK { - return &GetClusterClusterIDTasksRepairTargetOK{} -} - -/* -GetClusterClusterIDTasksRepairTargetOK handles this case with default header values. - -Repair target -*/ -type GetClusterClusterIDTasksRepairTargetOK struct { - Payload *models.RepairTarget -} - -func (o *GetClusterClusterIDTasksRepairTargetOK) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/tasks/repair/target][%d] getClusterClusterIdTasksRepairTargetOK %+v", 200, o.Payload) -} - -func (o *GetClusterClusterIDTasksRepairTargetOK) GetPayload() *models.RepairTarget { - return o.Payload -} - -func (o *GetClusterClusterIDTasksRepairTargetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.RepairTarget) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterClusterIDTasksRepairTargetDefault creates a GetClusterClusterIDTasksRepairTargetDefault with default headers values -func NewGetClusterClusterIDTasksRepairTargetDefault(code int) *GetClusterClusterIDTasksRepairTargetDefault { - return &GetClusterClusterIDTasksRepairTargetDefault{ - _statusCode: code, - } -} - -/* -GetClusterClusterIDTasksRepairTargetDefault handles this case with default header values. - -Error -*/ -type GetClusterClusterIDTasksRepairTargetDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get cluster cluster ID tasks repair target default response -func (o *GetClusterClusterIDTasksRepairTargetDefault) Code() int { - return o._statusCode -} - -func (o *GetClusterClusterIDTasksRepairTargetDefault) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/tasks/repair/target][%d] GetClusterClusterIDTasksRepairTarget default %+v", o._statusCode, o.Payload) -} - -func (o *GetClusterClusterIDTasksRepairTargetDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetClusterClusterIDTasksRepairTargetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_responses.go deleted file mode 100644 index f13d676841..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_responses.go +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetClusterClusterIDTasksReader is a Reader for the GetClusterClusterIDTasks structure. -type GetClusterClusterIDTasksReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClusterClusterIDTasksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClusterClusterIDTasksOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetClusterClusterIDTasksDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetClusterClusterIDTasksOK creates a GetClusterClusterIDTasksOK with default headers values -func NewGetClusterClusterIDTasksOK() *GetClusterClusterIDTasksOK { - return &GetClusterClusterIDTasksOK{} -} - -/* -GetClusterClusterIDTasksOK handles this case with default header values. - -List of tasks -*/ -type GetClusterClusterIDTasksOK struct { - Payload []*models.TaskListItem -} - -func (o *GetClusterClusterIDTasksOK) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/tasks][%d] getClusterClusterIdTasksOK %+v", 200, o.Payload) -} - -func (o *GetClusterClusterIDTasksOK) GetPayload() []*models.TaskListItem { - return o.Payload -} - -func (o *GetClusterClusterIDTasksOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterClusterIDTasksDefault creates a GetClusterClusterIDTasksDefault with default headers values -func NewGetClusterClusterIDTasksDefault(code int) *GetClusterClusterIDTasksDefault { - return &GetClusterClusterIDTasksDefault{ - _statusCode: code, - } -} - -/* -GetClusterClusterIDTasksDefault handles this case with default header values. - -Error -*/ -type GetClusterClusterIDTasksDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get cluster cluster ID tasks default response -func (o *GetClusterClusterIDTasksDefault) Code() int { - return o._statusCode -} - -func (o *GetClusterClusterIDTasksDefault) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/tasks][%d] GetClusterClusterIDTasks default %+v", o._statusCode, o.Payload) -} - -func (o *GetClusterClusterIDTasksDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetClusterClusterIDTasksDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_restore_target_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_restore_target_parameters.go deleted file mode 100644 index 228204b7a0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_restore_target_parameters.go +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// NewGetClusterClusterIDTasksRestoreTargetParams creates a new GetClusterClusterIDTasksRestoreTargetParams object -// with the default values initialized. -func NewGetClusterClusterIDTasksRestoreTargetParams() *GetClusterClusterIDTasksRestoreTargetParams { - var () - return &GetClusterClusterIDTasksRestoreTargetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetClusterClusterIDTasksRestoreTargetParamsWithTimeout creates a new GetClusterClusterIDTasksRestoreTargetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetClusterClusterIDTasksRestoreTargetParamsWithTimeout(timeout time.Duration) *GetClusterClusterIDTasksRestoreTargetParams { - var () - return &GetClusterClusterIDTasksRestoreTargetParams{ - - timeout: timeout, - } -} - -// NewGetClusterClusterIDTasksRestoreTargetParamsWithContext creates a new GetClusterClusterIDTasksRestoreTargetParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetClusterClusterIDTasksRestoreTargetParamsWithContext(ctx context.Context) *GetClusterClusterIDTasksRestoreTargetParams { - var () - return &GetClusterClusterIDTasksRestoreTargetParams{ - - Context: ctx, - } -} - -// NewGetClusterClusterIDTasksRestoreTargetParamsWithHTTPClient creates a new GetClusterClusterIDTasksRestoreTargetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetClusterClusterIDTasksRestoreTargetParamsWithHTTPClient(client *http.Client) *GetClusterClusterIDTasksRestoreTargetParams { - var () - return &GetClusterClusterIDTasksRestoreTargetParams{ - HTTPClient: client, - } -} - -/* -GetClusterClusterIDTasksRestoreTargetParams contains all the parameters to send to the API endpoint -for the get cluster cluster ID tasks restore target operation typically these are written to a http.Request -*/ -type GetClusterClusterIDTasksRestoreTargetParams struct { - - /*ClusterID*/ - ClusterID string - /*TaskFields*/ - TaskFields *models.TaskUpdate - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get cluster cluster ID tasks restore target params -func (o *GetClusterClusterIDTasksRestoreTargetParams) WithTimeout(timeout time.Duration) *GetClusterClusterIDTasksRestoreTargetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get cluster cluster ID tasks restore target params -func (o *GetClusterClusterIDTasksRestoreTargetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get cluster cluster ID tasks restore target params -func (o *GetClusterClusterIDTasksRestoreTargetParams) WithContext(ctx context.Context) *GetClusterClusterIDTasksRestoreTargetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get cluster cluster ID tasks restore target params -func (o *GetClusterClusterIDTasksRestoreTargetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get cluster cluster ID tasks restore target params -func (o *GetClusterClusterIDTasksRestoreTargetParams) WithHTTPClient(client *http.Client) *GetClusterClusterIDTasksRestoreTargetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get cluster cluster ID tasks restore target params -func (o *GetClusterClusterIDTasksRestoreTargetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the get cluster cluster ID tasks restore target params -func (o *GetClusterClusterIDTasksRestoreTargetParams) WithClusterID(clusterID string) *GetClusterClusterIDTasksRestoreTargetParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the get cluster cluster ID tasks restore target params -func (o *GetClusterClusterIDTasksRestoreTargetParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithTaskFields adds the taskFields to the get cluster cluster ID tasks restore target params -func (o *GetClusterClusterIDTasksRestoreTargetParams) WithTaskFields(taskFields *models.TaskUpdate) *GetClusterClusterIDTasksRestoreTargetParams { - o.SetTaskFields(taskFields) - return o -} - -// SetTaskFields adds the taskFields to the get cluster cluster ID tasks restore target params -func (o *GetClusterClusterIDTasksRestoreTargetParams) SetTaskFields(taskFields *models.TaskUpdate) { - o.TaskFields = taskFields -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClusterClusterIDTasksRestoreTargetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - if o.TaskFields != nil { - if err := r.SetBodyParam(o.TaskFields); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_restore_target_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_restore_target_responses.go deleted file mode 100644 index 0f664b9c7c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_cluster_cluster_id_tasks_restore_target_responses.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetClusterClusterIDTasksRestoreTargetReader is a Reader for the GetClusterClusterIDTasksRestoreTarget structure. -type GetClusterClusterIDTasksRestoreTargetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClusterClusterIDTasksRestoreTargetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClusterClusterIDTasksRestoreTargetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetClusterClusterIDTasksRestoreTargetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetClusterClusterIDTasksRestoreTargetOK creates a GetClusterClusterIDTasksRestoreTargetOK with default headers values -func NewGetClusterClusterIDTasksRestoreTargetOK() *GetClusterClusterIDTasksRestoreTargetOK { - return &GetClusterClusterIDTasksRestoreTargetOK{} -} - -/* -GetClusterClusterIDTasksRestoreTargetOK handles this case with default header values. - -Restore target -*/ -type GetClusterClusterIDTasksRestoreTargetOK struct { - Payload *models.RestoreTarget -} - -func (o *GetClusterClusterIDTasksRestoreTargetOK) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/tasks/restore/target][%d] getClusterClusterIdTasksRestoreTargetOK %+v", 200, o.Payload) -} - -func (o *GetClusterClusterIDTasksRestoreTargetOK) GetPayload() *models.RestoreTarget { - return o.Payload -} - -func (o *GetClusterClusterIDTasksRestoreTargetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.RestoreTarget) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClusterClusterIDTasksRestoreTargetDefault creates a GetClusterClusterIDTasksRestoreTargetDefault with default headers values -func NewGetClusterClusterIDTasksRestoreTargetDefault(code int) *GetClusterClusterIDTasksRestoreTargetDefault { - return &GetClusterClusterIDTasksRestoreTargetDefault{ - _statusCode: code, - } -} - -/* -GetClusterClusterIDTasksRestoreTargetDefault handles this case with default header values. - -Error -*/ -type GetClusterClusterIDTasksRestoreTargetDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get cluster cluster ID tasks restore target default response -func (o *GetClusterClusterIDTasksRestoreTargetDefault) Code() int { - return o._statusCode -} - -func (o *GetClusterClusterIDTasksRestoreTargetDefault) Error() string { - return fmt.Sprintf("[GET /cluster/{cluster_id}/tasks/restore/target][%d] GetClusterClusterIDTasksRestoreTarget default %+v", o._statusCode, o.Payload) -} - -func (o *GetClusterClusterIDTasksRestoreTargetDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetClusterClusterIDTasksRestoreTargetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_clusters_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_clusters_parameters.go deleted file mode 100644 index 552d93805d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_clusters_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetClustersParams creates a new GetClustersParams object -// with the default values initialized. -func NewGetClustersParams() *GetClustersParams { - - return &GetClustersParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetClustersParamsWithTimeout creates a new GetClustersParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetClustersParamsWithTimeout(timeout time.Duration) *GetClustersParams { - - return &GetClustersParams{ - - timeout: timeout, - } -} - -// NewGetClustersParamsWithContext creates a new GetClustersParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetClustersParamsWithContext(ctx context.Context) *GetClustersParams { - - return &GetClustersParams{ - - Context: ctx, - } -} - -// NewGetClustersParamsWithHTTPClient creates a new GetClustersParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetClustersParamsWithHTTPClient(client *http.Client) *GetClustersParams { - - return &GetClustersParams{ - HTTPClient: client, - } -} - -/* -GetClustersParams contains all the parameters to send to the API endpoint -for the get clusters operation typically these are written to a http.Request -*/ -type GetClustersParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get clusters params -func (o *GetClustersParams) WithTimeout(timeout time.Duration) *GetClustersParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get clusters params -func (o *GetClustersParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get clusters params -func (o *GetClustersParams) WithContext(ctx context.Context) *GetClustersParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get clusters params -func (o *GetClustersParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get clusters params -func (o *GetClustersParams) WithHTTPClient(client *http.Client) *GetClustersParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get clusters params -func (o *GetClustersParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *GetClustersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_clusters_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_clusters_responses.go deleted file mode 100644 index 733aa12ebe..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_clusters_responses.go +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetClustersReader is a Reader for the GetClusters structure. -type GetClustersReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetClustersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetClustersOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetClustersDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetClustersOK creates a GetClustersOK with default headers values -func NewGetClustersOK() *GetClustersOK { - return &GetClustersOK{} -} - -/* -GetClustersOK handles this case with default header values. - -List of all clusters -*/ -type GetClustersOK struct { - Payload []*models.Cluster -} - -func (o *GetClustersOK) Error() string { - return fmt.Sprintf("[GET /clusters][%d] getClustersOK %+v", 200, o.Payload) -} - -func (o *GetClustersOK) GetPayload() []*models.Cluster { - return o.Payload -} - -func (o *GetClustersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetClustersDefault creates a GetClustersDefault with default headers values -func NewGetClustersDefault(code int) *GetClustersDefault { - return &GetClustersDefault{ - _statusCode: code, - } -} - -/* -GetClustersDefault handles this case with default header values. - -Error -*/ -type GetClustersDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get clusters default response -func (o *GetClustersDefault) Code() int { - return o._statusCode -} - -func (o *GetClustersDefault) Error() string { - return fmt.Sprintf("[GET /clusters][%d] GetClusters default %+v", o._statusCode, o.Payload) -} - -func (o *GetClustersDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetClustersDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_version_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_version_parameters.go deleted file mode 100644 index 4d95d2d52e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_version_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetVersionParams creates a new GetVersionParams object -// with the default values initialized. -func NewGetVersionParams() *GetVersionParams { - - return &GetVersionParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGetVersionParamsWithTimeout creates a new GetVersionParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGetVersionParamsWithTimeout(timeout time.Duration) *GetVersionParams { - - return &GetVersionParams{ - - timeout: timeout, - } -} - -// NewGetVersionParamsWithContext creates a new GetVersionParams object -// with the default values initialized, and the ability to set a context for a request -func NewGetVersionParamsWithContext(ctx context.Context) *GetVersionParams { - - return &GetVersionParams{ - - Context: ctx, - } -} - -// NewGetVersionParamsWithHTTPClient creates a new GetVersionParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGetVersionParamsWithHTTPClient(client *http.Client) *GetVersionParams { - - return &GetVersionParams{ - HTTPClient: client, - } -} - -/* -GetVersionParams contains all the parameters to send to the API endpoint -for the get version operation typically these are written to a http.Request -*/ -type GetVersionParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the get version params -func (o *GetVersionParams) WithTimeout(timeout time.Duration) *GetVersionParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get version params -func (o *GetVersionParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get version params -func (o *GetVersionParams) WithContext(ctx context.Context) *GetVersionParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get version params -func (o *GetVersionParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get version params -func (o *GetVersionParams) WithHTTPClient(client *http.Client) *GetVersionParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get version params -func (o *GetVersionParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *GetVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_version_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_version_responses.go deleted file mode 100644 index a62b7267f1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/get_version_responses.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// GetVersionReader is a Reader for the GetVersion structure. -type GetVersionReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetVersionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetVersionOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGetVersionDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGetVersionOK creates a GetVersionOK with default headers values -func NewGetVersionOK() *GetVersionOK { - return &GetVersionOK{} -} - -/* -GetVersionOK handles this case with default header values. - -Server version -*/ -type GetVersionOK struct { - Payload *models.Version -} - -func (o *GetVersionOK) Error() string { - return fmt.Sprintf("[GET /version][%d] getVersionOK %+v", 200, o.Payload) -} - -func (o *GetVersionOK) GetPayload() *models.Version { - return o.Payload -} - -func (o *GetVersionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.Version) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetVersionDefault creates a GetVersionDefault with default headers values -func NewGetVersionDefault(code int) *GetVersionDefault { - return &GetVersionDefault{ - _statusCode: code, - } -} - -/* -GetVersionDefault handles this case with default header values. - -Error -*/ -type GetVersionDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the get version default response -func (o *GetVersionDefault) Code() int { - return o._statusCode -} - -func (o *GetVersionDefault) Error() string { - return fmt.Sprintf("[GET /version][%d] GetVersion default %+v", o._statusCode, o.Payload) -} - -func (o *GetVersionDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *GetVersionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/operations_client.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/operations_client.go deleted file mode 100644 index daca72774e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/operations_client.go +++ /dev/null @@ -1,1154 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// New creates a new operations API client. -func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { - return &Client{transport: transport, formats: formats} -} - -/* -Client for operations API -*/ -type Client struct { - transport runtime.ClientTransport - formats strfmt.Registry -} - -// ClientService is the interface for Client methods -type ClientService interface { - DeleteClusterClusterID(params *DeleteClusterClusterIDParams) (*DeleteClusterClusterIDOK, error) - - DeleteClusterClusterIDBackups(params *DeleteClusterClusterIDBackupsParams) (*DeleteClusterClusterIDBackupsOK, error) - - DeleteClusterClusterIDTaskTaskTypeTaskID(params *DeleteClusterClusterIDTaskTaskTypeTaskIDParams) (*DeleteClusterClusterIDTaskTaskTypeTaskIDOK, error) - - GetClusterClusterID(params *GetClusterClusterIDParams) (*GetClusterClusterIDOK, error) - - GetClusterClusterIDBackups(params *GetClusterClusterIDBackupsParams) (*GetClusterClusterIDBackupsOK, error) - - GetClusterClusterIDBackupsFiles(params *GetClusterClusterIDBackupsFilesParams) (*GetClusterClusterIDBackupsFilesOK, error) - - GetClusterClusterIDBackupsSchema(params *GetClusterClusterIDBackupsSchemaParams) (*GetClusterClusterIDBackupsSchemaOK, error) - - GetClusterClusterIDStatus(params *GetClusterClusterIDStatusParams) (*GetClusterClusterIDStatusOK, error) - - GetClusterClusterIDSuspended(params *GetClusterClusterIDSuspendedParams) (*GetClusterClusterIDSuspendedOK, error) - - GetClusterClusterIDSuspendedDetails(params *GetClusterClusterIDSuspendedDetailsParams) (*GetClusterClusterIDSuspendedDetailsOK, error) - - GetClusterClusterIDTask11RestoreTaskIDRunID(params *GetClusterClusterIDTask11RestoreTaskIDRunIDParams) (*GetClusterClusterIDTask11RestoreTaskIDRunIDOK, error) - - GetClusterClusterIDTaskBackupTaskIDRunID(params *GetClusterClusterIDTaskBackupTaskIDRunIDParams) (*GetClusterClusterIDTaskBackupTaskIDRunIDOK, error) - - GetClusterClusterIDTaskRepairTaskIDRunID(params *GetClusterClusterIDTaskRepairTaskIDRunIDParams) (*GetClusterClusterIDTaskRepairTaskIDRunIDOK, error) - - GetClusterClusterIDTaskRestoreTaskIDRunID(params *GetClusterClusterIDTaskRestoreTaskIDRunIDParams) (*GetClusterClusterIDTaskRestoreTaskIDRunIDOK, error) - - GetClusterClusterIDTaskTaskTypeTaskID(params *GetClusterClusterIDTaskTaskTypeTaskIDParams) (*GetClusterClusterIDTaskTaskTypeTaskIDOK, error) - - GetClusterClusterIDTaskTaskTypeTaskIDHistory(params *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams) (*GetClusterClusterIDTaskTaskTypeTaskIDHistoryOK, error) - - GetClusterClusterIDTaskValidateBackupTaskIDRunID(params *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams) (*GetClusterClusterIDTaskValidateBackupTaskIDRunIDOK, error) - - GetClusterClusterIDTasks(params *GetClusterClusterIDTasksParams) (*GetClusterClusterIDTasksOK, error) - - GetClusterClusterIDTasksBackupTarget(params *GetClusterClusterIDTasksBackupTargetParams) (*GetClusterClusterIDTasksBackupTargetOK, error) - - GetClusterClusterIDTasksRepairTarget(params *GetClusterClusterIDTasksRepairTargetParams) (*GetClusterClusterIDTasksRepairTargetOK, error) - - GetClusterClusterIDTasksRestoreTarget(params *GetClusterClusterIDTasksRestoreTargetParams) (*GetClusterClusterIDTasksRestoreTargetOK, error) - - GetClusters(params *GetClustersParams) (*GetClustersOK, error) - - GetVersion(params *GetVersionParams) (*GetVersionOK, error) - - PostClusterClusterIDTasks(params *PostClusterClusterIDTasksParams) (*PostClusterClusterIDTasksCreated, error) - - PostClusters(params *PostClustersParams) (*PostClustersCreated, error) - - PutClusterClusterID(params *PutClusterClusterIDParams) (*PutClusterClusterIDOK, error) - - PutClusterClusterIDRepairsIntensity(params *PutClusterClusterIDRepairsIntensityParams) (*PutClusterClusterIDRepairsIntensityOK, error) - - PutClusterClusterIDRepairsParallel(params *PutClusterClusterIDRepairsParallelParams) (*PutClusterClusterIDRepairsParallelOK, error) - - PutClusterClusterIDSuspended(params *PutClusterClusterIDSuspendedParams) (*PutClusterClusterIDSuspendedOK, error) - - PutClusterClusterIDTaskTaskTypeTaskID(params *PutClusterClusterIDTaskTaskTypeTaskIDParams) (*PutClusterClusterIDTaskTaskTypeTaskIDOK, error) - - PutClusterClusterIDTaskTaskTypeTaskIDStart(params *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) (*PutClusterClusterIDTaskTaskTypeTaskIDStartOK, error) - - PutClusterClusterIDTaskTaskTypeTaskIDStop(params *PutClusterClusterIDTaskTaskTypeTaskIDStopParams) (*PutClusterClusterIDTaskTaskTypeTaskIDStopOK, error) - - SetTransport(transport runtime.ClientTransport) -} - -/* -DeleteClusterClusterID delete cluster cluster ID API -*/ -func (a *Client) DeleteClusterClusterID(params *DeleteClusterClusterIDParams) (*DeleteClusterClusterIDOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteClusterClusterIDParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "DeleteClusterClusterID", - Method: "DELETE", - PathPattern: "/cluster/{cluster_id}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteClusterClusterIDReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*DeleteClusterClusterIDOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*DeleteClusterClusterIDDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -DeleteClusterClusterIDBackups delete cluster cluster ID backups API -*/ -func (a *Client) DeleteClusterClusterIDBackups(params *DeleteClusterClusterIDBackupsParams) (*DeleteClusterClusterIDBackupsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteClusterClusterIDBackupsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "DeleteClusterClusterIDBackups", - Method: "DELETE", - PathPattern: "/cluster/{cluster_id}/backups", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteClusterClusterIDBackupsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*DeleteClusterClusterIDBackupsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*DeleteClusterClusterIDBackupsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -DeleteClusterClusterIDTaskTaskTypeTaskID delete cluster cluster ID task task type task ID API -*/ -func (a *Client) DeleteClusterClusterIDTaskTaskTypeTaskID(params *DeleteClusterClusterIDTaskTaskTypeTaskIDParams) (*DeleteClusterClusterIDTaskTaskTypeTaskIDOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewDeleteClusterClusterIDTaskTaskTypeTaskIDParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "DeleteClusterClusterIDTaskTaskTypeTaskID", - Method: "DELETE", - PathPattern: "/cluster/{cluster_id}/task/{task_type}/{task_id}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &DeleteClusterClusterIDTaskTaskTypeTaskIDReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*DeleteClusterClusterIDTaskTaskTypeTaskIDOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*DeleteClusterClusterIDTaskTaskTypeTaskIDDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetClusterClusterID get cluster cluster ID API -*/ -func (a *Client) GetClusterClusterID(params *GetClusterClusterIDParams) (*GetClusterClusterIDOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetClusterClusterIDParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetClusterClusterID", - Method: "GET", - PathPattern: "/cluster/{cluster_id}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClusterClusterIDReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetClusterClusterIDOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetClusterClusterIDDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetClusterClusterIDBackups get cluster cluster ID backups API -*/ -func (a *Client) GetClusterClusterIDBackups(params *GetClusterClusterIDBackupsParams) (*GetClusterClusterIDBackupsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetClusterClusterIDBackupsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetClusterClusterIDBackups", - Method: "GET", - PathPattern: "/cluster/{cluster_id}/backups", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClusterClusterIDBackupsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetClusterClusterIDBackupsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetClusterClusterIDBackupsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetClusterClusterIDBackupsFiles get cluster cluster ID backups files API -*/ -func (a *Client) GetClusterClusterIDBackupsFiles(params *GetClusterClusterIDBackupsFilesParams) (*GetClusterClusterIDBackupsFilesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetClusterClusterIDBackupsFilesParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetClusterClusterIDBackupsFiles", - Method: "GET", - PathPattern: "/cluster/{cluster_id}/backups/files", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClusterClusterIDBackupsFilesReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetClusterClusterIDBackupsFilesOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetClusterClusterIDBackupsFilesDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetClusterClusterIDBackupsSchema get cluster cluster ID backups schema API -*/ -func (a *Client) GetClusterClusterIDBackupsSchema(params *GetClusterClusterIDBackupsSchemaParams) (*GetClusterClusterIDBackupsSchemaOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetClusterClusterIDBackupsSchemaParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetClusterClusterIDBackupsSchema", - Method: "GET", - PathPattern: "/cluster/{cluster_id}/backups/schema", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClusterClusterIDBackupsSchemaReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetClusterClusterIDBackupsSchemaOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetClusterClusterIDBackupsSchemaDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetClusterClusterIDStatus get cluster cluster ID status API -*/ -func (a *Client) GetClusterClusterIDStatus(params *GetClusterClusterIDStatusParams) (*GetClusterClusterIDStatusOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetClusterClusterIDStatusParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetClusterClusterIDStatus", - Method: "GET", - PathPattern: "/cluster/{cluster_id}/status", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClusterClusterIDStatusReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetClusterClusterIDStatusOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetClusterClusterIDStatusDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetClusterClusterIDSuspended get cluster cluster ID suspended API -*/ -func (a *Client) GetClusterClusterIDSuspended(params *GetClusterClusterIDSuspendedParams) (*GetClusterClusterIDSuspendedOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetClusterClusterIDSuspendedParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetClusterClusterIDSuspended", - Method: "GET", - PathPattern: "/cluster/{cluster_id}/suspended", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClusterClusterIDSuspendedReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetClusterClusterIDSuspendedOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetClusterClusterIDSuspendedDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetClusterClusterIDSuspendedDetails get cluster cluster ID suspended details API -*/ -func (a *Client) GetClusterClusterIDSuspendedDetails(params *GetClusterClusterIDSuspendedDetailsParams) (*GetClusterClusterIDSuspendedDetailsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetClusterClusterIDSuspendedDetailsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetClusterClusterIDSuspendedDetails", - Method: "GET", - PathPattern: "/cluster/{cluster_id}/suspended/details", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClusterClusterIDSuspendedDetailsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetClusterClusterIDSuspendedDetailsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetClusterClusterIDSuspendedDetailsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetClusterClusterIDTask11RestoreTaskIDRunID get cluster cluster ID task11 restore task ID run ID API -*/ -func (a *Client) GetClusterClusterIDTask11RestoreTaskIDRunID(params *GetClusterClusterIDTask11RestoreTaskIDRunIDParams) (*GetClusterClusterIDTask11RestoreTaskIDRunIDOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetClusterClusterIDTask11RestoreTaskIDRunIDParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetClusterClusterIDTask11RestoreTaskIDRunID", - Method: "GET", - PathPattern: "/cluster/{cluster_id}/task/1_1_restore/{task_id}/{run_id}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClusterClusterIDTask11RestoreTaskIDRunIDReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetClusterClusterIDTask11RestoreTaskIDRunIDOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetClusterClusterIDTask11RestoreTaskIDRunIDDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetClusterClusterIDTaskBackupTaskIDRunID get cluster cluster ID task backup task ID run ID API -*/ -func (a *Client) GetClusterClusterIDTaskBackupTaskIDRunID(params *GetClusterClusterIDTaskBackupTaskIDRunIDParams) (*GetClusterClusterIDTaskBackupTaskIDRunIDOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetClusterClusterIDTaskBackupTaskIDRunIDParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetClusterClusterIDTaskBackupTaskIDRunID", - Method: "GET", - PathPattern: "/cluster/{cluster_id}/task/backup/{task_id}/{run_id}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClusterClusterIDTaskBackupTaskIDRunIDReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetClusterClusterIDTaskBackupTaskIDRunIDOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetClusterClusterIDTaskBackupTaskIDRunIDDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetClusterClusterIDTaskRepairTaskIDRunID get cluster cluster ID task repair task ID run ID API -*/ -func (a *Client) GetClusterClusterIDTaskRepairTaskIDRunID(params *GetClusterClusterIDTaskRepairTaskIDRunIDParams) (*GetClusterClusterIDTaskRepairTaskIDRunIDOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetClusterClusterIDTaskRepairTaskIDRunIDParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetClusterClusterIDTaskRepairTaskIDRunID", - Method: "GET", - PathPattern: "/cluster/{cluster_id}/task/repair/{task_id}/{run_id}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClusterClusterIDTaskRepairTaskIDRunIDReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetClusterClusterIDTaskRepairTaskIDRunIDOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetClusterClusterIDTaskRepairTaskIDRunIDDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetClusterClusterIDTaskRestoreTaskIDRunID get cluster cluster ID task restore task ID run ID API -*/ -func (a *Client) GetClusterClusterIDTaskRestoreTaskIDRunID(params *GetClusterClusterIDTaskRestoreTaskIDRunIDParams) (*GetClusterClusterIDTaskRestoreTaskIDRunIDOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetClusterClusterIDTaskRestoreTaskIDRunIDParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetClusterClusterIDTaskRestoreTaskIDRunID", - Method: "GET", - PathPattern: "/cluster/{cluster_id}/task/restore/{task_id}/{run_id}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClusterClusterIDTaskRestoreTaskIDRunIDReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetClusterClusterIDTaskRestoreTaskIDRunIDOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetClusterClusterIDTaskRestoreTaskIDRunIDDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetClusterClusterIDTaskTaskTypeTaskID get cluster cluster ID task task type task ID API -*/ -func (a *Client) GetClusterClusterIDTaskTaskTypeTaskID(params *GetClusterClusterIDTaskTaskTypeTaskIDParams) (*GetClusterClusterIDTaskTaskTypeTaskIDOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetClusterClusterIDTaskTaskTypeTaskIDParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetClusterClusterIDTaskTaskTypeTaskID", - Method: "GET", - PathPattern: "/cluster/{cluster_id}/task/{task_type}/{task_id}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClusterClusterIDTaskTaskTypeTaskIDReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetClusterClusterIDTaskTaskTypeTaskIDOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetClusterClusterIDTaskTaskTypeTaskIDDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetClusterClusterIDTaskTaskTypeTaskIDHistory get cluster cluster ID task task type task ID history API -*/ -func (a *Client) GetClusterClusterIDTaskTaskTypeTaskIDHistory(params *GetClusterClusterIDTaskTaskTypeTaskIDHistoryParams) (*GetClusterClusterIDTaskTaskTypeTaskIDHistoryOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetClusterClusterIDTaskTaskTypeTaskIDHistoryParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetClusterClusterIDTaskTaskTypeTaskIDHistory", - Method: "GET", - PathPattern: "/cluster/{cluster_id}/task/{task_type}/{task_id}/history", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClusterClusterIDTaskTaskTypeTaskIDHistoryReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetClusterClusterIDTaskTaskTypeTaskIDHistoryOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetClusterClusterIDTaskTaskTypeTaskIDHistoryDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetClusterClusterIDTaskValidateBackupTaskIDRunID get cluster cluster ID task validate backup task ID run ID API -*/ -func (a *Client) GetClusterClusterIDTaskValidateBackupTaskIDRunID(params *GetClusterClusterIDTaskValidateBackupTaskIDRunIDParams) (*GetClusterClusterIDTaskValidateBackupTaskIDRunIDOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetClusterClusterIDTaskValidateBackupTaskIDRunIDParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetClusterClusterIDTaskValidateBackupTaskIDRunID", - Method: "GET", - PathPattern: "/cluster/{cluster_id}/task/validate_backup/{task_id}/{run_id}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClusterClusterIDTaskValidateBackupTaskIDRunIDReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetClusterClusterIDTaskValidateBackupTaskIDRunIDOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetClusterClusterIDTaskValidateBackupTaskIDRunIDDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetClusterClusterIDTasks get cluster cluster ID tasks API -*/ -func (a *Client) GetClusterClusterIDTasks(params *GetClusterClusterIDTasksParams) (*GetClusterClusterIDTasksOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetClusterClusterIDTasksParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetClusterClusterIDTasks", - Method: "GET", - PathPattern: "/cluster/{cluster_id}/tasks", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClusterClusterIDTasksReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetClusterClusterIDTasksOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetClusterClusterIDTasksDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetClusterClusterIDTasksBackupTarget get cluster cluster ID tasks backup target API -*/ -func (a *Client) GetClusterClusterIDTasksBackupTarget(params *GetClusterClusterIDTasksBackupTargetParams) (*GetClusterClusterIDTasksBackupTargetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetClusterClusterIDTasksBackupTargetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetClusterClusterIDTasksBackupTarget", - Method: "GET", - PathPattern: "/cluster/{cluster_id}/tasks/backup/target", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClusterClusterIDTasksBackupTargetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetClusterClusterIDTasksBackupTargetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetClusterClusterIDTasksBackupTargetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetClusterClusterIDTasksRepairTarget get cluster cluster ID tasks repair target API -*/ -func (a *Client) GetClusterClusterIDTasksRepairTarget(params *GetClusterClusterIDTasksRepairTargetParams) (*GetClusterClusterIDTasksRepairTargetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetClusterClusterIDTasksRepairTargetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetClusterClusterIDTasksRepairTarget", - Method: "GET", - PathPattern: "/cluster/{cluster_id}/tasks/repair/target", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClusterClusterIDTasksRepairTargetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetClusterClusterIDTasksRepairTargetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetClusterClusterIDTasksRepairTargetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetClusterClusterIDTasksRestoreTarget get cluster cluster ID tasks restore target API -*/ -func (a *Client) GetClusterClusterIDTasksRestoreTarget(params *GetClusterClusterIDTasksRestoreTargetParams) (*GetClusterClusterIDTasksRestoreTargetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetClusterClusterIDTasksRestoreTargetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetClusterClusterIDTasksRestoreTarget", - Method: "GET", - PathPattern: "/cluster/{cluster_id}/tasks/restore/target", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClusterClusterIDTasksRestoreTargetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetClusterClusterIDTasksRestoreTargetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetClusterClusterIDTasksRestoreTargetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetClusters get clusters API -*/ -func (a *Client) GetClusters(params *GetClustersParams) (*GetClustersOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetClustersParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetClusters", - Method: "GET", - PathPattern: "/clusters", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetClustersReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetClustersOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetClustersDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GetVersion get version API -*/ -func (a *Client) GetVersion(params *GetVersionParams) (*GetVersionOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetVersionParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GetVersion", - Method: "GET", - PathPattern: "/version", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetVersionReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GetVersionOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GetVersionDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -PostClusterClusterIDTasks post cluster cluster ID tasks API -*/ -func (a *Client) PostClusterClusterIDTasks(params *PostClusterClusterIDTasksParams) (*PostClusterClusterIDTasksCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewPostClusterClusterIDTasksParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "PostClusterClusterIDTasks", - Method: "POST", - PathPattern: "/cluster/{cluster_id}/tasks", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &PostClusterClusterIDTasksReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*PostClusterClusterIDTasksCreated) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*PostClusterClusterIDTasksDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -PostClusters post clusters API -*/ -func (a *Client) PostClusters(params *PostClustersParams) (*PostClustersCreated, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewPostClustersParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "PostClusters", - Method: "POST", - PathPattern: "/clusters", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &PostClustersReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*PostClustersCreated) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*PostClustersDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -PutClusterClusterID put cluster cluster ID API -*/ -func (a *Client) PutClusterClusterID(params *PutClusterClusterIDParams) (*PutClusterClusterIDOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewPutClusterClusterIDParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "PutClusterClusterID", - Method: "PUT", - PathPattern: "/cluster/{cluster_id}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &PutClusterClusterIDReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*PutClusterClusterIDOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*PutClusterClusterIDDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -PutClusterClusterIDRepairsIntensity put cluster cluster ID repairs intensity API -*/ -func (a *Client) PutClusterClusterIDRepairsIntensity(params *PutClusterClusterIDRepairsIntensityParams) (*PutClusterClusterIDRepairsIntensityOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewPutClusterClusterIDRepairsIntensityParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "PutClusterClusterIDRepairsIntensity", - Method: "PUT", - PathPattern: "/cluster/{cluster_id}/repairs/intensity", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &PutClusterClusterIDRepairsIntensityReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*PutClusterClusterIDRepairsIntensityOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*PutClusterClusterIDRepairsIntensityDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -PutClusterClusterIDRepairsParallel put cluster cluster ID repairs parallel API -*/ -func (a *Client) PutClusterClusterIDRepairsParallel(params *PutClusterClusterIDRepairsParallelParams) (*PutClusterClusterIDRepairsParallelOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewPutClusterClusterIDRepairsParallelParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "PutClusterClusterIDRepairsParallel", - Method: "PUT", - PathPattern: "/cluster/{cluster_id}/repairs/parallel", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &PutClusterClusterIDRepairsParallelReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*PutClusterClusterIDRepairsParallelOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*PutClusterClusterIDRepairsParallelDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -PutClusterClusterIDSuspended put cluster cluster ID suspended API -*/ -func (a *Client) PutClusterClusterIDSuspended(params *PutClusterClusterIDSuspendedParams) (*PutClusterClusterIDSuspendedOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewPutClusterClusterIDSuspendedParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "PutClusterClusterIDSuspended", - Method: "PUT", - PathPattern: "/cluster/{cluster_id}/suspended", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &PutClusterClusterIDSuspendedReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*PutClusterClusterIDSuspendedOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*PutClusterClusterIDSuspendedDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -PutClusterClusterIDTaskTaskTypeTaskID put cluster cluster ID task task type task ID API -*/ -func (a *Client) PutClusterClusterIDTaskTaskTypeTaskID(params *PutClusterClusterIDTaskTaskTypeTaskIDParams) (*PutClusterClusterIDTaskTaskTypeTaskIDOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewPutClusterClusterIDTaskTaskTypeTaskIDParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "PutClusterClusterIDTaskTaskTypeTaskID", - Method: "PUT", - PathPattern: "/cluster/{cluster_id}/task/{task_type}/{task_id}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &PutClusterClusterIDTaskTaskTypeTaskIDReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*PutClusterClusterIDTaskTaskTypeTaskIDOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*PutClusterClusterIDTaskTaskTypeTaskIDDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -PutClusterClusterIDTaskTaskTypeTaskIDStart put cluster cluster ID task task type task ID start API -*/ -func (a *Client) PutClusterClusterIDTaskTaskTypeTaskIDStart(params *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) (*PutClusterClusterIDTaskTaskTypeTaskIDStartOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewPutClusterClusterIDTaskTaskTypeTaskIDStartParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "PutClusterClusterIDTaskTaskTypeTaskIDStart", - Method: "PUT", - PathPattern: "/cluster/{cluster_id}/task/{task_type}/{task_id}/start", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &PutClusterClusterIDTaskTaskTypeTaskIDStartReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*PutClusterClusterIDTaskTaskTypeTaskIDStartOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*PutClusterClusterIDTaskTaskTypeTaskIDStartDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -PutClusterClusterIDTaskTaskTypeTaskIDStop put cluster cluster ID task task type task ID stop API -*/ -func (a *Client) PutClusterClusterIDTaskTaskTypeTaskIDStop(params *PutClusterClusterIDTaskTaskTypeTaskIDStopParams) (*PutClusterClusterIDTaskTaskTypeTaskIDStopOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewPutClusterClusterIDTaskTaskTypeTaskIDStopParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "PutClusterClusterIDTaskTaskTypeTaskIDStop", - Method: "PUT", - PathPattern: "/cluster/{cluster_id}/task/{task_type}/{task_id}/stop", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &PutClusterClusterIDTaskTaskTypeTaskIDStopReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*PutClusterClusterIDTaskTaskTypeTaskIDStopOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*PutClusterClusterIDTaskTaskTypeTaskIDStopDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -// SetTransport changes the transport on the client -func (a *Client) SetTransport(transport runtime.ClientTransport) { - a.transport = transport -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/post_cluster_cluster_id_tasks_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/post_cluster_cluster_id_tasks_parameters.go deleted file mode 100644 index 43b3d6ecda..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/post_cluster_cluster_id_tasks_parameters.go +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// NewPostClusterClusterIDTasksParams creates a new PostClusterClusterIDTasksParams object -// with the default values initialized. -func NewPostClusterClusterIDTasksParams() *PostClusterClusterIDTasksParams { - var () - return &PostClusterClusterIDTasksParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewPostClusterClusterIDTasksParamsWithTimeout creates a new PostClusterClusterIDTasksParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewPostClusterClusterIDTasksParamsWithTimeout(timeout time.Duration) *PostClusterClusterIDTasksParams { - var () - return &PostClusterClusterIDTasksParams{ - - timeout: timeout, - } -} - -// NewPostClusterClusterIDTasksParamsWithContext creates a new PostClusterClusterIDTasksParams object -// with the default values initialized, and the ability to set a context for a request -func NewPostClusterClusterIDTasksParamsWithContext(ctx context.Context) *PostClusterClusterIDTasksParams { - var () - return &PostClusterClusterIDTasksParams{ - - Context: ctx, - } -} - -// NewPostClusterClusterIDTasksParamsWithHTTPClient creates a new PostClusterClusterIDTasksParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewPostClusterClusterIDTasksParamsWithHTTPClient(client *http.Client) *PostClusterClusterIDTasksParams { - var () - return &PostClusterClusterIDTasksParams{ - HTTPClient: client, - } -} - -/* -PostClusterClusterIDTasksParams contains all the parameters to send to the API endpoint -for the post cluster cluster ID tasks operation typically these are written to a http.Request -*/ -type PostClusterClusterIDTasksParams struct { - - /*ClusterID*/ - ClusterID string - /*TaskFields*/ - TaskFields *models.TaskUpdate - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the post cluster cluster ID tasks params -func (o *PostClusterClusterIDTasksParams) WithTimeout(timeout time.Duration) *PostClusterClusterIDTasksParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the post cluster cluster ID tasks params -func (o *PostClusterClusterIDTasksParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the post cluster cluster ID tasks params -func (o *PostClusterClusterIDTasksParams) WithContext(ctx context.Context) *PostClusterClusterIDTasksParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the post cluster cluster ID tasks params -func (o *PostClusterClusterIDTasksParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the post cluster cluster ID tasks params -func (o *PostClusterClusterIDTasksParams) WithHTTPClient(client *http.Client) *PostClusterClusterIDTasksParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the post cluster cluster ID tasks params -func (o *PostClusterClusterIDTasksParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the post cluster cluster ID tasks params -func (o *PostClusterClusterIDTasksParams) WithClusterID(clusterID string) *PostClusterClusterIDTasksParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the post cluster cluster ID tasks params -func (o *PostClusterClusterIDTasksParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithTaskFields adds the taskFields to the post cluster cluster ID tasks params -func (o *PostClusterClusterIDTasksParams) WithTaskFields(taskFields *models.TaskUpdate) *PostClusterClusterIDTasksParams { - o.SetTaskFields(taskFields) - return o -} - -// SetTaskFields adds the taskFields to the post cluster cluster ID tasks params -func (o *PostClusterClusterIDTasksParams) SetTaskFields(taskFields *models.TaskUpdate) { - o.TaskFields = taskFields -} - -// WriteToRequest writes these params to a swagger request -func (o *PostClusterClusterIDTasksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - if o.TaskFields != nil { - if err := r.SetBodyParam(o.TaskFields); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/post_cluster_cluster_id_tasks_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/post_cluster_cluster_id_tasks_responses.go deleted file mode 100644 index cd916b3ad2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/post_cluster_cluster_id_tasks_responses.go +++ /dev/null @@ -1,111 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// PostClusterClusterIDTasksReader is a Reader for the PostClusterClusterIDTasks structure. -type PostClusterClusterIDTasksReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *PostClusterClusterIDTasksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 201: - result := NewPostClusterClusterIDTasksCreated() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewPostClusterClusterIDTasksDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewPostClusterClusterIDTasksCreated creates a PostClusterClusterIDTasksCreated with default headers values -func NewPostClusterClusterIDTasksCreated() *PostClusterClusterIDTasksCreated { - return &PostClusterClusterIDTasksCreated{} -} - -/* -PostClusterClusterIDTasksCreated handles this case with default header values. - -Task added -*/ -type PostClusterClusterIDTasksCreated struct { - Location string -} - -func (o *PostClusterClusterIDTasksCreated) Error() string { - return fmt.Sprintf("[POST /cluster/{cluster_id}/tasks][%d] postClusterClusterIdTasksCreated ", 201) -} - -func (o *PostClusterClusterIDTasksCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Location - o.Location = response.GetHeader("Location") - - return nil -} - -// NewPostClusterClusterIDTasksDefault creates a PostClusterClusterIDTasksDefault with default headers values -func NewPostClusterClusterIDTasksDefault(code int) *PostClusterClusterIDTasksDefault { - return &PostClusterClusterIDTasksDefault{ - _statusCode: code, - } -} - -/* -PostClusterClusterIDTasksDefault handles this case with default header values. - -Error -*/ -type PostClusterClusterIDTasksDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the post cluster cluster ID tasks default response -func (o *PostClusterClusterIDTasksDefault) Code() int { - return o._statusCode -} - -func (o *PostClusterClusterIDTasksDefault) Error() string { - return fmt.Sprintf("[POST /cluster/{cluster_id}/tasks][%d] PostClusterClusterIDTasks default %+v", o._statusCode, o.Payload) -} - -func (o *PostClusterClusterIDTasksDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *PostClusterClusterIDTasksDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/post_clusters_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/post_clusters_parameters.go deleted file mode 100644 index cf640a99f5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/post_clusters_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// NewPostClustersParams creates a new PostClustersParams object -// with the default values initialized. -func NewPostClustersParams() *PostClustersParams { - var () - return &PostClustersParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewPostClustersParamsWithTimeout creates a new PostClustersParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewPostClustersParamsWithTimeout(timeout time.Duration) *PostClustersParams { - var () - return &PostClustersParams{ - - timeout: timeout, - } -} - -// NewPostClustersParamsWithContext creates a new PostClustersParams object -// with the default values initialized, and the ability to set a context for a request -func NewPostClustersParamsWithContext(ctx context.Context) *PostClustersParams { - var () - return &PostClustersParams{ - - Context: ctx, - } -} - -// NewPostClustersParamsWithHTTPClient creates a new PostClustersParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewPostClustersParamsWithHTTPClient(client *http.Client) *PostClustersParams { - var () - return &PostClustersParams{ - HTTPClient: client, - } -} - -/* -PostClustersParams contains all the parameters to send to the API endpoint -for the post clusters operation typically these are written to a http.Request -*/ -type PostClustersParams struct { - - /*Cluster*/ - Cluster *models.Cluster - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the post clusters params -func (o *PostClustersParams) WithTimeout(timeout time.Duration) *PostClustersParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the post clusters params -func (o *PostClustersParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the post clusters params -func (o *PostClustersParams) WithContext(ctx context.Context) *PostClustersParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the post clusters params -func (o *PostClustersParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the post clusters params -func (o *PostClustersParams) WithHTTPClient(client *http.Client) *PostClustersParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the post clusters params -func (o *PostClustersParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCluster adds the cluster to the post clusters params -func (o *PostClustersParams) WithCluster(cluster *models.Cluster) *PostClustersParams { - o.SetCluster(cluster) - return o -} - -// SetCluster adds the cluster to the post clusters params -func (o *PostClustersParams) SetCluster(cluster *models.Cluster) { - o.Cluster = cluster -} - -// WriteToRequest writes these params to a swagger request -func (o *PostClustersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Cluster != nil { - if err := r.SetBodyParam(o.Cluster); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/post_clusters_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/post_clusters_responses.go deleted file mode 100644 index 403b0c7176..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/post_clusters_responses.go +++ /dev/null @@ -1,111 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// PostClustersReader is a Reader for the PostClusters structure. -type PostClustersReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *PostClustersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 201: - result := NewPostClustersCreated() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewPostClustersDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewPostClustersCreated creates a PostClustersCreated with default headers values -func NewPostClustersCreated() *PostClustersCreated { - return &PostClustersCreated{} -} - -/* -PostClustersCreated handles this case with default header values. - -Cluster added -*/ -type PostClustersCreated struct { - Location string -} - -func (o *PostClustersCreated) Error() string { - return fmt.Sprintf("[POST /clusters][%d] postClustersCreated ", 201) -} - -func (o *PostClustersCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response header Location - o.Location = response.GetHeader("Location") - - return nil -} - -// NewPostClustersDefault creates a PostClustersDefault with default headers values -func NewPostClustersDefault(code int) *PostClustersDefault { - return &PostClustersDefault{ - _statusCode: code, - } -} - -/* -PostClustersDefault handles this case with default header values. - -Error -*/ -type PostClustersDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the post clusters default response -func (o *PostClustersDefault) Code() int { - return o._statusCode -} - -func (o *PostClustersDefault) Error() string { - return fmt.Sprintf("[POST /clusters][%d] PostClusters default %+v", o._statusCode, o.Payload) -} - -func (o *PostClustersDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *PostClustersDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_parameters.go deleted file mode 100644 index 5ec169db87..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_parameters.go +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// NewPutClusterClusterIDParams creates a new PutClusterClusterIDParams object -// with the default values initialized. -func NewPutClusterClusterIDParams() *PutClusterClusterIDParams { - var () - return &PutClusterClusterIDParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewPutClusterClusterIDParamsWithTimeout creates a new PutClusterClusterIDParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewPutClusterClusterIDParamsWithTimeout(timeout time.Duration) *PutClusterClusterIDParams { - var () - return &PutClusterClusterIDParams{ - - timeout: timeout, - } -} - -// NewPutClusterClusterIDParamsWithContext creates a new PutClusterClusterIDParams object -// with the default values initialized, and the ability to set a context for a request -func NewPutClusterClusterIDParamsWithContext(ctx context.Context) *PutClusterClusterIDParams { - var () - return &PutClusterClusterIDParams{ - - Context: ctx, - } -} - -// NewPutClusterClusterIDParamsWithHTTPClient creates a new PutClusterClusterIDParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewPutClusterClusterIDParamsWithHTTPClient(client *http.Client) *PutClusterClusterIDParams { - var () - return &PutClusterClusterIDParams{ - HTTPClient: client, - } -} - -/* -PutClusterClusterIDParams contains all the parameters to send to the API endpoint -for the put cluster cluster ID operation typically these are written to a http.Request -*/ -type PutClusterClusterIDParams struct { - - /*Cluster*/ - Cluster *models.Cluster - /*ClusterID*/ - ClusterID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the put cluster cluster ID params -func (o *PutClusterClusterIDParams) WithTimeout(timeout time.Duration) *PutClusterClusterIDParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the put cluster cluster ID params -func (o *PutClusterClusterIDParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the put cluster cluster ID params -func (o *PutClusterClusterIDParams) WithContext(ctx context.Context) *PutClusterClusterIDParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the put cluster cluster ID params -func (o *PutClusterClusterIDParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the put cluster cluster ID params -func (o *PutClusterClusterIDParams) WithHTTPClient(client *http.Client) *PutClusterClusterIDParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the put cluster cluster ID params -func (o *PutClusterClusterIDParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCluster adds the cluster to the put cluster cluster ID params -func (o *PutClusterClusterIDParams) WithCluster(cluster *models.Cluster) *PutClusterClusterIDParams { - o.SetCluster(cluster) - return o -} - -// SetCluster adds the cluster to the put cluster cluster ID params -func (o *PutClusterClusterIDParams) SetCluster(cluster *models.Cluster) { - o.Cluster = cluster -} - -// WithClusterID adds the clusterID to the put cluster cluster ID params -func (o *PutClusterClusterIDParams) WithClusterID(clusterID string) *PutClusterClusterIDParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the put cluster cluster ID params -func (o *PutClusterClusterIDParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WriteToRequest writes these params to a swagger request -func (o *PutClusterClusterIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Cluster != nil { - if err := r.SetBodyParam(o.Cluster); err != nil { - return err - } - } - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_repairs_intensity_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_repairs_intensity_parameters.go deleted file mode 100644 index e236537d7c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_repairs_intensity_parameters.go +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewPutClusterClusterIDRepairsIntensityParams creates a new PutClusterClusterIDRepairsIntensityParams object -// with the default values initialized. -func NewPutClusterClusterIDRepairsIntensityParams() *PutClusterClusterIDRepairsIntensityParams { - var () - return &PutClusterClusterIDRepairsIntensityParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewPutClusterClusterIDRepairsIntensityParamsWithTimeout creates a new PutClusterClusterIDRepairsIntensityParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewPutClusterClusterIDRepairsIntensityParamsWithTimeout(timeout time.Duration) *PutClusterClusterIDRepairsIntensityParams { - var () - return &PutClusterClusterIDRepairsIntensityParams{ - - timeout: timeout, - } -} - -// NewPutClusterClusterIDRepairsIntensityParamsWithContext creates a new PutClusterClusterIDRepairsIntensityParams object -// with the default values initialized, and the ability to set a context for a request -func NewPutClusterClusterIDRepairsIntensityParamsWithContext(ctx context.Context) *PutClusterClusterIDRepairsIntensityParams { - var () - return &PutClusterClusterIDRepairsIntensityParams{ - - Context: ctx, - } -} - -// NewPutClusterClusterIDRepairsIntensityParamsWithHTTPClient creates a new PutClusterClusterIDRepairsIntensityParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewPutClusterClusterIDRepairsIntensityParamsWithHTTPClient(client *http.Client) *PutClusterClusterIDRepairsIntensityParams { - var () - return &PutClusterClusterIDRepairsIntensityParams{ - HTTPClient: client, - } -} - -/* -PutClusterClusterIDRepairsIntensityParams contains all the parameters to send to the API endpoint -for the put cluster cluster ID repairs intensity operation typically these are written to a http.Request -*/ -type PutClusterClusterIDRepairsIntensityParams struct { - - /*ClusterID*/ - ClusterID string - /*Intensity*/ - Intensity float64 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the put cluster cluster ID repairs intensity params -func (o *PutClusterClusterIDRepairsIntensityParams) WithTimeout(timeout time.Duration) *PutClusterClusterIDRepairsIntensityParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the put cluster cluster ID repairs intensity params -func (o *PutClusterClusterIDRepairsIntensityParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the put cluster cluster ID repairs intensity params -func (o *PutClusterClusterIDRepairsIntensityParams) WithContext(ctx context.Context) *PutClusterClusterIDRepairsIntensityParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the put cluster cluster ID repairs intensity params -func (o *PutClusterClusterIDRepairsIntensityParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the put cluster cluster ID repairs intensity params -func (o *PutClusterClusterIDRepairsIntensityParams) WithHTTPClient(client *http.Client) *PutClusterClusterIDRepairsIntensityParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the put cluster cluster ID repairs intensity params -func (o *PutClusterClusterIDRepairsIntensityParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the put cluster cluster ID repairs intensity params -func (o *PutClusterClusterIDRepairsIntensityParams) WithClusterID(clusterID string) *PutClusterClusterIDRepairsIntensityParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the put cluster cluster ID repairs intensity params -func (o *PutClusterClusterIDRepairsIntensityParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithIntensity adds the intensity to the put cluster cluster ID repairs intensity params -func (o *PutClusterClusterIDRepairsIntensityParams) WithIntensity(intensity float64) *PutClusterClusterIDRepairsIntensityParams { - o.SetIntensity(intensity) - return o -} - -// SetIntensity adds the intensity to the put cluster cluster ID repairs intensity params -func (o *PutClusterClusterIDRepairsIntensityParams) SetIntensity(intensity float64) { - o.Intensity = intensity -} - -// WriteToRequest writes these params to a swagger request -func (o *PutClusterClusterIDRepairsIntensityParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - // query param intensity - qrIntensity := o.Intensity - qIntensity := swag.FormatFloat64(qrIntensity) - if qIntensity != "" { - if err := r.SetQueryParam("intensity", qIntensity); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_repairs_intensity_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_repairs_intensity_responses.go deleted file mode 100644 index 92bbbbdeac..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_repairs_intensity_responses.go +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// PutClusterClusterIDRepairsIntensityReader is a Reader for the PutClusterClusterIDRepairsIntensity structure. -type PutClusterClusterIDRepairsIntensityReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *PutClusterClusterIDRepairsIntensityReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewPutClusterClusterIDRepairsIntensityOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewPutClusterClusterIDRepairsIntensityDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewPutClusterClusterIDRepairsIntensityOK creates a PutClusterClusterIDRepairsIntensityOK with default headers values -func NewPutClusterClusterIDRepairsIntensityOK() *PutClusterClusterIDRepairsIntensityOK { - return &PutClusterClusterIDRepairsIntensityOK{} -} - -/* -PutClusterClusterIDRepairsIntensityOK handles this case with default header values. - -OK -*/ -type PutClusterClusterIDRepairsIntensityOK struct { -} - -func (o *PutClusterClusterIDRepairsIntensityOK) Error() string { - return fmt.Sprintf("[PUT /cluster/{cluster_id}/repairs/intensity][%d] putClusterClusterIdRepairsIntensityOK ", 200) -} - -func (o *PutClusterClusterIDRepairsIntensityOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewPutClusterClusterIDRepairsIntensityDefault creates a PutClusterClusterIDRepairsIntensityDefault with default headers values -func NewPutClusterClusterIDRepairsIntensityDefault(code int) *PutClusterClusterIDRepairsIntensityDefault { - return &PutClusterClusterIDRepairsIntensityDefault{ - _statusCode: code, - } -} - -/* -PutClusterClusterIDRepairsIntensityDefault handles this case with default header values. - -Error -*/ -type PutClusterClusterIDRepairsIntensityDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the put cluster cluster ID repairs intensity default response -func (o *PutClusterClusterIDRepairsIntensityDefault) Code() int { - return o._statusCode -} - -func (o *PutClusterClusterIDRepairsIntensityDefault) Error() string { - return fmt.Sprintf("[PUT /cluster/{cluster_id}/repairs/intensity][%d] PutClusterClusterIDRepairsIntensity default %+v", o._statusCode, o.Payload) -} - -func (o *PutClusterClusterIDRepairsIntensityDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *PutClusterClusterIDRepairsIntensityDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_repairs_parallel_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_repairs_parallel_parameters.go deleted file mode 100644 index ddede7456a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_repairs_parallel_parameters.go +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewPutClusterClusterIDRepairsParallelParams creates a new PutClusterClusterIDRepairsParallelParams object -// with the default values initialized. -func NewPutClusterClusterIDRepairsParallelParams() *PutClusterClusterIDRepairsParallelParams { - var () - return &PutClusterClusterIDRepairsParallelParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewPutClusterClusterIDRepairsParallelParamsWithTimeout creates a new PutClusterClusterIDRepairsParallelParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewPutClusterClusterIDRepairsParallelParamsWithTimeout(timeout time.Duration) *PutClusterClusterIDRepairsParallelParams { - var () - return &PutClusterClusterIDRepairsParallelParams{ - - timeout: timeout, - } -} - -// NewPutClusterClusterIDRepairsParallelParamsWithContext creates a new PutClusterClusterIDRepairsParallelParams object -// with the default values initialized, and the ability to set a context for a request -func NewPutClusterClusterIDRepairsParallelParamsWithContext(ctx context.Context) *PutClusterClusterIDRepairsParallelParams { - var () - return &PutClusterClusterIDRepairsParallelParams{ - - Context: ctx, - } -} - -// NewPutClusterClusterIDRepairsParallelParamsWithHTTPClient creates a new PutClusterClusterIDRepairsParallelParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewPutClusterClusterIDRepairsParallelParamsWithHTTPClient(client *http.Client) *PutClusterClusterIDRepairsParallelParams { - var () - return &PutClusterClusterIDRepairsParallelParams{ - HTTPClient: client, - } -} - -/* -PutClusterClusterIDRepairsParallelParams contains all the parameters to send to the API endpoint -for the put cluster cluster ID repairs parallel operation typically these are written to a http.Request -*/ -type PutClusterClusterIDRepairsParallelParams struct { - - /*ClusterID*/ - ClusterID string - /*Parallel*/ - Parallel int64 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the put cluster cluster ID repairs parallel params -func (o *PutClusterClusterIDRepairsParallelParams) WithTimeout(timeout time.Duration) *PutClusterClusterIDRepairsParallelParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the put cluster cluster ID repairs parallel params -func (o *PutClusterClusterIDRepairsParallelParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the put cluster cluster ID repairs parallel params -func (o *PutClusterClusterIDRepairsParallelParams) WithContext(ctx context.Context) *PutClusterClusterIDRepairsParallelParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the put cluster cluster ID repairs parallel params -func (o *PutClusterClusterIDRepairsParallelParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the put cluster cluster ID repairs parallel params -func (o *PutClusterClusterIDRepairsParallelParams) WithHTTPClient(client *http.Client) *PutClusterClusterIDRepairsParallelParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the put cluster cluster ID repairs parallel params -func (o *PutClusterClusterIDRepairsParallelParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the put cluster cluster ID repairs parallel params -func (o *PutClusterClusterIDRepairsParallelParams) WithClusterID(clusterID string) *PutClusterClusterIDRepairsParallelParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the put cluster cluster ID repairs parallel params -func (o *PutClusterClusterIDRepairsParallelParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithParallel adds the parallel to the put cluster cluster ID repairs parallel params -func (o *PutClusterClusterIDRepairsParallelParams) WithParallel(parallel int64) *PutClusterClusterIDRepairsParallelParams { - o.SetParallel(parallel) - return o -} - -// SetParallel adds the parallel to the put cluster cluster ID repairs parallel params -func (o *PutClusterClusterIDRepairsParallelParams) SetParallel(parallel int64) { - o.Parallel = parallel -} - -// WriteToRequest writes these params to a swagger request -func (o *PutClusterClusterIDRepairsParallelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - // query param parallel - qrParallel := o.Parallel - qParallel := swag.FormatInt64(qrParallel) - if qParallel != "" { - if err := r.SetQueryParam("parallel", qParallel); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_repairs_parallel_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_repairs_parallel_responses.go deleted file mode 100644 index da493713b4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_repairs_parallel_responses.go +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// PutClusterClusterIDRepairsParallelReader is a Reader for the PutClusterClusterIDRepairsParallel structure. -type PutClusterClusterIDRepairsParallelReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *PutClusterClusterIDRepairsParallelReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewPutClusterClusterIDRepairsParallelOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewPutClusterClusterIDRepairsParallelDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewPutClusterClusterIDRepairsParallelOK creates a PutClusterClusterIDRepairsParallelOK with default headers values -func NewPutClusterClusterIDRepairsParallelOK() *PutClusterClusterIDRepairsParallelOK { - return &PutClusterClusterIDRepairsParallelOK{} -} - -/* -PutClusterClusterIDRepairsParallelOK handles this case with default header values. - -OK -*/ -type PutClusterClusterIDRepairsParallelOK struct { - Payload models.Suspended -} - -func (o *PutClusterClusterIDRepairsParallelOK) Error() string { - return fmt.Sprintf("[PUT /cluster/{cluster_id}/repairs/parallel][%d] putClusterClusterIdRepairsParallelOK %+v", 200, o.Payload) -} - -func (o *PutClusterClusterIDRepairsParallelOK) GetPayload() models.Suspended { - return o.Payload -} - -func (o *PutClusterClusterIDRepairsParallelOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPutClusterClusterIDRepairsParallelDefault creates a PutClusterClusterIDRepairsParallelDefault with default headers values -func NewPutClusterClusterIDRepairsParallelDefault(code int) *PutClusterClusterIDRepairsParallelDefault { - return &PutClusterClusterIDRepairsParallelDefault{ - _statusCode: code, - } -} - -/* -PutClusterClusterIDRepairsParallelDefault handles this case with default header values. - -Error -*/ -type PutClusterClusterIDRepairsParallelDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the put cluster cluster ID repairs parallel default response -func (o *PutClusterClusterIDRepairsParallelDefault) Code() int { - return o._statusCode -} - -func (o *PutClusterClusterIDRepairsParallelDefault) Error() string { - return fmt.Sprintf("[PUT /cluster/{cluster_id}/repairs/parallel][%d] PutClusterClusterIDRepairsParallel default %+v", o._statusCode, o.Payload) -} - -func (o *PutClusterClusterIDRepairsParallelDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *PutClusterClusterIDRepairsParallelDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_responses.go deleted file mode 100644 index 66cb83d0d8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_responses.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// PutClusterClusterIDReader is a Reader for the PutClusterClusterID structure. -type PutClusterClusterIDReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *PutClusterClusterIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewPutClusterClusterIDOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewPutClusterClusterIDDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewPutClusterClusterIDOK creates a PutClusterClusterIDOK with default headers values -func NewPutClusterClusterIDOK() *PutClusterClusterIDOK { - return &PutClusterClusterIDOK{} -} - -/* -PutClusterClusterIDOK handles this case with default header values. - -Updated cluster info -*/ -type PutClusterClusterIDOK struct { - Payload *models.Cluster -} - -func (o *PutClusterClusterIDOK) Error() string { - return fmt.Sprintf("[PUT /cluster/{cluster_id}][%d] putClusterClusterIdOK %+v", 200, o.Payload) -} - -func (o *PutClusterClusterIDOK) GetPayload() *models.Cluster { - return o.Payload -} - -func (o *PutClusterClusterIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.Cluster) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPutClusterClusterIDDefault creates a PutClusterClusterIDDefault with default headers values -func NewPutClusterClusterIDDefault(code int) *PutClusterClusterIDDefault { - return &PutClusterClusterIDDefault{ - _statusCode: code, - } -} - -/* -PutClusterClusterIDDefault handles this case with default header values. - -Error -*/ -type PutClusterClusterIDDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the put cluster cluster ID default response -func (o *PutClusterClusterIDDefault) Code() int { - return o._statusCode -} - -func (o *PutClusterClusterIDDefault) Error() string { - return fmt.Sprintf("[PUT /cluster/{cluster_id}][%d] PutClusterClusterID default %+v", o._statusCode, o.Payload) -} - -func (o *PutClusterClusterIDDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *PutClusterClusterIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_suspended_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_suspended_parameters.go deleted file mode 100644 index 7490f00c13..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_suspended_parameters.go +++ /dev/null @@ -1,204 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// NewPutClusterClusterIDSuspendedParams creates a new PutClusterClusterIDSuspendedParams object -// with the default values initialized. -func NewPutClusterClusterIDSuspendedParams() *PutClusterClusterIDSuspendedParams { - var () - return &PutClusterClusterIDSuspendedParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewPutClusterClusterIDSuspendedParamsWithTimeout creates a new PutClusterClusterIDSuspendedParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewPutClusterClusterIDSuspendedParamsWithTimeout(timeout time.Duration) *PutClusterClusterIDSuspendedParams { - var () - return &PutClusterClusterIDSuspendedParams{ - - timeout: timeout, - } -} - -// NewPutClusterClusterIDSuspendedParamsWithContext creates a new PutClusterClusterIDSuspendedParams object -// with the default values initialized, and the ability to set a context for a request -func NewPutClusterClusterIDSuspendedParamsWithContext(ctx context.Context) *PutClusterClusterIDSuspendedParams { - var () - return &PutClusterClusterIDSuspendedParams{ - - Context: ctx, - } -} - -// NewPutClusterClusterIDSuspendedParamsWithHTTPClient creates a new PutClusterClusterIDSuspendedParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewPutClusterClusterIDSuspendedParamsWithHTTPClient(client *http.Client) *PutClusterClusterIDSuspendedParams { - var () - return &PutClusterClusterIDSuspendedParams{ - HTTPClient: client, - } -} - -/* -PutClusterClusterIDSuspendedParams contains all the parameters to send to the API endpoint -for the put cluster cluster ID suspended operation typically these are written to a http.Request -*/ -type PutClusterClusterIDSuspendedParams struct { - - /*AllowTaskType*/ - AllowTaskType *string - /*ClusterID*/ - ClusterID string - /*StartTasks*/ - StartTasks bool - /*Suspended*/ - Suspended models.Suspended - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the put cluster cluster ID suspended params -func (o *PutClusterClusterIDSuspendedParams) WithTimeout(timeout time.Duration) *PutClusterClusterIDSuspendedParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the put cluster cluster ID suspended params -func (o *PutClusterClusterIDSuspendedParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the put cluster cluster ID suspended params -func (o *PutClusterClusterIDSuspendedParams) WithContext(ctx context.Context) *PutClusterClusterIDSuspendedParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the put cluster cluster ID suspended params -func (o *PutClusterClusterIDSuspendedParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the put cluster cluster ID suspended params -func (o *PutClusterClusterIDSuspendedParams) WithHTTPClient(client *http.Client) *PutClusterClusterIDSuspendedParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the put cluster cluster ID suspended params -func (o *PutClusterClusterIDSuspendedParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAllowTaskType adds the allowTaskType to the put cluster cluster ID suspended params -func (o *PutClusterClusterIDSuspendedParams) WithAllowTaskType(allowTaskType *string) *PutClusterClusterIDSuspendedParams { - o.SetAllowTaskType(allowTaskType) - return o -} - -// SetAllowTaskType adds the allowTaskType to the put cluster cluster ID suspended params -func (o *PutClusterClusterIDSuspendedParams) SetAllowTaskType(allowTaskType *string) { - o.AllowTaskType = allowTaskType -} - -// WithClusterID adds the clusterID to the put cluster cluster ID suspended params -func (o *PutClusterClusterIDSuspendedParams) WithClusterID(clusterID string) *PutClusterClusterIDSuspendedParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the put cluster cluster ID suspended params -func (o *PutClusterClusterIDSuspendedParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithStartTasks adds the startTasks to the put cluster cluster ID suspended params -func (o *PutClusterClusterIDSuspendedParams) WithStartTasks(startTasks bool) *PutClusterClusterIDSuspendedParams { - o.SetStartTasks(startTasks) - return o -} - -// SetStartTasks adds the startTasks to the put cluster cluster ID suspended params -func (o *PutClusterClusterIDSuspendedParams) SetStartTasks(startTasks bool) { - o.StartTasks = startTasks -} - -// WithSuspended adds the suspended to the put cluster cluster ID suspended params -func (o *PutClusterClusterIDSuspendedParams) WithSuspended(suspended models.Suspended) *PutClusterClusterIDSuspendedParams { - o.SetSuspended(suspended) - return o -} - -// SetSuspended adds the suspended to the put cluster cluster ID suspended params -func (o *PutClusterClusterIDSuspendedParams) SetSuspended(suspended models.Suspended) { - o.Suspended = suspended -} - -// WriteToRequest writes these params to a swagger request -func (o *PutClusterClusterIDSuspendedParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.AllowTaskType != nil { - - // query param allow_task_type - var qrAllowTaskType string - if o.AllowTaskType != nil { - qrAllowTaskType = *o.AllowTaskType - } - qAllowTaskType := qrAllowTaskType - if qAllowTaskType != "" { - if err := r.SetQueryParam("allow_task_type", qAllowTaskType); err != nil { - return err - } - } - - } - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - // query param start_tasks - qrStartTasks := o.StartTasks - qStartTasks := swag.FormatBool(qrStartTasks) - if qStartTasks != "" { - if err := r.SetQueryParam("start_tasks", qStartTasks); err != nil { - return err - } - } - - if err := r.SetBodyParam(o.Suspended); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_suspended_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_suspended_responses.go deleted file mode 100644 index 3ba1bbdb8b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_suspended_responses.go +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// PutClusterClusterIDSuspendedReader is a Reader for the PutClusterClusterIDSuspended structure. -type PutClusterClusterIDSuspendedReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *PutClusterClusterIDSuspendedReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewPutClusterClusterIDSuspendedOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewPutClusterClusterIDSuspendedDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewPutClusterClusterIDSuspendedOK creates a PutClusterClusterIDSuspendedOK with default headers values -func NewPutClusterClusterIDSuspendedOK() *PutClusterClusterIDSuspendedOK { - return &PutClusterClusterIDSuspendedOK{} -} - -/* -PutClusterClusterIDSuspendedOK handles this case with default header values. - -OK -*/ -type PutClusterClusterIDSuspendedOK struct { -} - -func (o *PutClusterClusterIDSuspendedOK) Error() string { - return fmt.Sprintf("[PUT /cluster/{cluster_id}/suspended][%d] putClusterClusterIdSuspendedOK ", 200) -} - -func (o *PutClusterClusterIDSuspendedOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewPutClusterClusterIDSuspendedDefault creates a PutClusterClusterIDSuspendedDefault with default headers values -func NewPutClusterClusterIDSuspendedDefault(code int) *PutClusterClusterIDSuspendedDefault { - return &PutClusterClusterIDSuspendedDefault{ - _statusCode: code, - } -} - -/* -PutClusterClusterIDSuspendedDefault handles this case with default header values. - -Error -*/ -type PutClusterClusterIDSuspendedDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the put cluster cluster ID suspended default response -func (o *PutClusterClusterIDSuspendedDefault) Code() int { - return o._statusCode -} - -func (o *PutClusterClusterIDSuspendedDefault) Error() string { - return fmt.Sprintf("[PUT /cluster/{cluster_id}/suspended][%d] PutClusterClusterIDSuspended default %+v", o._statusCode, o.Payload) -} - -func (o *PutClusterClusterIDSuspendedDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *PutClusterClusterIDSuspendedDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_parameters.go deleted file mode 100644 index 78fef0ebd3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_parameters.go +++ /dev/null @@ -1,190 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// NewPutClusterClusterIDTaskTaskTypeTaskIDParams creates a new PutClusterClusterIDTaskTaskTypeTaskIDParams object -// with the default values initialized. -func NewPutClusterClusterIDTaskTaskTypeTaskIDParams() *PutClusterClusterIDTaskTaskTypeTaskIDParams { - var () - return &PutClusterClusterIDTaskTaskTypeTaskIDParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewPutClusterClusterIDTaskTaskTypeTaskIDParamsWithTimeout creates a new PutClusterClusterIDTaskTaskTypeTaskIDParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewPutClusterClusterIDTaskTaskTypeTaskIDParamsWithTimeout(timeout time.Duration) *PutClusterClusterIDTaskTaskTypeTaskIDParams { - var () - return &PutClusterClusterIDTaskTaskTypeTaskIDParams{ - - timeout: timeout, - } -} - -// NewPutClusterClusterIDTaskTaskTypeTaskIDParamsWithContext creates a new PutClusterClusterIDTaskTaskTypeTaskIDParams object -// with the default values initialized, and the ability to set a context for a request -func NewPutClusterClusterIDTaskTaskTypeTaskIDParamsWithContext(ctx context.Context) *PutClusterClusterIDTaskTaskTypeTaskIDParams { - var () - return &PutClusterClusterIDTaskTaskTypeTaskIDParams{ - - Context: ctx, - } -} - -// NewPutClusterClusterIDTaskTaskTypeTaskIDParamsWithHTTPClient creates a new PutClusterClusterIDTaskTaskTypeTaskIDParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewPutClusterClusterIDTaskTaskTypeTaskIDParamsWithHTTPClient(client *http.Client) *PutClusterClusterIDTaskTaskTypeTaskIDParams { - var () - return &PutClusterClusterIDTaskTaskTypeTaskIDParams{ - HTTPClient: client, - } -} - -/* -PutClusterClusterIDTaskTaskTypeTaskIDParams contains all the parameters to send to the API endpoint -for the put cluster cluster ID task task type task ID operation typically these are written to a http.Request -*/ -type PutClusterClusterIDTaskTaskTypeTaskIDParams struct { - - /*ClusterID*/ - ClusterID string - /*TaskFields*/ - TaskFields *models.TaskUpdate - /*TaskID*/ - TaskID string - /*TaskType*/ - TaskType string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the put cluster cluster ID task task type task ID params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDParams) WithTimeout(timeout time.Duration) *PutClusterClusterIDTaskTaskTypeTaskIDParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the put cluster cluster ID task task type task ID params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the put cluster cluster ID task task type task ID params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDParams) WithContext(ctx context.Context) *PutClusterClusterIDTaskTaskTypeTaskIDParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the put cluster cluster ID task task type task ID params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the put cluster cluster ID task task type task ID params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDParams) WithHTTPClient(client *http.Client) *PutClusterClusterIDTaskTaskTypeTaskIDParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the put cluster cluster ID task task type task ID params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the put cluster cluster ID task task type task ID params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDParams) WithClusterID(clusterID string) *PutClusterClusterIDTaskTaskTypeTaskIDParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the put cluster cluster ID task task type task ID params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithTaskFields adds the taskFields to the put cluster cluster ID task task type task ID params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDParams) WithTaskFields(taskFields *models.TaskUpdate) *PutClusterClusterIDTaskTaskTypeTaskIDParams { - o.SetTaskFields(taskFields) - return o -} - -// SetTaskFields adds the taskFields to the put cluster cluster ID task task type task ID params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDParams) SetTaskFields(taskFields *models.TaskUpdate) { - o.TaskFields = taskFields -} - -// WithTaskID adds the taskID to the put cluster cluster ID task task type task ID params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDParams) WithTaskID(taskID string) *PutClusterClusterIDTaskTaskTypeTaskIDParams { - o.SetTaskID(taskID) - return o -} - -// SetTaskID adds the taskId to the put cluster cluster ID task task type task ID params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDParams) SetTaskID(taskID string) { - o.TaskID = taskID -} - -// WithTaskType adds the taskType to the put cluster cluster ID task task type task ID params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDParams) WithTaskType(taskType string) *PutClusterClusterIDTaskTaskTypeTaskIDParams { - o.SetTaskType(taskType) - return o -} - -// SetTaskType adds the taskType to the put cluster cluster ID task task type task ID params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDParams) SetTaskType(taskType string) { - o.TaskType = taskType -} - -// WriteToRequest writes these params to a swagger request -func (o *PutClusterClusterIDTaskTaskTypeTaskIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - if o.TaskFields != nil { - if err := r.SetBodyParam(o.TaskFields); err != nil { - return err - } - } - - // path param task_id - if err := r.SetPathParam("task_id", o.TaskID); err != nil { - return err - } - - // path param task_type - if err := r.SetPathParam("task_type", o.TaskType); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_responses.go deleted file mode 100644 index b746d7a21f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_responses.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// PutClusterClusterIDTaskTaskTypeTaskIDReader is a Reader for the PutClusterClusterIDTaskTaskTypeTaskID structure. -type PutClusterClusterIDTaskTaskTypeTaskIDReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *PutClusterClusterIDTaskTaskTypeTaskIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewPutClusterClusterIDTaskTaskTypeTaskIDOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewPutClusterClusterIDTaskTaskTypeTaskIDDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewPutClusterClusterIDTaskTaskTypeTaskIDOK creates a PutClusterClusterIDTaskTaskTypeTaskIDOK with default headers values -func NewPutClusterClusterIDTaskTaskTypeTaskIDOK() *PutClusterClusterIDTaskTaskTypeTaskIDOK { - return &PutClusterClusterIDTaskTaskTypeTaskIDOK{} -} - -/* -PutClusterClusterIDTaskTaskTypeTaskIDOK handles this case with default header values. - -Updated task info -*/ -type PutClusterClusterIDTaskTaskTypeTaskIDOK struct { - Payload *models.Task -} - -func (o *PutClusterClusterIDTaskTaskTypeTaskIDOK) Error() string { - return fmt.Sprintf("[PUT /cluster/{cluster_id}/task/{task_type}/{task_id}][%d] putClusterClusterIdTaskTaskTypeTaskIdOK %+v", 200, o.Payload) -} - -func (o *PutClusterClusterIDTaskTaskTypeTaskIDOK) GetPayload() *models.Task { - return o.Payload -} - -func (o *PutClusterClusterIDTaskTaskTypeTaskIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.Task) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPutClusterClusterIDTaskTaskTypeTaskIDDefault creates a PutClusterClusterIDTaskTaskTypeTaskIDDefault with default headers values -func NewPutClusterClusterIDTaskTaskTypeTaskIDDefault(code int) *PutClusterClusterIDTaskTaskTypeTaskIDDefault { - return &PutClusterClusterIDTaskTaskTypeTaskIDDefault{ - _statusCode: code, - } -} - -/* -PutClusterClusterIDTaskTaskTypeTaskIDDefault handles this case with default header values. - -Error -*/ -type PutClusterClusterIDTaskTaskTypeTaskIDDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the put cluster cluster ID task task type task ID default response -func (o *PutClusterClusterIDTaskTaskTypeTaskIDDefault) Code() int { - return o._statusCode -} - -func (o *PutClusterClusterIDTaskTaskTypeTaskIDDefault) Error() string { - return fmt.Sprintf("[PUT /cluster/{cluster_id}/task/{task_type}/{task_id}][%d] PutClusterClusterIDTaskTaskTypeTaskID default %+v", o._statusCode, o.Payload) -} - -func (o *PutClusterClusterIDTaskTaskTypeTaskIDDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *PutClusterClusterIDTaskTaskTypeTaskIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_start_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_start_parameters.go deleted file mode 100644 index 831d82b967..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_start_parameters.go +++ /dev/null @@ -1,192 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewPutClusterClusterIDTaskTaskTypeTaskIDStartParams creates a new PutClusterClusterIDTaskTaskTypeTaskIDStartParams object -// with the default values initialized. -func NewPutClusterClusterIDTaskTaskTypeTaskIDStartParams() *PutClusterClusterIDTaskTaskTypeTaskIDStartParams { - var () - return &PutClusterClusterIDTaskTaskTypeTaskIDStartParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewPutClusterClusterIDTaskTaskTypeTaskIDStartParamsWithTimeout creates a new PutClusterClusterIDTaskTaskTypeTaskIDStartParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewPutClusterClusterIDTaskTaskTypeTaskIDStartParamsWithTimeout(timeout time.Duration) *PutClusterClusterIDTaskTaskTypeTaskIDStartParams { - var () - return &PutClusterClusterIDTaskTaskTypeTaskIDStartParams{ - - timeout: timeout, - } -} - -// NewPutClusterClusterIDTaskTaskTypeTaskIDStartParamsWithContext creates a new PutClusterClusterIDTaskTaskTypeTaskIDStartParams object -// with the default values initialized, and the ability to set a context for a request -func NewPutClusterClusterIDTaskTaskTypeTaskIDStartParamsWithContext(ctx context.Context) *PutClusterClusterIDTaskTaskTypeTaskIDStartParams { - var () - return &PutClusterClusterIDTaskTaskTypeTaskIDStartParams{ - - Context: ctx, - } -} - -// NewPutClusterClusterIDTaskTaskTypeTaskIDStartParamsWithHTTPClient creates a new PutClusterClusterIDTaskTaskTypeTaskIDStartParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewPutClusterClusterIDTaskTaskTypeTaskIDStartParamsWithHTTPClient(client *http.Client) *PutClusterClusterIDTaskTaskTypeTaskIDStartParams { - var () - return &PutClusterClusterIDTaskTaskTypeTaskIDStartParams{ - HTTPClient: client, - } -} - -/* -PutClusterClusterIDTaskTaskTypeTaskIDStartParams contains all the parameters to send to the API endpoint -for the put cluster cluster ID task task type task ID start operation typically these are written to a http.Request -*/ -type PutClusterClusterIDTaskTaskTypeTaskIDStartParams struct { - - /*ClusterID*/ - ClusterID string - /*Continue*/ - Continue bool - /*TaskID*/ - TaskID string - /*TaskType*/ - TaskType string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the put cluster cluster ID task task type task ID start params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) WithTimeout(timeout time.Duration) *PutClusterClusterIDTaskTaskTypeTaskIDStartParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the put cluster cluster ID task task type task ID start params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the put cluster cluster ID task task type task ID start params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) WithContext(ctx context.Context) *PutClusterClusterIDTaskTaskTypeTaskIDStartParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the put cluster cluster ID task task type task ID start params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the put cluster cluster ID task task type task ID start params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) WithHTTPClient(client *http.Client) *PutClusterClusterIDTaskTaskTypeTaskIDStartParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the put cluster cluster ID task task type task ID start params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the put cluster cluster ID task task type task ID start params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) WithClusterID(clusterID string) *PutClusterClusterIDTaskTaskTypeTaskIDStartParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the put cluster cluster ID task task type task ID start params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithContinue adds the continueVar to the put cluster cluster ID task task type task ID start params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) WithContinue(continueVar bool) *PutClusterClusterIDTaskTaskTypeTaskIDStartParams { - o.SetContinue(continueVar) - return o -} - -// SetContinue adds the continue to the put cluster cluster ID task task type task ID start params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) SetContinue(continueVar bool) { - o.Continue = continueVar -} - -// WithTaskID adds the taskID to the put cluster cluster ID task task type task ID start params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) WithTaskID(taskID string) *PutClusterClusterIDTaskTaskTypeTaskIDStartParams { - o.SetTaskID(taskID) - return o -} - -// SetTaskID adds the taskId to the put cluster cluster ID task task type task ID start params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) SetTaskID(taskID string) { - o.TaskID = taskID -} - -// WithTaskType adds the taskType to the put cluster cluster ID task task type task ID start params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) WithTaskType(taskType string) *PutClusterClusterIDTaskTaskTypeTaskIDStartParams { - o.SetTaskType(taskType) - return o -} - -// SetTaskType adds the taskType to the put cluster cluster ID task task type task ID start params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) SetTaskType(taskType string) { - o.TaskType = taskType -} - -// WriteToRequest writes these params to a swagger request -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - // query param continue - qrContinue := o.Continue - qContinue := swag.FormatBool(qrContinue) - if qContinue != "" { - if err := r.SetQueryParam("continue", qContinue); err != nil { - return err - } - } - - // path param task_id - if err := r.SetPathParam("task_id", o.TaskID); err != nil { - return err - } - - // path param task_type - if err := r.SetPathParam("task_type", o.TaskType); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_start_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_start_responses.go deleted file mode 100644 index 355dea6813..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_start_responses.go +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// PutClusterClusterIDTaskTaskTypeTaskIDStartReader is a Reader for the PutClusterClusterIDTaskTaskTypeTaskIDStart structure. -type PutClusterClusterIDTaskTaskTypeTaskIDStartReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewPutClusterClusterIDTaskTaskTypeTaskIDStartOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewPutClusterClusterIDTaskTaskTypeTaskIDStartDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewPutClusterClusterIDTaskTaskTypeTaskIDStartOK creates a PutClusterClusterIDTaskTaskTypeTaskIDStartOK with default headers values -func NewPutClusterClusterIDTaskTaskTypeTaskIDStartOK() *PutClusterClusterIDTaskTaskTypeTaskIDStartOK { - return &PutClusterClusterIDTaskTaskTypeTaskIDStartOK{} -} - -/* -PutClusterClusterIDTaskTaskTypeTaskIDStartOK handles this case with default header values. - -Task started -*/ -type PutClusterClusterIDTaskTaskTypeTaskIDStartOK struct { -} - -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartOK) Error() string { - return fmt.Sprintf("[PUT /cluster/{cluster_id}/task/{task_type}/{task_id}/start][%d] putClusterClusterIdTaskTaskTypeTaskIdStartOK ", 200) -} - -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewPutClusterClusterIDTaskTaskTypeTaskIDStartDefault creates a PutClusterClusterIDTaskTaskTypeTaskIDStartDefault with default headers values -func NewPutClusterClusterIDTaskTaskTypeTaskIDStartDefault(code int) *PutClusterClusterIDTaskTaskTypeTaskIDStartDefault { - return &PutClusterClusterIDTaskTaskTypeTaskIDStartDefault{ - _statusCode: code, - } -} - -/* -PutClusterClusterIDTaskTaskTypeTaskIDStartDefault handles this case with default header values. - -Error -*/ -type PutClusterClusterIDTaskTaskTypeTaskIDStartDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the put cluster cluster ID task task type task ID start default response -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartDefault) Code() int { - return o._statusCode -} - -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartDefault) Error() string { - return fmt.Sprintf("[PUT /cluster/{cluster_id}/task/{task_type}/{task_id}/start][%d] PutClusterClusterIDTaskTaskTypeTaskIDStart default %+v", o._statusCode, o.Payload) -} - -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStartDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_stop_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_stop_parameters.go deleted file mode 100644 index 5d641d7ce1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_stop_parameters.go +++ /dev/null @@ -1,199 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewPutClusterClusterIDTaskTaskTypeTaskIDStopParams creates a new PutClusterClusterIDTaskTaskTypeTaskIDStopParams object -// with the default values initialized. -func NewPutClusterClusterIDTaskTaskTypeTaskIDStopParams() *PutClusterClusterIDTaskTaskTypeTaskIDStopParams { - var () - return &PutClusterClusterIDTaskTaskTypeTaskIDStopParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewPutClusterClusterIDTaskTaskTypeTaskIDStopParamsWithTimeout creates a new PutClusterClusterIDTaskTaskTypeTaskIDStopParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewPutClusterClusterIDTaskTaskTypeTaskIDStopParamsWithTimeout(timeout time.Duration) *PutClusterClusterIDTaskTaskTypeTaskIDStopParams { - var () - return &PutClusterClusterIDTaskTaskTypeTaskIDStopParams{ - - timeout: timeout, - } -} - -// NewPutClusterClusterIDTaskTaskTypeTaskIDStopParamsWithContext creates a new PutClusterClusterIDTaskTaskTypeTaskIDStopParams object -// with the default values initialized, and the ability to set a context for a request -func NewPutClusterClusterIDTaskTaskTypeTaskIDStopParamsWithContext(ctx context.Context) *PutClusterClusterIDTaskTaskTypeTaskIDStopParams { - var () - return &PutClusterClusterIDTaskTaskTypeTaskIDStopParams{ - - Context: ctx, - } -} - -// NewPutClusterClusterIDTaskTaskTypeTaskIDStopParamsWithHTTPClient creates a new PutClusterClusterIDTaskTaskTypeTaskIDStopParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewPutClusterClusterIDTaskTaskTypeTaskIDStopParamsWithHTTPClient(client *http.Client) *PutClusterClusterIDTaskTaskTypeTaskIDStopParams { - var () - return &PutClusterClusterIDTaskTaskTypeTaskIDStopParams{ - HTTPClient: client, - } -} - -/* -PutClusterClusterIDTaskTaskTypeTaskIDStopParams contains all the parameters to send to the API endpoint -for the put cluster cluster ID task task type task ID stop operation typically these are written to a http.Request -*/ -type PutClusterClusterIDTaskTaskTypeTaskIDStopParams struct { - - /*ClusterID*/ - ClusterID string - /*Disable*/ - Disable *bool - /*TaskID*/ - TaskID string - /*TaskType*/ - TaskType string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the put cluster cluster ID task task type task ID stop params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopParams) WithTimeout(timeout time.Duration) *PutClusterClusterIDTaskTaskTypeTaskIDStopParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the put cluster cluster ID task task type task ID stop params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the put cluster cluster ID task task type task ID stop params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopParams) WithContext(ctx context.Context) *PutClusterClusterIDTaskTaskTypeTaskIDStopParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the put cluster cluster ID task task type task ID stop params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the put cluster cluster ID task task type task ID stop params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopParams) WithHTTPClient(client *http.Client) *PutClusterClusterIDTaskTaskTypeTaskIDStopParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the put cluster cluster ID task task type task ID stop params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClusterID adds the clusterID to the put cluster cluster ID task task type task ID stop params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopParams) WithClusterID(clusterID string) *PutClusterClusterIDTaskTaskTypeTaskIDStopParams { - o.SetClusterID(clusterID) - return o -} - -// SetClusterID adds the clusterId to the put cluster cluster ID task task type task ID stop params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopParams) SetClusterID(clusterID string) { - o.ClusterID = clusterID -} - -// WithDisable adds the disable to the put cluster cluster ID task task type task ID stop params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopParams) WithDisable(disable *bool) *PutClusterClusterIDTaskTaskTypeTaskIDStopParams { - o.SetDisable(disable) - return o -} - -// SetDisable adds the disable to the put cluster cluster ID task task type task ID stop params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopParams) SetDisable(disable *bool) { - o.Disable = disable -} - -// WithTaskID adds the taskID to the put cluster cluster ID task task type task ID stop params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopParams) WithTaskID(taskID string) *PutClusterClusterIDTaskTaskTypeTaskIDStopParams { - o.SetTaskID(taskID) - return o -} - -// SetTaskID adds the taskId to the put cluster cluster ID task task type task ID stop params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopParams) SetTaskID(taskID string) { - o.TaskID = taskID -} - -// WithTaskType adds the taskType to the put cluster cluster ID task task type task ID stop params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopParams) WithTaskType(taskType string) *PutClusterClusterIDTaskTaskTypeTaskIDStopParams { - o.SetTaskType(taskType) - return o -} - -// SetTaskType adds the taskType to the put cluster cluster ID task task type task ID stop params -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopParams) SetTaskType(taskType string) { - o.TaskType = taskType -} - -// WriteToRequest writes these params to a swagger request -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param cluster_id - if err := r.SetPathParam("cluster_id", o.ClusterID); err != nil { - return err - } - - if o.Disable != nil { - - // query param disable - var qrDisable bool - if o.Disable != nil { - qrDisable = *o.Disable - } - qDisable := swag.FormatBool(qrDisable) - if qDisable != "" { - if err := r.SetQueryParam("disable", qDisable); err != nil { - return err - } - } - - } - - // path param task_id - if err := r.SetPathParam("task_id", o.TaskID); err != nil { - return err - } - - // path param task_type - if err := r.SetPathParam("task_type", o.TaskType); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_stop_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_stop_responses.go deleted file mode 100644 index 3a73227dac..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations/put_cluster_cluster_id_task_task_type_task_id_stop_responses.go +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models" -) - -// PutClusterClusterIDTaskTaskTypeTaskIDStopReader is a Reader for the PutClusterClusterIDTaskTaskTypeTaskIDStop structure. -type PutClusterClusterIDTaskTaskTypeTaskIDStopReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewPutClusterClusterIDTaskTaskTypeTaskIDStopOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewPutClusterClusterIDTaskTaskTypeTaskIDStopDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewPutClusterClusterIDTaskTaskTypeTaskIDStopOK creates a PutClusterClusterIDTaskTaskTypeTaskIDStopOK with default headers values -func NewPutClusterClusterIDTaskTaskTypeTaskIDStopOK() *PutClusterClusterIDTaskTaskTypeTaskIDStopOK { - return &PutClusterClusterIDTaskTaskTypeTaskIDStopOK{} -} - -/* -PutClusterClusterIDTaskTaskTypeTaskIDStopOK handles this case with default header values. - -Task stopped -*/ -type PutClusterClusterIDTaskTaskTypeTaskIDStopOK struct { -} - -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopOK) Error() string { - return fmt.Sprintf("[PUT /cluster/{cluster_id}/task/{task_type}/{task_id}/stop][%d] putClusterClusterIdTaskTaskTypeTaskIdStopOK ", 200) -} - -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewPutClusterClusterIDTaskTaskTypeTaskIDStopDefault creates a PutClusterClusterIDTaskTaskTypeTaskIDStopDefault with default headers values -func NewPutClusterClusterIDTaskTaskTypeTaskIDStopDefault(code int) *PutClusterClusterIDTaskTaskTypeTaskIDStopDefault { - return &PutClusterClusterIDTaskTaskTypeTaskIDStopDefault{ - _statusCode: code, - } -} - -/* -PutClusterClusterIDTaskTaskTypeTaskIDStopDefault handles this case with default header values. - -Error -*/ -type PutClusterClusterIDTaskTaskTypeTaskIDStopDefault struct { - _statusCode int - - Payload *models.ErrorResponse -} - -// Code gets the status code for the put cluster cluster ID task task type task ID stop default response -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopDefault) Code() int { - return o._statusCode -} - -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopDefault) Error() string { - return fmt.Sprintf("[PUT /cluster/{cluster_id}/task/{task_type}/{task_id}/stop][%d] PutClusterClusterIDTaskTaskTypeTaskIDStop default %+v", o._statusCode, o.Payload) -} - -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopDefault) GetPayload() *models.ErrorResponse { - return o.Payload -} - -func (o *PutClusterClusterIDTaskTaskTypeTaskIDStopDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorResponse) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_describe_schema.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_describe_schema.go deleted file mode 100644 index 459bb2e9d2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_describe_schema.go +++ /dev/null @@ -1,80 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// BackupDescribeSchema Output of the backed up DESCRIBE SCHEMA WITH INTERNALS CQL query -// -// swagger:model BackupDescribeSchema -type BackupDescribeSchema struct { - - // schema - Schema []*BackupDescribeSchemaItem `json:"schema"` -} - -// Validate validates this backup describe schema -func (m *BackupDescribeSchema) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateSchema(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *BackupDescribeSchema) validateSchema(formats strfmt.Registry) error { - - if swag.IsZero(m.Schema) { // not required - return nil - } - - for i := 0; i < len(m.Schema); i++ { - if swag.IsZero(m.Schema[i]) { // not required - continue - } - - if m.Schema[i] != nil { - if err := m.Schema[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("schema" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *BackupDescribeSchema) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *BackupDescribeSchema) UnmarshalBinary(b []byte) error { - var res BackupDescribeSchema - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_describe_schema_item.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_describe_schema_item.go deleted file mode 100644 index 61bc3412b4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_describe_schema_item.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// BackupDescribeSchemaItem backup describe schema item -// -// swagger:model BackupDescribeSchemaItem -type BackupDescribeSchemaItem struct { - - // cql stmt - CqlStmt string `json:"cql_stmt,omitempty"` - - // keyspace - Keyspace string `json:"keyspace,omitempty"` - - // name - Name string `json:"name,omitempty"` - - // type - Type string `json:"type,omitempty"` -} - -// Validate validates this backup describe schema item -func (m *BackupDescribeSchemaItem) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *BackupDescribeSchemaItem) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *BackupDescribeSchemaItem) UnmarshalBinary(b []byte) error { - var res BackupDescribeSchemaItem - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_files_info.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_files_info.go deleted file mode 100644 index fba6872879..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_files_info.go +++ /dev/null @@ -1,133 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// BackupFilesInfo backup files info -// -// swagger:model BackupFilesInfo -type BackupFilesInfo struct { - - // files - Files []*BackupFilesInfoFilesItems0 `json:"files"` - - // location - Location string `json:"location,omitempty"` - - // schema - Schema string `json:"schema,omitempty"` -} - -// Validate validates this backup files info -func (m *BackupFilesInfo) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateFiles(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *BackupFilesInfo) validateFiles(formats strfmt.Registry) error { - - if swag.IsZero(m.Files) { // not required - return nil - } - - for i := 0; i < len(m.Files); i++ { - if swag.IsZero(m.Files[i]) { // not required - continue - } - - if m.Files[i] != nil { - if err := m.Files[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("files" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *BackupFilesInfo) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *BackupFilesInfo) UnmarshalBinary(b []byte) error { - var res BackupFilesInfo - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} - -// BackupFilesInfoFilesItems0 backup files info files items0 -// -// swagger:model BackupFilesInfoFilesItems0 -type BackupFilesInfoFilesItems0 struct { - - // files - Files []string `json:"files"` - - // keyspace - Keyspace string `json:"keyspace,omitempty"` - - // path - Path string `json:"path,omitempty"` - - // size - Size int64 `json:"size,omitempty"` - - // table - Table string `json:"table,omitempty"` - - // version - Version string `json:"version,omitempty"` -} - -// Validate validates this backup files info files items0 -func (m *BackupFilesInfoFilesItems0) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *BackupFilesInfoFilesItems0) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *BackupFilesInfoFilesItems0) UnmarshalBinary(b []byte) error { - var res BackupFilesInfoFilesItems0 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_list_item.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_list_item.go deleted file mode 100644 index 13d5ffda53..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_list_item.go +++ /dev/null @@ -1,118 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// BackupListItem backup list item -// -// swagger:model BackupListItem -type BackupListItem struct { - - // cluster id - ClusterID string `json:"cluster_id,omitempty"` - - // snapshot info - SnapshotInfo []*SnapshotInfo `json:"snapshot_info"` - - // task id - TaskID string `json:"task_id,omitempty"` - - // units - Units []*BackupUnit `json:"units"` -} - -// Validate validates this backup list item -func (m *BackupListItem) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateSnapshotInfo(formats); err != nil { - res = append(res, err) - } - - if err := m.validateUnits(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *BackupListItem) validateSnapshotInfo(formats strfmt.Registry) error { - - if swag.IsZero(m.SnapshotInfo) { // not required - return nil - } - - for i := 0; i < len(m.SnapshotInfo); i++ { - if swag.IsZero(m.SnapshotInfo[i]) { // not required - continue - } - - if m.SnapshotInfo[i] != nil { - if err := m.SnapshotInfo[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("snapshot_info" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -func (m *BackupListItem) validateUnits(formats strfmt.Registry) error { - - if swag.IsZero(m.Units) { // not required - return nil - } - - for i := 0; i < len(m.Units); i++ { - if swag.IsZero(m.Units[i]) { // not required - continue - } - - if m.Units[i] != nil { - if err := m.Units[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("units" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *BackupListItem) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *BackupListItem) UnmarshalBinary(b []byte) error { - var res BackupListItem - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_progress.go deleted file mode 100644 index cd8b9b2e18..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_progress.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// BackupProgress backup progress -// -// swagger:model BackupProgress -type BackupProgress struct { - - // completed at - // Format: date-time - CompletedAt *strfmt.DateTime `json:"completed_at,omitempty"` - - // dcs - Dcs []string `json:"dcs"` - - // failed - Failed int64 `json:"failed,omitempty"` - - // hosts - Hosts []*HostProgress `json:"hosts"` - - // size - Size int64 `json:"size,omitempty"` - - // skipped - Skipped int64 `json:"skipped,omitempty"` - - // snapshot tag - SnapshotTag string `json:"snapshot_tag,omitempty"` - - // stage - Stage string `json:"stage,omitempty"` - - // started at - // Format: date-time - StartedAt *strfmt.DateTime `json:"started_at,omitempty"` - - // uploaded - Uploaded int64 `json:"uploaded,omitempty"` -} - -// Validate validates this backup progress -func (m *BackupProgress) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateCompletedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateHosts(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStartedAt(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *BackupProgress) validateCompletedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.CompletedAt) { // not required - return nil - } - - if err := validate.FormatOf("completed_at", "body", "date-time", m.CompletedAt.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *BackupProgress) validateHosts(formats strfmt.Registry) error { - - if swag.IsZero(m.Hosts) { // not required - return nil - } - - for i := 0; i < len(m.Hosts); i++ { - if swag.IsZero(m.Hosts[i]) { // not required - continue - } - - if m.Hosts[i] != nil { - if err := m.Hosts[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("hosts" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -func (m *BackupProgress) validateStartedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.StartedAt) { // not required - return nil - } - - if err := validate.FormatOf("started_at", "body", "date-time", m.StartedAt.String(), formats); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *BackupProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *BackupProgress) UnmarshalBinary(b []byte) error { - var res BackupProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_target.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_target.go deleted file mode 100644 index c01d8ce1c0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_target.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// BackupTarget backup target -// -// swagger:model BackupTarget -type BackupTarget struct { - - // cluster id - ClusterID string `json:"cluster_id,omitempty"` - - // dc - Dc []string `json:"dc"` - - // host - Host string `json:"host,omitempty"` - - // location - Location []string `json:"location"` - - // rate limit - RateLimit []string `json:"rate_limit"` - - // retention - Retention int64 `json:"retention,omitempty"` - - // retention days - RetentionDays int64 `json:"retention_days,omitempty"` - - // size - Size int64 `json:"size,omitempty"` - - // snapshot parallel - SnapshotParallel []string `json:"snapshot_parallel"` - - // units - Units []*BackupUnit `json:"units"` - - // upload parallel - UploadParallel []string `json:"upload_parallel"` - - // with hosts - WithHosts []string `json:"with_hosts"` -} - -// Validate validates this backup target -func (m *BackupTarget) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateUnits(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *BackupTarget) validateUnits(formats strfmt.Registry) error { - - if swag.IsZero(m.Units) { // not required - return nil - } - - for i := 0; i < len(m.Units); i++ { - if swag.IsZero(m.Units[i]) { // not required - continue - } - - if m.Units[i] != nil { - if err := m.Units[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("units" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *BackupTarget) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *BackupTarget) UnmarshalBinary(b []byte) error { - var res BackupTarget - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_unit.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_unit.go deleted file mode 100644 index 04127c2b65..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/backup_unit.go +++ /dev/null @@ -1,49 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// BackupUnit backup unit -// -// swagger:model BackupUnit -type BackupUnit struct { - - // all tables - AllTables bool `json:"all_tables,omitempty"` - - // keyspace - Keyspace string `json:"keyspace,omitempty"` - - // tables - Tables []string `json:"tables"` -} - -// Validate validates this backup unit -func (m *BackupUnit) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *BackupUnit) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *BackupUnit) UnmarshalBinary(b []byte) error { - var res BackupUnit - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/cluster.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/cluster.go deleted file mode 100644 index 887748e2da..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/cluster.go +++ /dev/null @@ -1,87 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// Cluster cluster -// -// swagger:model Cluster -type Cluster struct { - - // alternator access key id - AlternatorAccessKeyID string `json:"alternator_access_key_id,omitempty"` - - // alternator secret access key - AlternatorSecretAccessKey string `json:"alternator_secret_access_key,omitempty"` - - // auth token - AuthToken string `json:"auth_token,omitempty"` - - // force non ssl session port - ForceNonSslSessionPort bool `json:"force_non_ssl_session_port,omitempty"` - - // force tls disabled - ForceTLSDisabled bool `json:"force_tls_disabled,omitempty"` - - // host - Host string `json:"host,omitempty"` - - // id - ID string `json:"id,omitempty"` - - // labels - Labels map[string]string `json:"labels,omitempty"` - - // name - Name string `json:"name,omitempty"` - - // password - Password string `json:"password,omitempty"` - - // port - Port int64 `json:"port,omitempty"` - - // ssl user cert file - // Format: byte - SslUserCertFile strfmt.Base64 `json:"ssl_user_cert_file,omitempty"` - - // ssl user key file - // Format: byte - SslUserKeyFile strfmt.Base64 `json:"ssl_user_key_file,omitempty"` - - // username - Username string `json:"username,omitempty"` - - // without repair - WithoutRepair bool `json:"without_repair,omitempty"` -} - -// Validate validates this cluster -func (m *Cluster) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *Cluster) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Cluster) UnmarshalBinary(b []byte) error { - var res Cluster - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/cluster_status.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/cluster_status.go deleted file mode 100644 index 71e571ada3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/cluster_status.go +++ /dev/null @@ -1,131 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// ClusterStatus cluster status -// -// swagger:model ClusterStatus -type ClusterStatus []*ClusterStatusItems0 - -// Validate validates this cluster status -func (m ClusterStatus) Validate(formats strfmt.Registry) error { - var res []error - - for i := 0; i < len(m); i++ { - if swag.IsZero(m[i]) { // not required - continue - } - - if m[i] != nil { - if err := m[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName(strconv.Itoa(i)) - } - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -// ClusterStatusItems0 cluster status items0 -// -// swagger:model ClusterStatusItems0 -type ClusterStatusItems0 struct { - - // agent version - AgentVersion string `json:"agent_version,omitempty"` - - // alternator cause - AlternatorCause string `json:"alternator_cause,omitempty"` - - // alternator rtt ms - AlternatorRttMs float32 `json:"alternator_rtt_ms,omitempty"` - - // alternator status - AlternatorStatus string `json:"alternator_status,omitempty"` - - // cpu count - CPUCount int64 `json:"cpu_count,omitempty"` - - // cql cause - CqlCause string `json:"cql_cause,omitempty"` - - // cql rtt ms - CqlRttMs float32 `json:"cql_rtt_ms,omitempty"` - - // cql status - CqlStatus string `json:"cql_status,omitempty"` - - // dc - Dc string `json:"dc,omitempty"` - - // host - Host string `json:"host,omitempty"` - - // host id - HostID string `json:"host_id,omitempty"` - - // rest cause - RestCause string `json:"rest_cause,omitempty"` - - // rest rtt ms - RestRttMs float32 `json:"rest_rtt_ms,omitempty"` - - // rest status - RestStatus string `json:"rest_status,omitempty"` - - // scylla version - ScyllaVersion string `json:"scylla_version,omitempty"` - - // ssl - Ssl bool `json:"ssl,omitempty"` - - // status - Status string `json:"status,omitempty"` - - // total ram - TotalRAM int64 `json:"total_ram,omitempty"` - - // uptime - Uptime int64 `json:"uptime,omitempty"` -} - -// Validate validates this cluster status items0 -func (m *ClusterStatusItems0) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *ClusterStatusItems0) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *ClusterStatusItems0) UnmarshalBinary(b []byte) error { - var res ClusterStatusItems0 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/error_response.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/error_response.go deleted file mode 100644 index 1a034831fc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/error_response.go +++ /dev/null @@ -1,49 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// ErrorResponse error response -// -// swagger:model ErrorResponse -type ErrorResponse struct { - - // Human readable description - Details string `json:"details,omitempty"` - - // Error description - Message string `json:"message,omitempty"` - - // Request ID for tracing in logs - TraceID string `json:"trace_id,omitempty"` -} - -// Validate validates this error response -func (m *ErrorResponse) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *ErrorResponse) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *ErrorResponse) UnmarshalBinary(b []byte) error { - var res ErrorResponse - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/host_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/host_progress.go deleted file mode 100644 index 35c41eef1b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/host_progress.go +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// HostProgress host progress -// -// swagger:model HostProgress -type HostProgress struct { - - // completed at - // Format: date-time - CompletedAt *strfmt.DateTime `json:"completed_at,omitempty"` - - // failed - Failed int64 `json:"failed,omitempty"` - - // host - Host string `json:"host,omitempty"` - - // keyspaces - Keyspaces []*KeyspaceProgress `json:"keyspaces"` - - // size - Size int64 `json:"size,omitempty"` - - // skipped - Skipped int64 `json:"skipped,omitempty"` - - // started at - // Format: date-time - StartedAt *strfmt.DateTime `json:"started_at,omitempty"` - - // uploaded - Uploaded int64 `json:"uploaded,omitempty"` -} - -// Validate validates this host progress -func (m *HostProgress) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateCompletedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateKeyspaces(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStartedAt(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *HostProgress) validateCompletedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.CompletedAt) { // not required - return nil - } - - if err := validate.FormatOf("completed_at", "body", "date-time", m.CompletedAt.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *HostProgress) validateKeyspaces(formats strfmt.Registry) error { - - if swag.IsZero(m.Keyspaces) { // not required - return nil - } - - for i := 0; i < len(m.Keyspaces); i++ { - if swag.IsZero(m.Keyspaces[i]) { // not required - continue - } - - if m.Keyspaces[i] != nil { - if err := m.Keyspaces[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("keyspaces" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -func (m *HostProgress) validateStartedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.StartedAt) { // not required - return nil - } - - if err := validate.FormatOf("started_at", "body", "date-time", m.StartedAt.String(), formats); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *HostProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *HostProgress) UnmarshalBinary(b []byte) error { - var res HostProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/keyspace_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/keyspace_progress.go deleted file mode 100644 index c550ede136..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/keyspace_progress.go +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// KeyspaceProgress keyspace progress -// -// swagger:model KeyspaceProgress -type KeyspaceProgress struct { - - // completed at - // Format: date-time - CompletedAt *strfmt.DateTime `json:"completed_at,omitempty"` - - // failed - Failed int64 `json:"failed,omitempty"` - - // keyspace - Keyspace string `json:"keyspace,omitempty"` - - // size - Size int64 `json:"size,omitempty"` - - // skipped - Skipped int64 `json:"skipped,omitempty"` - - // started at - // Format: date-time - StartedAt *strfmt.DateTime `json:"started_at,omitempty"` - - // tables - Tables []*TableProgress `json:"tables"` - - // uploaded - Uploaded int64 `json:"uploaded,omitempty"` -} - -// Validate validates this keyspace progress -func (m *KeyspaceProgress) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateCompletedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStartedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateTables(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *KeyspaceProgress) validateCompletedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.CompletedAt) { // not required - return nil - } - - if err := validate.FormatOf("completed_at", "body", "date-time", m.CompletedAt.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *KeyspaceProgress) validateStartedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.StartedAt) { // not required - return nil - } - - if err := validate.FormatOf("started_at", "body", "date-time", m.StartedAt.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *KeyspaceProgress) validateTables(formats strfmt.Registry) error { - - if swag.IsZero(m.Tables) { // not required - return nil - } - - for i := 0; i < len(m.Tables); i++ { - if swag.IsZero(m.Tables[i]) { // not required - continue - } - - if m.Tables[i] != nil { - if err := m.Tables[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("tables" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *KeyspaceProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *KeyspaceProgress) UnmarshalBinary(b []byte) error { - var res KeyspaceProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/one2_one_restore_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/one2_one_restore_progress.go deleted file mode 100644 index 97794173e9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/one2_one_restore_progress.go +++ /dev/null @@ -1,112 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// One2OneRestoreProgress one2 one restore progress -// -// swagger:model One2OneRestoreProgress -type One2OneRestoreProgress struct { - - // tables - Tables []*One2OneRestoreTableProgress `json:"tables"` - - // views - Views []*One2OneRestoreViewProgress `json:"views"` -} - -// Validate validates this one2 one restore progress -func (m *One2OneRestoreProgress) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateTables(formats); err != nil { - res = append(res, err) - } - - if err := m.validateViews(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *One2OneRestoreProgress) validateTables(formats strfmt.Registry) error { - - if swag.IsZero(m.Tables) { // not required - return nil - } - - for i := 0; i < len(m.Tables); i++ { - if swag.IsZero(m.Tables[i]) { // not required - continue - } - - if m.Tables[i] != nil { - if err := m.Tables[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("tables" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -func (m *One2OneRestoreProgress) validateViews(formats strfmt.Registry) error { - - if swag.IsZero(m.Views) { // not required - return nil - } - - for i := 0; i < len(m.Views); i++ { - if swag.IsZero(m.Views[i]) { // not required - continue - } - - if m.Views[i] != nil { - if err := m.Views[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("views" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *One2OneRestoreProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *One2OneRestoreProgress) UnmarshalBinary(b []byte) error { - var res One2OneRestoreProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/one2_one_restore_table_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/one2_one_restore_table_progress.go deleted file mode 100644 index 1804917361..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/one2_one_restore_table_progress.go +++ /dev/null @@ -1,160 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "encoding/json" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// One2OneRestoreTableProgress one2 one restore table progress -// -// swagger:model One2OneRestoreTableProgress -type One2OneRestoreTableProgress struct { - - // completed at - // Format: date-time - CompletedAt *strfmt.DateTime `json:"completed_at,omitempty"` - - // keyspace - Keyspace string `json:"keyspace,omitempty"` - - // restored - Restored int64 `json:"restored,omitempty"` - - // size - Size int64 `json:"size,omitempty"` - - // started at - // Format: date-time - StartedAt *strfmt.DateTime `json:"started_at,omitempty"` - - // status - // Enum: [not_started in_progress done failed] - Status string `json:"status,omitempty"` - - // table - Table string `json:"table,omitempty"` -} - -// Validate validates this one2 one restore table progress -func (m *One2OneRestoreTableProgress) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateCompletedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStartedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStatus(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *One2OneRestoreTableProgress) validateCompletedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.CompletedAt) { // not required - return nil - } - - if err := validate.FormatOf("completed_at", "body", "date-time", m.CompletedAt.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *One2OneRestoreTableProgress) validateStartedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.StartedAt) { // not required - return nil - } - - if err := validate.FormatOf("started_at", "body", "date-time", m.StartedAt.String(), formats); err != nil { - return err - } - - return nil -} - -var one2OneRestoreTableProgressTypeStatusPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["not_started","in_progress","done","failed"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - one2OneRestoreTableProgressTypeStatusPropEnum = append(one2OneRestoreTableProgressTypeStatusPropEnum, v) - } -} - -const ( - - // One2OneRestoreTableProgressStatusNotStarted captures enum value "not_started" - One2OneRestoreTableProgressStatusNotStarted string = "not_started" - - // One2OneRestoreTableProgressStatusInProgress captures enum value "in_progress" - One2OneRestoreTableProgressStatusInProgress string = "in_progress" - - // One2OneRestoreTableProgressStatusDone captures enum value "done" - One2OneRestoreTableProgressStatusDone string = "done" - - // One2OneRestoreTableProgressStatusFailed captures enum value "failed" - One2OneRestoreTableProgressStatusFailed string = "failed" -) - -// prop value enum -func (m *One2OneRestoreTableProgress) validateStatusEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, one2OneRestoreTableProgressTypeStatusPropEnum, true); err != nil { - return err - } - return nil -} - -func (m *One2OneRestoreTableProgress) validateStatus(formats strfmt.Registry) error { - - if swag.IsZero(m.Status) { // not required - return nil - } - - // value enum - if err := m.validateStatusEnum("status", "body", m.Status); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *One2OneRestoreTableProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *One2OneRestoreTableProgress) UnmarshalBinary(b []byte) error { - var res One2OneRestoreTableProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/one2_one_restore_view_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/one2_one_restore_view_progress.go deleted file mode 100644 index 77c431a7ec..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/one2_one_restore_view_progress.go +++ /dev/null @@ -1,166 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "encoding/json" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// One2OneRestoreViewProgress one2 one restore view progress -// -// swagger:model One2OneRestoreViewProgress -type One2OneRestoreViewProgress struct { - - // completed at - // Format: date-time - CompletedAt *strfmt.DateTime `json:"completed_at,omitempty"` - - // keyspace - Keyspace string `json:"keyspace,omitempty"` - - // restored - Restored int64 `json:"restored,omitempty"` - - // size - Size int64 `json:"size,omitempty"` - - // started at - // Format: date-time - StartedAt *strfmt.DateTime `json:"started_at,omitempty"` - - // status - // Enum: [not_started in_progress done failed] - Status string `json:"status,omitempty"` - - // table - Table string `json:"table,omitempty"` - - // view - View string `json:"view,omitempty"` - - // view type - ViewType string `json:"view_type,omitempty"` -} - -// Validate validates this one2 one restore view progress -func (m *One2OneRestoreViewProgress) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateCompletedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStartedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStatus(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *One2OneRestoreViewProgress) validateCompletedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.CompletedAt) { // not required - return nil - } - - if err := validate.FormatOf("completed_at", "body", "date-time", m.CompletedAt.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *One2OneRestoreViewProgress) validateStartedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.StartedAt) { // not required - return nil - } - - if err := validate.FormatOf("started_at", "body", "date-time", m.StartedAt.String(), formats); err != nil { - return err - } - - return nil -} - -var one2OneRestoreViewProgressTypeStatusPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["not_started","in_progress","done","failed"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - one2OneRestoreViewProgressTypeStatusPropEnum = append(one2OneRestoreViewProgressTypeStatusPropEnum, v) - } -} - -const ( - - // One2OneRestoreViewProgressStatusNotStarted captures enum value "not_started" - One2OneRestoreViewProgressStatusNotStarted string = "not_started" - - // One2OneRestoreViewProgressStatusInProgress captures enum value "in_progress" - One2OneRestoreViewProgressStatusInProgress string = "in_progress" - - // One2OneRestoreViewProgressStatusDone captures enum value "done" - One2OneRestoreViewProgressStatusDone string = "done" - - // One2OneRestoreViewProgressStatusFailed captures enum value "failed" - One2OneRestoreViewProgressStatusFailed string = "failed" -) - -// prop value enum -func (m *One2OneRestoreViewProgress) validateStatusEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, one2OneRestoreViewProgressTypeStatusPropEnum, true); err != nil { - return err - } - return nil -} - -func (m *One2OneRestoreViewProgress) validateStatus(formats strfmt.Registry) error { - - if swag.IsZero(m.Status) { // not required - return nil - } - - // value enum - if err := m.validateStatusEnum("status", "body", m.Status); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *One2OneRestoreViewProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *One2OneRestoreViewProgress) UnmarshalBinary(b []byte) error { - var res One2OneRestoreViewProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/repair_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/repair_progress.go deleted file mode 100644 index 6d1dc455b0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/repair_progress.go +++ /dev/null @@ -1,260 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// RepairProgress repair progress -// -// swagger:model RepairProgress -type RepairProgress struct { - - // completed at - // Format: date-time - CompletedAt *strfmt.DateTime `json:"completed_at,omitempty"` - - // dcs - Dcs []string `json:"dcs"` - - // duration ms - DurationMs int64 `json:"duration_ms,omitempty"` - - // error - Error int64 `json:"error,omitempty"` - - // error percentage - ErrorPercentage int64 `json:"error_percentage,omitempty"` - - // host - Host string `json:"host,omitempty"` - - // hosts - Hosts []*RepairProgressHostsItems0 `json:"hosts"` - - // intensity - Intensity float64 `json:"intensity,omitempty"` - - // max intensity - MaxIntensity float64 `json:"max_intensity,omitempty"` - - // max parallel - MaxParallel int64 `json:"max_parallel,omitempty"` - - // parallel - Parallel int64 `json:"parallel,omitempty"` - - // started at - // Format: date-time - StartedAt *strfmt.DateTime `json:"started_at,omitempty"` - - // success - Success int64 `json:"success,omitempty"` - - // success percentage - SuccessPercentage int64 `json:"success_percentage,omitempty"` - - // tables - Tables []*TableRepairProgress `json:"tables"` - - // token ranges - TokenRanges int64 `json:"token_ranges,omitempty"` -} - -// Validate validates this repair progress -func (m *RepairProgress) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateCompletedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateHosts(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStartedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateTables(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *RepairProgress) validateCompletedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.CompletedAt) { // not required - return nil - } - - if err := validate.FormatOf("completed_at", "body", "date-time", m.CompletedAt.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *RepairProgress) validateHosts(formats strfmt.Registry) error { - - if swag.IsZero(m.Hosts) { // not required - return nil - } - - for i := 0; i < len(m.Hosts); i++ { - if swag.IsZero(m.Hosts[i]) { // not required - continue - } - - if m.Hosts[i] != nil { - if err := m.Hosts[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("hosts" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -func (m *RepairProgress) validateStartedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.StartedAt) { // not required - return nil - } - - if err := validate.FormatOf("started_at", "body", "date-time", m.StartedAt.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *RepairProgress) validateTables(formats strfmt.Registry) error { - - if swag.IsZero(m.Tables) { // not required - return nil - } - - for i := 0; i < len(m.Tables); i++ { - if swag.IsZero(m.Tables[i]) { // not required - continue - } - - if m.Tables[i] != nil { - if err := m.Tables[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("tables" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *RepairProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *RepairProgress) UnmarshalBinary(b []byte) error { - var res RepairProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} - -// RepairProgressHostsItems0 repair progress hosts items0 -// -// swagger:model RepairProgressHostsItems0 -type RepairProgressHostsItems0 struct { - - // host - Host string `json:"host,omitempty"` - - // tables - Tables []*TableRepairProgress `json:"tables"` -} - -// Validate validates this repair progress hosts items0 -func (m *RepairProgressHostsItems0) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateTables(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *RepairProgressHostsItems0) validateTables(formats strfmt.Registry) error { - - if swag.IsZero(m.Tables) { // not required - return nil - } - - for i := 0; i < len(m.Tables); i++ { - if swag.IsZero(m.Tables[i]) { // not required - continue - } - - if m.Tables[i] != nil { - if err := m.Tables[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("tables" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *RepairProgressHostsItems0) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *RepairProgressHostsItems0) UnmarshalBinary(b []byte) error { - var res RepairProgressHostsItems0 - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/repair_target.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/repair_target.go deleted file mode 100644 index c93190b212..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/repair_target.go +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// RepairTarget repair target -// -// swagger:model RepairTarget -type RepairTarget struct { - - // cluster id - ClusterID string `json:"cluster_id,omitempty"` - - // dc - Dc []string `json:"dc"` - - // host - Host string `json:"host,omitempty"` - - // ignore hosts - IgnoreHosts []string `json:"ignore_hosts"` - - // token ranges - TokenRanges string `json:"token_ranges,omitempty"` - - // units - Units []*RepairUnit `json:"units"` - - // with hosts - WithHosts []string `json:"with_hosts"` -} - -// Validate validates this repair target -func (m *RepairTarget) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateUnits(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *RepairTarget) validateUnits(formats strfmt.Registry) error { - - if swag.IsZero(m.Units) { // not required - return nil - } - - for i := 0; i < len(m.Units); i++ { - if swag.IsZero(m.Units[i]) { // not required - continue - } - - if m.Units[i] != nil { - if err := m.Units[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("units" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *RepairTarget) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *RepairTarget) UnmarshalBinary(b []byte) error { - var res RepairTarget - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/repair_unit.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/repair_unit.go deleted file mode 100644 index 3910215af4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/repair_unit.go +++ /dev/null @@ -1,49 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// RepairUnit repair unit -// -// swagger:model RepairUnit -type RepairUnit struct { - - // all tables - AllTables bool `json:"all_tables,omitempty"` - - // keyspace - Keyspace string `json:"keyspace,omitempty"` - - // tables - Tables []string `json:"tables"` -} - -// Validate validates this repair unit -func (m *RepairUnit) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *RepairUnit) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *RepairUnit) UnmarshalBinary(b []byte) error { - var res RepairUnit - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_host_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_host_progress.go deleted file mode 100644 index 9f83f2ba9d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_host_progress.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// RestoreHostProgress restore host progress -// -// swagger:model RestoreHostProgress -type RestoreHostProgress struct { - - // Total time spent by host on download in milliseconds (included in restore_duration) - DownloadDuration int64 `json:"download_duration,omitempty"` - - // Total bytes downloaded by host (included in restored_bytes) - DownloadedBytes int64 `json:"downloaded_bytes,omitempty"` - - // host - Host string `json:"host,omitempty"` - - // Total time spent by host on restore in milliseconds - RestoreDuration int64 `json:"restore_duration,omitempty"` - - // Total bytes restored by host - RestoredBytes int64 `json:"restored_bytes,omitempty"` - - // Host shard count - ShardCnt int64 `json:"shard_cnt,omitempty"` - - // Total time spent by host on load&stream in milliseconds (included in restore_duration) - StreamDuration int64 `json:"stream_duration,omitempty"` - - // Total bytes load&streamed by host (included in restored_bytes) - StreamedBytes int64 `json:"streamed_bytes,omitempty"` -} - -// Validate validates this restore host progress -func (m *RestoreHostProgress) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *RestoreHostProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *RestoreHostProgress) UnmarshalBinary(b []byte) error { - var res RestoreHostProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_keyspace_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_keyspace_progress.go deleted file mode 100644 index 933b02a4f5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_keyspace_progress.go +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// RestoreKeyspaceProgress restore keyspace progress -// -// swagger:model RestoreKeyspaceProgress -type RestoreKeyspaceProgress struct { - - // completed at - // Format: date-time - CompletedAt *strfmt.DateTime `json:"completed_at,omitempty"` - - // This field is DEPRECATED. Total bytes downloaded from table (included in restored) - Downloaded int64 `json:"downloaded,omitempty"` - - // failed - Failed int64 `json:"failed,omitempty"` - - // keyspace - Keyspace string `json:"keyspace,omitempty"` - - // restored - Restored int64 `json:"restored,omitempty"` - - // size - Size int64 `json:"size,omitempty"` - - // started at - // Format: date-time - StartedAt *strfmt.DateTime `json:"started_at,omitempty"` - - // tables - Tables []*RestoreTableProgress `json:"tables"` -} - -// Validate validates this restore keyspace progress -func (m *RestoreKeyspaceProgress) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateCompletedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStartedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateTables(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *RestoreKeyspaceProgress) validateCompletedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.CompletedAt) { // not required - return nil - } - - if err := validate.FormatOf("completed_at", "body", "date-time", m.CompletedAt.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *RestoreKeyspaceProgress) validateStartedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.StartedAt) { // not required - return nil - } - - if err := validate.FormatOf("started_at", "body", "date-time", m.StartedAt.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *RestoreKeyspaceProgress) validateTables(formats strfmt.Registry) error { - - if swag.IsZero(m.Tables) { // not required - return nil - } - - for i := 0; i < len(m.Tables); i++ { - if swag.IsZero(m.Tables[i]) { // not required - continue - } - - if m.Tables[i] != nil { - if err := m.Tables[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("tables" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *RestoreKeyspaceProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *RestoreKeyspaceProgress) UnmarshalBinary(b []byte) error { - var res RestoreKeyspaceProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_progress.go deleted file mode 100644 index f23b38d6e1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_progress.go +++ /dev/null @@ -1,230 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// RestoreProgress restore progress -// -// swagger:model RestoreProgress -type RestoreProgress struct { - - // completed at - // Format: date-time - CompletedAt *strfmt.DateTime `json:"completed_at,omitempty"` - - // This field is DEPRECATED. Total bytes downloaded from table (included in restored) - Downloaded int64 `json:"downloaded,omitempty"` - - // failed - Failed int64 `json:"failed,omitempty"` - - // hosts - Hosts []*RestoreHostProgress `json:"hosts"` - - // keyspaces - Keyspaces []*RestoreKeyspaceProgress `json:"keyspaces"` - - // repair progress - RepairProgress *RepairProgress `json:"repair_progress,omitempty"` - - // restored - Restored int64 `json:"restored,omitempty"` - - // size - Size int64 `json:"size,omitempty"` - - // snapshot tag - SnapshotTag string `json:"snapshot_tag,omitempty"` - - // stage - Stage string `json:"stage,omitempty"` - - // started at - // Format: date-time - StartedAt *strfmt.DateTime `json:"started_at,omitempty"` - - // views - Views []*RestoreViewProgress `json:"views"` -} - -// Validate validates this restore progress -func (m *RestoreProgress) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateCompletedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateHosts(formats); err != nil { - res = append(res, err) - } - - if err := m.validateKeyspaces(formats); err != nil { - res = append(res, err) - } - - if err := m.validateRepairProgress(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStartedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateViews(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *RestoreProgress) validateCompletedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.CompletedAt) { // not required - return nil - } - - if err := validate.FormatOf("completed_at", "body", "date-time", m.CompletedAt.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *RestoreProgress) validateHosts(formats strfmt.Registry) error { - - if swag.IsZero(m.Hosts) { // not required - return nil - } - - for i := 0; i < len(m.Hosts); i++ { - if swag.IsZero(m.Hosts[i]) { // not required - continue - } - - if m.Hosts[i] != nil { - if err := m.Hosts[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("hosts" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -func (m *RestoreProgress) validateKeyspaces(formats strfmt.Registry) error { - - if swag.IsZero(m.Keyspaces) { // not required - return nil - } - - for i := 0; i < len(m.Keyspaces); i++ { - if swag.IsZero(m.Keyspaces[i]) { // not required - continue - } - - if m.Keyspaces[i] != nil { - if err := m.Keyspaces[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("keyspaces" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -func (m *RestoreProgress) validateRepairProgress(formats strfmt.Registry) error { - - if swag.IsZero(m.RepairProgress) { // not required - return nil - } - - if m.RepairProgress != nil { - if err := m.RepairProgress.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("repair_progress") - } - return err - } - } - - return nil -} - -func (m *RestoreProgress) validateStartedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.StartedAt) { // not required - return nil - } - - if err := validate.FormatOf("started_at", "body", "date-time", m.StartedAt.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *RestoreProgress) validateViews(formats strfmt.Registry) error { - - if swag.IsZero(m.Views) { // not required - return nil - } - - for i := 0; i < len(m.Views); i++ { - if swag.IsZero(m.Views[i]) { // not required - continue - } - - if m.Views[i] != nil { - if err := m.Views[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("views" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *RestoreProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *RestoreProgress) UnmarshalBinary(b []byte) error { - var res RestoreProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_table.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_table.go deleted file mode 100644 index 86aefa4441..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_table.go +++ /dev/null @@ -1,49 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// RestoreTable restore table -// -// swagger:model RestoreTable -type RestoreTable struct { - - // size - Size int64 `json:"size,omitempty"` - - // table - Table string `json:"table,omitempty"` - - // tombstone gc - TombstoneGc string `json:"tombstone_gc,omitempty"` -} - -// Validate validates this restore table -func (m *RestoreTable) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *RestoreTable) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *RestoreTable) UnmarshalBinary(b []byte) error { - var res RestoreTable - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_table_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_table_progress.go deleted file mode 100644 index ebc9a0141e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_table_progress.go +++ /dev/null @@ -1,110 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// RestoreTableProgress restore table progress -// -// swagger:model RestoreTableProgress -type RestoreTableProgress struct { - - // completed at - // Format: date-time - CompletedAt *strfmt.DateTime `json:"completed_at,omitempty"` - - // This field is DEPRECATED. Total bytes downloaded from table (included in restored) - Downloaded int64 `json:"downloaded,omitempty"` - - // error - Error string `json:"error,omitempty"` - - // failed - Failed int64 `json:"failed,omitempty"` - - // restored - Restored int64 `json:"restored,omitempty"` - - // size - Size int64 `json:"size,omitempty"` - - // started at - // Format: date-time - StartedAt *strfmt.DateTime `json:"started_at,omitempty"` - - // table - Table string `json:"table,omitempty"` - - // tombstone gc - TombstoneGc string `json:"tombstone_gc,omitempty"` -} - -// Validate validates this restore table progress -func (m *RestoreTableProgress) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateCompletedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStartedAt(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *RestoreTableProgress) validateCompletedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.CompletedAt) { // not required - return nil - } - - if err := validate.FormatOf("completed_at", "body", "date-time", m.CompletedAt.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *RestoreTableProgress) validateStartedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.StartedAt) { // not required - return nil - } - - if err := validate.FormatOf("started_at", "body", "date-time", m.StartedAt.String(), formats); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *RestoreTableProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *RestoreTableProgress) UnmarshalBinary(b []byte) error { - var res RestoreTableProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_target.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_target.go deleted file mode 100644 index f8024c7a3a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_target.go +++ /dev/null @@ -1,142 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// RestoreTarget restore target -// -// swagger:model RestoreTarget -type RestoreTarget struct { - - // allow compaction - AllowCompaction bool `json:"allow_compaction,omitempty"` - - // batch size - BatchSize int64 `json:"batch_size,omitempty"` - - // cluster id - ClusterID string `json:"cluster_id,omitempty"` - - // location - Location []string `json:"location"` - - // parallel - Parallel int64 `json:"parallel,omitempty"` - - // rate limit - RateLimit []string `json:"rate_limit"` - - // size - Size int64 `json:"size,omitempty"` - - // snapshot tag - SnapshotTag string `json:"snapshot_tag,omitempty"` - - // transfers - Transfers int64 `json:"transfers,omitempty"` - - // units - Units []*RestoreUnit `json:"units"` - - // unpin agent cpu - UnpinAgentCPU bool `json:"unpin_agent_cpu,omitempty"` - - // views - Views []*RestoreView `json:"views"` -} - -// Validate validates this restore target -func (m *RestoreTarget) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateUnits(formats); err != nil { - res = append(res, err) - } - - if err := m.validateViews(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *RestoreTarget) validateUnits(formats strfmt.Registry) error { - - if swag.IsZero(m.Units) { // not required - return nil - } - - for i := 0; i < len(m.Units); i++ { - if swag.IsZero(m.Units[i]) { // not required - continue - } - - if m.Units[i] != nil { - if err := m.Units[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("units" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -func (m *RestoreTarget) validateViews(formats strfmt.Registry) error { - - if swag.IsZero(m.Views) { // not required - return nil - } - - for i := 0; i < len(m.Views); i++ { - if swag.IsZero(m.Views[i]) { // not required - continue - } - - if m.Views[i] != nil { - if err := m.Views[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("views" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *RestoreTarget) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *RestoreTarget) UnmarshalBinary(b []byte) error { - var res RestoreTarget - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_unit.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_unit.go deleted file mode 100644 index ccafae9cfb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_unit.go +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// RestoreUnit restore unit -// -// swagger:model RestoreUnit -type RestoreUnit struct { - - // keyspace - Keyspace string `json:"keyspace,omitempty"` - - // size - Size int64 `json:"size,omitempty"` - - // tables - Tables []*RestoreTable `json:"tables"` -} - -// Validate validates this restore unit -func (m *RestoreUnit) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateTables(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *RestoreUnit) validateTables(formats strfmt.Registry) error { - - if swag.IsZero(m.Tables) { // not required - return nil - } - - for i := 0; i < len(m.Tables); i++ { - if swag.IsZero(m.Tables[i]) { // not required - continue - } - - if m.Tables[i] != nil { - if err := m.Tables[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("tables" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *RestoreUnit) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *RestoreUnit) UnmarshalBinary(b []byte) error { - var res RestoreUnit - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_view.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_view.go deleted file mode 100644 index 114852cb50..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_view.go +++ /dev/null @@ -1,55 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// RestoreView restore view -// -// swagger:model RestoreView -type RestoreView struct { - - // base table - BaseTable string `json:"base_table,omitempty"` - - // create stmt - CreateStmt string `json:"create_stmt,omitempty"` - - // keyspace - Keyspace string `json:"keyspace,omitempty"` - - // type - Type string `json:"type,omitempty"` - - // view - View string `json:"view,omitempty"` -} - -// Validate validates this restore view -func (m *RestoreView) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *RestoreView) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *RestoreView) UnmarshalBinary(b []byte) error { - var res RestoreView - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_view_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_view_progress.go deleted file mode 100644 index cb1b688a9e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/restore_view_progress.go +++ /dev/null @@ -1,58 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// RestoreViewProgress restore view progress -// -// swagger:model RestoreViewProgress -type RestoreViewProgress struct { - - // base table - BaseTable string `json:"base_table,omitempty"` - - // create stmt - CreateStmt string `json:"create_stmt,omitempty"` - - // keyspace - Keyspace string `json:"keyspace,omitempty"` - - // status - Status string `json:"status,omitempty"` - - // type - Type string `json:"type,omitempty"` - - // view - View string `json:"view,omitempty"` -} - -// Validate validates this restore view progress -func (m *RestoreViewProgress) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *RestoreViewProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *RestoreViewProgress) UnmarshalBinary(b []byte) error { - var res RestoreViewProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/schedule.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/schedule.go deleted file mode 100644 index f5a1eb953c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/schedule.go +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// Schedule schedule -// -// swagger:model Schedule -type Schedule struct { - - // cron - Cron string `json:"cron,omitempty"` - - // This field is DEPRECATED. Use cron instead. - Interval string `json:"interval,omitempty"` - - // num retries - NumRetries int64 `json:"num_retries,omitempty"` - - // retry wait - RetryWait string `json:"retry_wait,omitempty"` - - // start date - // Format: date-time - StartDate *strfmt.DateTime `json:"start_date,omitempty"` - - // timezone - Timezone string `json:"timezone,omitempty"` - - // window - Window []string `json:"window"` -} - -// Validate validates this schedule -func (m *Schedule) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateStartDate(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *Schedule) validateStartDate(formats strfmt.Registry) error { - - if swag.IsZero(m.StartDate) { // not required - return nil - } - - if err := validate.FormatOf("start_date", "body", "date-time", m.StartDate.String(), formats); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *Schedule) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Schedule) UnmarshalBinary(b []byte) error { - var res Schedule - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/snapshot_info.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/snapshot_info.go deleted file mode 100644 index 303e2cdd2e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/snapshot_info.go +++ /dev/null @@ -1,49 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// SnapshotInfo snapshot info -// -// swagger:model SnapshotInfo -type SnapshotInfo struct { - - // nodes - Nodes int64 `json:"nodes,omitempty"` - - // size - Size int64 `json:"size,omitempty"` - - // snapshot tag - SnapshotTag string `json:"snapshot_tag,omitempty"` -} - -// Validate validates this snapshot info -func (m *SnapshotInfo) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *SnapshotInfo) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *SnapshotInfo) UnmarshalBinary(b []byte) error { - var res SnapshotInfo - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/suspend_details.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/suspend_details.go deleted file mode 100644 index db95d93391..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/suspend_details.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// SuspendDetails suspend details -// -// swagger:model SuspendDetails -type SuspendDetails struct { - - // allow task type - AllowTaskType string `json:"allow_task_type,omitempty"` - - // suspended - Suspended bool `json:"suspended,omitempty"` -} - -// Validate validates this suspend details -func (m *SuspendDetails) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *SuspendDetails) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *SuspendDetails) UnmarshalBinary(b []byte) error { - var res SuspendDetails - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/suspended.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/suspended.go deleted file mode 100644 index 28b4f1e8ed..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/suspended.go +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" -) - -// Suspended suspended -// -// swagger:model Suspended -type Suspended bool - -// Validate validates this suspended -func (m Suspended) Validate(formats strfmt.Registry) error { - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/table_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/table_progress.go deleted file mode 100644 index fb96846132..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/table_progress.go +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// TableProgress table progress -// -// swagger:model TableProgress -type TableProgress struct { - - // completed at - // Format: date-time - CompletedAt *strfmt.DateTime `json:"completed_at,omitempty"` - - // error - Error string `json:"error,omitempty"` - - // failed - Failed int64 `json:"failed,omitempty"` - - // size - Size int64 `json:"size,omitempty"` - - // skipped - Skipped int64 `json:"skipped,omitempty"` - - // started at - // Format: date-time - StartedAt *strfmt.DateTime `json:"started_at,omitempty"` - - // table - Table string `json:"table,omitempty"` - - // uploaded - Uploaded int64 `json:"uploaded,omitempty"` -} - -// Validate validates this table progress -func (m *TableProgress) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateCompletedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStartedAt(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *TableProgress) validateCompletedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.CompletedAt) { // not required - return nil - } - - if err := validate.FormatOf("completed_at", "body", "date-time", m.CompletedAt.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *TableProgress) validateStartedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.StartedAt) { // not required - return nil - } - - if err := validate.FormatOf("started_at", "body", "date-time", m.StartedAt.String(), formats); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *TableProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *TableProgress) UnmarshalBinary(b []byte) error { - var res TableProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/table_repair_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/table_repair_progress.go deleted file mode 100644 index 3bdaba3e61..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/table_repair_progress.go +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// TableRepairProgress table repair progress -// -// swagger:model TableRepairProgress -type TableRepairProgress struct { - - // completed at - // Format: date-time - CompletedAt *strfmt.DateTime `json:"completed_at,omitempty"` - - // duration ms - DurationMs int64 `json:"duration_ms,omitempty"` - - // error - Error int64 `json:"error,omitempty"` - - // keyspace - Keyspace string `json:"keyspace,omitempty"` - - // started at - // Format: date-time - StartedAt *strfmt.DateTime `json:"started_at,omitempty"` - - // success - Success int64 `json:"success,omitempty"` - - // table - Table string `json:"table,omitempty"` - - // token ranges - TokenRanges int64 `json:"token_ranges,omitempty"` -} - -// Validate validates this table repair progress -func (m *TableRepairProgress) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateCompletedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStartedAt(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *TableRepairProgress) validateCompletedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.CompletedAt) { // not required - return nil - } - - if err := validate.FormatOf("completed_at", "body", "date-time", m.CompletedAt.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *TableRepairProgress) validateStartedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.StartedAt) { // not required - return nil - } - - if err := validate.FormatOf("started_at", "body", "date-time", m.StartedAt.String(), formats); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *TableRepairProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *TableRepairProgress) UnmarshalBinary(b []byte) error { - var res TableRepairProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task.go deleted file mode 100644 index 09bbb812dc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task.go +++ /dev/null @@ -1,95 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// Task task -// -// swagger:model Task -type Task struct { - - // cluster id - ClusterID string `json:"cluster_id,omitempty"` - - // enabled - Enabled bool `json:"enabled,omitempty"` - - // id - ID string `json:"id,omitempty"` - - // labels - Labels map[string]string `json:"labels,omitempty"` - - // name - Name string `json:"name,omitempty"` - - // properties - Properties interface{} `json:"properties,omitempty"` - - // schedule - Schedule *Schedule `json:"schedule,omitempty"` - - // This field is DEPRECATED. Use labels instead. - Tags []string `json:"tags"` - - // type - Type string `json:"type,omitempty"` -} - -// Validate validates this task -func (m *Task) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateSchedule(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *Task) validateSchedule(formats strfmt.Registry) error { - - if swag.IsZero(m.Schedule) { // not required - return nil - } - - if m.Schedule != nil { - if err := m.Schedule.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("schedule") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (m *Task) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Task) UnmarshalBinary(b []byte) error { - var res Task - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_list_item.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_list_item.go deleted file mode 100644 index 04a360b07e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_list_item.go +++ /dev/null @@ -1,174 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// TaskListItem task list item -// -// swagger:model TaskListItem -type TaskListItem struct { - - // cluster id - ClusterID string `json:"cluster_id,omitempty"` - - // enabled - Enabled bool `json:"enabled,omitempty"` - - // error count - ErrorCount int64 `json:"error_count,omitempty"` - - // id - ID string `json:"id,omitempty"` - - // labels - Labels map[string]string `json:"labels,omitempty"` - - // last error - // Format: date-time - LastError *strfmt.DateTime `json:"last_error,omitempty"` - - // last success - // Format: date-time - LastSuccess *strfmt.DateTime `json:"last_success,omitempty"` - - // name - Name string `json:"name,omitempty"` - - // next activation - // Format: date-time - NextActivation *strfmt.DateTime `json:"next_activation,omitempty"` - - // properties - Properties interface{} `json:"properties,omitempty"` - - // retry - Retry int64 `json:"retry,omitempty"` - - // schedule - Schedule *Schedule `json:"schedule,omitempty"` - - // status - Status string `json:"status,omitempty"` - - // success count - SuccessCount int64 `json:"success_count,omitempty"` - - // suspended - Suspended bool `json:"suspended,omitempty"` - - // This field is DEPRECATED. Use labels instead. - Tags []string `json:"tags"` - - // type - Type string `json:"type,omitempty"` -} - -// Validate validates this task list item -func (m *TaskListItem) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateLastError(formats); err != nil { - res = append(res, err) - } - - if err := m.validateLastSuccess(formats); err != nil { - res = append(res, err) - } - - if err := m.validateNextActivation(formats); err != nil { - res = append(res, err) - } - - if err := m.validateSchedule(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *TaskListItem) validateLastError(formats strfmt.Registry) error { - - if swag.IsZero(m.LastError) { // not required - return nil - } - - if err := validate.FormatOf("last_error", "body", "date-time", m.LastError.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *TaskListItem) validateLastSuccess(formats strfmt.Registry) error { - - if swag.IsZero(m.LastSuccess) { // not required - return nil - } - - if err := validate.FormatOf("last_success", "body", "date-time", m.LastSuccess.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *TaskListItem) validateNextActivation(formats strfmt.Registry) error { - - if swag.IsZero(m.NextActivation) { // not required - return nil - } - - if err := validate.FormatOf("next_activation", "body", "date-time", m.NextActivation.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *TaskListItem) validateSchedule(formats strfmt.Registry) error { - - if swag.IsZero(m.Schedule) { // not required - return nil - } - - if m.Schedule != nil { - if err := m.Schedule.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("schedule") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (m *TaskListItem) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *TaskListItem) UnmarshalBinary(b []byte) error { - var res TaskListItem - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_run.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_run.go deleted file mode 100644 index 1ec15d466e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_run.go +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// TaskRun task run -// -// swagger:model TaskRun -type TaskRun struct { - - // cause - Cause string `json:"cause,omitempty"` - - // cluster id - ClusterID string `json:"cluster_id,omitempty"` - - // end time - // Format: date-time - EndTime strfmt.DateTime `json:"end_time,omitempty"` - - // id - ID string `json:"id,omitempty"` - - // start time - // Format: date-time - StartTime strfmt.DateTime `json:"start_time,omitempty"` - - // status - Status string `json:"status,omitempty"` - - // task id - TaskID string `json:"task_id,omitempty"` - - // type - Type string `json:"type,omitempty"` -} - -// Validate validates this task run -func (m *TaskRun) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateEndTime(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStartTime(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *TaskRun) validateEndTime(formats strfmt.Registry) error { - - if swag.IsZero(m.EndTime) { // not required - return nil - } - - if err := validate.FormatOf("end_time", "body", "date-time", m.EndTime.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *TaskRun) validateStartTime(formats strfmt.Registry) error { - - if swag.IsZero(m.StartTime) { // not required - return nil - } - - if err := validate.FormatOf("start_time", "body", "date-time", m.StartTime.String(), formats); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *TaskRun) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *TaskRun) UnmarshalBinary(b []byte) error { - var res TaskRun - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_run_backup_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_run_backup_progress.go deleted file mode 100644 index 8e6d0fcad5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_run_backup_progress.go +++ /dev/null @@ -1,96 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// TaskRunBackupProgress task run backup progress -// -// swagger:model TaskRunBackupProgress -type TaskRunBackupProgress struct { - - // progress - Progress *BackupProgress `json:"progress,omitempty"` - - // run - Run *TaskRun `json:"run,omitempty"` -} - -// Validate validates this task run backup progress -func (m *TaskRunBackupProgress) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateProgress(formats); err != nil { - res = append(res, err) - } - - if err := m.validateRun(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *TaskRunBackupProgress) validateProgress(formats strfmt.Registry) error { - - if swag.IsZero(m.Progress) { // not required - return nil - } - - if m.Progress != nil { - if err := m.Progress.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("progress") - } - return err - } - } - - return nil -} - -func (m *TaskRunBackupProgress) validateRun(formats strfmt.Registry) error { - - if swag.IsZero(m.Run) { // not required - return nil - } - - if m.Run != nil { - if err := m.Run.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("run") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (m *TaskRunBackupProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *TaskRunBackupProgress) UnmarshalBinary(b []byte) error { - var res TaskRunBackupProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_run_one2_one_restore_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_run_one2_one_restore_progress.go deleted file mode 100644 index 218a74c871..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_run_one2_one_restore_progress.go +++ /dev/null @@ -1,96 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// TaskRunOne2OneRestoreProgress task run one2 one restore progress -// -// swagger:model TaskRunOne2OneRestoreProgress -type TaskRunOne2OneRestoreProgress struct { - - // progress - Progress *One2OneRestoreProgress `json:"progress,omitempty"` - - // run - Run *TaskRun `json:"run,omitempty"` -} - -// Validate validates this task run one2 one restore progress -func (m *TaskRunOne2OneRestoreProgress) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateProgress(formats); err != nil { - res = append(res, err) - } - - if err := m.validateRun(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *TaskRunOne2OneRestoreProgress) validateProgress(formats strfmt.Registry) error { - - if swag.IsZero(m.Progress) { // not required - return nil - } - - if m.Progress != nil { - if err := m.Progress.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("progress") - } - return err - } - } - - return nil -} - -func (m *TaskRunOne2OneRestoreProgress) validateRun(formats strfmt.Registry) error { - - if swag.IsZero(m.Run) { // not required - return nil - } - - if m.Run != nil { - if err := m.Run.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("run") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (m *TaskRunOne2OneRestoreProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *TaskRunOne2OneRestoreProgress) UnmarshalBinary(b []byte) error { - var res TaskRunOne2OneRestoreProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_run_repair_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_run_repair_progress.go deleted file mode 100644 index 5ebc7c9805..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_run_repair_progress.go +++ /dev/null @@ -1,96 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// TaskRunRepairProgress task run repair progress -// -// swagger:model TaskRunRepairProgress -type TaskRunRepairProgress struct { - - // progress - Progress *RepairProgress `json:"progress,omitempty"` - - // run - Run *TaskRun `json:"run,omitempty"` -} - -// Validate validates this task run repair progress -func (m *TaskRunRepairProgress) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateProgress(formats); err != nil { - res = append(res, err) - } - - if err := m.validateRun(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *TaskRunRepairProgress) validateProgress(formats strfmt.Registry) error { - - if swag.IsZero(m.Progress) { // not required - return nil - } - - if m.Progress != nil { - if err := m.Progress.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("progress") - } - return err - } - } - - return nil -} - -func (m *TaskRunRepairProgress) validateRun(formats strfmt.Registry) error { - - if swag.IsZero(m.Run) { // not required - return nil - } - - if m.Run != nil { - if err := m.Run.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("run") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (m *TaskRunRepairProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *TaskRunRepairProgress) UnmarshalBinary(b []byte) error { - var res TaskRunRepairProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_run_restore_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_run_restore_progress.go deleted file mode 100644 index 88f4e1d8f7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_run_restore_progress.go +++ /dev/null @@ -1,96 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// TaskRunRestoreProgress task run restore progress -// -// swagger:model TaskRunRestoreProgress -type TaskRunRestoreProgress struct { - - // progress - Progress *RestoreProgress `json:"progress,omitempty"` - - // run - Run *TaskRun `json:"run,omitempty"` -} - -// Validate validates this task run restore progress -func (m *TaskRunRestoreProgress) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateProgress(formats); err != nil { - res = append(res, err) - } - - if err := m.validateRun(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *TaskRunRestoreProgress) validateProgress(formats strfmt.Registry) error { - - if swag.IsZero(m.Progress) { // not required - return nil - } - - if m.Progress != nil { - if err := m.Progress.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("progress") - } - return err - } - } - - return nil -} - -func (m *TaskRunRestoreProgress) validateRun(formats strfmt.Registry) error { - - if swag.IsZero(m.Run) { // not required - return nil - } - - if m.Run != nil { - if err := m.Run.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("run") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (m *TaskRunRestoreProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *TaskRunRestoreProgress) UnmarshalBinary(b []byte) error { - var res TaskRunRestoreProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_run_validate_backup_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_run_validate_backup_progress.go deleted file mode 100644 index 354046559d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_run_validate_backup_progress.go +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// TaskRunValidateBackupProgress task run validate backup progress -// -// swagger:model TaskRunValidateBackupProgress -type TaskRunValidateBackupProgress struct { - - // progress - Progress []*ValidateBackupProgress `json:"progress"` - - // run - Run *TaskRun `json:"run,omitempty"` -} - -// Validate validates this task run validate backup progress -func (m *TaskRunValidateBackupProgress) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateProgress(formats); err != nil { - res = append(res, err) - } - - if err := m.validateRun(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *TaskRunValidateBackupProgress) validateProgress(formats strfmt.Registry) error { - - if swag.IsZero(m.Progress) { // not required - return nil - } - - for i := 0; i < len(m.Progress); i++ { - if swag.IsZero(m.Progress[i]) { // not required - continue - } - - if m.Progress[i] != nil { - if err := m.Progress[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("progress" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -func (m *TaskRunValidateBackupProgress) validateRun(formats strfmt.Registry) error { - - if swag.IsZero(m.Run) { // not required - return nil - } - - if m.Run != nil { - if err := m.Run.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("run") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (m *TaskRunValidateBackupProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *TaskRunValidateBackupProgress) UnmarshalBinary(b []byte) error { - var res TaskRunValidateBackupProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_update.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_update.go deleted file mode 100644 index ce7cdd060e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/task_update.go +++ /dev/null @@ -1,89 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// TaskUpdate task update -// -// swagger:model TaskUpdate -type TaskUpdate struct { - - // enabled - Enabled bool `json:"enabled,omitempty"` - - // labels - Labels map[string]string `json:"labels,omitempty"` - - // name - Name string `json:"name,omitempty"` - - // properties - Properties interface{} `json:"properties,omitempty"` - - // schedule - Schedule *Schedule `json:"schedule,omitempty"` - - // This field is DEPRECATED. Use labels instead. - Tags []string `json:"tags"` - - // type - Type string `json:"type,omitempty"` -} - -// Validate validates this task update -func (m *TaskUpdate) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateSchedule(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *TaskUpdate) validateSchedule(formats strfmt.Registry) error { - - if swag.IsZero(m.Schedule) { // not required - return nil - } - - if m.Schedule != nil { - if err := m.Schedule.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("schedule") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (m *TaskUpdate) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *TaskUpdate) UnmarshalBinary(b []byte) error { - var res TaskUpdate - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/validate_backup_progress.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/validate_backup_progress.go deleted file mode 100644 index 2380d0db6c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/validate_backup_progress.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// ValidateBackupProgress validate backup progress -// -// swagger:model ValidateBackupProgress -type ValidateBackupProgress struct { - - // broken snapshots - BrokenSnapshots []string `json:"broken_snapshots"` - - // completed at - // Format: date-time - CompletedAt *strfmt.DateTime `json:"completed_at,omitempty"` - - // dc - Dc string `json:"dc,omitempty"` - - // deleted files - DeletedFiles int64 `json:"deleted_files,omitempty"` - - // host - Host string `json:"host,omitempty"` - - // location - Location string `json:"location,omitempty"` - - // manifests - Manifests int64 `json:"manifests,omitempty"` - - // missing files - MissingFiles int64 `json:"missing_files,omitempty"` - - // orphaned bytes - OrphanedBytes int64 `json:"orphaned_bytes,omitempty"` - - // orphaned files - OrphanedFiles int64 `json:"orphaned_files,omitempty"` - - // scanned files - ScannedFiles int64 `json:"scanned_files,omitempty"` - - // started at - // Format: date-time - StartedAt *strfmt.DateTime `json:"started_at,omitempty"` -} - -// Validate validates this validate backup progress -func (m *ValidateBackupProgress) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateCompletedAt(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStartedAt(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *ValidateBackupProgress) validateCompletedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.CompletedAt) { // not required - return nil - } - - if err := validate.FormatOf("completed_at", "body", "date-time", m.CompletedAt.String(), formats); err != nil { - return err - } - - return nil -} - -func (m *ValidateBackupProgress) validateStartedAt(formats strfmt.Registry) error { - - if swag.IsZero(m.StartedAt) { // not required - return nil - } - - if err := validate.FormatOf("started_at", "body", "date-time", m.StartedAt.String(), formats); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *ValidateBackupProgress) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *ValidateBackupProgress) UnmarshalBinary(b []byte) error { - var res ValidateBackupProgress - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/version.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/version.go deleted file mode 100644 index c9292afb4b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models/version.go +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// Version version -// -// swagger:model Version -type Version struct { - - // version - Version string `json:"version,omitempty"` -} - -// Validate validates this version -func (m *Version) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *Version) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Version) UnmarshalBinary(b []byte) error { - var res Version - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_capacity_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_capacity_post_parameters.go deleted file mode 100644 index ca58eaa612..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_capacity_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceCounterCacheCapacityPostParams creates a new CacheServiceCounterCacheCapacityPostParams object -// with the default values initialized. -func NewCacheServiceCounterCacheCapacityPostParams() *CacheServiceCounterCacheCapacityPostParams { - var () - return &CacheServiceCounterCacheCapacityPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceCounterCacheCapacityPostParamsWithTimeout creates a new CacheServiceCounterCacheCapacityPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceCounterCacheCapacityPostParamsWithTimeout(timeout time.Duration) *CacheServiceCounterCacheCapacityPostParams { - var () - return &CacheServiceCounterCacheCapacityPostParams{ - - timeout: timeout, - } -} - -// NewCacheServiceCounterCacheCapacityPostParamsWithContext creates a new CacheServiceCounterCacheCapacityPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceCounterCacheCapacityPostParamsWithContext(ctx context.Context) *CacheServiceCounterCacheCapacityPostParams { - var () - return &CacheServiceCounterCacheCapacityPostParams{ - - Context: ctx, - } -} - -// NewCacheServiceCounterCacheCapacityPostParamsWithHTTPClient creates a new CacheServiceCounterCacheCapacityPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceCounterCacheCapacityPostParamsWithHTTPClient(client *http.Client) *CacheServiceCounterCacheCapacityPostParams { - var () - return &CacheServiceCounterCacheCapacityPostParams{ - HTTPClient: client, - } -} - -/* -CacheServiceCounterCacheCapacityPostParams contains all the parameters to send to the API endpoint -for the cache service counter cache capacity post operation typically these are written to a http.Request -*/ -type CacheServiceCounterCacheCapacityPostParams struct { - - /*Capacity - counter cache capacity in mb - - */ - Capacity string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service counter cache capacity post params -func (o *CacheServiceCounterCacheCapacityPostParams) WithTimeout(timeout time.Duration) *CacheServiceCounterCacheCapacityPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service counter cache capacity post params -func (o *CacheServiceCounterCacheCapacityPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service counter cache capacity post params -func (o *CacheServiceCounterCacheCapacityPostParams) WithContext(ctx context.Context) *CacheServiceCounterCacheCapacityPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service counter cache capacity post params -func (o *CacheServiceCounterCacheCapacityPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service counter cache capacity post params -func (o *CacheServiceCounterCacheCapacityPostParams) WithHTTPClient(client *http.Client) *CacheServiceCounterCacheCapacityPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service counter cache capacity post params -func (o *CacheServiceCounterCacheCapacityPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCapacity adds the capacity to the cache service counter cache capacity post params -func (o *CacheServiceCounterCacheCapacityPostParams) WithCapacity(capacity string) *CacheServiceCounterCacheCapacityPostParams { - o.SetCapacity(capacity) - return o -} - -// SetCapacity adds the capacity to the cache service counter cache capacity post params -func (o *CacheServiceCounterCacheCapacityPostParams) SetCapacity(capacity string) { - o.Capacity = capacity -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceCounterCacheCapacityPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param capacity - qrCapacity := o.Capacity - qCapacity := qrCapacity - if qCapacity != "" { - if err := r.SetQueryParam("capacity", qCapacity); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_capacity_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_capacity_post_responses.go deleted file mode 100644 index e91ebc2de9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_capacity_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceCounterCacheCapacityPostReader is a Reader for the CacheServiceCounterCacheCapacityPost structure. -type CacheServiceCounterCacheCapacityPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceCounterCacheCapacityPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceCounterCacheCapacityPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceCounterCacheCapacityPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceCounterCacheCapacityPostOK creates a CacheServiceCounterCacheCapacityPostOK with default headers values -func NewCacheServiceCounterCacheCapacityPostOK() *CacheServiceCounterCacheCapacityPostOK { - return &CacheServiceCounterCacheCapacityPostOK{} -} - -/* -CacheServiceCounterCacheCapacityPostOK handles this case with default header values. - -Success -*/ -type CacheServiceCounterCacheCapacityPostOK struct { -} - -func (o *CacheServiceCounterCacheCapacityPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewCacheServiceCounterCacheCapacityPostDefault creates a CacheServiceCounterCacheCapacityPostDefault with default headers values -func NewCacheServiceCounterCacheCapacityPostDefault(code int) *CacheServiceCounterCacheCapacityPostDefault { - return &CacheServiceCounterCacheCapacityPostDefault{ - _statusCode: code, - } -} - -/* -CacheServiceCounterCacheCapacityPostDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceCounterCacheCapacityPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service counter cache capacity post default response -func (o *CacheServiceCounterCacheCapacityPostDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceCounterCacheCapacityPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceCounterCacheCapacityPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceCounterCacheCapacityPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_keys_to_save_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_keys_to_save_get_parameters.go deleted file mode 100644 index fca4c32f19..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_keys_to_save_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceCounterCacheKeysToSaveGetParams creates a new CacheServiceCounterCacheKeysToSaveGetParams object -// with the default values initialized. -func NewCacheServiceCounterCacheKeysToSaveGetParams() *CacheServiceCounterCacheKeysToSaveGetParams { - - return &CacheServiceCounterCacheKeysToSaveGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceCounterCacheKeysToSaveGetParamsWithTimeout creates a new CacheServiceCounterCacheKeysToSaveGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceCounterCacheKeysToSaveGetParamsWithTimeout(timeout time.Duration) *CacheServiceCounterCacheKeysToSaveGetParams { - - return &CacheServiceCounterCacheKeysToSaveGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceCounterCacheKeysToSaveGetParamsWithContext creates a new CacheServiceCounterCacheKeysToSaveGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceCounterCacheKeysToSaveGetParamsWithContext(ctx context.Context) *CacheServiceCounterCacheKeysToSaveGetParams { - - return &CacheServiceCounterCacheKeysToSaveGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceCounterCacheKeysToSaveGetParamsWithHTTPClient creates a new CacheServiceCounterCacheKeysToSaveGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceCounterCacheKeysToSaveGetParamsWithHTTPClient(client *http.Client) *CacheServiceCounterCacheKeysToSaveGetParams { - - return &CacheServiceCounterCacheKeysToSaveGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceCounterCacheKeysToSaveGetParams contains all the parameters to send to the API endpoint -for the cache service counter cache keys to save get operation typically these are written to a http.Request -*/ -type CacheServiceCounterCacheKeysToSaveGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service counter cache keys to save get params -func (o *CacheServiceCounterCacheKeysToSaveGetParams) WithTimeout(timeout time.Duration) *CacheServiceCounterCacheKeysToSaveGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service counter cache keys to save get params -func (o *CacheServiceCounterCacheKeysToSaveGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service counter cache keys to save get params -func (o *CacheServiceCounterCacheKeysToSaveGetParams) WithContext(ctx context.Context) *CacheServiceCounterCacheKeysToSaveGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service counter cache keys to save get params -func (o *CacheServiceCounterCacheKeysToSaveGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service counter cache keys to save get params -func (o *CacheServiceCounterCacheKeysToSaveGetParams) WithHTTPClient(client *http.Client) *CacheServiceCounterCacheKeysToSaveGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service counter cache keys to save get params -func (o *CacheServiceCounterCacheKeysToSaveGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceCounterCacheKeysToSaveGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_keys_to_save_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_keys_to_save_get_responses.go deleted file mode 100644 index fa36173b91..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_keys_to_save_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceCounterCacheKeysToSaveGetReader is a Reader for the CacheServiceCounterCacheKeysToSaveGet structure. -type CacheServiceCounterCacheKeysToSaveGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceCounterCacheKeysToSaveGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceCounterCacheKeysToSaveGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceCounterCacheKeysToSaveGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceCounterCacheKeysToSaveGetOK creates a CacheServiceCounterCacheKeysToSaveGetOK with default headers values -func NewCacheServiceCounterCacheKeysToSaveGetOK() *CacheServiceCounterCacheKeysToSaveGetOK { - return &CacheServiceCounterCacheKeysToSaveGetOK{} -} - -/* -CacheServiceCounterCacheKeysToSaveGetOK handles this case with default header values. - -Success -*/ -type CacheServiceCounterCacheKeysToSaveGetOK struct { - Payload int32 -} - -func (o *CacheServiceCounterCacheKeysToSaveGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *CacheServiceCounterCacheKeysToSaveGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceCounterCacheKeysToSaveGetDefault creates a CacheServiceCounterCacheKeysToSaveGetDefault with default headers values -func NewCacheServiceCounterCacheKeysToSaveGetDefault(code int) *CacheServiceCounterCacheKeysToSaveGetDefault { - return &CacheServiceCounterCacheKeysToSaveGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceCounterCacheKeysToSaveGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceCounterCacheKeysToSaveGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service counter cache keys to save get default response -func (o *CacheServiceCounterCacheKeysToSaveGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceCounterCacheKeysToSaveGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceCounterCacheKeysToSaveGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceCounterCacheKeysToSaveGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_keys_to_save_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_keys_to_save_post_parameters.go deleted file mode 100644 index 50c2cf28af..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_keys_to_save_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewCacheServiceCounterCacheKeysToSavePostParams creates a new CacheServiceCounterCacheKeysToSavePostParams object -// with the default values initialized. -func NewCacheServiceCounterCacheKeysToSavePostParams() *CacheServiceCounterCacheKeysToSavePostParams { - var () - return &CacheServiceCounterCacheKeysToSavePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceCounterCacheKeysToSavePostParamsWithTimeout creates a new CacheServiceCounterCacheKeysToSavePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceCounterCacheKeysToSavePostParamsWithTimeout(timeout time.Duration) *CacheServiceCounterCacheKeysToSavePostParams { - var () - return &CacheServiceCounterCacheKeysToSavePostParams{ - - timeout: timeout, - } -} - -// NewCacheServiceCounterCacheKeysToSavePostParamsWithContext creates a new CacheServiceCounterCacheKeysToSavePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceCounterCacheKeysToSavePostParamsWithContext(ctx context.Context) *CacheServiceCounterCacheKeysToSavePostParams { - var () - return &CacheServiceCounterCacheKeysToSavePostParams{ - - Context: ctx, - } -} - -// NewCacheServiceCounterCacheKeysToSavePostParamsWithHTTPClient creates a new CacheServiceCounterCacheKeysToSavePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceCounterCacheKeysToSavePostParamsWithHTTPClient(client *http.Client) *CacheServiceCounterCacheKeysToSavePostParams { - var () - return &CacheServiceCounterCacheKeysToSavePostParams{ - HTTPClient: client, - } -} - -/* -CacheServiceCounterCacheKeysToSavePostParams contains all the parameters to send to the API endpoint -for the cache service counter cache keys to save post operation typically these are written to a http.Request -*/ -type CacheServiceCounterCacheKeysToSavePostParams struct { - - /*Cckts - counter cache keys to save - - */ - Cckts int32 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service counter cache keys to save post params -func (o *CacheServiceCounterCacheKeysToSavePostParams) WithTimeout(timeout time.Duration) *CacheServiceCounterCacheKeysToSavePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service counter cache keys to save post params -func (o *CacheServiceCounterCacheKeysToSavePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service counter cache keys to save post params -func (o *CacheServiceCounterCacheKeysToSavePostParams) WithContext(ctx context.Context) *CacheServiceCounterCacheKeysToSavePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service counter cache keys to save post params -func (o *CacheServiceCounterCacheKeysToSavePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service counter cache keys to save post params -func (o *CacheServiceCounterCacheKeysToSavePostParams) WithHTTPClient(client *http.Client) *CacheServiceCounterCacheKeysToSavePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service counter cache keys to save post params -func (o *CacheServiceCounterCacheKeysToSavePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCckts adds the cckts to the cache service counter cache keys to save post params -func (o *CacheServiceCounterCacheKeysToSavePostParams) WithCckts(cckts int32) *CacheServiceCounterCacheKeysToSavePostParams { - o.SetCckts(cckts) - return o -} - -// SetCckts adds the cckts to the cache service counter cache keys to save post params -func (o *CacheServiceCounterCacheKeysToSavePostParams) SetCckts(cckts int32) { - o.Cckts = cckts -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceCounterCacheKeysToSavePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param cckts - qrCckts := o.Cckts - qCckts := swag.FormatInt32(qrCckts) - if qCckts != "" { - if err := r.SetQueryParam("cckts", qCckts); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_keys_to_save_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_keys_to_save_post_responses.go deleted file mode 100644 index ac59b474c9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_keys_to_save_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceCounterCacheKeysToSavePostReader is a Reader for the CacheServiceCounterCacheKeysToSavePost structure. -type CacheServiceCounterCacheKeysToSavePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceCounterCacheKeysToSavePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceCounterCacheKeysToSavePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceCounterCacheKeysToSavePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceCounterCacheKeysToSavePostOK creates a CacheServiceCounterCacheKeysToSavePostOK with default headers values -func NewCacheServiceCounterCacheKeysToSavePostOK() *CacheServiceCounterCacheKeysToSavePostOK { - return &CacheServiceCounterCacheKeysToSavePostOK{} -} - -/* -CacheServiceCounterCacheKeysToSavePostOK handles this case with default header values. - -Success -*/ -type CacheServiceCounterCacheKeysToSavePostOK struct { -} - -func (o *CacheServiceCounterCacheKeysToSavePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewCacheServiceCounterCacheKeysToSavePostDefault creates a CacheServiceCounterCacheKeysToSavePostDefault with default headers values -func NewCacheServiceCounterCacheKeysToSavePostDefault(code int) *CacheServiceCounterCacheKeysToSavePostDefault { - return &CacheServiceCounterCacheKeysToSavePostDefault{ - _statusCode: code, - } -} - -/* -CacheServiceCounterCacheKeysToSavePostDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceCounterCacheKeysToSavePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service counter cache keys to save post default response -func (o *CacheServiceCounterCacheKeysToSavePostDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceCounterCacheKeysToSavePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceCounterCacheKeysToSavePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceCounterCacheKeysToSavePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_save_period_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_save_period_get_parameters.go deleted file mode 100644 index 0a1a26534d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_save_period_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceCounterCacheSavePeriodGetParams creates a new CacheServiceCounterCacheSavePeriodGetParams object -// with the default values initialized. -func NewCacheServiceCounterCacheSavePeriodGetParams() *CacheServiceCounterCacheSavePeriodGetParams { - - return &CacheServiceCounterCacheSavePeriodGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceCounterCacheSavePeriodGetParamsWithTimeout creates a new CacheServiceCounterCacheSavePeriodGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceCounterCacheSavePeriodGetParamsWithTimeout(timeout time.Duration) *CacheServiceCounterCacheSavePeriodGetParams { - - return &CacheServiceCounterCacheSavePeriodGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceCounterCacheSavePeriodGetParamsWithContext creates a new CacheServiceCounterCacheSavePeriodGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceCounterCacheSavePeriodGetParamsWithContext(ctx context.Context) *CacheServiceCounterCacheSavePeriodGetParams { - - return &CacheServiceCounterCacheSavePeriodGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceCounterCacheSavePeriodGetParamsWithHTTPClient creates a new CacheServiceCounterCacheSavePeriodGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceCounterCacheSavePeriodGetParamsWithHTTPClient(client *http.Client) *CacheServiceCounterCacheSavePeriodGetParams { - - return &CacheServiceCounterCacheSavePeriodGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceCounterCacheSavePeriodGetParams contains all the parameters to send to the API endpoint -for the cache service counter cache save period get operation typically these are written to a http.Request -*/ -type CacheServiceCounterCacheSavePeriodGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service counter cache save period get params -func (o *CacheServiceCounterCacheSavePeriodGetParams) WithTimeout(timeout time.Duration) *CacheServiceCounterCacheSavePeriodGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service counter cache save period get params -func (o *CacheServiceCounterCacheSavePeriodGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service counter cache save period get params -func (o *CacheServiceCounterCacheSavePeriodGetParams) WithContext(ctx context.Context) *CacheServiceCounterCacheSavePeriodGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service counter cache save period get params -func (o *CacheServiceCounterCacheSavePeriodGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service counter cache save period get params -func (o *CacheServiceCounterCacheSavePeriodGetParams) WithHTTPClient(client *http.Client) *CacheServiceCounterCacheSavePeriodGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service counter cache save period get params -func (o *CacheServiceCounterCacheSavePeriodGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceCounterCacheSavePeriodGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_save_period_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_save_period_get_responses.go deleted file mode 100644 index 5eed411fb9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_save_period_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceCounterCacheSavePeriodGetReader is a Reader for the CacheServiceCounterCacheSavePeriodGet structure. -type CacheServiceCounterCacheSavePeriodGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceCounterCacheSavePeriodGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceCounterCacheSavePeriodGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceCounterCacheSavePeriodGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceCounterCacheSavePeriodGetOK creates a CacheServiceCounterCacheSavePeriodGetOK with default headers values -func NewCacheServiceCounterCacheSavePeriodGetOK() *CacheServiceCounterCacheSavePeriodGetOK { - return &CacheServiceCounterCacheSavePeriodGetOK{} -} - -/* -CacheServiceCounterCacheSavePeriodGetOK handles this case with default header values. - -Success -*/ -type CacheServiceCounterCacheSavePeriodGetOK struct { - Payload int32 -} - -func (o *CacheServiceCounterCacheSavePeriodGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *CacheServiceCounterCacheSavePeriodGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceCounterCacheSavePeriodGetDefault creates a CacheServiceCounterCacheSavePeriodGetDefault with default headers values -func NewCacheServiceCounterCacheSavePeriodGetDefault(code int) *CacheServiceCounterCacheSavePeriodGetDefault { - return &CacheServiceCounterCacheSavePeriodGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceCounterCacheSavePeriodGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceCounterCacheSavePeriodGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service counter cache save period get default response -func (o *CacheServiceCounterCacheSavePeriodGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceCounterCacheSavePeriodGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceCounterCacheSavePeriodGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceCounterCacheSavePeriodGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_save_period_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_save_period_post_parameters.go deleted file mode 100644 index 2ddcb32219..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_save_period_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewCacheServiceCounterCacheSavePeriodPostParams creates a new CacheServiceCounterCacheSavePeriodPostParams object -// with the default values initialized. -func NewCacheServiceCounterCacheSavePeriodPostParams() *CacheServiceCounterCacheSavePeriodPostParams { - var () - return &CacheServiceCounterCacheSavePeriodPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceCounterCacheSavePeriodPostParamsWithTimeout creates a new CacheServiceCounterCacheSavePeriodPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceCounterCacheSavePeriodPostParamsWithTimeout(timeout time.Duration) *CacheServiceCounterCacheSavePeriodPostParams { - var () - return &CacheServiceCounterCacheSavePeriodPostParams{ - - timeout: timeout, - } -} - -// NewCacheServiceCounterCacheSavePeriodPostParamsWithContext creates a new CacheServiceCounterCacheSavePeriodPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceCounterCacheSavePeriodPostParamsWithContext(ctx context.Context) *CacheServiceCounterCacheSavePeriodPostParams { - var () - return &CacheServiceCounterCacheSavePeriodPostParams{ - - Context: ctx, - } -} - -// NewCacheServiceCounterCacheSavePeriodPostParamsWithHTTPClient creates a new CacheServiceCounterCacheSavePeriodPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceCounterCacheSavePeriodPostParamsWithHTTPClient(client *http.Client) *CacheServiceCounterCacheSavePeriodPostParams { - var () - return &CacheServiceCounterCacheSavePeriodPostParams{ - HTTPClient: client, - } -} - -/* -CacheServiceCounterCacheSavePeriodPostParams contains all the parameters to send to the API endpoint -for the cache service counter cache save period post operation typically these are written to a http.Request -*/ -type CacheServiceCounterCacheSavePeriodPostParams struct { - - /*Ccspis - counter cache save period in seconds - - */ - Ccspis int32 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service counter cache save period post params -func (o *CacheServiceCounterCacheSavePeriodPostParams) WithTimeout(timeout time.Duration) *CacheServiceCounterCacheSavePeriodPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service counter cache save period post params -func (o *CacheServiceCounterCacheSavePeriodPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service counter cache save period post params -func (o *CacheServiceCounterCacheSavePeriodPostParams) WithContext(ctx context.Context) *CacheServiceCounterCacheSavePeriodPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service counter cache save period post params -func (o *CacheServiceCounterCacheSavePeriodPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service counter cache save period post params -func (o *CacheServiceCounterCacheSavePeriodPostParams) WithHTTPClient(client *http.Client) *CacheServiceCounterCacheSavePeriodPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service counter cache save period post params -func (o *CacheServiceCounterCacheSavePeriodPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCcspis adds the ccspis to the cache service counter cache save period post params -func (o *CacheServiceCounterCacheSavePeriodPostParams) WithCcspis(ccspis int32) *CacheServiceCounterCacheSavePeriodPostParams { - o.SetCcspis(ccspis) - return o -} - -// SetCcspis adds the ccspis to the cache service counter cache save period post params -func (o *CacheServiceCounterCacheSavePeriodPostParams) SetCcspis(ccspis int32) { - o.Ccspis = ccspis -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceCounterCacheSavePeriodPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param ccspis - qrCcspis := o.Ccspis - qCcspis := swag.FormatInt32(qrCcspis) - if qCcspis != "" { - if err := r.SetQueryParam("ccspis", qCcspis); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_save_period_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_save_period_post_responses.go deleted file mode 100644 index 642d0169d5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_counter_cache_save_period_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceCounterCacheSavePeriodPostReader is a Reader for the CacheServiceCounterCacheSavePeriodPost structure. -type CacheServiceCounterCacheSavePeriodPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceCounterCacheSavePeriodPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceCounterCacheSavePeriodPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceCounterCacheSavePeriodPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceCounterCacheSavePeriodPostOK creates a CacheServiceCounterCacheSavePeriodPostOK with default headers values -func NewCacheServiceCounterCacheSavePeriodPostOK() *CacheServiceCounterCacheSavePeriodPostOK { - return &CacheServiceCounterCacheSavePeriodPostOK{} -} - -/* -CacheServiceCounterCacheSavePeriodPostOK handles this case with default header values. - -Success -*/ -type CacheServiceCounterCacheSavePeriodPostOK struct { -} - -func (o *CacheServiceCounterCacheSavePeriodPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewCacheServiceCounterCacheSavePeriodPostDefault creates a CacheServiceCounterCacheSavePeriodPostDefault with default headers values -func NewCacheServiceCounterCacheSavePeriodPostDefault(code int) *CacheServiceCounterCacheSavePeriodPostDefault { - return &CacheServiceCounterCacheSavePeriodPostDefault{ - _statusCode: code, - } -} - -/* -CacheServiceCounterCacheSavePeriodPostDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceCounterCacheSavePeriodPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service counter cache save period post default response -func (o *CacheServiceCounterCacheSavePeriodPostDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceCounterCacheSavePeriodPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceCounterCacheSavePeriodPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceCounterCacheSavePeriodPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_invalidate_counter_cache_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_invalidate_counter_cache_post_parameters.go deleted file mode 100644 index 82975a0bed..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_invalidate_counter_cache_post_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceInvalidateCounterCachePostParams creates a new CacheServiceInvalidateCounterCachePostParams object -// with the default values initialized. -func NewCacheServiceInvalidateCounterCachePostParams() *CacheServiceInvalidateCounterCachePostParams { - - return &CacheServiceInvalidateCounterCachePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceInvalidateCounterCachePostParamsWithTimeout creates a new CacheServiceInvalidateCounterCachePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceInvalidateCounterCachePostParamsWithTimeout(timeout time.Duration) *CacheServiceInvalidateCounterCachePostParams { - - return &CacheServiceInvalidateCounterCachePostParams{ - - timeout: timeout, - } -} - -// NewCacheServiceInvalidateCounterCachePostParamsWithContext creates a new CacheServiceInvalidateCounterCachePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceInvalidateCounterCachePostParamsWithContext(ctx context.Context) *CacheServiceInvalidateCounterCachePostParams { - - return &CacheServiceInvalidateCounterCachePostParams{ - - Context: ctx, - } -} - -// NewCacheServiceInvalidateCounterCachePostParamsWithHTTPClient creates a new CacheServiceInvalidateCounterCachePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceInvalidateCounterCachePostParamsWithHTTPClient(client *http.Client) *CacheServiceInvalidateCounterCachePostParams { - - return &CacheServiceInvalidateCounterCachePostParams{ - HTTPClient: client, - } -} - -/* -CacheServiceInvalidateCounterCachePostParams contains all the parameters to send to the API endpoint -for the cache service invalidate counter cache post operation typically these are written to a http.Request -*/ -type CacheServiceInvalidateCounterCachePostParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service invalidate counter cache post params -func (o *CacheServiceInvalidateCounterCachePostParams) WithTimeout(timeout time.Duration) *CacheServiceInvalidateCounterCachePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service invalidate counter cache post params -func (o *CacheServiceInvalidateCounterCachePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service invalidate counter cache post params -func (o *CacheServiceInvalidateCounterCachePostParams) WithContext(ctx context.Context) *CacheServiceInvalidateCounterCachePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service invalidate counter cache post params -func (o *CacheServiceInvalidateCounterCachePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service invalidate counter cache post params -func (o *CacheServiceInvalidateCounterCachePostParams) WithHTTPClient(client *http.Client) *CacheServiceInvalidateCounterCachePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service invalidate counter cache post params -func (o *CacheServiceInvalidateCounterCachePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceInvalidateCounterCachePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_invalidate_counter_cache_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_invalidate_counter_cache_post_responses.go deleted file mode 100644 index 60412d25f9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_invalidate_counter_cache_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceInvalidateCounterCachePostReader is a Reader for the CacheServiceInvalidateCounterCachePost structure. -type CacheServiceInvalidateCounterCachePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceInvalidateCounterCachePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceInvalidateCounterCachePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceInvalidateCounterCachePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceInvalidateCounterCachePostOK creates a CacheServiceInvalidateCounterCachePostOK with default headers values -func NewCacheServiceInvalidateCounterCachePostOK() *CacheServiceInvalidateCounterCachePostOK { - return &CacheServiceInvalidateCounterCachePostOK{} -} - -/* -CacheServiceInvalidateCounterCachePostOK handles this case with default header values. - -Success -*/ -type CacheServiceInvalidateCounterCachePostOK struct { -} - -func (o *CacheServiceInvalidateCounterCachePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewCacheServiceInvalidateCounterCachePostDefault creates a CacheServiceInvalidateCounterCachePostDefault with default headers values -func NewCacheServiceInvalidateCounterCachePostDefault(code int) *CacheServiceInvalidateCounterCachePostDefault { - return &CacheServiceInvalidateCounterCachePostDefault{ - _statusCode: code, - } -} - -/* -CacheServiceInvalidateCounterCachePostDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceInvalidateCounterCachePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service invalidate counter cache post default response -func (o *CacheServiceInvalidateCounterCachePostDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceInvalidateCounterCachePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceInvalidateCounterCachePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceInvalidateCounterCachePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_invalidate_key_cache_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_invalidate_key_cache_post_parameters.go deleted file mode 100644 index 24c300a52c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_invalidate_key_cache_post_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceInvalidateKeyCachePostParams creates a new CacheServiceInvalidateKeyCachePostParams object -// with the default values initialized. -func NewCacheServiceInvalidateKeyCachePostParams() *CacheServiceInvalidateKeyCachePostParams { - - return &CacheServiceInvalidateKeyCachePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceInvalidateKeyCachePostParamsWithTimeout creates a new CacheServiceInvalidateKeyCachePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceInvalidateKeyCachePostParamsWithTimeout(timeout time.Duration) *CacheServiceInvalidateKeyCachePostParams { - - return &CacheServiceInvalidateKeyCachePostParams{ - - timeout: timeout, - } -} - -// NewCacheServiceInvalidateKeyCachePostParamsWithContext creates a new CacheServiceInvalidateKeyCachePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceInvalidateKeyCachePostParamsWithContext(ctx context.Context) *CacheServiceInvalidateKeyCachePostParams { - - return &CacheServiceInvalidateKeyCachePostParams{ - - Context: ctx, - } -} - -// NewCacheServiceInvalidateKeyCachePostParamsWithHTTPClient creates a new CacheServiceInvalidateKeyCachePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceInvalidateKeyCachePostParamsWithHTTPClient(client *http.Client) *CacheServiceInvalidateKeyCachePostParams { - - return &CacheServiceInvalidateKeyCachePostParams{ - HTTPClient: client, - } -} - -/* -CacheServiceInvalidateKeyCachePostParams contains all the parameters to send to the API endpoint -for the cache service invalidate key cache post operation typically these are written to a http.Request -*/ -type CacheServiceInvalidateKeyCachePostParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service invalidate key cache post params -func (o *CacheServiceInvalidateKeyCachePostParams) WithTimeout(timeout time.Duration) *CacheServiceInvalidateKeyCachePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service invalidate key cache post params -func (o *CacheServiceInvalidateKeyCachePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service invalidate key cache post params -func (o *CacheServiceInvalidateKeyCachePostParams) WithContext(ctx context.Context) *CacheServiceInvalidateKeyCachePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service invalidate key cache post params -func (o *CacheServiceInvalidateKeyCachePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service invalidate key cache post params -func (o *CacheServiceInvalidateKeyCachePostParams) WithHTTPClient(client *http.Client) *CacheServiceInvalidateKeyCachePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service invalidate key cache post params -func (o *CacheServiceInvalidateKeyCachePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceInvalidateKeyCachePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_invalidate_key_cache_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_invalidate_key_cache_post_responses.go deleted file mode 100644 index 8da9cda092..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_invalidate_key_cache_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceInvalidateKeyCachePostReader is a Reader for the CacheServiceInvalidateKeyCachePost structure. -type CacheServiceInvalidateKeyCachePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceInvalidateKeyCachePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceInvalidateKeyCachePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceInvalidateKeyCachePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceInvalidateKeyCachePostOK creates a CacheServiceInvalidateKeyCachePostOK with default headers values -func NewCacheServiceInvalidateKeyCachePostOK() *CacheServiceInvalidateKeyCachePostOK { - return &CacheServiceInvalidateKeyCachePostOK{} -} - -/* -CacheServiceInvalidateKeyCachePostOK handles this case with default header values. - -Success -*/ -type CacheServiceInvalidateKeyCachePostOK struct { -} - -func (o *CacheServiceInvalidateKeyCachePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewCacheServiceInvalidateKeyCachePostDefault creates a CacheServiceInvalidateKeyCachePostDefault with default headers values -func NewCacheServiceInvalidateKeyCachePostDefault(code int) *CacheServiceInvalidateKeyCachePostDefault { - return &CacheServiceInvalidateKeyCachePostDefault{ - _statusCode: code, - } -} - -/* -CacheServiceInvalidateKeyCachePostDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceInvalidateKeyCachePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service invalidate key cache post default response -func (o *CacheServiceInvalidateKeyCachePostDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceInvalidateKeyCachePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceInvalidateKeyCachePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceInvalidateKeyCachePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_capacity_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_capacity_post_parameters.go deleted file mode 100644 index 3c6b602649..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_capacity_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceKeyCacheCapacityPostParams creates a new CacheServiceKeyCacheCapacityPostParams object -// with the default values initialized. -func NewCacheServiceKeyCacheCapacityPostParams() *CacheServiceKeyCacheCapacityPostParams { - var () - return &CacheServiceKeyCacheCapacityPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceKeyCacheCapacityPostParamsWithTimeout creates a new CacheServiceKeyCacheCapacityPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceKeyCacheCapacityPostParamsWithTimeout(timeout time.Duration) *CacheServiceKeyCacheCapacityPostParams { - var () - return &CacheServiceKeyCacheCapacityPostParams{ - - timeout: timeout, - } -} - -// NewCacheServiceKeyCacheCapacityPostParamsWithContext creates a new CacheServiceKeyCacheCapacityPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceKeyCacheCapacityPostParamsWithContext(ctx context.Context) *CacheServiceKeyCacheCapacityPostParams { - var () - return &CacheServiceKeyCacheCapacityPostParams{ - - Context: ctx, - } -} - -// NewCacheServiceKeyCacheCapacityPostParamsWithHTTPClient creates a new CacheServiceKeyCacheCapacityPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceKeyCacheCapacityPostParamsWithHTTPClient(client *http.Client) *CacheServiceKeyCacheCapacityPostParams { - var () - return &CacheServiceKeyCacheCapacityPostParams{ - HTTPClient: client, - } -} - -/* -CacheServiceKeyCacheCapacityPostParams contains all the parameters to send to the API endpoint -for the cache service key cache capacity post operation typically these are written to a http.Request -*/ -type CacheServiceKeyCacheCapacityPostParams struct { - - /*Capacity - key cache capacity in mb - - */ - Capacity string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service key cache capacity post params -func (o *CacheServiceKeyCacheCapacityPostParams) WithTimeout(timeout time.Duration) *CacheServiceKeyCacheCapacityPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service key cache capacity post params -func (o *CacheServiceKeyCacheCapacityPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service key cache capacity post params -func (o *CacheServiceKeyCacheCapacityPostParams) WithContext(ctx context.Context) *CacheServiceKeyCacheCapacityPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service key cache capacity post params -func (o *CacheServiceKeyCacheCapacityPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service key cache capacity post params -func (o *CacheServiceKeyCacheCapacityPostParams) WithHTTPClient(client *http.Client) *CacheServiceKeyCacheCapacityPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service key cache capacity post params -func (o *CacheServiceKeyCacheCapacityPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCapacity adds the capacity to the cache service key cache capacity post params -func (o *CacheServiceKeyCacheCapacityPostParams) WithCapacity(capacity string) *CacheServiceKeyCacheCapacityPostParams { - o.SetCapacity(capacity) - return o -} - -// SetCapacity adds the capacity to the cache service key cache capacity post params -func (o *CacheServiceKeyCacheCapacityPostParams) SetCapacity(capacity string) { - o.Capacity = capacity -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceKeyCacheCapacityPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param capacity - qrCapacity := o.Capacity - qCapacity := qrCapacity - if qCapacity != "" { - if err := r.SetQueryParam("capacity", qCapacity); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_capacity_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_capacity_post_responses.go deleted file mode 100644 index fddf204c98..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_capacity_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceKeyCacheCapacityPostReader is a Reader for the CacheServiceKeyCacheCapacityPost structure. -type CacheServiceKeyCacheCapacityPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceKeyCacheCapacityPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceKeyCacheCapacityPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceKeyCacheCapacityPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceKeyCacheCapacityPostOK creates a CacheServiceKeyCacheCapacityPostOK with default headers values -func NewCacheServiceKeyCacheCapacityPostOK() *CacheServiceKeyCacheCapacityPostOK { - return &CacheServiceKeyCacheCapacityPostOK{} -} - -/* -CacheServiceKeyCacheCapacityPostOK handles this case with default header values. - -Success -*/ -type CacheServiceKeyCacheCapacityPostOK struct { -} - -func (o *CacheServiceKeyCacheCapacityPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewCacheServiceKeyCacheCapacityPostDefault creates a CacheServiceKeyCacheCapacityPostDefault with default headers values -func NewCacheServiceKeyCacheCapacityPostDefault(code int) *CacheServiceKeyCacheCapacityPostDefault { - return &CacheServiceKeyCacheCapacityPostDefault{ - _statusCode: code, - } -} - -/* -CacheServiceKeyCacheCapacityPostDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceKeyCacheCapacityPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service key cache capacity post default response -func (o *CacheServiceKeyCacheCapacityPostDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceKeyCacheCapacityPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceKeyCacheCapacityPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceKeyCacheCapacityPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_keys_to_save_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_keys_to_save_get_parameters.go deleted file mode 100644 index abb4316d23..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_keys_to_save_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceKeyCacheKeysToSaveGetParams creates a new CacheServiceKeyCacheKeysToSaveGetParams object -// with the default values initialized. -func NewCacheServiceKeyCacheKeysToSaveGetParams() *CacheServiceKeyCacheKeysToSaveGetParams { - - return &CacheServiceKeyCacheKeysToSaveGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceKeyCacheKeysToSaveGetParamsWithTimeout creates a new CacheServiceKeyCacheKeysToSaveGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceKeyCacheKeysToSaveGetParamsWithTimeout(timeout time.Duration) *CacheServiceKeyCacheKeysToSaveGetParams { - - return &CacheServiceKeyCacheKeysToSaveGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceKeyCacheKeysToSaveGetParamsWithContext creates a new CacheServiceKeyCacheKeysToSaveGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceKeyCacheKeysToSaveGetParamsWithContext(ctx context.Context) *CacheServiceKeyCacheKeysToSaveGetParams { - - return &CacheServiceKeyCacheKeysToSaveGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceKeyCacheKeysToSaveGetParamsWithHTTPClient creates a new CacheServiceKeyCacheKeysToSaveGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceKeyCacheKeysToSaveGetParamsWithHTTPClient(client *http.Client) *CacheServiceKeyCacheKeysToSaveGetParams { - - return &CacheServiceKeyCacheKeysToSaveGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceKeyCacheKeysToSaveGetParams contains all the parameters to send to the API endpoint -for the cache service key cache keys to save get operation typically these are written to a http.Request -*/ -type CacheServiceKeyCacheKeysToSaveGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service key cache keys to save get params -func (o *CacheServiceKeyCacheKeysToSaveGetParams) WithTimeout(timeout time.Duration) *CacheServiceKeyCacheKeysToSaveGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service key cache keys to save get params -func (o *CacheServiceKeyCacheKeysToSaveGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service key cache keys to save get params -func (o *CacheServiceKeyCacheKeysToSaveGetParams) WithContext(ctx context.Context) *CacheServiceKeyCacheKeysToSaveGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service key cache keys to save get params -func (o *CacheServiceKeyCacheKeysToSaveGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service key cache keys to save get params -func (o *CacheServiceKeyCacheKeysToSaveGetParams) WithHTTPClient(client *http.Client) *CacheServiceKeyCacheKeysToSaveGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service key cache keys to save get params -func (o *CacheServiceKeyCacheKeysToSaveGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceKeyCacheKeysToSaveGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_keys_to_save_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_keys_to_save_get_responses.go deleted file mode 100644 index f201bc813d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_keys_to_save_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceKeyCacheKeysToSaveGetReader is a Reader for the CacheServiceKeyCacheKeysToSaveGet structure. -type CacheServiceKeyCacheKeysToSaveGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceKeyCacheKeysToSaveGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceKeyCacheKeysToSaveGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceKeyCacheKeysToSaveGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceKeyCacheKeysToSaveGetOK creates a CacheServiceKeyCacheKeysToSaveGetOK with default headers values -func NewCacheServiceKeyCacheKeysToSaveGetOK() *CacheServiceKeyCacheKeysToSaveGetOK { - return &CacheServiceKeyCacheKeysToSaveGetOK{} -} - -/* -CacheServiceKeyCacheKeysToSaveGetOK handles this case with default header values. - -Success -*/ -type CacheServiceKeyCacheKeysToSaveGetOK struct { - Payload int32 -} - -func (o *CacheServiceKeyCacheKeysToSaveGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *CacheServiceKeyCacheKeysToSaveGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceKeyCacheKeysToSaveGetDefault creates a CacheServiceKeyCacheKeysToSaveGetDefault with default headers values -func NewCacheServiceKeyCacheKeysToSaveGetDefault(code int) *CacheServiceKeyCacheKeysToSaveGetDefault { - return &CacheServiceKeyCacheKeysToSaveGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceKeyCacheKeysToSaveGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceKeyCacheKeysToSaveGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service key cache keys to save get default response -func (o *CacheServiceKeyCacheKeysToSaveGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceKeyCacheKeysToSaveGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceKeyCacheKeysToSaveGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceKeyCacheKeysToSaveGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_keys_to_save_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_keys_to_save_post_parameters.go deleted file mode 100644 index 9201d6d1bc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_keys_to_save_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewCacheServiceKeyCacheKeysToSavePostParams creates a new CacheServiceKeyCacheKeysToSavePostParams object -// with the default values initialized. -func NewCacheServiceKeyCacheKeysToSavePostParams() *CacheServiceKeyCacheKeysToSavePostParams { - var () - return &CacheServiceKeyCacheKeysToSavePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceKeyCacheKeysToSavePostParamsWithTimeout creates a new CacheServiceKeyCacheKeysToSavePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceKeyCacheKeysToSavePostParamsWithTimeout(timeout time.Duration) *CacheServiceKeyCacheKeysToSavePostParams { - var () - return &CacheServiceKeyCacheKeysToSavePostParams{ - - timeout: timeout, - } -} - -// NewCacheServiceKeyCacheKeysToSavePostParamsWithContext creates a new CacheServiceKeyCacheKeysToSavePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceKeyCacheKeysToSavePostParamsWithContext(ctx context.Context) *CacheServiceKeyCacheKeysToSavePostParams { - var () - return &CacheServiceKeyCacheKeysToSavePostParams{ - - Context: ctx, - } -} - -// NewCacheServiceKeyCacheKeysToSavePostParamsWithHTTPClient creates a new CacheServiceKeyCacheKeysToSavePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceKeyCacheKeysToSavePostParamsWithHTTPClient(client *http.Client) *CacheServiceKeyCacheKeysToSavePostParams { - var () - return &CacheServiceKeyCacheKeysToSavePostParams{ - HTTPClient: client, - } -} - -/* -CacheServiceKeyCacheKeysToSavePostParams contains all the parameters to send to the API endpoint -for the cache service key cache keys to save post operation typically these are written to a http.Request -*/ -type CacheServiceKeyCacheKeysToSavePostParams struct { - - /*Kckts - key cache keys to save - - */ - Kckts int32 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service key cache keys to save post params -func (o *CacheServiceKeyCacheKeysToSavePostParams) WithTimeout(timeout time.Duration) *CacheServiceKeyCacheKeysToSavePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service key cache keys to save post params -func (o *CacheServiceKeyCacheKeysToSavePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service key cache keys to save post params -func (o *CacheServiceKeyCacheKeysToSavePostParams) WithContext(ctx context.Context) *CacheServiceKeyCacheKeysToSavePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service key cache keys to save post params -func (o *CacheServiceKeyCacheKeysToSavePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service key cache keys to save post params -func (o *CacheServiceKeyCacheKeysToSavePostParams) WithHTTPClient(client *http.Client) *CacheServiceKeyCacheKeysToSavePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service key cache keys to save post params -func (o *CacheServiceKeyCacheKeysToSavePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithKckts adds the kckts to the cache service key cache keys to save post params -func (o *CacheServiceKeyCacheKeysToSavePostParams) WithKckts(kckts int32) *CacheServiceKeyCacheKeysToSavePostParams { - o.SetKckts(kckts) - return o -} - -// SetKckts adds the kckts to the cache service key cache keys to save post params -func (o *CacheServiceKeyCacheKeysToSavePostParams) SetKckts(kckts int32) { - o.Kckts = kckts -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceKeyCacheKeysToSavePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param kckts - qrKckts := o.Kckts - qKckts := swag.FormatInt32(qrKckts) - if qKckts != "" { - if err := r.SetQueryParam("kckts", qKckts); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_keys_to_save_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_keys_to_save_post_responses.go deleted file mode 100644 index 0ffd4a4984..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_keys_to_save_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceKeyCacheKeysToSavePostReader is a Reader for the CacheServiceKeyCacheKeysToSavePost structure. -type CacheServiceKeyCacheKeysToSavePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceKeyCacheKeysToSavePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceKeyCacheKeysToSavePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceKeyCacheKeysToSavePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceKeyCacheKeysToSavePostOK creates a CacheServiceKeyCacheKeysToSavePostOK with default headers values -func NewCacheServiceKeyCacheKeysToSavePostOK() *CacheServiceKeyCacheKeysToSavePostOK { - return &CacheServiceKeyCacheKeysToSavePostOK{} -} - -/* -CacheServiceKeyCacheKeysToSavePostOK handles this case with default header values. - -Success -*/ -type CacheServiceKeyCacheKeysToSavePostOK struct { -} - -func (o *CacheServiceKeyCacheKeysToSavePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewCacheServiceKeyCacheKeysToSavePostDefault creates a CacheServiceKeyCacheKeysToSavePostDefault with default headers values -func NewCacheServiceKeyCacheKeysToSavePostDefault(code int) *CacheServiceKeyCacheKeysToSavePostDefault { - return &CacheServiceKeyCacheKeysToSavePostDefault{ - _statusCode: code, - } -} - -/* -CacheServiceKeyCacheKeysToSavePostDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceKeyCacheKeysToSavePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service key cache keys to save post default response -func (o *CacheServiceKeyCacheKeysToSavePostDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceKeyCacheKeysToSavePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceKeyCacheKeysToSavePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceKeyCacheKeysToSavePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_save_period_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_save_period_get_parameters.go deleted file mode 100644 index 991955171e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_save_period_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceKeyCacheSavePeriodGetParams creates a new CacheServiceKeyCacheSavePeriodGetParams object -// with the default values initialized. -func NewCacheServiceKeyCacheSavePeriodGetParams() *CacheServiceKeyCacheSavePeriodGetParams { - - return &CacheServiceKeyCacheSavePeriodGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceKeyCacheSavePeriodGetParamsWithTimeout creates a new CacheServiceKeyCacheSavePeriodGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceKeyCacheSavePeriodGetParamsWithTimeout(timeout time.Duration) *CacheServiceKeyCacheSavePeriodGetParams { - - return &CacheServiceKeyCacheSavePeriodGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceKeyCacheSavePeriodGetParamsWithContext creates a new CacheServiceKeyCacheSavePeriodGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceKeyCacheSavePeriodGetParamsWithContext(ctx context.Context) *CacheServiceKeyCacheSavePeriodGetParams { - - return &CacheServiceKeyCacheSavePeriodGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceKeyCacheSavePeriodGetParamsWithHTTPClient creates a new CacheServiceKeyCacheSavePeriodGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceKeyCacheSavePeriodGetParamsWithHTTPClient(client *http.Client) *CacheServiceKeyCacheSavePeriodGetParams { - - return &CacheServiceKeyCacheSavePeriodGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceKeyCacheSavePeriodGetParams contains all the parameters to send to the API endpoint -for the cache service key cache save period get operation typically these are written to a http.Request -*/ -type CacheServiceKeyCacheSavePeriodGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service key cache save period get params -func (o *CacheServiceKeyCacheSavePeriodGetParams) WithTimeout(timeout time.Duration) *CacheServiceKeyCacheSavePeriodGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service key cache save period get params -func (o *CacheServiceKeyCacheSavePeriodGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service key cache save period get params -func (o *CacheServiceKeyCacheSavePeriodGetParams) WithContext(ctx context.Context) *CacheServiceKeyCacheSavePeriodGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service key cache save period get params -func (o *CacheServiceKeyCacheSavePeriodGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service key cache save period get params -func (o *CacheServiceKeyCacheSavePeriodGetParams) WithHTTPClient(client *http.Client) *CacheServiceKeyCacheSavePeriodGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service key cache save period get params -func (o *CacheServiceKeyCacheSavePeriodGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceKeyCacheSavePeriodGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_save_period_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_save_period_get_responses.go deleted file mode 100644 index 01f53723fd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_save_period_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceKeyCacheSavePeriodGetReader is a Reader for the CacheServiceKeyCacheSavePeriodGet structure. -type CacheServiceKeyCacheSavePeriodGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceKeyCacheSavePeriodGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceKeyCacheSavePeriodGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceKeyCacheSavePeriodGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceKeyCacheSavePeriodGetOK creates a CacheServiceKeyCacheSavePeriodGetOK with default headers values -func NewCacheServiceKeyCacheSavePeriodGetOK() *CacheServiceKeyCacheSavePeriodGetOK { - return &CacheServiceKeyCacheSavePeriodGetOK{} -} - -/* -CacheServiceKeyCacheSavePeriodGetOK handles this case with default header values. - -Success -*/ -type CacheServiceKeyCacheSavePeriodGetOK struct { - Payload int32 -} - -func (o *CacheServiceKeyCacheSavePeriodGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *CacheServiceKeyCacheSavePeriodGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceKeyCacheSavePeriodGetDefault creates a CacheServiceKeyCacheSavePeriodGetDefault with default headers values -func NewCacheServiceKeyCacheSavePeriodGetDefault(code int) *CacheServiceKeyCacheSavePeriodGetDefault { - return &CacheServiceKeyCacheSavePeriodGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceKeyCacheSavePeriodGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceKeyCacheSavePeriodGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service key cache save period get default response -func (o *CacheServiceKeyCacheSavePeriodGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceKeyCacheSavePeriodGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceKeyCacheSavePeriodGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceKeyCacheSavePeriodGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_save_period_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_save_period_post_parameters.go deleted file mode 100644 index 043f6489e9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_save_period_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewCacheServiceKeyCacheSavePeriodPostParams creates a new CacheServiceKeyCacheSavePeriodPostParams object -// with the default values initialized. -func NewCacheServiceKeyCacheSavePeriodPostParams() *CacheServiceKeyCacheSavePeriodPostParams { - var () - return &CacheServiceKeyCacheSavePeriodPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceKeyCacheSavePeriodPostParamsWithTimeout creates a new CacheServiceKeyCacheSavePeriodPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceKeyCacheSavePeriodPostParamsWithTimeout(timeout time.Duration) *CacheServiceKeyCacheSavePeriodPostParams { - var () - return &CacheServiceKeyCacheSavePeriodPostParams{ - - timeout: timeout, - } -} - -// NewCacheServiceKeyCacheSavePeriodPostParamsWithContext creates a new CacheServiceKeyCacheSavePeriodPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceKeyCacheSavePeriodPostParamsWithContext(ctx context.Context) *CacheServiceKeyCacheSavePeriodPostParams { - var () - return &CacheServiceKeyCacheSavePeriodPostParams{ - - Context: ctx, - } -} - -// NewCacheServiceKeyCacheSavePeriodPostParamsWithHTTPClient creates a new CacheServiceKeyCacheSavePeriodPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceKeyCacheSavePeriodPostParamsWithHTTPClient(client *http.Client) *CacheServiceKeyCacheSavePeriodPostParams { - var () - return &CacheServiceKeyCacheSavePeriodPostParams{ - HTTPClient: client, - } -} - -/* -CacheServiceKeyCacheSavePeriodPostParams contains all the parameters to send to the API endpoint -for the cache service key cache save period post operation typically these are written to a http.Request -*/ -type CacheServiceKeyCacheSavePeriodPostParams struct { - - /*Period - key cache save period in seconds - - */ - Period int32 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service key cache save period post params -func (o *CacheServiceKeyCacheSavePeriodPostParams) WithTimeout(timeout time.Duration) *CacheServiceKeyCacheSavePeriodPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service key cache save period post params -func (o *CacheServiceKeyCacheSavePeriodPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service key cache save period post params -func (o *CacheServiceKeyCacheSavePeriodPostParams) WithContext(ctx context.Context) *CacheServiceKeyCacheSavePeriodPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service key cache save period post params -func (o *CacheServiceKeyCacheSavePeriodPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service key cache save period post params -func (o *CacheServiceKeyCacheSavePeriodPostParams) WithHTTPClient(client *http.Client) *CacheServiceKeyCacheSavePeriodPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service key cache save period post params -func (o *CacheServiceKeyCacheSavePeriodPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithPeriod adds the period to the cache service key cache save period post params -func (o *CacheServiceKeyCacheSavePeriodPostParams) WithPeriod(period int32) *CacheServiceKeyCacheSavePeriodPostParams { - o.SetPeriod(period) - return o -} - -// SetPeriod adds the period to the cache service key cache save period post params -func (o *CacheServiceKeyCacheSavePeriodPostParams) SetPeriod(period int32) { - o.Period = period -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceKeyCacheSavePeriodPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param period - qrPeriod := o.Period - qPeriod := swag.FormatInt32(qrPeriod) - if qPeriod != "" { - if err := r.SetQueryParam("period", qPeriod); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_save_period_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_save_period_post_responses.go deleted file mode 100644 index d820901c00..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_key_cache_save_period_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceKeyCacheSavePeriodPostReader is a Reader for the CacheServiceKeyCacheSavePeriodPost structure. -type CacheServiceKeyCacheSavePeriodPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceKeyCacheSavePeriodPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceKeyCacheSavePeriodPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceKeyCacheSavePeriodPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceKeyCacheSavePeriodPostOK creates a CacheServiceKeyCacheSavePeriodPostOK with default headers values -func NewCacheServiceKeyCacheSavePeriodPostOK() *CacheServiceKeyCacheSavePeriodPostOK { - return &CacheServiceKeyCacheSavePeriodPostOK{} -} - -/* -CacheServiceKeyCacheSavePeriodPostOK handles this case with default header values. - -Success -*/ -type CacheServiceKeyCacheSavePeriodPostOK struct { -} - -func (o *CacheServiceKeyCacheSavePeriodPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewCacheServiceKeyCacheSavePeriodPostDefault creates a CacheServiceKeyCacheSavePeriodPostDefault with default headers values -func NewCacheServiceKeyCacheSavePeriodPostDefault(code int) *CacheServiceKeyCacheSavePeriodPostDefault { - return &CacheServiceKeyCacheSavePeriodPostDefault{ - _statusCode: code, - } -} - -/* -CacheServiceKeyCacheSavePeriodPostDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceKeyCacheSavePeriodPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service key cache save period post default response -func (o *CacheServiceKeyCacheSavePeriodPostDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceKeyCacheSavePeriodPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceKeyCacheSavePeriodPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceKeyCacheSavePeriodPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_capacity_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_capacity_get_parameters.go deleted file mode 100644 index d12b97492d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_capacity_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsCounterCapacityGetParams creates a new CacheServiceMetricsCounterCapacityGetParams object -// with the default values initialized. -func NewCacheServiceMetricsCounterCapacityGetParams() *CacheServiceMetricsCounterCapacityGetParams { - - return &CacheServiceMetricsCounterCapacityGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsCounterCapacityGetParamsWithTimeout creates a new CacheServiceMetricsCounterCapacityGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsCounterCapacityGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsCounterCapacityGetParams { - - return &CacheServiceMetricsCounterCapacityGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsCounterCapacityGetParamsWithContext creates a new CacheServiceMetricsCounterCapacityGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsCounterCapacityGetParamsWithContext(ctx context.Context) *CacheServiceMetricsCounterCapacityGetParams { - - return &CacheServiceMetricsCounterCapacityGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsCounterCapacityGetParamsWithHTTPClient creates a new CacheServiceMetricsCounterCapacityGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsCounterCapacityGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsCounterCapacityGetParams { - - return &CacheServiceMetricsCounterCapacityGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsCounterCapacityGetParams contains all the parameters to send to the API endpoint -for the cache service metrics counter capacity get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsCounterCapacityGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics counter capacity get params -func (o *CacheServiceMetricsCounterCapacityGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsCounterCapacityGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics counter capacity get params -func (o *CacheServiceMetricsCounterCapacityGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics counter capacity get params -func (o *CacheServiceMetricsCounterCapacityGetParams) WithContext(ctx context.Context) *CacheServiceMetricsCounterCapacityGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics counter capacity get params -func (o *CacheServiceMetricsCounterCapacityGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics counter capacity get params -func (o *CacheServiceMetricsCounterCapacityGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsCounterCapacityGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics counter capacity get params -func (o *CacheServiceMetricsCounterCapacityGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsCounterCapacityGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_capacity_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_capacity_get_responses.go deleted file mode 100644 index 917854594f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_capacity_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsCounterCapacityGetReader is a Reader for the CacheServiceMetricsCounterCapacityGet structure. -type CacheServiceMetricsCounterCapacityGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsCounterCapacityGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsCounterCapacityGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsCounterCapacityGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsCounterCapacityGetOK creates a CacheServiceMetricsCounterCapacityGetOK with default headers values -func NewCacheServiceMetricsCounterCapacityGetOK() *CacheServiceMetricsCounterCapacityGetOK { - return &CacheServiceMetricsCounterCapacityGetOK{} -} - -/* -CacheServiceMetricsCounterCapacityGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsCounterCapacityGetOK struct { - Payload interface{} -} - -func (o *CacheServiceMetricsCounterCapacityGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CacheServiceMetricsCounterCapacityGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsCounterCapacityGetDefault creates a CacheServiceMetricsCounterCapacityGetDefault with default headers values -func NewCacheServiceMetricsCounterCapacityGetDefault(code int) *CacheServiceMetricsCounterCapacityGetDefault { - return &CacheServiceMetricsCounterCapacityGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsCounterCapacityGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsCounterCapacityGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics counter capacity get default response -func (o *CacheServiceMetricsCounterCapacityGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsCounterCapacityGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsCounterCapacityGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsCounterCapacityGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_entries_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_entries_get_parameters.go deleted file mode 100644 index f2dd906ef9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_entries_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsCounterEntriesGetParams creates a new CacheServiceMetricsCounterEntriesGetParams object -// with the default values initialized. -func NewCacheServiceMetricsCounterEntriesGetParams() *CacheServiceMetricsCounterEntriesGetParams { - - return &CacheServiceMetricsCounterEntriesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsCounterEntriesGetParamsWithTimeout creates a new CacheServiceMetricsCounterEntriesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsCounterEntriesGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsCounterEntriesGetParams { - - return &CacheServiceMetricsCounterEntriesGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsCounterEntriesGetParamsWithContext creates a new CacheServiceMetricsCounterEntriesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsCounterEntriesGetParamsWithContext(ctx context.Context) *CacheServiceMetricsCounterEntriesGetParams { - - return &CacheServiceMetricsCounterEntriesGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsCounterEntriesGetParamsWithHTTPClient creates a new CacheServiceMetricsCounterEntriesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsCounterEntriesGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsCounterEntriesGetParams { - - return &CacheServiceMetricsCounterEntriesGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsCounterEntriesGetParams contains all the parameters to send to the API endpoint -for the cache service metrics counter entries get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsCounterEntriesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics counter entries get params -func (o *CacheServiceMetricsCounterEntriesGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsCounterEntriesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics counter entries get params -func (o *CacheServiceMetricsCounterEntriesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics counter entries get params -func (o *CacheServiceMetricsCounterEntriesGetParams) WithContext(ctx context.Context) *CacheServiceMetricsCounterEntriesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics counter entries get params -func (o *CacheServiceMetricsCounterEntriesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics counter entries get params -func (o *CacheServiceMetricsCounterEntriesGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsCounterEntriesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics counter entries get params -func (o *CacheServiceMetricsCounterEntriesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsCounterEntriesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_entries_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_entries_get_responses.go deleted file mode 100644 index 07f1a23810..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_entries_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsCounterEntriesGetReader is a Reader for the CacheServiceMetricsCounterEntriesGet structure. -type CacheServiceMetricsCounterEntriesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsCounterEntriesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsCounterEntriesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsCounterEntriesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsCounterEntriesGetOK creates a CacheServiceMetricsCounterEntriesGetOK with default headers values -func NewCacheServiceMetricsCounterEntriesGetOK() *CacheServiceMetricsCounterEntriesGetOK { - return &CacheServiceMetricsCounterEntriesGetOK{} -} - -/* -CacheServiceMetricsCounterEntriesGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsCounterEntriesGetOK struct { - Payload int32 -} - -func (o *CacheServiceMetricsCounterEntriesGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *CacheServiceMetricsCounterEntriesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsCounterEntriesGetDefault creates a CacheServiceMetricsCounterEntriesGetDefault with default headers values -func NewCacheServiceMetricsCounterEntriesGetDefault(code int) *CacheServiceMetricsCounterEntriesGetDefault { - return &CacheServiceMetricsCounterEntriesGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsCounterEntriesGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsCounterEntriesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics counter entries get default response -func (o *CacheServiceMetricsCounterEntriesGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsCounterEntriesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsCounterEntriesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsCounterEntriesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_hit_rate_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_hit_rate_get_parameters.go deleted file mode 100644 index 8281890438..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_hit_rate_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsCounterHitRateGetParams creates a new CacheServiceMetricsCounterHitRateGetParams object -// with the default values initialized. -func NewCacheServiceMetricsCounterHitRateGetParams() *CacheServiceMetricsCounterHitRateGetParams { - - return &CacheServiceMetricsCounterHitRateGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsCounterHitRateGetParamsWithTimeout creates a new CacheServiceMetricsCounterHitRateGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsCounterHitRateGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsCounterHitRateGetParams { - - return &CacheServiceMetricsCounterHitRateGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsCounterHitRateGetParamsWithContext creates a new CacheServiceMetricsCounterHitRateGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsCounterHitRateGetParamsWithContext(ctx context.Context) *CacheServiceMetricsCounterHitRateGetParams { - - return &CacheServiceMetricsCounterHitRateGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsCounterHitRateGetParamsWithHTTPClient creates a new CacheServiceMetricsCounterHitRateGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsCounterHitRateGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsCounterHitRateGetParams { - - return &CacheServiceMetricsCounterHitRateGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsCounterHitRateGetParams contains all the parameters to send to the API endpoint -for the cache service metrics counter hit rate get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsCounterHitRateGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics counter hit rate get params -func (o *CacheServiceMetricsCounterHitRateGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsCounterHitRateGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics counter hit rate get params -func (o *CacheServiceMetricsCounterHitRateGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics counter hit rate get params -func (o *CacheServiceMetricsCounterHitRateGetParams) WithContext(ctx context.Context) *CacheServiceMetricsCounterHitRateGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics counter hit rate get params -func (o *CacheServiceMetricsCounterHitRateGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics counter hit rate get params -func (o *CacheServiceMetricsCounterHitRateGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsCounterHitRateGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics counter hit rate get params -func (o *CacheServiceMetricsCounterHitRateGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsCounterHitRateGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_hit_rate_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_hit_rate_get_responses.go deleted file mode 100644 index 03c416e7a6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_hit_rate_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsCounterHitRateGetReader is a Reader for the CacheServiceMetricsCounterHitRateGet structure. -type CacheServiceMetricsCounterHitRateGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsCounterHitRateGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsCounterHitRateGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsCounterHitRateGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsCounterHitRateGetOK creates a CacheServiceMetricsCounterHitRateGetOK with default headers values -func NewCacheServiceMetricsCounterHitRateGetOK() *CacheServiceMetricsCounterHitRateGetOK { - return &CacheServiceMetricsCounterHitRateGetOK{} -} - -/* -CacheServiceMetricsCounterHitRateGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsCounterHitRateGetOK struct { - Payload interface{} -} - -func (o *CacheServiceMetricsCounterHitRateGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CacheServiceMetricsCounterHitRateGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsCounterHitRateGetDefault creates a CacheServiceMetricsCounterHitRateGetDefault with default headers values -func NewCacheServiceMetricsCounterHitRateGetDefault(code int) *CacheServiceMetricsCounterHitRateGetDefault { - return &CacheServiceMetricsCounterHitRateGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsCounterHitRateGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsCounterHitRateGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics counter hit rate get default response -func (o *CacheServiceMetricsCounterHitRateGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsCounterHitRateGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsCounterHitRateGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsCounterHitRateGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_hits_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_hits_get_parameters.go deleted file mode 100644 index 371ac603b4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_hits_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsCounterHitsGetParams creates a new CacheServiceMetricsCounterHitsGetParams object -// with the default values initialized. -func NewCacheServiceMetricsCounterHitsGetParams() *CacheServiceMetricsCounterHitsGetParams { - - return &CacheServiceMetricsCounterHitsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsCounterHitsGetParamsWithTimeout creates a new CacheServiceMetricsCounterHitsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsCounterHitsGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsCounterHitsGetParams { - - return &CacheServiceMetricsCounterHitsGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsCounterHitsGetParamsWithContext creates a new CacheServiceMetricsCounterHitsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsCounterHitsGetParamsWithContext(ctx context.Context) *CacheServiceMetricsCounterHitsGetParams { - - return &CacheServiceMetricsCounterHitsGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsCounterHitsGetParamsWithHTTPClient creates a new CacheServiceMetricsCounterHitsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsCounterHitsGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsCounterHitsGetParams { - - return &CacheServiceMetricsCounterHitsGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsCounterHitsGetParams contains all the parameters to send to the API endpoint -for the cache service metrics counter hits get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsCounterHitsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics counter hits get params -func (o *CacheServiceMetricsCounterHitsGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsCounterHitsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics counter hits get params -func (o *CacheServiceMetricsCounterHitsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics counter hits get params -func (o *CacheServiceMetricsCounterHitsGetParams) WithContext(ctx context.Context) *CacheServiceMetricsCounterHitsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics counter hits get params -func (o *CacheServiceMetricsCounterHitsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics counter hits get params -func (o *CacheServiceMetricsCounterHitsGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsCounterHitsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics counter hits get params -func (o *CacheServiceMetricsCounterHitsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsCounterHitsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_hits_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_hits_get_responses.go deleted file mode 100644 index f973297110..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_hits_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsCounterHitsGetReader is a Reader for the CacheServiceMetricsCounterHitsGet structure. -type CacheServiceMetricsCounterHitsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsCounterHitsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsCounterHitsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsCounterHitsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsCounterHitsGetOK creates a CacheServiceMetricsCounterHitsGetOK with default headers values -func NewCacheServiceMetricsCounterHitsGetOK() *CacheServiceMetricsCounterHitsGetOK { - return &CacheServiceMetricsCounterHitsGetOK{} -} - -/* -CacheServiceMetricsCounterHitsGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsCounterHitsGetOK struct { - Payload interface{} -} - -func (o *CacheServiceMetricsCounterHitsGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CacheServiceMetricsCounterHitsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsCounterHitsGetDefault creates a CacheServiceMetricsCounterHitsGetDefault with default headers values -func NewCacheServiceMetricsCounterHitsGetDefault(code int) *CacheServiceMetricsCounterHitsGetDefault { - return &CacheServiceMetricsCounterHitsGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsCounterHitsGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsCounterHitsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics counter hits get default response -func (o *CacheServiceMetricsCounterHitsGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsCounterHitsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsCounterHitsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsCounterHitsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_hits_moving_avrage_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_hits_moving_avrage_get_parameters.go deleted file mode 100644 index 6b576f26c0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_hits_moving_avrage_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsCounterHitsMovingAvrageGetParams creates a new CacheServiceMetricsCounterHitsMovingAvrageGetParams object -// with the default values initialized. -func NewCacheServiceMetricsCounterHitsMovingAvrageGetParams() *CacheServiceMetricsCounterHitsMovingAvrageGetParams { - - return &CacheServiceMetricsCounterHitsMovingAvrageGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsCounterHitsMovingAvrageGetParamsWithTimeout creates a new CacheServiceMetricsCounterHitsMovingAvrageGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsCounterHitsMovingAvrageGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsCounterHitsMovingAvrageGetParams { - - return &CacheServiceMetricsCounterHitsMovingAvrageGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsCounterHitsMovingAvrageGetParamsWithContext creates a new CacheServiceMetricsCounterHitsMovingAvrageGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsCounterHitsMovingAvrageGetParamsWithContext(ctx context.Context) *CacheServiceMetricsCounterHitsMovingAvrageGetParams { - - return &CacheServiceMetricsCounterHitsMovingAvrageGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsCounterHitsMovingAvrageGetParamsWithHTTPClient creates a new CacheServiceMetricsCounterHitsMovingAvrageGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsCounterHitsMovingAvrageGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsCounterHitsMovingAvrageGetParams { - - return &CacheServiceMetricsCounterHitsMovingAvrageGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsCounterHitsMovingAvrageGetParams contains all the parameters to send to the API endpoint -for the cache service metrics counter hits moving avrage get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsCounterHitsMovingAvrageGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics counter hits moving avrage get params -func (o *CacheServiceMetricsCounterHitsMovingAvrageGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsCounterHitsMovingAvrageGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics counter hits moving avrage get params -func (o *CacheServiceMetricsCounterHitsMovingAvrageGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics counter hits moving avrage get params -func (o *CacheServiceMetricsCounterHitsMovingAvrageGetParams) WithContext(ctx context.Context) *CacheServiceMetricsCounterHitsMovingAvrageGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics counter hits moving avrage get params -func (o *CacheServiceMetricsCounterHitsMovingAvrageGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics counter hits moving avrage get params -func (o *CacheServiceMetricsCounterHitsMovingAvrageGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsCounterHitsMovingAvrageGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics counter hits moving avrage get params -func (o *CacheServiceMetricsCounterHitsMovingAvrageGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsCounterHitsMovingAvrageGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_hits_moving_avrage_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_hits_moving_avrage_get_responses.go deleted file mode 100644 index 685fd5c8b1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_hits_moving_avrage_get_responses.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsCounterHitsMovingAvrageGetReader is a Reader for the CacheServiceMetricsCounterHitsMovingAvrageGet structure. -type CacheServiceMetricsCounterHitsMovingAvrageGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsCounterHitsMovingAvrageGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsCounterHitsMovingAvrageGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsCounterHitsMovingAvrageGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsCounterHitsMovingAvrageGetOK creates a CacheServiceMetricsCounterHitsMovingAvrageGetOK with default headers values -func NewCacheServiceMetricsCounterHitsMovingAvrageGetOK() *CacheServiceMetricsCounterHitsMovingAvrageGetOK { - return &CacheServiceMetricsCounterHitsMovingAvrageGetOK{} -} - -/* -CacheServiceMetricsCounterHitsMovingAvrageGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsCounterHitsMovingAvrageGetOK struct { - Payload *models.RateMovingAverage -} - -func (o *CacheServiceMetricsCounterHitsMovingAvrageGetOK) GetPayload() *models.RateMovingAverage { - return o.Payload -} - -func (o *CacheServiceMetricsCounterHitsMovingAvrageGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.RateMovingAverage) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsCounterHitsMovingAvrageGetDefault creates a CacheServiceMetricsCounterHitsMovingAvrageGetDefault with default headers values -func NewCacheServiceMetricsCounterHitsMovingAvrageGetDefault(code int) *CacheServiceMetricsCounterHitsMovingAvrageGetDefault { - return &CacheServiceMetricsCounterHitsMovingAvrageGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsCounterHitsMovingAvrageGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsCounterHitsMovingAvrageGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics counter hits moving avrage get default response -func (o *CacheServiceMetricsCounterHitsMovingAvrageGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsCounterHitsMovingAvrageGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsCounterHitsMovingAvrageGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsCounterHitsMovingAvrageGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_requests_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_requests_get_parameters.go deleted file mode 100644 index e07fdb52ce..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_requests_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsCounterRequestsGetParams creates a new CacheServiceMetricsCounterRequestsGetParams object -// with the default values initialized. -func NewCacheServiceMetricsCounterRequestsGetParams() *CacheServiceMetricsCounterRequestsGetParams { - - return &CacheServiceMetricsCounterRequestsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsCounterRequestsGetParamsWithTimeout creates a new CacheServiceMetricsCounterRequestsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsCounterRequestsGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsCounterRequestsGetParams { - - return &CacheServiceMetricsCounterRequestsGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsCounterRequestsGetParamsWithContext creates a new CacheServiceMetricsCounterRequestsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsCounterRequestsGetParamsWithContext(ctx context.Context) *CacheServiceMetricsCounterRequestsGetParams { - - return &CacheServiceMetricsCounterRequestsGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsCounterRequestsGetParamsWithHTTPClient creates a new CacheServiceMetricsCounterRequestsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsCounterRequestsGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsCounterRequestsGetParams { - - return &CacheServiceMetricsCounterRequestsGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsCounterRequestsGetParams contains all the parameters to send to the API endpoint -for the cache service metrics counter requests get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsCounterRequestsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics counter requests get params -func (o *CacheServiceMetricsCounterRequestsGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsCounterRequestsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics counter requests get params -func (o *CacheServiceMetricsCounterRequestsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics counter requests get params -func (o *CacheServiceMetricsCounterRequestsGetParams) WithContext(ctx context.Context) *CacheServiceMetricsCounterRequestsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics counter requests get params -func (o *CacheServiceMetricsCounterRequestsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics counter requests get params -func (o *CacheServiceMetricsCounterRequestsGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsCounterRequestsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics counter requests get params -func (o *CacheServiceMetricsCounterRequestsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsCounterRequestsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_requests_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_requests_get_responses.go deleted file mode 100644 index d0c0bfd62d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_requests_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsCounterRequestsGetReader is a Reader for the CacheServiceMetricsCounterRequestsGet structure. -type CacheServiceMetricsCounterRequestsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsCounterRequestsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsCounterRequestsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsCounterRequestsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsCounterRequestsGetOK creates a CacheServiceMetricsCounterRequestsGetOK with default headers values -func NewCacheServiceMetricsCounterRequestsGetOK() *CacheServiceMetricsCounterRequestsGetOK { - return &CacheServiceMetricsCounterRequestsGetOK{} -} - -/* -CacheServiceMetricsCounterRequestsGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsCounterRequestsGetOK struct { - Payload interface{} -} - -func (o *CacheServiceMetricsCounterRequestsGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CacheServiceMetricsCounterRequestsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsCounterRequestsGetDefault creates a CacheServiceMetricsCounterRequestsGetDefault with default headers values -func NewCacheServiceMetricsCounterRequestsGetDefault(code int) *CacheServiceMetricsCounterRequestsGetDefault { - return &CacheServiceMetricsCounterRequestsGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsCounterRequestsGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsCounterRequestsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics counter requests get default response -func (o *CacheServiceMetricsCounterRequestsGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsCounterRequestsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsCounterRequestsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsCounterRequestsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_requests_moving_avrage_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_requests_moving_avrage_get_parameters.go deleted file mode 100644 index 80344a6463..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_requests_moving_avrage_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsCounterRequestsMovingAvrageGetParams creates a new CacheServiceMetricsCounterRequestsMovingAvrageGetParams object -// with the default values initialized. -func NewCacheServiceMetricsCounterRequestsMovingAvrageGetParams() *CacheServiceMetricsCounterRequestsMovingAvrageGetParams { - - return &CacheServiceMetricsCounterRequestsMovingAvrageGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsCounterRequestsMovingAvrageGetParamsWithTimeout creates a new CacheServiceMetricsCounterRequestsMovingAvrageGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsCounterRequestsMovingAvrageGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsCounterRequestsMovingAvrageGetParams { - - return &CacheServiceMetricsCounterRequestsMovingAvrageGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsCounterRequestsMovingAvrageGetParamsWithContext creates a new CacheServiceMetricsCounterRequestsMovingAvrageGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsCounterRequestsMovingAvrageGetParamsWithContext(ctx context.Context) *CacheServiceMetricsCounterRequestsMovingAvrageGetParams { - - return &CacheServiceMetricsCounterRequestsMovingAvrageGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsCounterRequestsMovingAvrageGetParamsWithHTTPClient creates a new CacheServiceMetricsCounterRequestsMovingAvrageGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsCounterRequestsMovingAvrageGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsCounterRequestsMovingAvrageGetParams { - - return &CacheServiceMetricsCounterRequestsMovingAvrageGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsCounterRequestsMovingAvrageGetParams contains all the parameters to send to the API endpoint -for the cache service metrics counter requests moving avrage get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsCounterRequestsMovingAvrageGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics counter requests moving avrage get params -func (o *CacheServiceMetricsCounterRequestsMovingAvrageGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsCounterRequestsMovingAvrageGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics counter requests moving avrage get params -func (o *CacheServiceMetricsCounterRequestsMovingAvrageGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics counter requests moving avrage get params -func (o *CacheServiceMetricsCounterRequestsMovingAvrageGetParams) WithContext(ctx context.Context) *CacheServiceMetricsCounterRequestsMovingAvrageGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics counter requests moving avrage get params -func (o *CacheServiceMetricsCounterRequestsMovingAvrageGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics counter requests moving avrage get params -func (o *CacheServiceMetricsCounterRequestsMovingAvrageGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsCounterRequestsMovingAvrageGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics counter requests moving avrage get params -func (o *CacheServiceMetricsCounterRequestsMovingAvrageGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsCounterRequestsMovingAvrageGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_requests_moving_avrage_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_requests_moving_avrage_get_responses.go deleted file mode 100644 index 533853f0b3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_requests_moving_avrage_get_responses.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsCounterRequestsMovingAvrageGetReader is a Reader for the CacheServiceMetricsCounterRequestsMovingAvrageGet structure. -type CacheServiceMetricsCounterRequestsMovingAvrageGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsCounterRequestsMovingAvrageGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsCounterRequestsMovingAvrageGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsCounterRequestsMovingAvrageGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsCounterRequestsMovingAvrageGetOK creates a CacheServiceMetricsCounterRequestsMovingAvrageGetOK with default headers values -func NewCacheServiceMetricsCounterRequestsMovingAvrageGetOK() *CacheServiceMetricsCounterRequestsMovingAvrageGetOK { - return &CacheServiceMetricsCounterRequestsMovingAvrageGetOK{} -} - -/* -CacheServiceMetricsCounterRequestsMovingAvrageGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsCounterRequestsMovingAvrageGetOK struct { - Payload *models.RateMovingAverage -} - -func (o *CacheServiceMetricsCounterRequestsMovingAvrageGetOK) GetPayload() *models.RateMovingAverage { - return o.Payload -} - -func (o *CacheServiceMetricsCounterRequestsMovingAvrageGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.RateMovingAverage) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsCounterRequestsMovingAvrageGetDefault creates a CacheServiceMetricsCounterRequestsMovingAvrageGetDefault with default headers values -func NewCacheServiceMetricsCounterRequestsMovingAvrageGetDefault(code int) *CacheServiceMetricsCounterRequestsMovingAvrageGetDefault { - return &CacheServiceMetricsCounterRequestsMovingAvrageGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsCounterRequestsMovingAvrageGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsCounterRequestsMovingAvrageGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics counter requests moving avrage get default response -func (o *CacheServiceMetricsCounterRequestsMovingAvrageGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsCounterRequestsMovingAvrageGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsCounterRequestsMovingAvrageGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsCounterRequestsMovingAvrageGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_size_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_size_get_parameters.go deleted file mode 100644 index 5a7b82c9c9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_size_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsCounterSizeGetParams creates a new CacheServiceMetricsCounterSizeGetParams object -// with the default values initialized. -func NewCacheServiceMetricsCounterSizeGetParams() *CacheServiceMetricsCounterSizeGetParams { - - return &CacheServiceMetricsCounterSizeGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsCounterSizeGetParamsWithTimeout creates a new CacheServiceMetricsCounterSizeGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsCounterSizeGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsCounterSizeGetParams { - - return &CacheServiceMetricsCounterSizeGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsCounterSizeGetParamsWithContext creates a new CacheServiceMetricsCounterSizeGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsCounterSizeGetParamsWithContext(ctx context.Context) *CacheServiceMetricsCounterSizeGetParams { - - return &CacheServiceMetricsCounterSizeGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsCounterSizeGetParamsWithHTTPClient creates a new CacheServiceMetricsCounterSizeGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsCounterSizeGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsCounterSizeGetParams { - - return &CacheServiceMetricsCounterSizeGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsCounterSizeGetParams contains all the parameters to send to the API endpoint -for the cache service metrics counter size get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsCounterSizeGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics counter size get params -func (o *CacheServiceMetricsCounterSizeGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsCounterSizeGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics counter size get params -func (o *CacheServiceMetricsCounterSizeGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics counter size get params -func (o *CacheServiceMetricsCounterSizeGetParams) WithContext(ctx context.Context) *CacheServiceMetricsCounterSizeGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics counter size get params -func (o *CacheServiceMetricsCounterSizeGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics counter size get params -func (o *CacheServiceMetricsCounterSizeGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsCounterSizeGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics counter size get params -func (o *CacheServiceMetricsCounterSizeGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsCounterSizeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_size_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_size_get_responses.go deleted file mode 100644 index c9502b722f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_counter_size_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsCounterSizeGetReader is a Reader for the CacheServiceMetricsCounterSizeGet structure. -type CacheServiceMetricsCounterSizeGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsCounterSizeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsCounterSizeGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsCounterSizeGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsCounterSizeGetOK creates a CacheServiceMetricsCounterSizeGetOK with default headers values -func NewCacheServiceMetricsCounterSizeGetOK() *CacheServiceMetricsCounterSizeGetOK { - return &CacheServiceMetricsCounterSizeGetOK{} -} - -/* -CacheServiceMetricsCounterSizeGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsCounterSizeGetOK struct { - Payload interface{} -} - -func (o *CacheServiceMetricsCounterSizeGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CacheServiceMetricsCounterSizeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsCounterSizeGetDefault creates a CacheServiceMetricsCounterSizeGetDefault with default headers values -func NewCacheServiceMetricsCounterSizeGetDefault(code int) *CacheServiceMetricsCounterSizeGetDefault { - return &CacheServiceMetricsCounterSizeGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsCounterSizeGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsCounterSizeGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics counter size get default response -func (o *CacheServiceMetricsCounterSizeGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsCounterSizeGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsCounterSizeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsCounterSizeGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_capacity_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_capacity_get_parameters.go deleted file mode 100644 index 0e4cbc2bb9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_capacity_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsKeyCapacityGetParams creates a new CacheServiceMetricsKeyCapacityGetParams object -// with the default values initialized. -func NewCacheServiceMetricsKeyCapacityGetParams() *CacheServiceMetricsKeyCapacityGetParams { - - return &CacheServiceMetricsKeyCapacityGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsKeyCapacityGetParamsWithTimeout creates a new CacheServiceMetricsKeyCapacityGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsKeyCapacityGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsKeyCapacityGetParams { - - return &CacheServiceMetricsKeyCapacityGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsKeyCapacityGetParamsWithContext creates a new CacheServiceMetricsKeyCapacityGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsKeyCapacityGetParamsWithContext(ctx context.Context) *CacheServiceMetricsKeyCapacityGetParams { - - return &CacheServiceMetricsKeyCapacityGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsKeyCapacityGetParamsWithHTTPClient creates a new CacheServiceMetricsKeyCapacityGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsKeyCapacityGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsKeyCapacityGetParams { - - return &CacheServiceMetricsKeyCapacityGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsKeyCapacityGetParams contains all the parameters to send to the API endpoint -for the cache service metrics key capacity get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsKeyCapacityGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics key capacity get params -func (o *CacheServiceMetricsKeyCapacityGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsKeyCapacityGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics key capacity get params -func (o *CacheServiceMetricsKeyCapacityGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics key capacity get params -func (o *CacheServiceMetricsKeyCapacityGetParams) WithContext(ctx context.Context) *CacheServiceMetricsKeyCapacityGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics key capacity get params -func (o *CacheServiceMetricsKeyCapacityGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics key capacity get params -func (o *CacheServiceMetricsKeyCapacityGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsKeyCapacityGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics key capacity get params -func (o *CacheServiceMetricsKeyCapacityGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsKeyCapacityGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_capacity_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_capacity_get_responses.go deleted file mode 100644 index 136472967d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_capacity_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsKeyCapacityGetReader is a Reader for the CacheServiceMetricsKeyCapacityGet structure. -type CacheServiceMetricsKeyCapacityGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsKeyCapacityGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsKeyCapacityGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsKeyCapacityGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsKeyCapacityGetOK creates a CacheServiceMetricsKeyCapacityGetOK with default headers values -func NewCacheServiceMetricsKeyCapacityGetOK() *CacheServiceMetricsKeyCapacityGetOK { - return &CacheServiceMetricsKeyCapacityGetOK{} -} - -/* -CacheServiceMetricsKeyCapacityGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsKeyCapacityGetOK struct { - Payload interface{} -} - -func (o *CacheServiceMetricsKeyCapacityGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CacheServiceMetricsKeyCapacityGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsKeyCapacityGetDefault creates a CacheServiceMetricsKeyCapacityGetDefault with default headers values -func NewCacheServiceMetricsKeyCapacityGetDefault(code int) *CacheServiceMetricsKeyCapacityGetDefault { - return &CacheServiceMetricsKeyCapacityGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsKeyCapacityGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsKeyCapacityGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics key capacity get default response -func (o *CacheServiceMetricsKeyCapacityGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsKeyCapacityGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsKeyCapacityGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsKeyCapacityGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_entries_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_entries_get_parameters.go deleted file mode 100644 index 5176340f0d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_entries_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsKeyEntriesGetParams creates a new CacheServiceMetricsKeyEntriesGetParams object -// with the default values initialized. -func NewCacheServiceMetricsKeyEntriesGetParams() *CacheServiceMetricsKeyEntriesGetParams { - - return &CacheServiceMetricsKeyEntriesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsKeyEntriesGetParamsWithTimeout creates a new CacheServiceMetricsKeyEntriesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsKeyEntriesGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsKeyEntriesGetParams { - - return &CacheServiceMetricsKeyEntriesGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsKeyEntriesGetParamsWithContext creates a new CacheServiceMetricsKeyEntriesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsKeyEntriesGetParamsWithContext(ctx context.Context) *CacheServiceMetricsKeyEntriesGetParams { - - return &CacheServiceMetricsKeyEntriesGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsKeyEntriesGetParamsWithHTTPClient creates a new CacheServiceMetricsKeyEntriesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsKeyEntriesGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsKeyEntriesGetParams { - - return &CacheServiceMetricsKeyEntriesGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsKeyEntriesGetParams contains all the parameters to send to the API endpoint -for the cache service metrics key entries get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsKeyEntriesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics key entries get params -func (o *CacheServiceMetricsKeyEntriesGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsKeyEntriesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics key entries get params -func (o *CacheServiceMetricsKeyEntriesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics key entries get params -func (o *CacheServiceMetricsKeyEntriesGetParams) WithContext(ctx context.Context) *CacheServiceMetricsKeyEntriesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics key entries get params -func (o *CacheServiceMetricsKeyEntriesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics key entries get params -func (o *CacheServiceMetricsKeyEntriesGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsKeyEntriesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics key entries get params -func (o *CacheServiceMetricsKeyEntriesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsKeyEntriesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_entries_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_entries_get_responses.go deleted file mode 100644 index b230ef86dd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_entries_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsKeyEntriesGetReader is a Reader for the CacheServiceMetricsKeyEntriesGet structure. -type CacheServiceMetricsKeyEntriesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsKeyEntriesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsKeyEntriesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsKeyEntriesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsKeyEntriesGetOK creates a CacheServiceMetricsKeyEntriesGetOK with default headers values -func NewCacheServiceMetricsKeyEntriesGetOK() *CacheServiceMetricsKeyEntriesGetOK { - return &CacheServiceMetricsKeyEntriesGetOK{} -} - -/* -CacheServiceMetricsKeyEntriesGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsKeyEntriesGetOK struct { - Payload int32 -} - -func (o *CacheServiceMetricsKeyEntriesGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *CacheServiceMetricsKeyEntriesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsKeyEntriesGetDefault creates a CacheServiceMetricsKeyEntriesGetDefault with default headers values -func NewCacheServiceMetricsKeyEntriesGetDefault(code int) *CacheServiceMetricsKeyEntriesGetDefault { - return &CacheServiceMetricsKeyEntriesGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsKeyEntriesGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsKeyEntriesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics key entries get default response -func (o *CacheServiceMetricsKeyEntriesGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsKeyEntriesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsKeyEntriesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsKeyEntriesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_hit_rate_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_hit_rate_get_parameters.go deleted file mode 100644 index 7237d7c2e2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_hit_rate_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsKeyHitRateGetParams creates a new CacheServiceMetricsKeyHitRateGetParams object -// with the default values initialized. -func NewCacheServiceMetricsKeyHitRateGetParams() *CacheServiceMetricsKeyHitRateGetParams { - - return &CacheServiceMetricsKeyHitRateGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsKeyHitRateGetParamsWithTimeout creates a new CacheServiceMetricsKeyHitRateGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsKeyHitRateGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsKeyHitRateGetParams { - - return &CacheServiceMetricsKeyHitRateGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsKeyHitRateGetParamsWithContext creates a new CacheServiceMetricsKeyHitRateGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsKeyHitRateGetParamsWithContext(ctx context.Context) *CacheServiceMetricsKeyHitRateGetParams { - - return &CacheServiceMetricsKeyHitRateGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsKeyHitRateGetParamsWithHTTPClient creates a new CacheServiceMetricsKeyHitRateGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsKeyHitRateGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsKeyHitRateGetParams { - - return &CacheServiceMetricsKeyHitRateGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsKeyHitRateGetParams contains all the parameters to send to the API endpoint -for the cache service metrics key hit rate get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsKeyHitRateGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics key hit rate get params -func (o *CacheServiceMetricsKeyHitRateGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsKeyHitRateGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics key hit rate get params -func (o *CacheServiceMetricsKeyHitRateGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics key hit rate get params -func (o *CacheServiceMetricsKeyHitRateGetParams) WithContext(ctx context.Context) *CacheServiceMetricsKeyHitRateGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics key hit rate get params -func (o *CacheServiceMetricsKeyHitRateGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics key hit rate get params -func (o *CacheServiceMetricsKeyHitRateGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsKeyHitRateGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics key hit rate get params -func (o *CacheServiceMetricsKeyHitRateGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsKeyHitRateGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_hit_rate_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_hit_rate_get_responses.go deleted file mode 100644 index e18b0d8d56..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_hit_rate_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsKeyHitRateGetReader is a Reader for the CacheServiceMetricsKeyHitRateGet structure. -type CacheServiceMetricsKeyHitRateGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsKeyHitRateGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsKeyHitRateGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsKeyHitRateGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsKeyHitRateGetOK creates a CacheServiceMetricsKeyHitRateGetOK with default headers values -func NewCacheServiceMetricsKeyHitRateGetOK() *CacheServiceMetricsKeyHitRateGetOK { - return &CacheServiceMetricsKeyHitRateGetOK{} -} - -/* -CacheServiceMetricsKeyHitRateGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsKeyHitRateGetOK struct { - Payload interface{} -} - -func (o *CacheServiceMetricsKeyHitRateGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CacheServiceMetricsKeyHitRateGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsKeyHitRateGetDefault creates a CacheServiceMetricsKeyHitRateGetDefault with default headers values -func NewCacheServiceMetricsKeyHitRateGetDefault(code int) *CacheServiceMetricsKeyHitRateGetDefault { - return &CacheServiceMetricsKeyHitRateGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsKeyHitRateGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsKeyHitRateGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics key hit rate get default response -func (o *CacheServiceMetricsKeyHitRateGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsKeyHitRateGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsKeyHitRateGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsKeyHitRateGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_hits_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_hits_get_parameters.go deleted file mode 100644 index e6ac7ba34f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_hits_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsKeyHitsGetParams creates a new CacheServiceMetricsKeyHitsGetParams object -// with the default values initialized. -func NewCacheServiceMetricsKeyHitsGetParams() *CacheServiceMetricsKeyHitsGetParams { - - return &CacheServiceMetricsKeyHitsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsKeyHitsGetParamsWithTimeout creates a new CacheServiceMetricsKeyHitsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsKeyHitsGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsKeyHitsGetParams { - - return &CacheServiceMetricsKeyHitsGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsKeyHitsGetParamsWithContext creates a new CacheServiceMetricsKeyHitsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsKeyHitsGetParamsWithContext(ctx context.Context) *CacheServiceMetricsKeyHitsGetParams { - - return &CacheServiceMetricsKeyHitsGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsKeyHitsGetParamsWithHTTPClient creates a new CacheServiceMetricsKeyHitsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsKeyHitsGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsKeyHitsGetParams { - - return &CacheServiceMetricsKeyHitsGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsKeyHitsGetParams contains all the parameters to send to the API endpoint -for the cache service metrics key hits get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsKeyHitsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics key hits get params -func (o *CacheServiceMetricsKeyHitsGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsKeyHitsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics key hits get params -func (o *CacheServiceMetricsKeyHitsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics key hits get params -func (o *CacheServiceMetricsKeyHitsGetParams) WithContext(ctx context.Context) *CacheServiceMetricsKeyHitsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics key hits get params -func (o *CacheServiceMetricsKeyHitsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics key hits get params -func (o *CacheServiceMetricsKeyHitsGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsKeyHitsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics key hits get params -func (o *CacheServiceMetricsKeyHitsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsKeyHitsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_hits_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_hits_get_responses.go deleted file mode 100644 index 1bdecfc50f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_hits_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsKeyHitsGetReader is a Reader for the CacheServiceMetricsKeyHitsGet structure. -type CacheServiceMetricsKeyHitsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsKeyHitsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsKeyHitsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsKeyHitsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsKeyHitsGetOK creates a CacheServiceMetricsKeyHitsGetOK with default headers values -func NewCacheServiceMetricsKeyHitsGetOK() *CacheServiceMetricsKeyHitsGetOK { - return &CacheServiceMetricsKeyHitsGetOK{} -} - -/* -CacheServiceMetricsKeyHitsGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsKeyHitsGetOK struct { - Payload interface{} -} - -func (o *CacheServiceMetricsKeyHitsGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CacheServiceMetricsKeyHitsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsKeyHitsGetDefault creates a CacheServiceMetricsKeyHitsGetDefault with default headers values -func NewCacheServiceMetricsKeyHitsGetDefault(code int) *CacheServiceMetricsKeyHitsGetDefault { - return &CacheServiceMetricsKeyHitsGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsKeyHitsGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsKeyHitsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics key hits get default response -func (o *CacheServiceMetricsKeyHitsGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsKeyHitsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsKeyHitsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsKeyHitsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_hits_moving_avrage_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_hits_moving_avrage_get_parameters.go deleted file mode 100644 index f0964e6cde..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_hits_moving_avrage_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsKeyHitsMovingAvrageGetParams creates a new CacheServiceMetricsKeyHitsMovingAvrageGetParams object -// with the default values initialized. -func NewCacheServiceMetricsKeyHitsMovingAvrageGetParams() *CacheServiceMetricsKeyHitsMovingAvrageGetParams { - - return &CacheServiceMetricsKeyHitsMovingAvrageGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsKeyHitsMovingAvrageGetParamsWithTimeout creates a new CacheServiceMetricsKeyHitsMovingAvrageGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsKeyHitsMovingAvrageGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsKeyHitsMovingAvrageGetParams { - - return &CacheServiceMetricsKeyHitsMovingAvrageGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsKeyHitsMovingAvrageGetParamsWithContext creates a new CacheServiceMetricsKeyHitsMovingAvrageGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsKeyHitsMovingAvrageGetParamsWithContext(ctx context.Context) *CacheServiceMetricsKeyHitsMovingAvrageGetParams { - - return &CacheServiceMetricsKeyHitsMovingAvrageGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsKeyHitsMovingAvrageGetParamsWithHTTPClient creates a new CacheServiceMetricsKeyHitsMovingAvrageGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsKeyHitsMovingAvrageGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsKeyHitsMovingAvrageGetParams { - - return &CacheServiceMetricsKeyHitsMovingAvrageGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsKeyHitsMovingAvrageGetParams contains all the parameters to send to the API endpoint -for the cache service metrics key hits moving avrage get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsKeyHitsMovingAvrageGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics key hits moving avrage get params -func (o *CacheServiceMetricsKeyHitsMovingAvrageGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsKeyHitsMovingAvrageGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics key hits moving avrage get params -func (o *CacheServiceMetricsKeyHitsMovingAvrageGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics key hits moving avrage get params -func (o *CacheServiceMetricsKeyHitsMovingAvrageGetParams) WithContext(ctx context.Context) *CacheServiceMetricsKeyHitsMovingAvrageGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics key hits moving avrage get params -func (o *CacheServiceMetricsKeyHitsMovingAvrageGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics key hits moving avrage get params -func (o *CacheServiceMetricsKeyHitsMovingAvrageGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsKeyHitsMovingAvrageGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics key hits moving avrage get params -func (o *CacheServiceMetricsKeyHitsMovingAvrageGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsKeyHitsMovingAvrageGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_hits_moving_avrage_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_hits_moving_avrage_get_responses.go deleted file mode 100644 index b4dfb391eb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_hits_moving_avrage_get_responses.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsKeyHitsMovingAvrageGetReader is a Reader for the CacheServiceMetricsKeyHitsMovingAvrageGet structure. -type CacheServiceMetricsKeyHitsMovingAvrageGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsKeyHitsMovingAvrageGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsKeyHitsMovingAvrageGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsKeyHitsMovingAvrageGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsKeyHitsMovingAvrageGetOK creates a CacheServiceMetricsKeyHitsMovingAvrageGetOK with default headers values -func NewCacheServiceMetricsKeyHitsMovingAvrageGetOK() *CacheServiceMetricsKeyHitsMovingAvrageGetOK { - return &CacheServiceMetricsKeyHitsMovingAvrageGetOK{} -} - -/* -CacheServiceMetricsKeyHitsMovingAvrageGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsKeyHitsMovingAvrageGetOK struct { - Payload *models.RateMovingAverage -} - -func (o *CacheServiceMetricsKeyHitsMovingAvrageGetOK) GetPayload() *models.RateMovingAverage { - return o.Payload -} - -func (o *CacheServiceMetricsKeyHitsMovingAvrageGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.RateMovingAverage) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsKeyHitsMovingAvrageGetDefault creates a CacheServiceMetricsKeyHitsMovingAvrageGetDefault with default headers values -func NewCacheServiceMetricsKeyHitsMovingAvrageGetDefault(code int) *CacheServiceMetricsKeyHitsMovingAvrageGetDefault { - return &CacheServiceMetricsKeyHitsMovingAvrageGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsKeyHitsMovingAvrageGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsKeyHitsMovingAvrageGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics key hits moving avrage get default response -func (o *CacheServiceMetricsKeyHitsMovingAvrageGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsKeyHitsMovingAvrageGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsKeyHitsMovingAvrageGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsKeyHitsMovingAvrageGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_requests_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_requests_get_parameters.go deleted file mode 100644 index d710e706fa..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_requests_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsKeyRequestsGetParams creates a new CacheServiceMetricsKeyRequestsGetParams object -// with the default values initialized. -func NewCacheServiceMetricsKeyRequestsGetParams() *CacheServiceMetricsKeyRequestsGetParams { - - return &CacheServiceMetricsKeyRequestsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsKeyRequestsGetParamsWithTimeout creates a new CacheServiceMetricsKeyRequestsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsKeyRequestsGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsKeyRequestsGetParams { - - return &CacheServiceMetricsKeyRequestsGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsKeyRequestsGetParamsWithContext creates a new CacheServiceMetricsKeyRequestsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsKeyRequestsGetParamsWithContext(ctx context.Context) *CacheServiceMetricsKeyRequestsGetParams { - - return &CacheServiceMetricsKeyRequestsGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsKeyRequestsGetParamsWithHTTPClient creates a new CacheServiceMetricsKeyRequestsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsKeyRequestsGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsKeyRequestsGetParams { - - return &CacheServiceMetricsKeyRequestsGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsKeyRequestsGetParams contains all the parameters to send to the API endpoint -for the cache service metrics key requests get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsKeyRequestsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics key requests get params -func (o *CacheServiceMetricsKeyRequestsGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsKeyRequestsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics key requests get params -func (o *CacheServiceMetricsKeyRequestsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics key requests get params -func (o *CacheServiceMetricsKeyRequestsGetParams) WithContext(ctx context.Context) *CacheServiceMetricsKeyRequestsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics key requests get params -func (o *CacheServiceMetricsKeyRequestsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics key requests get params -func (o *CacheServiceMetricsKeyRequestsGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsKeyRequestsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics key requests get params -func (o *CacheServiceMetricsKeyRequestsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsKeyRequestsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_requests_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_requests_get_responses.go deleted file mode 100644 index fdfa45f704..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_requests_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsKeyRequestsGetReader is a Reader for the CacheServiceMetricsKeyRequestsGet structure. -type CacheServiceMetricsKeyRequestsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsKeyRequestsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsKeyRequestsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsKeyRequestsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsKeyRequestsGetOK creates a CacheServiceMetricsKeyRequestsGetOK with default headers values -func NewCacheServiceMetricsKeyRequestsGetOK() *CacheServiceMetricsKeyRequestsGetOK { - return &CacheServiceMetricsKeyRequestsGetOK{} -} - -/* -CacheServiceMetricsKeyRequestsGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsKeyRequestsGetOK struct { - Payload interface{} -} - -func (o *CacheServiceMetricsKeyRequestsGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CacheServiceMetricsKeyRequestsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsKeyRequestsGetDefault creates a CacheServiceMetricsKeyRequestsGetDefault with default headers values -func NewCacheServiceMetricsKeyRequestsGetDefault(code int) *CacheServiceMetricsKeyRequestsGetDefault { - return &CacheServiceMetricsKeyRequestsGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsKeyRequestsGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsKeyRequestsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics key requests get default response -func (o *CacheServiceMetricsKeyRequestsGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsKeyRequestsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsKeyRequestsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsKeyRequestsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_requests_moving_avrage_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_requests_moving_avrage_get_parameters.go deleted file mode 100644 index 848b4b16ea..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_requests_moving_avrage_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsKeyRequestsMovingAvrageGetParams creates a new CacheServiceMetricsKeyRequestsMovingAvrageGetParams object -// with the default values initialized. -func NewCacheServiceMetricsKeyRequestsMovingAvrageGetParams() *CacheServiceMetricsKeyRequestsMovingAvrageGetParams { - - return &CacheServiceMetricsKeyRequestsMovingAvrageGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsKeyRequestsMovingAvrageGetParamsWithTimeout creates a new CacheServiceMetricsKeyRequestsMovingAvrageGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsKeyRequestsMovingAvrageGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsKeyRequestsMovingAvrageGetParams { - - return &CacheServiceMetricsKeyRequestsMovingAvrageGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsKeyRequestsMovingAvrageGetParamsWithContext creates a new CacheServiceMetricsKeyRequestsMovingAvrageGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsKeyRequestsMovingAvrageGetParamsWithContext(ctx context.Context) *CacheServiceMetricsKeyRequestsMovingAvrageGetParams { - - return &CacheServiceMetricsKeyRequestsMovingAvrageGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsKeyRequestsMovingAvrageGetParamsWithHTTPClient creates a new CacheServiceMetricsKeyRequestsMovingAvrageGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsKeyRequestsMovingAvrageGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsKeyRequestsMovingAvrageGetParams { - - return &CacheServiceMetricsKeyRequestsMovingAvrageGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsKeyRequestsMovingAvrageGetParams contains all the parameters to send to the API endpoint -for the cache service metrics key requests moving avrage get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsKeyRequestsMovingAvrageGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics key requests moving avrage get params -func (o *CacheServiceMetricsKeyRequestsMovingAvrageGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsKeyRequestsMovingAvrageGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics key requests moving avrage get params -func (o *CacheServiceMetricsKeyRequestsMovingAvrageGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics key requests moving avrage get params -func (o *CacheServiceMetricsKeyRequestsMovingAvrageGetParams) WithContext(ctx context.Context) *CacheServiceMetricsKeyRequestsMovingAvrageGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics key requests moving avrage get params -func (o *CacheServiceMetricsKeyRequestsMovingAvrageGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics key requests moving avrage get params -func (o *CacheServiceMetricsKeyRequestsMovingAvrageGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsKeyRequestsMovingAvrageGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics key requests moving avrage get params -func (o *CacheServiceMetricsKeyRequestsMovingAvrageGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsKeyRequestsMovingAvrageGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_requests_moving_avrage_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_requests_moving_avrage_get_responses.go deleted file mode 100644 index ef11b91d27..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_requests_moving_avrage_get_responses.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsKeyRequestsMovingAvrageGetReader is a Reader for the CacheServiceMetricsKeyRequestsMovingAvrageGet structure. -type CacheServiceMetricsKeyRequestsMovingAvrageGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsKeyRequestsMovingAvrageGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsKeyRequestsMovingAvrageGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsKeyRequestsMovingAvrageGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsKeyRequestsMovingAvrageGetOK creates a CacheServiceMetricsKeyRequestsMovingAvrageGetOK with default headers values -func NewCacheServiceMetricsKeyRequestsMovingAvrageGetOK() *CacheServiceMetricsKeyRequestsMovingAvrageGetOK { - return &CacheServiceMetricsKeyRequestsMovingAvrageGetOK{} -} - -/* -CacheServiceMetricsKeyRequestsMovingAvrageGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsKeyRequestsMovingAvrageGetOK struct { - Payload *models.RateMovingAverage -} - -func (o *CacheServiceMetricsKeyRequestsMovingAvrageGetOK) GetPayload() *models.RateMovingAverage { - return o.Payload -} - -func (o *CacheServiceMetricsKeyRequestsMovingAvrageGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.RateMovingAverage) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsKeyRequestsMovingAvrageGetDefault creates a CacheServiceMetricsKeyRequestsMovingAvrageGetDefault with default headers values -func NewCacheServiceMetricsKeyRequestsMovingAvrageGetDefault(code int) *CacheServiceMetricsKeyRequestsMovingAvrageGetDefault { - return &CacheServiceMetricsKeyRequestsMovingAvrageGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsKeyRequestsMovingAvrageGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsKeyRequestsMovingAvrageGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics key requests moving avrage get default response -func (o *CacheServiceMetricsKeyRequestsMovingAvrageGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsKeyRequestsMovingAvrageGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsKeyRequestsMovingAvrageGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsKeyRequestsMovingAvrageGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_size_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_size_get_parameters.go deleted file mode 100644 index 22f91a18c9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_size_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsKeySizeGetParams creates a new CacheServiceMetricsKeySizeGetParams object -// with the default values initialized. -func NewCacheServiceMetricsKeySizeGetParams() *CacheServiceMetricsKeySizeGetParams { - - return &CacheServiceMetricsKeySizeGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsKeySizeGetParamsWithTimeout creates a new CacheServiceMetricsKeySizeGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsKeySizeGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsKeySizeGetParams { - - return &CacheServiceMetricsKeySizeGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsKeySizeGetParamsWithContext creates a new CacheServiceMetricsKeySizeGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsKeySizeGetParamsWithContext(ctx context.Context) *CacheServiceMetricsKeySizeGetParams { - - return &CacheServiceMetricsKeySizeGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsKeySizeGetParamsWithHTTPClient creates a new CacheServiceMetricsKeySizeGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsKeySizeGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsKeySizeGetParams { - - return &CacheServiceMetricsKeySizeGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsKeySizeGetParams contains all the parameters to send to the API endpoint -for the cache service metrics key size get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsKeySizeGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics key size get params -func (o *CacheServiceMetricsKeySizeGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsKeySizeGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics key size get params -func (o *CacheServiceMetricsKeySizeGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics key size get params -func (o *CacheServiceMetricsKeySizeGetParams) WithContext(ctx context.Context) *CacheServiceMetricsKeySizeGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics key size get params -func (o *CacheServiceMetricsKeySizeGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics key size get params -func (o *CacheServiceMetricsKeySizeGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsKeySizeGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics key size get params -func (o *CacheServiceMetricsKeySizeGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsKeySizeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_size_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_size_get_responses.go deleted file mode 100644 index 40bf61717d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_key_size_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsKeySizeGetReader is a Reader for the CacheServiceMetricsKeySizeGet structure. -type CacheServiceMetricsKeySizeGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsKeySizeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsKeySizeGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsKeySizeGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsKeySizeGetOK creates a CacheServiceMetricsKeySizeGetOK with default headers values -func NewCacheServiceMetricsKeySizeGetOK() *CacheServiceMetricsKeySizeGetOK { - return &CacheServiceMetricsKeySizeGetOK{} -} - -/* -CacheServiceMetricsKeySizeGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsKeySizeGetOK struct { - Payload interface{} -} - -func (o *CacheServiceMetricsKeySizeGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CacheServiceMetricsKeySizeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsKeySizeGetDefault creates a CacheServiceMetricsKeySizeGetDefault with default headers values -func NewCacheServiceMetricsKeySizeGetDefault(code int) *CacheServiceMetricsKeySizeGetDefault { - return &CacheServiceMetricsKeySizeGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsKeySizeGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsKeySizeGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics key size get default response -func (o *CacheServiceMetricsKeySizeGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsKeySizeGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsKeySizeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsKeySizeGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_capacity_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_capacity_get_parameters.go deleted file mode 100644 index 11f402c9e4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_capacity_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsRowCapacityGetParams creates a new CacheServiceMetricsRowCapacityGetParams object -// with the default values initialized. -func NewCacheServiceMetricsRowCapacityGetParams() *CacheServiceMetricsRowCapacityGetParams { - - return &CacheServiceMetricsRowCapacityGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsRowCapacityGetParamsWithTimeout creates a new CacheServiceMetricsRowCapacityGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsRowCapacityGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsRowCapacityGetParams { - - return &CacheServiceMetricsRowCapacityGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsRowCapacityGetParamsWithContext creates a new CacheServiceMetricsRowCapacityGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsRowCapacityGetParamsWithContext(ctx context.Context) *CacheServiceMetricsRowCapacityGetParams { - - return &CacheServiceMetricsRowCapacityGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsRowCapacityGetParamsWithHTTPClient creates a new CacheServiceMetricsRowCapacityGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsRowCapacityGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsRowCapacityGetParams { - - return &CacheServiceMetricsRowCapacityGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsRowCapacityGetParams contains all the parameters to send to the API endpoint -for the cache service metrics row capacity get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsRowCapacityGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics row capacity get params -func (o *CacheServiceMetricsRowCapacityGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsRowCapacityGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics row capacity get params -func (o *CacheServiceMetricsRowCapacityGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics row capacity get params -func (o *CacheServiceMetricsRowCapacityGetParams) WithContext(ctx context.Context) *CacheServiceMetricsRowCapacityGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics row capacity get params -func (o *CacheServiceMetricsRowCapacityGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics row capacity get params -func (o *CacheServiceMetricsRowCapacityGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsRowCapacityGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics row capacity get params -func (o *CacheServiceMetricsRowCapacityGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsRowCapacityGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_capacity_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_capacity_get_responses.go deleted file mode 100644 index a1a2d24af8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_capacity_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsRowCapacityGetReader is a Reader for the CacheServiceMetricsRowCapacityGet structure. -type CacheServiceMetricsRowCapacityGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsRowCapacityGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsRowCapacityGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsRowCapacityGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsRowCapacityGetOK creates a CacheServiceMetricsRowCapacityGetOK with default headers values -func NewCacheServiceMetricsRowCapacityGetOK() *CacheServiceMetricsRowCapacityGetOK { - return &CacheServiceMetricsRowCapacityGetOK{} -} - -/* -CacheServiceMetricsRowCapacityGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsRowCapacityGetOK struct { - Payload interface{} -} - -func (o *CacheServiceMetricsRowCapacityGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CacheServiceMetricsRowCapacityGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsRowCapacityGetDefault creates a CacheServiceMetricsRowCapacityGetDefault with default headers values -func NewCacheServiceMetricsRowCapacityGetDefault(code int) *CacheServiceMetricsRowCapacityGetDefault { - return &CacheServiceMetricsRowCapacityGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsRowCapacityGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsRowCapacityGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics row capacity get default response -func (o *CacheServiceMetricsRowCapacityGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsRowCapacityGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsRowCapacityGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsRowCapacityGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_entries_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_entries_get_parameters.go deleted file mode 100644 index f4b49b5b33..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_entries_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsRowEntriesGetParams creates a new CacheServiceMetricsRowEntriesGetParams object -// with the default values initialized. -func NewCacheServiceMetricsRowEntriesGetParams() *CacheServiceMetricsRowEntriesGetParams { - - return &CacheServiceMetricsRowEntriesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsRowEntriesGetParamsWithTimeout creates a new CacheServiceMetricsRowEntriesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsRowEntriesGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsRowEntriesGetParams { - - return &CacheServiceMetricsRowEntriesGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsRowEntriesGetParamsWithContext creates a new CacheServiceMetricsRowEntriesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsRowEntriesGetParamsWithContext(ctx context.Context) *CacheServiceMetricsRowEntriesGetParams { - - return &CacheServiceMetricsRowEntriesGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsRowEntriesGetParamsWithHTTPClient creates a new CacheServiceMetricsRowEntriesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsRowEntriesGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsRowEntriesGetParams { - - return &CacheServiceMetricsRowEntriesGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsRowEntriesGetParams contains all the parameters to send to the API endpoint -for the cache service metrics row entries get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsRowEntriesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics row entries get params -func (o *CacheServiceMetricsRowEntriesGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsRowEntriesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics row entries get params -func (o *CacheServiceMetricsRowEntriesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics row entries get params -func (o *CacheServiceMetricsRowEntriesGetParams) WithContext(ctx context.Context) *CacheServiceMetricsRowEntriesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics row entries get params -func (o *CacheServiceMetricsRowEntriesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics row entries get params -func (o *CacheServiceMetricsRowEntriesGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsRowEntriesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics row entries get params -func (o *CacheServiceMetricsRowEntriesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsRowEntriesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_entries_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_entries_get_responses.go deleted file mode 100644 index c21a89c5d8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_entries_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsRowEntriesGetReader is a Reader for the CacheServiceMetricsRowEntriesGet structure. -type CacheServiceMetricsRowEntriesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsRowEntriesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsRowEntriesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsRowEntriesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsRowEntriesGetOK creates a CacheServiceMetricsRowEntriesGetOK with default headers values -func NewCacheServiceMetricsRowEntriesGetOK() *CacheServiceMetricsRowEntriesGetOK { - return &CacheServiceMetricsRowEntriesGetOK{} -} - -/* -CacheServiceMetricsRowEntriesGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsRowEntriesGetOK struct { - Payload int32 -} - -func (o *CacheServiceMetricsRowEntriesGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *CacheServiceMetricsRowEntriesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsRowEntriesGetDefault creates a CacheServiceMetricsRowEntriesGetDefault with default headers values -func NewCacheServiceMetricsRowEntriesGetDefault(code int) *CacheServiceMetricsRowEntriesGetDefault { - return &CacheServiceMetricsRowEntriesGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsRowEntriesGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsRowEntriesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics row entries get default response -func (o *CacheServiceMetricsRowEntriesGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsRowEntriesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsRowEntriesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsRowEntriesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_hit_rate_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_hit_rate_get_parameters.go deleted file mode 100644 index f6ec3b5c18..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_hit_rate_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsRowHitRateGetParams creates a new CacheServiceMetricsRowHitRateGetParams object -// with the default values initialized. -func NewCacheServiceMetricsRowHitRateGetParams() *CacheServiceMetricsRowHitRateGetParams { - - return &CacheServiceMetricsRowHitRateGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsRowHitRateGetParamsWithTimeout creates a new CacheServiceMetricsRowHitRateGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsRowHitRateGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsRowHitRateGetParams { - - return &CacheServiceMetricsRowHitRateGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsRowHitRateGetParamsWithContext creates a new CacheServiceMetricsRowHitRateGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsRowHitRateGetParamsWithContext(ctx context.Context) *CacheServiceMetricsRowHitRateGetParams { - - return &CacheServiceMetricsRowHitRateGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsRowHitRateGetParamsWithHTTPClient creates a new CacheServiceMetricsRowHitRateGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsRowHitRateGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsRowHitRateGetParams { - - return &CacheServiceMetricsRowHitRateGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsRowHitRateGetParams contains all the parameters to send to the API endpoint -for the cache service metrics row hit rate get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsRowHitRateGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics row hit rate get params -func (o *CacheServiceMetricsRowHitRateGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsRowHitRateGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics row hit rate get params -func (o *CacheServiceMetricsRowHitRateGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics row hit rate get params -func (o *CacheServiceMetricsRowHitRateGetParams) WithContext(ctx context.Context) *CacheServiceMetricsRowHitRateGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics row hit rate get params -func (o *CacheServiceMetricsRowHitRateGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics row hit rate get params -func (o *CacheServiceMetricsRowHitRateGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsRowHitRateGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics row hit rate get params -func (o *CacheServiceMetricsRowHitRateGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsRowHitRateGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_hit_rate_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_hit_rate_get_responses.go deleted file mode 100644 index ff364d4a08..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_hit_rate_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsRowHitRateGetReader is a Reader for the CacheServiceMetricsRowHitRateGet structure. -type CacheServiceMetricsRowHitRateGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsRowHitRateGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsRowHitRateGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsRowHitRateGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsRowHitRateGetOK creates a CacheServiceMetricsRowHitRateGetOK with default headers values -func NewCacheServiceMetricsRowHitRateGetOK() *CacheServiceMetricsRowHitRateGetOK { - return &CacheServiceMetricsRowHitRateGetOK{} -} - -/* -CacheServiceMetricsRowHitRateGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsRowHitRateGetOK struct { - Payload interface{} -} - -func (o *CacheServiceMetricsRowHitRateGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CacheServiceMetricsRowHitRateGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsRowHitRateGetDefault creates a CacheServiceMetricsRowHitRateGetDefault with default headers values -func NewCacheServiceMetricsRowHitRateGetDefault(code int) *CacheServiceMetricsRowHitRateGetDefault { - return &CacheServiceMetricsRowHitRateGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsRowHitRateGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsRowHitRateGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics row hit rate get default response -func (o *CacheServiceMetricsRowHitRateGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsRowHitRateGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsRowHitRateGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsRowHitRateGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_hits_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_hits_get_parameters.go deleted file mode 100644 index 7b2edbe9a4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_hits_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsRowHitsGetParams creates a new CacheServiceMetricsRowHitsGetParams object -// with the default values initialized. -func NewCacheServiceMetricsRowHitsGetParams() *CacheServiceMetricsRowHitsGetParams { - - return &CacheServiceMetricsRowHitsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsRowHitsGetParamsWithTimeout creates a new CacheServiceMetricsRowHitsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsRowHitsGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsRowHitsGetParams { - - return &CacheServiceMetricsRowHitsGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsRowHitsGetParamsWithContext creates a new CacheServiceMetricsRowHitsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsRowHitsGetParamsWithContext(ctx context.Context) *CacheServiceMetricsRowHitsGetParams { - - return &CacheServiceMetricsRowHitsGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsRowHitsGetParamsWithHTTPClient creates a new CacheServiceMetricsRowHitsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsRowHitsGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsRowHitsGetParams { - - return &CacheServiceMetricsRowHitsGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsRowHitsGetParams contains all the parameters to send to the API endpoint -for the cache service metrics row hits get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsRowHitsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics row hits get params -func (o *CacheServiceMetricsRowHitsGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsRowHitsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics row hits get params -func (o *CacheServiceMetricsRowHitsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics row hits get params -func (o *CacheServiceMetricsRowHitsGetParams) WithContext(ctx context.Context) *CacheServiceMetricsRowHitsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics row hits get params -func (o *CacheServiceMetricsRowHitsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics row hits get params -func (o *CacheServiceMetricsRowHitsGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsRowHitsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics row hits get params -func (o *CacheServiceMetricsRowHitsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsRowHitsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_hits_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_hits_get_responses.go deleted file mode 100644 index bb624564ed..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_hits_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsRowHitsGetReader is a Reader for the CacheServiceMetricsRowHitsGet structure. -type CacheServiceMetricsRowHitsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsRowHitsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsRowHitsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsRowHitsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsRowHitsGetOK creates a CacheServiceMetricsRowHitsGetOK with default headers values -func NewCacheServiceMetricsRowHitsGetOK() *CacheServiceMetricsRowHitsGetOK { - return &CacheServiceMetricsRowHitsGetOK{} -} - -/* -CacheServiceMetricsRowHitsGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsRowHitsGetOK struct { - Payload interface{} -} - -func (o *CacheServiceMetricsRowHitsGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CacheServiceMetricsRowHitsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsRowHitsGetDefault creates a CacheServiceMetricsRowHitsGetDefault with default headers values -func NewCacheServiceMetricsRowHitsGetDefault(code int) *CacheServiceMetricsRowHitsGetDefault { - return &CacheServiceMetricsRowHitsGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsRowHitsGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsRowHitsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics row hits get default response -func (o *CacheServiceMetricsRowHitsGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsRowHitsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsRowHitsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsRowHitsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_hits_moving_avrage_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_hits_moving_avrage_get_parameters.go deleted file mode 100644 index b32df73bd5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_hits_moving_avrage_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsRowHitsMovingAvrageGetParams creates a new CacheServiceMetricsRowHitsMovingAvrageGetParams object -// with the default values initialized. -func NewCacheServiceMetricsRowHitsMovingAvrageGetParams() *CacheServiceMetricsRowHitsMovingAvrageGetParams { - - return &CacheServiceMetricsRowHitsMovingAvrageGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsRowHitsMovingAvrageGetParamsWithTimeout creates a new CacheServiceMetricsRowHitsMovingAvrageGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsRowHitsMovingAvrageGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsRowHitsMovingAvrageGetParams { - - return &CacheServiceMetricsRowHitsMovingAvrageGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsRowHitsMovingAvrageGetParamsWithContext creates a new CacheServiceMetricsRowHitsMovingAvrageGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsRowHitsMovingAvrageGetParamsWithContext(ctx context.Context) *CacheServiceMetricsRowHitsMovingAvrageGetParams { - - return &CacheServiceMetricsRowHitsMovingAvrageGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsRowHitsMovingAvrageGetParamsWithHTTPClient creates a new CacheServiceMetricsRowHitsMovingAvrageGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsRowHitsMovingAvrageGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsRowHitsMovingAvrageGetParams { - - return &CacheServiceMetricsRowHitsMovingAvrageGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsRowHitsMovingAvrageGetParams contains all the parameters to send to the API endpoint -for the cache service metrics row hits moving avrage get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsRowHitsMovingAvrageGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics row hits moving avrage get params -func (o *CacheServiceMetricsRowHitsMovingAvrageGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsRowHitsMovingAvrageGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics row hits moving avrage get params -func (o *CacheServiceMetricsRowHitsMovingAvrageGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics row hits moving avrage get params -func (o *CacheServiceMetricsRowHitsMovingAvrageGetParams) WithContext(ctx context.Context) *CacheServiceMetricsRowHitsMovingAvrageGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics row hits moving avrage get params -func (o *CacheServiceMetricsRowHitsMovingAvrageGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics row hits moving avrage get params -func (o *CacheServiceMetricsRowHitsMovingAvrageGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsRowHitsMovingAvrageGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics row hits moving avrage get params -func (o *CacheServiceMetricsRowHitsMovingAvrageGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsRowHitsMovingAvrageGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_hits_moving_avrage_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_hits_moving_avrage_get_responses.go deleted file mode 100644 index fca46a800c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_hits_moving_avrage_get_responses.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsRowHitsMovingAvrageGetReader is a Reader for the CacheServiceMetricsRowHitsMovingAvrageGet structure. -type CacheServiceMetricsRowHitsMovingAvrageGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsRowHitsMovingAvrageGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsRowHitsMovingAvrageGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsRowHitsMovingAvrageGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsRowHitsMovingAvrageGetOK creates a CacheServiceMetricsRowHitsMovingAvrageGetOK with default headers values -func NewCacheServiceMetricsRowHitsMovingAvrageGetOK() *CacheServiceMetricsRowHitsMovingAvrageGetOK { - return &CacheServiceMetricsRowHitsMovingAvrageGetOK{} -} - -/* -CacheServiceMetricsRowHitsMovingAvrageGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsRowHitsMovingAvrageGetOK struct { - Payload *models.RateMovingAverage -} - -func (o *CacheServiceMetricsRowHitsMovingAvrageGetOK) GetPayload() *models.RateMovingAverage { - return o.Payload -} - -func (o *CacheServiceMetricsRowHitsMovingAvrageGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.RateMovingAverage) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsRowHitsMovingAvrageGetDefault creates a CacheServiceMetricsRowHitsMovingAvrageGetDefault with default headers values -func NewCacheServiceMetricsRowHitsMovingAvrageGetDefault(code int) *CacheServiceMetricsRowHitsMovingAvrageGetDefault { - return &CacheServiceMetricsRowHitsMovingAvrageGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsRowHitsMovingAvrageGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsRowHitsMovingAvrageGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics row hits moving avrage get default response -func (o *CacheServiceMetricsRowHitsMovingAvrageGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsRowHitsMovingAvrageGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsRowHitsMovingAvrageGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsRowHitsMovingAvrageGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_requests_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_requests_get_parameters.go deleted file mode 100644 index 57cf49e978..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_requests_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsRowRequestsGetParams creates a new CacheServiceMetricsRowRequestsGetParams object -// with the default values initialized. -func NewCacheServiceMetricsRowRequestsGetParams() *CacheServiceMetricsRowRequestsGetParams { - - return &CacheServiceMetricsRowRequestsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsRowRequestsGetParamsWithTimeout creates a new CacheServiceMetricsRowRequestsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsRowRequestsGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsRowRequestsGetParams { - - return &CacheServiceMetricsRowRequestsGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsRowRequestsGetParamsWithContext creates a new CacheServiceMetricsRowRequestsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsRowRequestsGetParamsWithContext(ctx context.Context) *CacheServiceMetricsRowRequestsGetParams { - - return &CacheServiceMetricsRowRequestsGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsRowRequestsGetParamsWithHTTPClient creates a new CacheServiceMetricsRowRequestsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsRowRequestsGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsRowRequestsGetParams { - - return &CacheServiceMetricsRowRequestsGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsRowRequestsGetParams contains all the parameters to send to the API endpoint -for the cache service metrics row requests get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsRowRequestsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics row requests get params -func (o *CacheServiceMetricsRowRequestsGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsRowRequestsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics row requests get params -func (o *CacheServiceMetricsRowRequestsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics row requests get params -func (o *CacheServiceMetricsRowRequestsGetParams) WithContext(ctx context.Context) *CacheServiceMetricsRowRequestsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics row requests get params -func (o *CacheServiceMetricsRowRequestsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics row requests get params -func (o *CacheServiceMetricsRowRequestsGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsRowRequestsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics row requests get params -func (o *CacheServiceMetricsRowRequestsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsRowRequestsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_requests_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_requests_get_responses.go deleted file mode 100644 index fe083b4c18..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_requests_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsRowRequestsGetReader is a Reader for the CacheServiceMetricsRowRequestsGet structure. -type CacheServiceMetricsRowRequestsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsRowRequestsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsRowRequestsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsRowRequestsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsRowRequestsGetOK creates a CacheServiceMetricsRowRequestsGetOK with default headers values -func NewCacheServiceMetricsRowRequestsGetOK() *CacheServiceMetricsRowRequestsGetOK { - return &CacheServiceMetricsRowRequestsGetOK{} -} - -/* -CacheServiceMetricsRowRequestsGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsRowRequestsGetOK struct { - Payload interface{} -} - -func (o *CacheServiceMetricsRowRequestsGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CacheServiceMetricsRowRequestsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsRowRequestsGetDefault creates a CacheServiceMetricsRowRequestsGetDefault with default headers values -func NewCacheServiceMetricsRowRequestsGetDefault(code int) *CacheServiceMetricsRowRequestsGetDefault { - return &CacheServiceMetricsRowRequestsGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsRowRequestsGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsRowRequestsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics row requests get default response -func (o *CacheServiceMetricsRowRequestsGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsRowRequestsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsRowRequestsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsRowRequestsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_requests_moving_avrage_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_requests_moving_avrage_get_parameters.go deleted file mode 100644 index 22bec6db3d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_requests_moving_avrage_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsRowRequestsMovingAvrageGetParams creates a new CacheServiceMetricsRowRequestsMovingAvrageGetParams object -// with the default values initialized. -func NewCacheServiceMetricsRowRequestsMovingAvrageGetParams() *CacheServiceMetricsRowRequestsMovingAvrageGetParams { - - return &CacheServiceMetricsRowRequestsMovingAvrageGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsRowRequestsMovingAvrageGetParamsWithTimeout creates a new CacheServiceMetricsRowRequestsMovingAvrageGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsRowRequestsMovingAvrageGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsRowRequestsMovingAvrageGetParams { - - return &CacheServiceMetricsRowRequestsMovingAvrageGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsRowRequestsMovingAvrageGetParamsWithContext creates a new CacheServiceMetricsRowRequestsMovingAvrageGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsRowRequestsMovingAvrageGetParamsWithContext(ctx context.Context) *CacheServiceMetricsRowRequestsMovingAvrageGetParams { - - return &CacheServiceMetricsRowRequestsMovingAvrageGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsRowRequestsMovingAvrageGetParamsWithHTTPClient creates a new CacheServiceMetricsRowRequestsMovingAvrageGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsRowRequestsMovingAvrageGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsRowRequestsMovingAvrageGetParams { - - return &CacheServiceMetricsRowRequestsMovingAvrageGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsRowRequestsMovingAvrageGetParams contains all the parameters to send to the API endpoint -for the cache service metrics row requests moving avrage get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsRowRequestsMovingAvrageGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics row requests moving avrage get params -func (o *CacheServiceMetricsRowRequestsMovingAvrageGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsRowRequestsMovingAvrageGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics row requests moving avrage get params -func (o *CacheServiceMetricsRowRequestsMovingAvrageGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics row requests moving avrage get params -func (o *CacheServiceMetricsRowRequestsMovingAvrageGetParams) WithContext(ctx context.Context) *CacheServiceMetricsRowRequestsMovingAvrageGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics row requests moving avrage get params -func (o *CacheServiceMetricsRowRequestsMovingAvrageGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics row requests moving avrage get params -func (o *CacheServiceMetricsRowRequestsMovingAvrageGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsRowRequestsMovingAvrageGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics row requests moving avrage get params -func (o *CacheServiceMetricsRowRequestsMovingAvrageGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsRowRequestsMovingAvrageGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_requests_moving_avrage_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_requests_moving_avrage_get_responses.go deleted file mode 100644 index 50972f19c6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_requests_moving_avrage_get_responses.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsRowRequestsMovingAvrageGetReader is a Reader for the CacheServiceMetricsRowRequestsMovingAvrageGet structure. -type CacheServiceMetricsRowRequestsMovingAvrageGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsRowRequestsMovingAvrageGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsRowRequestsMovingAvrageGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsRowRequestsMovingAvrageGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsRowRequestsMovingAvrageGetOK creates a CacheServiceMetricsRowRequestsMovingAvrageGetOK with default headers values -func NewCacheServiceMetricsRowRequestsMovingAvrageGetOK() *CacheServiceMetricsRowRequestsMovingAvrageGetOK { - return &CacheServiceMetricsRowRequestsMovingAvrageGetOK{} -} - -/* -CacheServiceMetricsRowRequestsMovingAvrageGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsRowRequestsMovingAvrageGetOK struct { - Payload *models.RateMovingAverage -} - -func (o *CacheServiceMetricsRowRequestsMovingAvrageGetOK) GetPayload() *models.RateMovingAverage { - return o.Payload -} - -func (o *CacheServiceMetricsRowRequestsMovingAvrageGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.RateMovingAverage) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsRowRequestsMovingAvrageGetDefault creates a CacheServiceMetricsRowRequestsMovingAvrageGetDefault with default headers values -func NewCacheServiceMetricsRowRequestsMovingAvrageGetDefault(code int) *CacheServiceMetricsRowRequestsMovingAvrageGetDefault { - return &CacheServiceMetricsRowRequestsMovingAvrageGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsRowRequestsMovingAvrageGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsRowRequestsMovingAvrageGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics row requests moving avrage get default response -func (o *CacheServiceMetricsRowRequestsMovingAvrageGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsRowRequestsMovingAvrageGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsRowRequestsMovingAvrageGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsRowRequestsMovingAvrageGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_size_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_size_get_parameters.go deleted file mode 100644 index 44c486be0a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_size_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceMetricsRowSizeGetParams creates a new CacheServiceMetricsRowSizeGetParams object -// with the default values initialized. -func NewCacheServiceMetricsRowSizeGetParams() *CacheServiceMetricsRowSizeGetParams { - - return &CacheServiceMetricsRowSizeGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceMetricsRowSizeGetParamsWithTimeout creates a new CacheServiceMetricsRowSizeGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceMetricsRowSizeGetParamsWithTimeout(timeout time.Duration) *CacheServiceMetricsRowSizeGetParams { - - return &CacheServiceMetricsRowSizeGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceMetricsRowSizeGetParamsWithContext creates a new CacheServiceMetricsRowSizeGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceMetricsRowSizeGetParamsWithContext(ctx context.Context) *CacheServiceMetricsRowSizeGetParams { - - return &CacheServiceMetricsRowSizeGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceMetricsRowSizeGetParamsWithHTTPClient creates a new CacheServiceMetricsRowSizeGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceMetricsRowSizeGetParamsWithHTTPClient(client *http.Client) *CacheServiceMetricsRowSizeGetParams { - - return &CacheServiceMetricsRowSizeGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceMetricsRowSizeGetParams contains all the parameters to send to the API endpoint -for the cache service metrics row size get operation typically these are written to a http.Request -*/ -type CacheServiceMetricsRowSizeGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service metrics row size get params -func (o *CacheServiceMetricsRowSizeGetParams) WithTimeout(timeout time.Duration) *CacheServiceMetricsRowSizeGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service metrics row size get params -func (o *CacheServiceMetricsRowSizeGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service metrics row size get params -func (o *CacheServiceMetricsRowSizeGetParams) WithContext(ctx context.Context) *CacheServiceMetricsRowSizeGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service metrics row size get params -func (o *CacheServiceMetricsRowSizeGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service metrics row size get params -func (o *CacheServiceMetricsRowSizeGetParams) WithHTTPClient(client *http.Client) *CacheServiceMetricsRowSizeGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service metrics row size get params -func (o *CacheServiceMetricsRowSizeGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceMetricsRowSizeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_size_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_size_get_responses.go deleted file mode 100644 index 8996e07702..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_metrics_row_size_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceMetricsRowSizeGetReader is a Reader for the CacheServiceMetricsRowSizeGet structure. -type CacheServiceMetricsRowSizeGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceMetricsRowSizeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceMetricsRowSizeGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceMetricsRowSizeGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceMetricsRowSizeGetOK creates a CacheServiceMetricsRowSizeGetOK with default headers values -func NewCacheServiceMetricsRowSizeGetOK() *CacheServiceMetricsRowSizeGetOK { - return &CacheServiceMetricsRowSizeGetOK{} -} - -/* -CacheServiceMetricsRowSizeGetOK handles this case with default header values. - -Success -*/ -type CacheServiceMetricsRowSizeGetOK struct { - Payload interface{} -} - -func (o *CacheServiceMetricsRowSizeGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CacheServiceMetricsRowSizeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceMetricsRowSizeGetDefault creates a CacheServiceMetricsRowSizeGetDefault with default headers values -func NewCacheServiceMetricsRowSizeGetDefault(code int) *CacheServiceMetricsRowSizeGetDefault { - return &CacheServiceMetricsRowSizeGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceMetricsRowSizeGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceMetricsRowSizeGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service metrics row size get default response -func (o *CacheServiceMetricsRowSizeGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceMetricsRowSizeGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceMetricsRowSizeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceMetricsRowSizeGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_capacity_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_capacity_post_parameters.go deleted file mode 100644 index 39646fcf24..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_capacity_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceRowCacheCapacityPostParams creates a new CacheServiceRowCacheCapacityPostParams object -// with the default values initialized. -func NewCacheServiceRowCacheCapacityPostParams() *CacheServiceRowCacheCapacityPostParams { - var () - return &CacheServiceRowCacheCapacityPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceRowCacheCapacityPostParamsWithTimeout creates a new CacheServiceRowCacheCapacityPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceRowCacheCapacityPostParamsWithTimeout(timeout time.Duration) *CacheServiceRowCacheCapacityPostParams { - var () - return &CacheServiceRowCacheCapacityPostParams{ - - timeout: timeout, - } -} - -// NewCacheServiceRowCacheCapacityPostParamsWithContext creates a new CacheServiceRowCacheCapacityPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceRowCacheCapacityPostParamsWithContext(ctx context.Context) *CacheServiceRowCacheCapacityPostParams { - var () - return &CacheServiceRowCacheCapacityPostParams{ - - Context: ctx, - } -} - -// NewCacheServiceRowCacheCapacityPostParamsWithHTTPClient creates a new CacheServiceRowCacheCapacityPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceRowCacheCapacityPostParamsWithHTTPClient(client *http.Client) *CacheServiceRowCacheCapacityPostParams { - var () - return &CacheServiceRowCacheCapacityPostParams{ - HTTPClient: client, - } -} - -/* -CacheServiceRowCacheCapacityPostParams contains all the parameters to send to the API endpoint -for the cache service row cache capacity post operation typically these are written to a http.Request -*/ -type CacheServiceRowCacheCapacityPostParams struct { - - /*Capacity - row cache capacity in mb - - */ - Capacity string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service row cache capacity post params -func (o *CacheServiceRowCacheCapacityPostParams) WithTimeout(timeout time.Duration) *CacheServiceRowCacheCapacityPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service row cache capacity post params -func (o *CacheServiceRowCacheCapacityPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service row cache capacity post params -func (o *CacheServiceRowCacheCapacityPostParams) WithContext(ctx context.Context) *CacheServiceRowCacheCapacityPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service row cache capacity post params -func (o *CacheServiceRowCacheCapacityPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service row cache capacity post params -func (o *CacheServiceRowCacheCapacityPostParams) WithHTTPClient(client *http.Client) *CacheServiceRowCacheCapacityPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service row cache capacity post params -func (o *CacheServiceRowCacheCapacityPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCapacity adds the capacity to the cache service row cache capacity post params -func (o *CacheServiceRowCacheCapacityPostParams) WithCapacity(capacity string) *CacheServiceRowCacheCapacityPostParams { - o.SetCapacity(capacity) - return o -} - -// SetCapacity adds the capacity to the cache service row cache capacity post params -func (o *CacheServiceRowCacheCapacityPostParams) SetCapacity(capacity string) { - o.Capacity = capacity -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceRowCacheCapacityPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param capacity - qrCapacity := o.Capacity - qCapacity := qrCapacity - if qCapacity != "" { - if err := r.SetQueryParam("capacity", qCapacity); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_capacity_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_capacity_post_responses.go deleted file mode 100644 index f83c1470b9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_capacity_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceRowCacheCapacityPostReader is a Reader for the CacheServiceRowCacheCapacityPost structure. -type CacheServiceRowCacheCapacityPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceRowCacheCapacityPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceRowCacheCapacityPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceRowCacheCapacityPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceRowCacheCapacityPostOK creates a CacheServiceRowCacheCapacityPostOK with default headers values -func NewCacheServiceRowCacheCapacityPostOK() *CacheServiceRowCacheCapacityPostOK { - return &CacheServiceRowCacheCapacityPostOK{} -} - -/* -CacheServiceRowCacheCapacityPostOK handles this case with default header values. - -Success -*/ -type CacheServiceRowCacheCapacityPostOK struct { -} - -func (o *CacheServiceRowCacheCapacityPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewCacheServiceRowCacheCapacityPostDefault creates a CacheServiceRowCacheCapacityPostDefault with default headers values -func NewCacheServiceRowCacheCapacityPostDefault(code int) *CacheServiceRowCacheCapacityPostDefault { - return &CacheServiceRowCacheCapacityPostDefault{ - _statusCode: code, - } -} - -/* -CacheServiceRowCacheCapacityPostDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceRowCacheCapacityPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service row cache capacity post default response -func (o *CacheServiceRowCacheCapacityPostDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceRowCacheCapacityPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceRowCacheCapacityPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceRowCacheCapacityPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_keys_to_save_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_keys_to_save_get_parameters.go deleted file mode 100644 index ec8068ac07..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_keys_to_save_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceRowCacheKeysToSaveGetParams creates a new CacheServiceRowCacheKeysToSaveGetParams object -// with the default values initialized. -func NewCacheServiceRowCacheKeysToSaveGetParams() *CacheServiceRowCacheKeysToSaveGetParams { - - return &CacheServiceRowCacheKeysToSaveGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceRowCacheKeysToSaveGetParamsWithTimeout creates a new CacheServiceRowCacheKeysToSaveGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceRowCacheKeysToSaveGetParamsWithTimeout(timeout time.Duration) *CacheServiceRowCacheKeysToSaveGetParams { - - return &CacheServiceRowCacheKeysToSaveGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceRowCacheKeysToSaveGetParamsWithContext creates a new CacheServiceRowCacheKeysToSaveGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceRowCacheKeysToSaveGetParamsWithContext(ctx context.Context) *CacheServiceRowCacheKeysToSaveGetParams { - - return &CacheServiceRowCacheKeysToSaveGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceRowCacheKeysToSaveGetParamsWithHTTPClient creates a new CacheServiceRowCacheKeysToSaveGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceRowCacheKeysToSaveGetParamsWithHTTPClient(client *http.Client) *CacheServiceRowCacheKeysToSaveGetParams { - - return &CacheServiceRowCacheKeysToSaveGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceRowCacheKeysToSaveGetParams contains all the parameters to send to the API endpoint -for the cache service row cache keys to save get operation typically these are written to a http.Request -*/ -type CacheServiceRowCacheKeysToSaveGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service row cache keys to save get params -func (o *CacheServiceRowCacheKeysToSaveGetParams) WithTimeout(timeout time.Duration) *CacheServiceRowCacheKeysToSaveGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service row cache keys to save get params -func (o *CacheServiceRowCacheKeysToSaveGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service row cache keys to save get params -func (o *CacheServiceRowCacheKeysToSaveGetParams) WithContext(ctx context.Context) *CacheServiceRowCacheKeysToSaveGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service row cache keys to save get params -func (o *CacheServiceRowCacheKeysToSaveGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service row cache keys to save get params -func (o *CacheServiceRowCacheKeysToSaveGetParams) WithHTTPClient(client *http.Client) *CacheServiceRowCacheKeysToSaveGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service row cache keys to save get params -func (o *CacheServiceRowCacheKeysToSaveGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceRowCacheKeysToSaveGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_keys_to_save_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_keys_to_save_get_responses.go deleted file mode 100644 index ee55946eb3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_keys_to_save_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceRowCacheKeysToSaveGetReader is a Reader for the CacheServiceRowCacheKeysToSaveGet structure. -type CacheServiceRowCacheKeysToSaveGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceRowCacheKeysToSaveGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceRowCacheKeysToSaveGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceRowCacheKeysToSaveGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceRowCacheKeysToSaveGetOK creates a CacheServiceRowCacheKeysToSaveGetOK with default headers values -func NewCacheServiceRowCacheKeysToSaveGetOK() *CacheServiceRowCacheKeysToSaveGetOK { - return &CacheServiceRowCacheKeysToSaveGetOK{} -} - -/* -CacheServiceRowCacheKeysToSaveGetOK handles this case with default header values. - -Success -*/ -type CacheServiceRowCacheKeysToSaveGetOK struct { - Payload int32 -} - -func (o *CacheServiceRowCacheKeysToSaveGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *CacheServiceRowCacheKeysToSaveGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceRowCacheKeysToSaveGetDefault creates a CacheServiceRowCacheKeysToSaveGetDefault with default headers values -func NewCacheServiceRowCacheKeysToSaveGetDefault(code int) *CacheServiceRowCacheKeysToSaveGetDefault { - return &CacheServiceRowCacheKeysToSaveGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceRowCacheKeysToSaveGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceRowCacheKeysToSaveGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service row cache keys to save get default response -func (o *CacheServiceRowCacheKeysToSaveGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceRowCacheKeysToSaveGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceRowCacheKeysToSaveGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceRowCacheKeysToSaveGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_keys_to_save_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_keys_to_save_post_parameters.go deleted file mode 100644 index f552f23580..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_keys_to_save_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewCacheServiceRowCacheKeysToSavePostParams creates a new CacheServiceRowCacheKeysToSavePostParams object -// with the default values initialized. -func NewCacheServiceRowCacheKeysToSavePostParams() *CacheServiceRowCacheKeysToSavePostParams { - var () - return &CacheServiceRowCacheKeysToSavePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceRowCacheKeysToSavePostParamsWithTimeout creates a new CacheServiceRowCacheKeysToSavePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceRowCacheKeysToSavePostParamsWithTimeout(timeout time.Duration) *CacheServiceRowCacheKeysToSavePostParams { - var () - return &CacheServiceRowCacheKeysToSavePostParams{ - - timeout: timeout, - } -} - -// NewCacheServiceRowCacheKeysToSavePostParamsWithContext creates a new CacheServiceRowCacheKeysToSavePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceRowCacheKeysToSavePostParamsWithContext(ctx context.Context) *CacheServiceRowCacheKeysToSavePostParams { - var () - return &CacheServiceRowCacheKeysToSavePostParams{ - - Context: ctx, - } -} - -// NewCacheServiceRowCacheKeysToSavePostParamsWithHTTPClient creates a new CacheServiceRowCacheKeysToSavePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceRowCacheKeysToSavePostParamsWithHTTPClient(client *http.Client) *CacheServiceRowCacheKeysToSavePostParams { - var () - return &CacheServiceRowCacheKeysToSavePostParams{ - HTTPClient: client, - } -} - -/* -CacheServiceRowCacheKeysToSavePostParams contains all the parameters to send to the API endpoint -for the cache service row cache keys to save post operation typically these are written to a http.Request -*/ -type CacheServiceRowCacheKeysToSavePostParams struct { - - /*Rckts - row cache keys to save - - */ - Rckts int32 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service row cache keys to save post params -func (o *CacheServiceRowCacheKeysToSavePostParams) WithTimeout(timeout time.Duration) *CacheServiceRowCacheKeysToSavePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service row cache keys to save post params -func (o *CacheServiceRowCacheKeysToSavePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service row cache keys to save post params -func (o *CacheServiceRowCacheKeysToSavePostParams) WithContext(ctx context.Context) *CacheServiceRowCacheKeysToSavePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service row cache keys to save post params -func (o *CacheServiceRowCacheKeysToSavePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service row cache keys to save post params -func (o *CacheServiceRowCacheKeysToSavePostParams) WithHTTPClient(client *http.Client) *CacheServiceRowCacheKeysToSavePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service row cache keys to save post params -func (o *CacheServiceRowCacheKeysToSavePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithRckts adds the rckts to the cache service row cache keys to save post params -func (o *CacheServiceRowCacheKeysToSavePostParams) WithRckts(rckts int32) *CacheServiceRowCacheKeysToSavePostParams { - o.SetRckts(rckts) - return o -} - -// SetRckts adds the rckts to the cache service row cache keys to save post params -func (o *CacheServiceRowCacheKeysToSavePostParams) SetRckts(rckts int32) { - o.Rckts = rckts -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceRowCacheKeysToSavePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param rckts - qrRckts := o.Rckts - qRckts := swag.FormatInt32(qrRckts) - if qRckts != "" { - if err := r.SetQueryParam("rckts", qRckts); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_keys_to_save_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_keys_to_save_post_responses.go deleted file mode 100644 index 2ca360176f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_keys_to_save_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceRowCacheKeysToSavePostReader is a Reader for the CacheServiceRowCacheKeysToSavePost structure. -type CacheServiceRowCacheKeysToSavePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceRowCacheKeysToSavePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceRowCacheKeysToSavePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceRowCacheKeysToSavePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceRowCacheKeysToSavePostOK creates a CacheServiceRowCacheKeysToSavePostOK with default headers values -func NewCacheServiceRowCacheKeysToSavePostOK() *CacheServiceRowCacheKeysToSavePostOK { - return &CacheServiceRowCacheKeysToSavePostOK{} -} - -/* -CacheServiceRowCacheKeysToSavePostOK handles this case with default header values. - -Success -*/ -type CacheServiceRowCacheKeysToSavePostOK struct { -} - -func (o *CacheServiceRowCacheKeysToSavePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewCacheServiceRowCacheKeysToSavePostDefault creates a CacheServiceRowCacheKeysToSavePostDefault with default headers values -func NewCacheServiceRowCacheKeysToSavePostDefault(code int) *CacheServiceRowCacheKeysToSavePostDefault { - return &CacheServiceRowCacheKeysToSavePostDefault{ - _statusCode: code, - } -} - -/* -CacheServiceRowCacheKeysToSavePostDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceRowCacheKeysToSavePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service row cache keys to save post default response -func (o *CacheServiceRowCacheKeysToSavePostDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceRowCacheKeysToSavePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceRowCacheKeysToSavePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceRowCacheKeysToSavePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_save_period_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_save_period_get_parameters.go deleted file mode 100644 index 326f6fbb41..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_save_period_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceRowCacheSavePeriodGetParams creates a new CacheServiceRowCacheSavePeriodGetParams object -// with the default values initialized. -func NewCacheServiceRowCacheSavePeriodGetParams() *CacheServiceRowCacheSavePeriodGetParams { - - return &CacheServiceRowCacheSavePeriodGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceRowCacheSavePeriodGetParamsWithTimeout creates a new CacheServiceRowCacheSavePeriodGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceRowCacheSavePeriodGetParamsWithTimeout(timeout time.Duration) *CacheServiceRowCacheSavePeriodGetParams { - - return &CacheServiceRowCacheSavePeriodGetParams{ - - timeout: timeout, - } -} - -// NewCacheServiceRowCacheSavePeriodGetParamsWithContext creates a new CacheServiceRowCacheSavePeriodGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceRowCacheSavePeriodGetParamsWithContext(ctx context.Context) *CacheServiceRowCacheSavePeriodGetParams { - - return &CacheServiceRowCacheSavePeriodGetParams{ - - Context: ctx, - } -} - -// NewCacheServiceRowCacheSavePeriodGetParamsWithHTTPClient creates a new CacheServiceRowCacheSavePeriodGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceRowCacheSavePeriodGetParamsWithHTTPClient(client *http.Client) *CacheServiceRowCacheSavePeriodGetParams { - - return &CacheServiceRowCacheSavePeriodGetParams{ - HTTPClient: client, - } -} - -/* -CacheServiceRowCacheSavePeriodGetParams contains all the parameters to send to the API endpoint -for the cache service row cache save period get operation typically these are written to a http.Request -*/ -type CacheServiceRowCacheSavePeriodGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service row cache save period get params -func (o *CacheServiceRowCacheSavePeriodGetParams) WithTimeout(timeout time.Duration) *CacheServiceRowCacheSavePeriodGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service row cache save period get params -func (o *CacheServiceRowCacheSavePeriodGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service row cache save period get params -func (o *CacheServiceRowCacheSavePeriodGetParams) WithContext(ctx context.Context) *CacheServiceRowCacheSavePeriodGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service row cache save period get params -func (o *CacheServiceRowCacheSavePeriodGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service row cache save period get params -func (o *CacheServiceRowCacheSavePeriodGetParams) WithHTTPClient(client *http.Client) *CacheServiceRowCacheSavePeriodGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service row cache save period get params -func (o *CacheServiceRowCacheSavePeriodGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceRowCacheSavePeriodGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_save_period_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_save_period_get_responses.go deleted file mode 100644 index 6fbc7e49e5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_save_period_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceRowCacheSavePeriodGetReader is a Reader for the CacheServiceRowCacheSavePeriodGet structure. -type CacheServiceRowCacheSavePeriodGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceRowCacheSavePeriodGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceRowCacheSavePeriodGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceRowCacheSavePeriodGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceRowCacheSavePeriodGetOK creates a CacheServiceRowCacheSavePeriodGetOK with default headers values -func NewCacheServiceRowCacheSavePeriodGetOK() *CacheServiceRowCacheSavePeriodGetOK { - return &CacheServiceRowCacheSavePeriodGetOK{} -} - -/* -CacheServiceRowCacheSavePeriodGetOK handles this case with default header values. - -Success -*/ -type CacheServiceRowCacheSavePeriodGetOK struct { - Payload int32 -} - -func (o *CacheServiceRowCacheSavePeriodGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *CacheServiceRowCacheSavePeriodGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCacheServiceRowCacheSavePeriodGetDefault creates a CacheServiceRowCacheSavePeriodGetDefault with default headers values -func NewCacheServiceRowCacheSavePeriodGetDefault(code int) *CacheServiceRowCacheSavePeriodGetDefault { - return &CacheServiceRowCacheSavePeriodGetDefault{ - _statusCode: code, - } -} - -/* -CacheServiceRowCacheSavePeriodGetDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceRowCacheSavePeriodGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service row cache save period get default response -func (o *CacheServiceRowCacheSavePeriodGetDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceRowCacheSavePeriodGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceRowCacheSavePeriodGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceRowCacheSavePeriodGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_save_period_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_save_period_post_parameters.go deleted file mode 100644 index ccc2d3a332..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_save_period_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewCacheServiceRowCacheSavePeriodPostParams creates a new CacheServiceRowCacheSavePeriodPostParams object -// with the default values initialized. -func NewCacheServiceRowCacheSavePeriodPostParams() *CacheServiceRowCacheSavePeriodPostParams { - var () - return &CacheServiceRowCacheSavePeriodPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceRowCacheSavePeriodPostParamsWithTimeout creates a new CacheServiceRowCacheSavePeriodPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceRowCacheSavePeriodPostParamsWithTimeout(timeout time.Duration) *CacheServiceRowCacheSavePeriodPostParams { - var () - return &CacheServiceRowCacheSavePeriodPostParams{ - - timeout: timeout, - } -} - -// NewCacheServiceRowCacheSavePeriodPostParamsWithContext creates a new CacheServiceRowCacheSavePeriodPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceRowCacheSavePeriodPostParamsWithContext(ctx context.Context) *CacheServiceRowCacheSavePeriodPostParams { - var () - return &CacheServiceRowCacheSavePeriodPostParams{ - - Context: ctx, - } -} - -// NewCacheServiceRowCacheSavePeriodPostParamsWithHTTPClient creates a new CacheServiceRowCacheSavePeriodPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceRowCacheSavePeriodPostParamsWithHTTPClient(client *http.Client) *CacheServiceRowCacheSavePeriodPostParams { - var () - return &CacheServiceRowCacheSavePeriodPostParams{ - HTTPClient: client, - } -} - -/* -CacheServiceRowCacheSavePeriodPostParams contains all the parameters to send to the API endpoint -for the cache service row cache save period post operation typically these are written to a http.Request -*/ -type CacheServiceRowCacheSavePeriodPostParams struct { - - /*Period - row cache save period in seconds - - */ - Period int32 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service row cache save period post params -func (o *CacheServiceRowCacheSavePeriodPostParams) WithTimeout(timeout time.Duration) *CacheServiceRowCacheSavePeriodPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service row cache save period post params -func (o *CacheServiceRowCacheSavePeriodPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service row cache save period post params -func (o *CacheServiceRowCacheSavePeriodPostParams) WithContext(ctx context.Context) *CacheServiceRowCacheSavePeriodPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service row cache save period post params -func (o *CacheServiceRowCacheSavePeriodPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service row cache save period post params -func (o *CacheServiceRowCacheSavePeriodPostParams) WithHTTPClient(client *http.Client) *CacheServiceRowCacheSavePeriodPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service row cache save period post params -func (o *CacheServiceRowCacheSavePeriodPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithPeriod adds the period to the cache service row cache save period post params -func (o *CacheServiceRowCacheSavePeriodPostParams) WithPeriod(period int32) *CacheServiceRowCacheSavePeriodPostParams { - o.SetPeriod(period) - return o -} - -// SetPeriod adds the period to the cache service row cache save period post params -func (o *CacheServiceRowCacheSavePeriodPostParams) SetPeriod(period int32) { - o.Period = period -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceRowCacheSavePeriodPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param period - qrPeriod := o.Period - qPeriod := swag.FormatInt32(qrPeriod) - if qPeriod != "" { - if err := r.SetQueryParam("period", qPeriod); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_save_period_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_save_period_post_responses.go deleted file mode 100644 index 3c99dace60..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_row_cache_save_period_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceRowCacheSavePeriodPostReader is a Reader for the CacheServiceRowCacheSavePeriodPost structure. -type CacheServiceRowCacheSavePeriodPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceRowCacheSavePeriodPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceRowCacheSavePeriodPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceRowCacheSavePeriodPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceRowCacheSavePeriodPostOK creates a CacheServiceRowCacheSavePeriodPostOK with default headers values -func NewCacheServiceRowCacheSavePeriodPostOK() *CacheServiceRowCacheSavePeriodPostOK { - return &CacheServiceRowCacheSavePeriodPostOK{} -} - -/* -CacheServiceRowCacheSavePeriodPostOK handles this case with default header values. - -Success -*/ -type CacheServiceRowCacheSavePeriodPostOK struct { -} - -func (o *CacheServiceRowCacheSavePeriodPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewCacheServiceRowCacheSavePeriodPostDefault creates a CacheServiceRowCacheSavePeriodPostDefault with default headers values -func NewCacheServiceRowCacheSavePeriodPostDefault(code int) *CacheServiceRowCacheSavePeriodPostDefault { - return &CacheServiceRowCacheSavePeriodPostDefault{ - _statusCode: code, - } -} - -/* -CacheServiceRowCacheSavePeriodPostDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceRowCacheSavePeriodPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service row cache save period post default response -func (o *CacheServiceRowCacheSavePeriodPostDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceRowCacheSavePeriodPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceRowCacheSavePeriodPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceRowCacheSavePeriodPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_save_caches_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_save_caches_post_parameters.go deleted file mode 100644 index a10cfcac07..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_save_caches_post_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCacheServiceSaveCachesPostParams creates a new CacheServiceSaveCachesPostParams object -// with the default values initialized. -func NewCacheServiceSaveCachesPostParams() *CacheServiceSaveCachesPostParams { - - return &CacheServiceSaveCachesPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCacheServiceSaveCachesPostParamsWithTimeout creates a new CacheServiceSaveCachesPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCacheServiceSaveCachesPostParamsWithTimeout(timeout time.Duration) *CacheServiceSaveCachesPostParams { - - return &CacheServiceSaveCachesPostParams{ - - timeout: timeout, - } -} - -// NewCacheServiceSaveCachesPostParamsWithContext creates a new CacheServiceSaveCachesPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewCacheServiceSaveCachesPostParamsWithContext(ctx context.Context) *CacheServiceSaveCachesPostParams { - - return &CacheServiceSaveCachesPostParams{ - - Context: ctx, - } -} - -// NewCacheServiceSaveCachesPostParamsWithHTTPClient creates a new CacheServiceSaveCachesPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCacheServiceSaveCachesPostParamsWithHTTPClient(client *http.Client) *CacheServiceSaveCachesPostParams { - - return &CacheServiceSaveCachesPostParams{ - HTTPClient: client, - } -} - -/* -CacheServiceSaveCachesPostParams contains all the parameters to send to the API endpoint -for the cache service save caches post operation typically these are written to a http.Request -*/ -type CacheServiceSaveCachesPostParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the cache service save caches post params -func (o *CacheServiceSaveCachesPostParams) WithTimeout(timeout time.Duration) *CacheServiceSaveCachesPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the cache service save caches post params -func (o *CacheServiceSaveCachesPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the cache service save caches post params -func (o *CacheServiceSaveCachesPostParams) WithContext(ctx context.Context) *CacheServiceSaveCachesPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the cache service save caches post params -func (o *CacheServiceSaveCachesPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the cache service save caches post params -func (o *CacheServiceSaveCachesPostParams) WithHTTPClient(client *http.Client) *CacheServiceSaveCachesPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the cache service save caches post params -func (o *CacheServiceSaveCachesPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CacheServiceSaveCachesPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_save_caches_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_save_caches_post_responses.go deleted file mode 100644 index 9223429e25..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/cache_service_save_caches_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CacheServiceSaveCachesPostReader is a Reader for the CacheServiceSaveCachesPost structure. -type CacheServiceSaveCachesPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CacheServiceSaveCachesPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCacheServiceSaveCachesPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCacheServiceSaveCachesPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCacheServiceSaveCachesPostOK creates a CacheServiceSaveCachesPostOK with default headers values -func NewCacheServiceSaveCachesPostOK() *CacheServiceSaveCachesPostOK { - return &CacheServiceSaveCachesPostOK{} -} - -/* -CacheServiceSaveCachesPostOK handles this case with default header values. - -Success -*/ -type CacheServiceSaveCachesPostOK struct { -} - -func (o *CacheServiceSaveCachesPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewCacheServiceSaveCachesPostDefault creates a CacheServiceSaveCachesPostDefault with default headers values -func NewCacheServiceSaveCachesPostDefault(code int) *CacheServiceSaveCachesPostDefault { - return &CacheServiceSaveCachesPostDefault{ - _statusCode: code, - } -} - -/* -CacheServiceSaveCachesPostDefault handles this case with default header values. - -internal server error -*/ -type CacheServiceSaveCachesPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the cache service save caches post default response -func (o *CacheServiceSaveCachesPostDefault) Code() int { - return o._statusCode -} - -func (o *CacheServiceSaveCachesPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CacheServiceSaveCachesPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CacheServiceSaveCachesPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_by_pluginid_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_by_pluginid_get_parameters.go deleted file mode 100644 index 65f03b65c4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_by_pluginid_get_parameters.go +++ /dev/null @@ -1,225 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCollectdByPluginidGetParams creates a new CollectdByPluginidGetParams object -// with the default values initialized. -func NewCollectdByPluginidGetParams() *CollectdByPluginidGetParams { - var () - return &CollectdByPluginidGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCollectdByPluginidGetParamsWithTimeout creates a new CollectdByPluginidGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCollectdByPluginidGetParamsWithTimeout(timeout time.Duration) *CollectdByPluginidGetParams { - var () - return &CollectdByPluginidGetParams{ - - timeout: timeout, - } -} - -// NewCollectdByPluginidGetParamsWithContext creates a new CollectdByPluginidGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCollectdByPluginidGetParamsWithContext(ctx context.Context) *CollectdByPluginidGetParams { - var () - return &CollectdByPluginidGetParams{ - - Context: ctx, - } -} - -// NewCollectdByPluginidGetParamsWithHTTPClient creates a new CollectdByPluginidGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCollectdByPluginidGetParamsWithHTTPClient(client *http.Client) *CollectdByPluginidGetParams { - var () - return &CollectdByPluginidGetParams{ - HTTPClient: client, - } -} - -/* -CollectdByPluginidGetParams contains all the parameters to send to the API endpoint -for the collectd by pluginid get operation typically these are written to a http.Request -*/ -type CollectdByPluginidGetParams struct { - - /*Instance - The plugin instance - - */ - Instance *string - /*Pluginid - The plugin ID - - */ - Pluginid string - /*Type - The plugin type - - */ - Type string - /*TypeInstance - The plugin type instance - - */ - TypeInstance *string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the collectd by pluginid get params -func (o *CollectdByPluginidGetParams) WithTimeout(timeout time.Duration) *CollectdByPluginidGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the collectd by pluginid get params -func (o *CollectdByPluginidGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the collectd by pluginid get params -func (o *CollectdByPluginidGetParams) WithContext(ctx context.Context) *CollectdByPluginidGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the collectd by pluginid get params -func (o *CollectdByPluginidGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the collectd by pluginid get params -func (o *CollectdByPluginidGetParams) WithHTTPClient(client *http.Client) *CollectdByPluginidGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the collectd by pluginid get params -func (o *CollectdByPluginidGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithInstance adds the instance to the collectd by pluginid get params -func (o *CollectdByPluginidGetParams) WithInstance(instance *string) *CollectdByPluginidGetParams { - o.SetInstance(instance) - return o -} - -// SetInstance adds the instance to the collectd by pluginid get params -func (o *CollectdByPluginidGetParams) SetInstance(instance *string) { - o.Instance = instance -} - -// WithPluginid adds the pluginid to the collectd by pluginid get params -func (o *CollectdByPluginidGetParams) WithPluginid(pluginid string) *CollectdByPluginidGetParams { - o.SetPluginid(pluginid) - return o -} - -// SetPluginid adds the pluginid to the collectd by pluginid get params -func (o *CollectdByPluginidGetParams) SetPluginid(pluginid string) { - o.Pluginid = pluginid -} - -// WithType adds the typeVar to the collectd by pluginid get params -func (o *CollectdByPluginidGetParams) WithType(typeVar string) *CollectdByPluginidGetParams { - o.SetType(typeVar) - return o -} - -// SetType adds the type to the collectd by pluginid get params -func (o *CollectdByPluginidGetParams) SetType(typeVar string) { - o.Type = typeVar -} - -// WithTypeInstance adds the typeInstance to the collectd by pluginid get params -func (o *CollectdByPluginidGetParams) WithTypeInstance(typeInstance *string) *CollectdByPluginidGetParams { - o.SetTypeInstance(typeInstance) - return o -} - -// SetTypeInstance adds the typeInstance to the collectd by pluginid get params -func (o *CollectdByPluginidGetParams) SetTypeInstance(typeInstance *string) { - o.TypeInstance = typeInstance -} - -// WriteToRequest writes these params to a swagger request -func (o *CollectdByPluginidGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Instance != nil { - - // query param instance - var qrInstance string - if o.Instance != nil { - qrInstance = *o.Instance - } - qInstance := qrInstance - if qInstance != "" { - if err := r.SetQueryParam("instance", qInstance); err != nil { - return err - } - } - - } - - // path param pluginid - if err := r.SetPathParam("pluginid", o.Pluginid); err != nil { - return err - } - - // query param type - qrType := o.Type - qType := qrType - if qType != "" { - if err := r.SetQueryParam("type", qType); err != nil { - return err - } - } - - if o.TypeInstance != nil { - - // query param type_instance - var qrTypeInstance string - if o.TypeInstance != nil { - qrTypeInstance = *o.TypeInstance - } - qTypeInstance := qrTypeInstance - if qTypeInstance != "" { - if err := r.SetQueryParam("type_instance", qTypeInstance); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_by_pluginid_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_by_pluginid_get_responses.go deleted file mode 100644 index 76cff6d103..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_by_pluginid_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CollectdByPluginidGetReader is a Reader for the CollectdByPluginidGet structure. -type CollectdByPluginidGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CollectdByPluginidGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCollectdByPluginidGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCollectdByPluginidGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCollectdByPluginidGetOK creates a CollectdByPluginidGetOK with default headers values -func NewCollectdByPluginidGetOK() *CollectdByPluginidGetOK { - return &CollectdByPluginidGetOK{} -} - -/* -CollectdByPluginidGetOK handles this case with default header values. - -Success -*/ -type CollectdByPluginidGetOK struct { - Payload []*models.CollectdValue -} - -func (o *CollectdByPluginidGetOK) GetPayload() []*models.CollectdValue { - return o.Payload -} - -func (o *CollectdByPluginidGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCollectdByPluginidGetDefault creates a CollectdByPluginidGetDefault with default headers values -func NewCollectdByPluginidGetDefault(code int) *CollectdByPluginidGetDefault { - return &CollectdByPluginidGetDefault{ - _statusCode: code, - } -} - -/* -CollectdByPluginidGetDefault handles this case with default header values. - -internal server error -*/ -type CollectdByPluginidGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the collectd by pluginid get default response -func (o *CollectdByPluginidGetDefault) Code() int { - return o._statusCode -} - -func (o *CollectdByPluginidGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CollectdByPluginidGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CollectdByPluginidGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_by_pluginid_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_by_pluginid_post_parameters.go deleted file mode 100644 index b5f2f233c8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_by_pluginid_post_parameters.go +++ /dev/null @@ -1,265 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewCollectdByPluginidPostParams creates a new CollectdByPluginidPostParams object -// with the default values initialized. -func NewCollectdByPluginidPostParams() *CollectdByPluginidPostParams { - var () - return &CollectdByPluginidPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCollectdByPluginidPostParamsWithTimeout creates a new CollectdByPluginidPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCollectdByPluginidPostParamsWithTimeout(timeout time.Duration) *CollectdByPluginidPostParams { - var () - return &CollectdByPluginidPostParams{ - - timeout: timeout, - } -} - -// NewCollectdByPluginidPostParamsWithContext creates a new CollectdByPluginidPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewCollectdByPluginidPostParamsWithContext(ctx context.Context) *CollectdByPluginidPostParams { - var () - return &CollectdByPluginidPostParams{ - - Context: ctx, - } -} - -// NewCollectdByPluginidPostParamsWithHTTPClient creates a new CollectdByPluginidPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCollectdByPluginidPostParamsWithHTTPClient(client *http.Client) *CollectdByPluginidPostParams { - var () - return &CollectdByPluginidPostParams{ - HTTPClient: client, - } -} - -/* -CollectdByPluginidPostParams contains all the parameters to send to the API endpoint -for the collectd by pluginid post operation typically these are written to a http.Request -*/ -type CollectdByPluginidPostParams struct { - - /*Enable - set to true to enable all, anything else or omit to disable - - */ - Enable *bool - /*Instance - The plugin instance typically #CPU indicating per CPU metric. Regex are supported. Omit for all - - */ - Instance *string - /*Pluginid - The plugin ID, describe the component the metric belongs to. Examples are cache, thrift, etc'. Regex are supported.The plugin ID, describe the component the metric belong to. Examples are: cache, thrift etc'. regex are supported - - */ - Pluginid string - /*Type - The plugin type, the type of the information. Examples are total_operations, bytes, total_operations, etc'. Regex are supported. Omit for all - - */ - Type *string - /*TypeInstance - The plugin type instance, the specific metric. Exampls are total_writes, total_size, zones, etc'. Regex are supported, Omit for all - - */ - TypeInstance *string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the collectd by pluginid post params -func (o *CollectdByPluginidPostParams) WithTimeout(timeout time.Duration) *CollectdByPluginidPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the collectd by pluginid post params -func (o *CollectdByPluginidPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the collectd by pluginid post params -func (o *CollectdByPluginidPostParams) WithContext(ctx context.Context) *CollectdByPluginidPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the collectd by pluginid post params -func (o *CollectdByPluginidPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the collectd by pluginid post params -func (o *CollectdByPluginidPostParams) WithHTTPClient(client *http.Client) *CollectdByPluginidPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the collectd by pluginid post params -func (o *CollectdByPluginidPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithEnable adds the enable to the collectd by pluginid post params -func (o *CollectdByPluginidPostParams) WithEnable(enable *bool) *CollectdByPluginidPostParams { - o.SetEnable(enable) - return o -} - -// SetEnable adds the enable to the collectd by pluginid post params -func (o *CollectdByPluginidPostParams) SetEnable(enable *bool) { - o.Enable = enable -} - -// WithInstance adds the instance to the collectd by pluginid post params -func (o *CollectdByPluginidPostParams) WithInstance(instance *string) *CollectdByPluginidPostParams { - o.SetInstance(instance) - return o -} - -// SetInstance adds the instance to the collectd by pluginid post params -func (o *CollectdByPluginidPostParams) SetInstance(instance *string) { - o.Instance = instance -} - -// WithPluginid adds the pluginid to the collectd by pluginid post params -func (o *CollectdByPluginidPostParams) WithPluginid(pluginid string) *CollectdByPluginidPostParams { - o.SetPluginid(pluginid) - return o -} - -// SetPluginid adds the pluginid to the collectd by pluginid post params -func (o *CollectdByPluginidPostParams) SetPluginid(pluginid string) { - o.Pluginid = pluginid -} - -// WithType adds the typeVar to the collectd by pluginid post params -func (o *CollectdByPluginidPostParams) WithType(typeVar *string) *CollectdByPluginidPostParams { - o.SetType(typeVar) - return o -} - -// SetType adds the type to the collectd by pluginid post params -func (o *CollectdByPluginidPostParams) SetType(typeVar *string) { - o.Type = typeVar -} - -// WithTypeInstance adds the typeInstance to the collectd by pluginid post params -func (o *CollectdByPluginidPostParams) WithTypeInstance(typeInstance *string) *CollectdByPluginidPostParams { - o.SetTypeInstance(typeInstance) - return o -} - -// SetTypeInstance adds the typeInstance to the collectd by pluginid post params -func (o *CollectdByPluginidPostParams) SetTypeInstance(typeInstance *string) { - o.TypeInstance = typeInstance -} - -// WriteToRequest writes these params to a swagger request -func (o *CollectdByPluginidPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Enable != nil { - - // query param enable - var qrEnable bool - if o.Enable != nil { - qrEnable = *o.Enable - } - qEnable := swag.FormatBool(qrEnable) - if qEnable != "" { - if err := r.SetQueryParam("enable", qEnable); err != nil { - return err - } - } - - } - - if o.Instance != nil { - - // query param instance - var qrInstance string - if o.Instance != nil { - qrInstance = *o.Instance - } - qInstance := qrInstance - if qInstance != "" { - if err := r.SetQueryParam("instance", qInstance); err != nil { - return err - } - } - - } - - // path param pluginid - if err := r.SetPathParam("pluginid", o.Pluginid); err != nil { - return err - } - - if o.Type != nil { - - // query param type - var qrType string - if o.Type != nil { - qrType = *o.Type - } - qType := qrType - if qType != "" { - if err := r.SetQueryParam("type", qType); err != nil { - return err - } - } - - } - - if o.TypeInstance != nil { - - // query param type_instance - var qrTypeInstance string - if o.TypeInstance != nil { - qrTypeInstance = *o.TypeInstance - } - qTypeInstance := qrTypeInstance - if qTypeInstance != "" { - if err := r.SetQueryParam("type_instance", qTypeInstance); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_by_pluginid_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_by_pluginid_post_responses.go deleted file mode 100644 index 7a55b5fbae..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_by_pluginid_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CollectdByPluginidPostReader is a Reader for the CollectdByPluginidPost structure. -type CollectdByPluginidPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CollectdByPluginidPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCollectdByPluginidPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCollectdByPluginidPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCollectdByPluginidPostOK creates a CollectdByPluginidPostOK with default headers values -func NewCollectdByPluginidPostOK() *CollectdByPluginidPostOK { - return &CollectdByPluginidPostOK{} -} - -/* -CollectdByPluginidPostOK handles this case with default header values. - -Success -*/ -type CollectdByPluginidPostOK struct { -} - -func (o *CollectdByPluginidPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewCollectdByPluginidPostDefault creates a CollectdByPluginidPostDefault with default headers values -func NewCollectdByPluginidPostDefault(code int) *CollectdByPluginidPostDefault { - return &CollectdByPluginidPostDefault{ - _statusCode: code, - } -} - -/* -CollectdByPluginidPostDefault handles this case with default header values. - -internal server error -*/ -type CollectdByPluginidPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the collectd by pluginid post default response -func (o *CollectdByPluginidPostDefault) Code() int { - return o._statusCode -} - -func (o *CollectdByPluginidPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CollectdByPluginidPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CollectdByPluginidPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_get_parameters.go deleted file mode 100644 index cfc9a2e50b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCollectdGetParams creates a new CollectdGetParams object -// with the default values initialized. -func NewCollectdGetParams() *CollectdGetParams { - - return &CollectdGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCollectdGetParamsWithTimeout creates a new CollectdGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCollectdGetParamsWithTimeout(timeout time.Duration) *CollectdGetParams { - - return &CollectdGetParams{ - - timeout: timeout, - } -} - -// NewCollectdGetParamsWithContext creates a new CollectdGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCollectdGetParamsWithContext(ctx context.Context) *CollectdGetParams { - - return &CollectdGetParams{ - - Context: ctx, - } -} - -// NewCollectdGetParamsWithHTTPClient creates a new CollectdGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCollectdGetParamsWithHTTPClient(client *http.Client) *CollectdGetParams { - - return &CollectdGetParams{ - HTTPClient: client, - } -} - -/* -CollectdGetParams contains all the parameters to send to the API endpoint -for the collectd get operation typically these are written to a http.Request -*/ -type CollectdGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the collectd get params -func (o *CollectdGetParams) WithTimeout(timeout time.Duration) *CollectdGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the collectd get params -func (o *CollectdGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the collectd get params -func (o *CollectdGetParams) WithContext(ctx context.Context) *CollectdGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the collectd get params -func (o *CollectdGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the collectd get params -func (o *CollectdGetParams) WithHTTPClient(client *http.Client) *CollectdGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the collectd get params -func (o *CollectdGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CollectdGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_get_responses.go deleted file mode 100644 index 59e748b0c7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CollectdGetReader is a Reader for the CollectdGet structure. -type CollectdGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CollectdGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCollectdGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCollectdGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCollectdGetOK creates a CollectdGetOK with default headers values -func NewCollectdGetOK() *CollectdGetOK { - return &CollectdGetOK{} -} - -/* -CollectdGetOK handles this case with default header values. - -Success -*/ -type CollectdGetOK struct { - Payload []*models.CollectdMetricStatus -} - -func (o *CollectdGetOK) GetPayload() []*models.CollectdMetricStatus { - return o.Payload -} - -func (o *CollectdGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCollectdGetDefault creates a CollectdGetDefault with default headers values -func NewCollectdGetDefault(code int) *CollectdGetDefault { - return &CollectdGetDefault{ - _statusCode: code, - } -} - -/* -CollectdGetDefault handles this case with default header values. - -internal server error -*/ -type CollectdGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the collectd get default response -func (o *CollectdGetDefault) Code() int { - return o._statusCode -} - -func (o *CollectdGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CollectdGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CollectdGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_post_parameters.go deleted file mode 100644 index e951d749ec..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_post_parameters.go +++ /dev/null @@ -1,148 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewCollectdPostParams creates a new CollectdPostParams object -// with the default values initialized. -func NewCollectdPostParams() *CollectdPostParams { - var () - return &CollectdPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCollectdPostParamsWithTimeout creates a new CollectdPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCollectdPostParamsWithTimeout(timeout time.Duration) *CollectdPostParams { - var () - return &CollectdPostParams{ - - timeout: timeout, - } -} - -// NewCollectdPostParamsWithContext creates a new CollectdPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewCollectdPostParamsWithContext(ctx context.Context) *CollectdPostParams { - var () - return &CollectdPostParams{ - - Context: ctx, - } -} - -// NewCollectdPostParamsWithHTTPClient creates a new CollectdPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCollectdPostParamsWithHTTPClient(client *http.Client) *CollectdPostParams { - var () - return &CollectdPostParams{ - HTTPClient: client, - } -} - -/* -CollectdPostParams contains all the parameters to send to the API endpoint -for the collectd post operation typically these are written to a http.Request -*/ -type CollectdPostParams struct { - - /*Enable - set to true to enable all, anything else or omit to disable - - */ - Enable *bool - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the collectd post params -func (o *CollectdPostParams) WithTimeout(timeout time.Duration) *CollectdPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the collectd post params -func (o *CollectdPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the collectd post params -func (o *CollectdPostParams) WithContext(ctx context.Context) *CollectdPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the collectd post params -func (o *CollectdPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the collectd post params -func (o *CollectdPostParams) WithHTTPClient(client *http.Client) *CollectdPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the collectd post params -func (o *CollectdPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithEnable adds the enable to the collectd post params -func (o *CollectdPostParams) WithEnable(enable *bool) *CollectdPostParams { - o.SetEnable(enable) - return o -} - -// SetEnable adds the enable to the collectd post params -func (o *CollectdPostParams) SetEnable(enable *bool) { - o.Enable = enable -} - -// WriteToRequest writes these params to a swagger request -func (o *CollectdPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Enable != nil { - - // query param enable - var qrEnable bool - if o.Enable != nil { - qrEnable = *o.Enable - } - qEnable := swag.FormatBool(qrEnable) - if qEnable != "" { - if err := r.SetQueryParam("enable", qEnable); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_post_responses.go deleted file mode 100644 index e108b03d5e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/collectd_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CollectdPostReader is a Reader for the CollectdPost structure. -type CollectdPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CollectdPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCollectdPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCollectdPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCollectdPostOK creates a CollectdPostOK with default headers values -func NewCollectdPostOK() *CollectdPostOK { - return &CollectdPostOK{} -} - -/* -CollectdPostOK handles this case with default header values. - -Success -*/ -type CollectdPostOK struct { -} - -func (o *CollectdPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewCollectdPostDefault creates a CollectdPostDefault with default headers values -func NewCollectdPostDefault(code int) *CollectdPostDefault { - return &CollectdPostDefault{ - _statusCode: code, - } -} - -/* -CollectdPostDefault handles this case with default header values. - -internal server error -*/ -type CollectdPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the collectd post default response -func (o *CollectdPostDefault) Code() int { - return o._statusCode -} - -func (o *CollectdPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CollectdPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CollectdPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_autocompaction_by_name_delete_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_autocompaction_by_name_delete_parameters.go deleted file mode 100644 index da72d85252..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_autocompaction_by_name_delete_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyAutocompactionByNameDeleteParams creates a new ColumnFamilyAutocompactionByNameDeleteParams object -// with the default values initialized. -func NewColumnFamilyAutocompactionByNameDeleteParams() *ColumnFamilyAutocompactionByNameDeleteParams { - var () - return &ColumnFamilyAutocompactionByNameDeleteParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyAutocompactionByNameDeleteParamsWithTimeout creates a new ColumnFamilyAutocompactionByNameDeleteParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyAutocompactionByNameDeleteParamsWithTimeout(timeout time.Duration) *ColumnFamilyAutocompactionByNameDeleteParams { - var () - return &ColumnFamilyAutocompactionByNameDeleteParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyAutocompactionByNameDeleteParamsWithContext creates a new ColumnFamilyAutocompactionByNameDeleteParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyAutocompactionByNameDeleteParamsWithContext(ctx context.Context) *ColumnFamilyAutocompactionByNameDeleteParams { - var () - return &ColumnFamilyAutocompactionByNameDeleteParams{ - - Context: ctx, - } -} - -// NewColumnFamilyAutocompactionByNameDeleteParamsWithHTTPClient creates a new ColumnFamilyAutocompactionByNameDeleteParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyAutocompactionByNameDeleteParamsWithHTTPClient(client *http.Client) *ColumnFamilyAutocompactionByNameDeleteParams { - var () - return &ColumnFamilyAutocompactionByNameDeleteParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyAutocompactionByNameDeleteParams contains all the parameters to send to the API endpoint -for the column family autocompaction by name delete operation typically these are written to a http.Request -*/ -type ColumnFamilyAutocompactionByNameDeleteParams struct { - - /*Name - The table name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family autocompaction by name delete params -func (o *ColumnFamilyAutocompactionByNameDeleteParams) WithTimeout(timeout time.Duration) *ColumnFamilyAutocompactionByNameDeleteParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family autocompaction by name delete params -func (o *ColumnFamilyAutocompactionByNameDeleteParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family autocompaction by name delete params -func (o *ColumnFamilyAutocompactionByNameDeleteParams) WithContext(ctx context.Context) *ColumnFamilyAutocompactionByNameDeleteParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family autocompaction by name delete params -func (o *ColumnFamilyAutocompactionByNameDeleteParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family autocompaction by name delete params -func (o *ColumnFamilyAutocompactionByNameDeleteParams) WithHTTPClient(client *http.Client) *ColumnFamilyAutocompactionByNameDeleteParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family autocompaction by name delete params -func (o *ColumnFamilyAutocompactionByNameDeleteParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family autocompaction by name delete params -func (o *ColumnFamilyAutocompactionByNameDeleteParams) WithName(name string) *ColumnFamilyAutocompactionByNameDeleteParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family autocompaction by name delete params -func (o *ColumnFamilyAutocompactionByNameDeleteParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyAutocompactionByNameDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_autocompaction_by_name_delete_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_autocompaction_by_name_delete_responses.go deleted file mode 100644 index 80d0f07422..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_autocompaction_by_name_delete_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyAutocompactionByNameDeleteReader is a Reader for the ColumnFamilyAutocompactionByNameDelete structure. -type ColumnFamilyAutocompactionByNameDeleteReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyAutocompactionByNameDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyAutocompactionByNameDeleteOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyAutocompactionByNameDeleteDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyAutocompactionByNameDeleteOK creates a ColumnFamilyAutocompactionByNameDeleteOK with default headers values -func NewColumnFamilyAutocompactionByNameDeleteOK() *ColumnFamilyAutocompactionByNameDeleteOK { - return &ColumnFamilyAutocompactionByNameDeleteOK{} -} - -/* -ColumnFamilyAutocompactionByNameDeleteOK handles this case with default header values. - -Success -*/ -type ColumnFamilyAutocompactionByNameDeleteOK struct { -} - -func (o *ColumnFamilyAutocompactionByNameDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyAutocompactionByNameDeleteDefault creates a ColumnFamilyAutocompactionByNameDeleteDefault with default headers values -func NewColumnFamilyAutocompactionByNameDeleteDefault(code int) *ColumnFamilyAutocompactionByNameDeleteDefault { - return &ColumnFamilyAutocompactionByNameDeleteDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyAutocompactionByNameDeleteDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyAutocompactionByNameDeleteDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family autocompaction by name delete default response -func (o *ColumnFamilyAutocompactionByNameDeleteDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyAutocompactionByNameDeleteDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyAutocompactionByNameDeleteDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyAutocompactionByNameDeleteDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_autocompaction_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_autocompaction_by_name_get_parameters.go deleted file mode 100644 index 0dd06fb084..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_autocompaction_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyAutocompactionByNameGetParams creates a new ColumnFamilyAutocompactionByNameGetParams object -// with the default values initialized. -func NewColumnFamilyAutocompactionByNameGetParams() *ColumnFamilyAutocompactionByNameGetParams { - var () - return &ColumnFamilyAutocompactionByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyAutocompactionByNameGetParamsWithTimeout creates a new ColumnFamilyAutocompactionByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyAutocompactionByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyAutocompactionByNameGetParams { - var () - return &ColumnFamilyAutocompactionByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyAutocompactionByNameGetParamsWithContext creates a new ColumnFamilyAutocompactionByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyAutocompactionByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyAutocompactionByNameGetParams { - var () - return &ColumnFamilyAutocompactionByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyAutocompactionByNameGetParamsWithHTTPClient creates a new ColumnFamilyAutocompactionByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyAutocompactionByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyAutocompactionByNameGetParams { - var () - return &ColumnFamilyAutocompactionByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyAutocompactionByNameGetParams contains all the parameters to send to the API endpoint -for the column family autocompaction by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyAutocompactionByNameGetParams struct { - - /*Name - The table name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family autocompaction by name get params -func (o *ColumnFamilyAutocompactionByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyAutocompactionByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family autocompaction by name get params -func (o *ColumnFamilyAutocompactionByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family autocompaction by name get params -func (o *ColumnFamilyAutocompactionByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyAutocompactionByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family autocompaction by name get params -func (o *ColumnFamilyAutocompactionByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family autocompaction by name get params -func (o *ColumnFamilyAutocompactionByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyAutocompactionByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family autocompaction by name get params -func (o *ColumnFamilyAutocompactionByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family autocompaction by name get params -func (o *ColumnFamilyAutocompactionByNameGetParams) WithName(name string) *ColumnFamilyAutocompactionByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family autocompaction by name get params -func (o *ColumnFamilyAutocompactionByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyAutocompactionByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_autocompaction_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_autocompaction_by_name_get_responses.go deleted file mode 100644 index 2c68daccba..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_autocompaction_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyAutocompactionByNameGetReader is a Reader for the ColumnFamilyAutocompactionByNameGet structure. -type ColumnFamilyAutocompactionByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyAutocompactionByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyAutocompactionByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyAutocompactionByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyAutocompactionByNameGetOK creates a ColumnFamilyAutocompactionByNameGetOK with default headers values -func NewColumnFamilyAutocompactionByNameGetOK() *ColumnFamilyAutocompactionByNameGetOK { - return &ColumnFamilyAutocompactionByNameGetOK{} -} - -/* -ColumnFamilyAutocompactionByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyAutocompactionByNameGetOK struct { - Payload bool -} - -func (o *ColumnFamilyAutocompactionByNameGetOK) GetPayload() bool { - return o.Payload -} - -func (o *ColumnFamilyAutocompactionByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyAutocompactionByNameGetDefault creates a ColumnFamilyAutocompactionByNameGetDefault with default headers values -func NewColumnFamilyAutocompactionByNameGetDefault(code int) *ColumnFamilyAutocompactionByNameGetDefault { - return &ColumnFamilyAutocompactionByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyAutocompactionByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyAutocompactionByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family autocompaction by name get default response -func (o *ColumnFamilyAutocompactionByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyAutocompactionByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyAutocompactionByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyAutocompactionByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_autocompaction_by_name_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_autocompaction_by_name_post_parameters.go deleted file mode 100644 index df9523b200..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_autocompaction_by_name_post_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyAutocompactionByNamePostParams creates a new ColumnFamilyAutocompactionByNamePostParams object -// with the default values initialized. -func NewColumnFamilyAutocompactionByNamePostParams() *ColumnFamilyAutocompactionByNamePostParams { - var () - return &ColumnFamilyAutocompactionByNamePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyAutocompactionByNamePostParamsWithTimeout creates a new ColumnFamilyAutocompactionByNamePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyAutocompactionByNamePostParamsWithTimeout(timeout time.Duration) *ColumnFamilyAutocompactionByNamePostParams { - var () - return &ColumnFamilyAutocompactionByNamePostParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyAutocompactionByNamePostParamsWithContext creates a new ColumnFamilyAutocompactionByNamePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyAutocompactionByNamePostParamsWithContext(ctx context.Context) *ColumnFamilyAutocompactionByNamePostParams { - var () - return &ColumnFamilyAutocompactionByNamePostParams{ - - Context: ctx, - } -} - -// NewColumnFamilyAutocompactionByNamePostParamsWithHTTPClient creates a new ColumnFamilyAutocompactionByNamePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyAutocompactionByNamePostParamsWithHTTPClient(client *http.Client) *ColumnFamilyAutocompactionByNamePostParams { - var () - return &ColumnFamilyAutocompactionByNamePostParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyAutocompactionByNamePostParams contains all the parameters to send to the API endpoint -for the column family autocompaction by name post operation typically these are written to a http.Request -*/ -type ColumnFamilyAutocompactionByNamePostParams struct { - - /*Name - The table name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family autocompaction by name post params -func (o *ColumnFamilyAutocompactionByNamePostParams) WithTimeout(timeout time.Duration) *ColumnFamilyAutocompactionByNamePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family autocompaction by name post params -func (o *ColumnFamilyAutocompactionByNamePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family autocompaction by name post params -func (o *ColumnFamilyAutocompactionByNamePostParams) WithContext(ctx context.Context) *ColumnFamilyAutocompactionByNamePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family autocompaction by name post params -func (o *ColumnFamilyAutocompactionByNamePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family autocompaction by name post params -func (o *ColumnFamilyAutocompactionByNamePostParams) WithHTTPClient(client *http.Client) *ColumnFamilyAutocompactionByNamePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family autocompaction by name post params -func (o *ColumnFamilyAutocompactionByNamePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family autocompaction by name post params -func (o *ColumnFamilyAutocompactionByNamePostParams) WithName(name string) *ColumnFamilyAutocompactionByNamePostParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family autocompaction by name post params -func (o *ColumnFamilyAutocompactionByNamePostParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyAutocompactionByNamePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_autocompaction_by_name_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_autocompaction_by_name_post_responses.go deleted file mode 100644 index 5312e03442..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_autocompaction_by_name_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyAutocompactionByNamePostReader is a Reader for the ColumnFamilyAutocompactionByNamePost structure. -type ColumnFamilyAutocompactionByNamePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyAutocompactionByNamePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyAutocompactionByNamePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyAutocompactionByNamePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyAutocompactionByNamePostOK creates a ColumnFamilyAutocompactionByNamePostOK with default headers values -func NewColumnFamilyAutocompactionByNamePostOK() *ColumnFamilyAutocompactionByNamePostOK { - return &ColumnFamilyAutocompactionByNamePostOK{} -} - -/* -ColumnFamilyAutocompactionByNamePostOK handles this case with default header values. - -Success -*/ -type ColumnFamilyAutocompactionByNamePostOK struct { -} - -func (o *ColumnFamilyAutocompactionByNamePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyAutocompactionByNamePostDefault creates a ColumnFamilyAutocompactionByNamePostDefault with default headers values -func NewColumnFamilyAutocompactionByNamePostDefault(code int) *ColumnFamilyAutocompactionByNamePostDefault { - return &ColumnFamilyAutocompactionByNamePostDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyAutocompactionByNamePostDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyAutocompactionByNamePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family autocompaction by name post default response -func (o *ColumnFamilyAutocompactionByNamePostDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyAutocompactionByNamePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyAutocompactionByNamePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyAutocompactionByNamePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_built_indexes_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_built_indexes_by_name_get_parameters.go deleted file mode 100644 index 1db3ffc46d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_built_indexes_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyBuiltIndexesByNameGetParams creates a new ColumnFamilyBuiltIndexesByNameGetParams object -// with the default values initialized. -func NewColumnFamilyBuiltIndexesByNameGetParams() *ColumnFamilyBuiltIndexesByNameGetParams { - var () - return &ColumnFamilyBuiltIndexesByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyBuiltIndexesByNameGetParamsWithTimeout creates a new ColumnFamilyBuiltIndexesByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyBuiltIndexesByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyBuiltIndexesByNameGetParams { - var () - return &ColumnFamilyBuiltIndexesByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyBuiltIndexesByNameGetParamsWithContext creates a new ColumnFamilyBuiltIndexesByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyBuiltIndexesByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyBuiltIndexesByNameGetParams { - var () - return &ColumnFamilyBuiltIndexesByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyBuiltIndexesByNameGetParamsWithHTTPClient creates a new ColumnFamilyBuiltIndexesByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyBuiltIndexesByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyBuiltIndexesByNameGetParams { - var () - return &ColumnFamilyBuiltIndexesByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyBuiltIndexesByNameGetParams contains all the parameters to send to the API endpoint -for the column family built indexes by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyBuiltIndexesByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family built indexes by name get params -func (o *ColumnFamilyBuiltIndexesByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyBuiltIndexesByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family built indexes by name get params -func (o *ColumnFamilyBuiltIndexesByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family built indexes by name get params -func (o *ColumnFamilyBuiltIndexesByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyBuiltIndexesByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family built indexes by name get params -func (o *ColumnFamilyBuiltIndexesByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family built indexes by name get params -func (o *ColumnFamilyBuiltIndexesByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyBuiltIndexesByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family built indexes by name get params -func (o *ColumnFamilyBuiltIndexesByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family built indexes by name get params -func (o *ColumnFamilyBuiltIndexesByNameGetParams) WithName(name string) *ColumnFamilyBuiltIndexesByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family built indexes by name get params -func (o *ColumnFamilyBuiltIndexesByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyBuiltIndexesByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_built_indexes_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_built_indexes_by_name_get_responses.go deleted file mode 100644 index 73ef1f2a76..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_built_indexes_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyBuiltIndexesByNameGetReader is a Reader for the ColumnFamilyBuiltIndexesByNameGet structure. -type ColumnFamilyBuiltIndexesByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyBuiltIndexesByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyBuiltIndexesByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyBuiltIndexesByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyBuiltIndexesByNameGetOK creates a ColumnFamilyBuiltIndexesByNameGetOK with default headers values -func NewColumnFamilyBuiltIndexesByNameGetOK() *ColumnFamilyBuiltIndexesByNameGetOK { - return &ColumnFamilyBuiltIndexesByNameGetOK{} -} - -/* -ColumnFamilyBuiltIndexesByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyBuiltIndexesByNameGetOK struct { - Payload []string -} - -func (o *ColumnFamilyBuiltIndexesByNameGetOK) GetPayload() []string { - return o.Payload -} - -func (o *ColumnFamilyBuiltIndexesByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyBuiltIndexesByNameGetDefault creates a ColumnFamilyBuiltIndexesByNameGetDefault with default headers values -func NewColumnFamilyBuiltIndexesByNameGetDefault(code int) *ColumnFamilyBuiltIndexesByNameGetDefault { - return &ColumnFamilyBuiltIndexesByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyBuiltIndexesByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyBuiltIndexesByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family built indexes by name get default response -func (o *ColumnFamilyBuiltIndexesByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyBuiltIndexesByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyBuiltIndexesByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyBuiltIndexesByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compaction_by_name_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compaction_by_name_post_parameters.go deleted file mode 100644 index cac0499e6f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compaction_by_name_post_parameters.go +++ /dev/null @@ -1,187 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewColumnFamilyCompactionByNamePostParams creates a new ColumnFamilyCompactionByNamePostParams object -// with the default values initialized. -func NewColumnFamilyCompactionByNamePostParams() *ColumnFamilyCompactionByNamePostParams { - var () - return &ColumnFamilyCompactionByNamePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyCompactionByNamePostParamsWithTimeout creates a new ColumnFamilyCompactionByNamePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyCompactionByNamePostParamsWithTimeout(timeout time.Duration) *ColumnFamilyCompactionByNamePostParams { - var () - return &ColumnFamilyCompactionByNamePostParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyCompactionByNamePostParamsWithContext creates a new ColumnFamilyCompactionByNamePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyCompactionByNamePostParamsWithContext(ctx context.Context) *ColumnFamilyCompactionByNamePostParams { - var () - return &ColumnFamilyCompactionByNamePostParams{ - - Context: ctx, - } -} - -// NewColumnFamilyCompactionByNamePostParamsWithHTTPClient creates a new ColumnFamilyCompactionByNamePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyCompactionByNamePostParamsWithHTTPClient(client *http.Client) *ColumnFamilyCompactionByNamePostParams { - var () - return &ColumnFamilyCompactionByNamePostParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyCompactionByNamePostParams contains all the parameters to send to the API endpoint -for the column family compaction by name post operation typically these are written to a http.Request -*/ -type ColumnFamilyCompactionByNamePostParams struct { - - /*Maximum - The maximum number of sstables in queue before compaction kicks off - - */ - Maximum int32 - /*Minimum - The minimum number of sstables in queue before compaction kicks off - - */ - Minimum int32 - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family compaction by name post params -func (o *ColumnFamilyCompactionByNamePostParams) WithTimeout(timeout time.Duration) *ColumnFamilyCompactionByNamePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family compaction by name post params -func (o *ColumnFamilyCompactionByNamePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family compaction by name post params -func (o *ColumnFamilyCompactionByNamePostParams) WithContext(ctx context.Context) *ColumnFamilyCompactionByNamePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family compaction by name post params -func (o *ColumnFamilyCompactionByNamePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family compaction by name post params -func (o *ColumnFamilyCompactionByNamePostParams) WithHTTPClient(client *http.Client) *ColumnFamilyCompactionByNamePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family compaction by name post params -func (o *ColumnFamilyCompactionByNamePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithMaximum adds the maximum to the column family compaction by name post params -func (o *ColumnFamilyCompactionByNamePostParams) WithMaximum(maximum int32) *ColumnFamilyCompactionByNamePostParams { - o.SetMaximum(maximum) - return o -} - -// SetMaximum adds the maximum to the column family compaction by name post params -func (o *ColumnFamilyCompactionByNamePostParams) SetMaximum(maximum int32) { - o.Maximum = maximum -} - -// WithMinimum adds the minimum to the column family compaction by name post params -func (o *ColumnFamilyCompactionByNamePostParams) WithMinimum(minimum int32) *ColumnFamilyCompactionByNamePostParams { - o.SetMinimum(minimum) - return o -} - -// SetMinimum adds the minimum to the column family compaction by name post params -func (o *ColumnFamilyCompactionByNamePostParams) SetMinimum(minimum int32) { - o.Minimum = minimum -} - -// WithName adds the name to the column family compaction by name post params -func (o *ColumnFamilyCompactionByNamePostParams) WithName(name string) *ColumnFamilyCompactionByNamePostParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family compaction by name post params -func (o *ColumnFamilyCompactionByNamePostParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyCompactionByNamePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param maximum - qrMaximum := o.Maximum - qMaximum := swag.FormatInt32(qrMaximum) - if qMaximum != "" { - if err := r.SetQueryParam("maximum", qMaximum); err != nil { - return err - } - } - - // query param minimum - qrMinimum := o.Minimum - qMinimum := swag.FormatInt32(qrMinimum) - if qMinimum != "" { - if err := r.SetQueryParam("minimum", qMinimum); err != nil { - return err - } - } - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compaction_by_name_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compaction_by_name_post_responses.go deleted file mode 100644 index 204c08f663..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compaction_by_name_post_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyCompactionByNamePostReader is a Reader for the ColumnFamilyCompactionByNamePost structure. -type ColumnFamilyCompactionByNamePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyCompactionByNamePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyCompactionByNamePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyCompactionByNamePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyCompactionByNamePostOK creates a ColumnFamilyCompactionByNamePostOK with default headers values -func NewColumnFamilyCompactionByNamePostOK() *ColumnFamilyCompactionByNamePostOK { - return &ColumnFamilyCompactionByNamePostOK{} -} - -/* -ColumnFamilyCompactionByNamePostOK handles this case with default header values. - -Success -*/ -type ColumnFamilyCompactionByNamePostOK struct { - Payload string -} - -func (o *ColumnFamilyCompactionByNamePostOK) GetPayload() string { - return o.Payload -} - -func (o *ColumnFamilyCompactionByNamePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyCompactionByNamePostDefault creates a ColumnFamilyCompactionByNamePostDefault with default headers values -func NewColumnFamilyCompactionByNamePostDefault(code int) *ColumnFamilyCompactionByNamePostDefault { - return &ColumnFamilyCompactionByNamePostDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyCompactionByNamePostDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyCompactionByNamePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family compaction by name post default response -func (o *ColumnFamilyCompactionByNamePostDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyCompactionByNamePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyCompactionByNamePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyCompactionByNamePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compaction_strategy_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compaction_strategy_by_name_get_parameters.go deleted file mode 100644 index 4eee48277e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compaction_strategy_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyCompactionStrategyByNameGetParams creates a new ColumnFamilyCompactionStrategyByNameGetParams object -// with the default values initialized. -func NewColumnFamilyCompactionStrategyByNameGetParams() *ColumnFamilyCompactionStrategyByNameGetParams { - var () - return &ColumnFamilyCompactionStrategyByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyCompactionStrategyByNameGetParamsWithTimeout creates a new ColumnFamilyCompactionStrategyByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyCompactionStrategyByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyCompactionStrategyByNameGetParams { - var () - return &ColumnFamilyCompactionStrategyByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyCompactionStrategyByNameGetParamsWithContext creates a new ColumnFamilyCompactionStrategyByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyCompactionStrategyByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyCompactionStrategyByNameGetParams { - var () - return &ColumnFamilyCompactionStrategyByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyCompactionStrategyByNameGetParamsWithHTTPClient creates a new ColumnFamilyCompactionStrategyByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyCompactionStrategyByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyCompactionStrategyByNameGetParams { - var () - return &ColumnFamilyCompactionStrategyByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyCompactionStrategyByNameGetParams contains all the parameters to send to the API endpoint -for the column family compaction strategy by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyCompactionStrategyByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family compaction strategy by name get params -func (o *ColumnFamilyCompactionStrategyByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyCompactionStrategyByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family compaction strategy by name get params -func (o *ColumnFamilyCompactionStrategyByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family compaction strategy by name get params -func (o *ColumnFamilyCompactionStrategyByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyCompactionStrategyByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family compaction strategy by name get params -func (o *ColumnFamilyCompactionStrategyByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family compaction strategy by name get params -func (o *ColumnFamilyCompactionStrategyByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyCompactionStrategyByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family compaction strategy by name get params -func (o *ColumnFamilyCompactionStrategyByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family compaction strategy by name get params -func (o *ColumnFamilyCompactionStrategyByNameGetParams) WithName(name string) *ColumnFamilyCompactionStrategyByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family compaction strategy by name get params -func (o *ColumnFamilyCompactionStrategyByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyCompactionStrategyByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compaction_strategy_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compaction_strategy_by_name_get_responses.go deleted file mode 100644 index 9dfd6712e1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compaction_strategy_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyCompactionStrategyByNameGetReader is a Reader for the ColumnFamilyCompactionStrategyByNameGet structure. -type ColumnFamilyCompactionStrategyByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyCompactionStrategyByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyCompactionStrategyByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyCompactionStrategyByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyCompactionStrategyByNameGetOK creates a ColumnFamilyCompactionStrategyByNameGetOK with default headers values -func NewColumnFamilyCompactionStrategyByNameGetOK() *ColumnFamilyCompactionStrategyByNameGetOK { - return &ColumnFamilyCompactionStrategyByNameGetOK{} -} - -/* -ColumnFamilyCompactionStrategyByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyCompactionStrategyByNameGetOK struct { - Payload string -} - -func (o *ColumnFamilyCompactionStrategyByNameGetOK) GetPayload() string { - return o.Payload -} - -func (o *ColumnFamilyCompactionStrategyByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyCompactionStrategyByNameGetDefault creates a ColumnFamilyCompactionStrategyByNameGetDefault with default headers values -func NewColumnFamilyCompactionStrategyByNameGetDefault(code int) *ColumnFamilyCompactionStrategyByNameGetDefault { - return &ColumnFamilyCompactionStrategyByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyCompactionStrategyByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyCompactionStrategyByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family compaction strategy by name get default response -func (o *ColumnFamilyCompactionStrategyByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyCompactionStrategyByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyCompactionStrategyByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyCompactionStrategyByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compaction_strategy_by_name_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compaction_strategy_by_name_post_parameters.go deleted file mode 100644 index eb2fff1537..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compaction_strategy_by_name_post_parameters.go +++ /dev/null @@ -1,161 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyCompactionStrategyByNamePostParams creates a new ColumnFamilyCompactionStrategyByNamePostParams object -// with the default values initialized. -func NewColumnFamilyCompactionStrategyByNamePostParams() *ColumnFamilyCompactionStrategyByNamePostParams { - var () - return &ColumnFamilyCompactionStrategyByNamePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyCompactionStrategyByNamePostParamsWithTimeout creates a new ColumnFamilyCompactionStrategyByNamePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyCompactionStrategyByNamePostParamsWithTimeout(timeout time.Duration) *ColumnFamilyCompactionStrategyByNamePostParams { - var () - return &ColumnFamilyCompactionStrategyByNamePostParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyCompactionStrategyByNamePostParamsWithContext creates a new ColumnFamilyCompactionStrategyByNamePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyCompactionStrategyByNamePostParamsWithContext(ctx context.Context) *ColumnFamilyCompactionStrategyByNamePostParams { - var () - return &ColumnFamilyCompactionStrategyByNamePostParams{ - - Context: ctx, - } -} - -// NewColumnFamilyCompactionStrategyByNamePostParamsWithHTTPClient creates a new ColumnFamilyCompactionStrategyByNamePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyCompactionStrategyByNamePostParamsWithHTTPClient(client *http.Client) *ColumnFamilyCompactionStrategyByNamePostParams { - var () - return &ColumnFamilyCompactionStrategyByNamePostParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyCompactionStrategyByNamePostParams contains all the parameters to send to the API endpoint -for the column family compaction strategy by name post operation typically these are written to a http.Request -*/ -type ColumnFamilyCompactionStrategyByNamePostParams struct { - - /*ClassName - The class name - - */ - ClassName string - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family compaction strategy by name post params -func (o *ColumnFamilyCompactionStrategyByNamePostParams) WithTimeout(timeout time.Duration) *ColumnFamilyCompactionStrategyByNamePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family compaction strategy by name post params -func (o *ColumnFamilyCompactionStrategyByNamePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family compaction strategy by name post params -func (o *ColumnFamilyCompactionStrategyByNamePostParams) WithContext(ctx context.Context) *ColumnFamilyCompactionStrategyByNamePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family compaction strategy by name post params -func (o *ColumnFamilyCompactionStrategyByNamePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family compaction strategy by name post params -func (o *ColumnFamilyCompactionStrategyByNamePostParams) WithHTTPClient(client *http.Client) *ColumnFamilyCompactionStrategyByNamePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family compaction strategy by name post params -func (o *ColumnFamilyCompactionStrategyByNamePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClassName adds the className to the column family compaction strategy by name post params -func (o *ColumnFamilyCompactionStrategyByNamePostParams) WithClassName(className string) *ColumnFamilyCompactionStrategyByNamePostParams { - o.SetClassName(className) - return o -} - -// SetClassName adds the className to the column family compaction strategy by name post params -func (o *ColumnFamilyCompactionStrategyByNamePostParams) SetClassName(className string) { - o.ClassName = className -} - -// WithName adds the name to the column family compaction strategy by name post params -func (o *ColumnFamilyCompactionStrategyByNamePostParams) WithName(name string) *ColumnFamilyCompactionStrategyByNamePostParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family compaction strategy by name post params -func (o *ColumnFamilyCompactionStrategyByNamePostParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyCompactionStrategyByNamePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param class_name - qrClassName := o.ClassName - qClassName := qrClassName - if qClassName != "" { - if err := r.SetQueryParam("class_name", qClassName); err != nil { - return err - } - } - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compaction_strategy_by_name_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compaction_strategy_by_name_post_responses.go deleted file mode 100644 index e4bb802d32..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compaction_strategy_by_name_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyCompactionStrategyByNamePostReader is a Reader for the ColumnFamilyCompactionStrategyByNamePost structure. -type ColumnFamilyCompactionStrategyByNamePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyCompactionStrategyByNamePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyCompactionStrategyByNamePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyCompactionStrategyByNamePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyCompactionStrategyByNamePostOK creates a ColumnFamilyCompactionStrategyByNamePostOK with default headers values -func NewColumnFamilyCompactionStrategyByNamePostOK() *ColumnFamilyCompactionStrategyByNamePostOK { - return &ColumnFamilyCompactionStrategyByNamePostOK{} -} - -/* -ColumnFamilyCompactionStrategyByNamePostOK handles this case with default header values. - -Success -*/ -type ColumnFamilyCompactionStrategyByNamePostOK struct { -} - -func (o *ColumnFamilyCompactionStrategyByNamePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyCompactionStrategyByNamePostDefault creates a ColumnFamilyCompactionStrategyByNamePostDefault with default headers values -func NewColumnFamilyCompactionStrategyByNamePostDefault(code int) *ColumnFamilyCompactionStrategyByNamePostDefault { - return &ColumnFamilyCompactionStrategyByNamePostDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyCompactionStrategyByNamePostDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyCompactionStrategyByNamePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family compaction strategy by name post default response -func (o *ColumnFamilyCompactionStrategyByNamePostDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyCompactionStrategyByNamePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyCompactionStrategyByNamePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyCompactionStrategyByNamePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compression_parameters_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compression_parameters_by_name_get_parameters.go deleted file mode 100644 index 0d6a322d0e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compression_parameters_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyCompressionParametersByNameGetParams creates a new ColumnFamilyCompressionParametersByNameGetParams object -// with the default values initialized. -func NewColumnFamilyCompressionParametersByNameGetParams() *ColumnFamilyCompressionParametersByNameGetParams { - var () - return &ColumnFamilyCompressionParametersByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyCompressionParametersByNameGetParamsWithTimeout creates a new ColumnFamilyCompressionParametersByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyCompressionParametersByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyCompressionParametersByNameGetParams { - var () - return &ColumnFamilyCompressionParametersByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyCompressionParametersByNameGetParamsWithContext creates a new ColumnFamilyCompressionParametersByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyCompressionParametersByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyCompressionParametersByNameGetParams { - var () - return &ColumnFamilyCompressionParametersByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyCompressionParametersByNameGetParamsWithHTTPClient creates a new ColumnFamilyCompressionParametersByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyCompressionParametersByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyCompressionParametersByNameGetParams { - var () - return &ColumnFamilyCompressionParametersByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyCompressionParametersByNameGetParams contains all the parameters to send to the API endpoint -for the column family compression parameters by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyCompressionParametersByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family compression parameters by name get params -func (o *ColumnFamilyCompressionParametersByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyCompressionParametersByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family compression parameters by name get params -func (o *ColumnFamilyCompressionParametersByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family compression parameters by name get params -func (o *ColumnFamilyCompressionParametersByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyCompressionParametersByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family compression parameters by name get params -func (o *ColumnFamilyCompressionParametersByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family compression parameters by name get params -func (o *ColumnFamilyCompressionParametersByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyCompressionParametersByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family compression parameters by name get params -func (o *ColumnFamilyCompressionParametersByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family compression parameters by name get params -func (o *ColumnFamilyCompressionParametersByNameGetParams) WithName(name string) *ColumnFamilyCompressionParametersByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family compression parameters by name get params -func (o *ColumnFamilyCompressionParametersByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyCompressionParametersByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compression_parameters_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compression_parameters_by_name_get_responses.go deleted file mode 100644 index 494bae06a4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compression_parameters_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyCompressionParametersByNameGetReader is a Reader for the ColumnFamilyCompressionParametersByNameGet structure. -type ColumnFamilyCompressionParametersByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyCompressionParametersByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyCompressionParametersByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyCompressionParametersByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyCompressionParametersByNameGetOK creates a ColumnFamilyCompressionParametersByNameGetOK with default headers values -func NewColumnFamilyCompressionParametersByNameGetOK() *ColumnFamilyCompressionParametersByNameGetOK { - return &ColumnFamilyCompressionParametersByNameGetOK{} -} - -/* -ColumnFamilyCompressionParametersByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyCompressionParametersByNameGetOK struct { - Payload []*models.Mapper -} - -func (o *ColumnFamilyCompressionParametersByNameGetOK) GetPayload() []*models.Mapper { - return o.Payload -} - -func (o *ColumnFamilyCompressionParametersByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyCompressionParametersByNameGetDefault creates a ColumnFamilyCompressionParametersByNameGetDefault with default headers values -func NewColumnFamilyCompressionParametersByNameGetDefault(code int) *ColumnFamilyCompressionParametersByNameGetDefault { - return &ColumnFamilyCompressionParametersByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyCompressionParametersByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyCompressionParametersByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family compression parameters by name get default response -func (o *ColumnFamilyCompressionParametersByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyCompressionParametersByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyCompressionParametersByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyCompressionParametersByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compression_parameters_by_name_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compression_parameters_by_name_post_parameters.go deleted file mode 100644 index d3a17a31b2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compression_parameters_by_name_post_parameters.go +++ /dev/null @@ -1,161 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyCompressionParametersByNamePostParams creates a new ColumnFamilyCompressionParametersByNamePostParams object -// with the default values initialized. -func NewColumnFamilyCompressionParametersByNamePostParams() *ColumnFamilyCompressionParametersByNamePostParams { - var () - return &ColumnFamilyCompressionParametersByNamePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyCompressionParametersByNamePostParamsWithTimeout creates a new ColumnFamilyCompressionParametersByNamePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyCompressionParametersByNamePostParamsWithTimeout(timeout time.Duration) *ColumnFamilyCompressionParametersByNamePostParams { - var () - return &ColumnFamilyCompressionParametersByNamePostParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyCompressionParametersByNamePostParamsWithContext creates a new ColumnFamilyCompressionParametersByNamePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyCompressionParametersByNamePostParamsWithContext(ctx context.Context) *ColumnFamilyCompressionParametersByNamePostParams { - var () - return &ColumnFamilyCompressionParametersByNamePostParams{ - - Context: ctx, - } -} - -// NewColumnFamilyCompressionParametersByNamePostParamsWithHTTPClient creates a new ColumnFamilyCompressionParametersByNamePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyCompressionParametersByNamePostParamsWithHTTPClient(client *http.Client) *ColumnFamilyCompressionParametersByNamePostParams { - var () - return &ColumnFamilyCompressionParametersByNamePostParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyCompressionParametersByNamePostParams contains all the parameters to send to the API endpoint -for the column family compression parameters by name post operation typically these are written to a http.Request -*/ -type ColumnFamilyCompressionParametersByNamePostParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - /*Opts - The options to set - - */ - Opts string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family compression parameters by name post params -func (o *ColumnFamilyCompressionParametersByNamePostParams) WithTimeout(timeout time.Duration) *ColumnFamilyCompressionParametersByNamePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family compression parameters by name post params -func (o *ColumnFamilyCompressionParametersByNamePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family compression parameters by name post params -func (o *ColumnFamilyCompressionParametersByNamePostParams) WithContext(ctx context.Context) *ColumnFamilyCompressionParametersByNamePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family compression parameters by name post params -func (o *ColumnFamilyCompressionParametersByNamePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family compression parameters by name post params -func (o *ColumnFamilyCompressionParametersByNamePostParams) WithHTTPClient(client *http.Client) *ColumnFamilyCompressionParametersByNamePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family compression parameters by name post params -func (o *ColumnFamilyCompressionParametersByNamePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family compression parameters by name post params -func (o *ColumnFamilyCompressionParametersByNamePostParams) WithName(name string) *ColumnFamilyCompressionParametersByNamePostParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family compression parameters by name post params -func (o *ColumnFamilyCompressionParametersByNamePostParams) SetName(name string) { - o.Name = name -} - -// WithOpts adds the opts to the column family compression parameters by name post params -func (o *ColumnFamilyCompressionParametersByNamePostParams) WithOpts(opts string) *ColumnFamilyCompressionParametersByNamePostParams { - o.SetOpts(opts) - return o -} - -// SetOpts adds the opts to the column family compression parameters by name post params -func (o *ColumnFamilyCompressionParametersByNamePostParams) SetOpts(opts string) { - o.Opts = opts -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyCompressionParametersByNamePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - // query param opts - qrOpts := o.Opts - qOpts := qrOpts - if qOpts != "" { - if err := r.SetQueryParam("opts", qOpts); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compression_parameters_by_name_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compression_parameters_by_name_post_responses.go deleted file mode 100644 index 8cd43e8bc2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_compression_parameters_by_name_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyCompressionParametersByNamePostReader is a Reader for the ColumnFamilyCompressionParametersByNamePost structure. -type ColumnFamilyCompressionParametersByNamePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyCompressionParametersByNamePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyCompressionParametersByNamePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyCompressionParametersByNamePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyCompressionParametersByNamePostOK creates a ColumnFamilyCompressionParametersByNamePostOK with default headers values -func NewColumnFamilyCompressionParametersByNamePostOK() *ColumnFamilyCompressionParametersByNamePostOK { - return &ColumnFamilyCompressionParametersByNamePostOK{} -} - -/* -ColumnFamilyCompressionParametersByNamePostOK handles this case with default header values. - -Success -*/ -type ColumnFamilyCompressionParametersByNamePostOK struct { -} - -func (o *ColumnFamilyCompressionParametersByNamePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyCompressionParametersByNamePostDefault creates a ColumnFamilyCompressionParametersByNamePostDefault with default headers values -func NewColumnFamilyCompressionParametersByNamePostDefault(code int) *ColumnFamilyCompressionParametersByNamePostDefault { - return &ColumnFamilyCompressionParametersByNamePostDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyCompressionParametersByNamePostDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyCompressionParametersByNamePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family compression parameters by name post default response -func (o *ColumnFamilyCompressionParametersByNamePostDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyCompressionParametersByNamePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyCompressionParametersByNamePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyCompressionParametersByNamePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_crc_check_chance_by_name_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_crc_check_chance_by_name_post_parameters.go deleted file mode 100644 index 51a2dfc15f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_crc_check_chance_by_name_post_parameters.go +++ /dev/null @@ -1,161 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyCrcCheckChanceByNamePostParams creates a new ColumnFamilyCrcCheckChanceByNamePostParams object -// with the default values initialized. -func NewColumnFamilyCrcCheckChanceByNamePostParams() *ColumnFamilyCrcCheckChanceByNamePostParams { - var () - return &ColumnFamilyCrcCheckChanceByNamePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyCrcCheckChanceByNamePostParamsWithTimeout creates a new ColumnFamilyCrcCheckChanceByNamePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyCrcCheckChanceByNamePostParamsWithTimeout(timeout time.Duration) *ColumnFamilyCrcCheckChanceByNamePostParams { - var () - return &ColumnFamilyCrcCheckChanceByNamePostParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyCrcCheckChanceByNamePostParamsWithContext creates a new ColumnFamilyCrcCheckChanceByNamePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyCrcCheckChanceByNamePostParamsWithContext(ctx context.Context) *ColumnFamilyCrcCheckChanceByNamePostParams { - var () - return &ColumnFamilyCrcCheckChanceByNamePostParams{ - - Context: ctx, - } -} - -// NewColumnFamilyCrcCheckChanceByNamePostParamsWithHTTPClient creates a new ColumnFamilyCrcCheckChanceByNamePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyCrcCheckChanceByNamePostParamsWithHTTPClient(client *http.Client) *ColumnFamilyCrcCheckChanceByNamePostParams { - var () - return &ColumnFamilyCrcCheckChanceByNamePostParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyCrcCheckChanceByNamePostParams contains all the parameters to send to the API endpoint -for the column family crc check chance by name post operation typically these are written to a http.Request -*/ -type ColumnFamilyCrcCheckChanceByNamePostParams struct { - - /*CheckChance - CRC check chance - - */ - CheckChance string - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family crc check chance by name post params -func (o *ColumnFamilyCrcCheckChanceByNamePostParams) WithTimeout(timeout time.Duration) *ColumnFamilyCrcCheckChanceByNamePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family crc check chance by name post params -func (o *ColumnFamilyCrcCheckChanceByNamePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family crc check chance by name post params -func (o *ColumnFamilyCrcCheckChanceByNamePostParams) WithContext(ctx context.Context) *ColumnFamilyCrcCheckChanceByNamePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family crc check chance by name post params -func (o *ColumnFamilyCrcCheckChanceByNamePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family crc check chance by name post params -func (o *ColumnFamilyCrcCheckChanceByNamePostParams) WithHTTPClient(client *http.Client) *ColumnFamilyCrcCheckChanceByNamePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family crc check chance by name post params -func (o *ColumnFamilyCrcCheckChanceByNamePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCheckChance adds the checkChance to the column family crc check chance by name post params -func (o *ColumnFamilyCrcCheckChanceByNamePostParams) WithCheckChance(checkChance string) *ColumnFamilyCrcCheckChanceByNamePostParams { - o.SetCheckChance(checkChance) - return o -} - -// SetCheckChance adds the checkChance to the column family crc check chance by name post params -func (o *ColumnFamilyCrcCheckChanceByNamePostParams) SetCheckChance(checkChance string) { - o.CheckChance = checkChance -} - -// WithName adds the name to the column family crc check chance by name post params -func (o *ColumnFamilyCrcCheckChanceByNamePostParams) WithName(name string) *ColumnFamilyCrcCheckChanceByNamePostParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family crc check chance by name post params -func (o *ColumnFamilyCrcCheckChanceByNamePostParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyCrcCheckChanceByNamePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param check_chance - qrCheckChance := o.CheckChance - qCheckChance := qrCheckChance - if qCheckChance != "" { - if err := r.SetQueryParam("check_chance", qCheckChance); err != nil { - return err - } - } - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_crc_check_chance_by_name_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_crc_check_chance_by_name_post_responses.go deleted file mode 100644 index 0ecc6acd42..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_crc_check_chance_by_name_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyCrcCheckChanceByNamePostReader is a Reader for the ColumnFamilyCrcCheckChanceByNamePost structure. -type ColumnFamilyCrcCheckChanceByNamePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyCrcCheckChanceByNamePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyCrcCheckChanceByNamePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyCrcCheckChanceByNamePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyCrcCheckChanceByNamePostOK creates a ColumnFamilyCrcCheckChanceByNamePostOK with default headers values -func NewColumnFamilyCrcCheckChanceByNamePostOK() *ColumnFamilyCrcCheckChanceByNamePostOK { - return &ColumnFamilyCrcCheckChanceByNamePostOK{} -} - -/* -ColumnFamilyCrcCheckChanceByNamePostOK handles this case with default header values. - -Success -*/ -type ColumnFamilyCrcCheckChanceByNamePostOK struct { -} - -func (o *ColumnFamilyCrcCheckChanceByNamePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyCrcCheckChanceByNamePostDefault creates a ColumnFamilyCrcCheckChanceByNamePostDefault with default headers values -func NewColumnFamilyCrcCheckChanceByNamePostDefault(code int) *ColumnFamilyCrcCheckChanceByNamePostDefault { - return &ColumnFamilyCrcCheckChanceByNamePostDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyCrcCheckChanceByNamePostDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyCrcCheckChanceByNamePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family crc check chance by name post default response -func (o *ColumnFamilyCrcCheckChanceByNamePostDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyCrcCheckChanceByNamePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyCrcCheckChanceByNamePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyCrcCheckChanceByNamePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_droppable_ratio_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_droppable_ratio_by_name_get_parameters.go deleted file mode 100644 index be65465774..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_droppable_ratio_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyDroppableRatioByNameGetParams creates a new ColumnFamilyDroppableRatioByNameGetParams object -// with the default values initialized. -func NewColumnFamilyDroppableRatioByNameGetParams() *ColumnFamilyDroppableRatioByNameGetParams { - var () - return &ColumnFamilyDroppableRatioByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyDroppableRatioByNameGetParamsWithTimeout creates a new ColumnFamilyDroppableRatioByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyDroppableRatioByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyDroppableRatioByNameGetParams { - var () - return &ColumnFamilyDroppableRatioByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyDroppableRatioByNameGetParamsWithContext creates a new ColumnFamilyDroppableRatioByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyDroppableRatioByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyDroppableRatioByNameGetParams { - var () - return &ColumnFamilyDroppableRatioByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyDroppableRatioByNameGetParamsWithHTTPClient creates a new ColumnFamilyDroppableRatioByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyDroppableRatioByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyDroppableRatioByNameGetParams { - var () - return &ColumnFamilyDroppableRatioByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyDroppableRatioByNameGetParams contains all the parameters to send to the API endpoint -for the column family droppable ratio by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyDroppableRatioByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family droppable ratio by name get params -func (o *ColumnFamilyDroppableRatioByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyDroppableRatioByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family droppable ratio by name get params -func (o *ColumnFamilyDroppableRatioByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family droppable ratio by name get params -func (o *ColumnFamilyDroppableRatioByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyDroppableRatioByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family droppable ratio by name get params -func (o *ColumnFamilyDroppableRatioByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family droppable ratio by name get params -func (o *ColumnFamilyDroppableRatioByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyDroppableRatioByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family droppable ratio by name get params -func (o *ColumnFamilyDroppableRatioByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family droppable ratio by name get params -func (o *ColumnFamilyDroppableRatioByNameGetParams) WithName(name string) *ColumnFamilyDroppableRatioByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family droppable ratio by name get params -func (o *ColumnFamilyDroppableRatioByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyDroppableRatioByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_droppable_ratio_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_droppable_ratio_by_name_get_responses.go deleted file mode 100644 index dd62950589..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_droppable_ratio_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyDroppableRatioByNameGetReader is a Reader for the ColumnFamilyDroppableRatioByNameGet structure. -type ColumnFamilyDroppableRatioByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyDroppableRatioByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyDroppableRatioByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyDroppableRatioByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyDroppableRatioByNameGetOK creates a ColumnFamilyDroppableRatioByNameGetOK with default headers values -func NewColumnFamilyDroppableRatioByNameGetOK() *ColumnFamilyDroppableRatioByNameGetOK { - return &ColumnFamilyDroppableRatioByNameGetOK{} -} - -/* -ColumnFamilyDroppableRatioByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyDroppableRatioByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyDroppableRatioByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyDroppableRatioByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyDroppableRatioByNameGetDefault creates a ColumnFamilyDroppableRatioByNameGetDefault with default headers values -func NewColumnFamilyDroppableRatioByNameGetDefault(code int) *ColumnFamilyDroppableRatioByNameGetDefault { - return &ColumnFamilyDroppableRatioByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyDroppableRatioByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyDroppableRatioByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family droppable ratio by name get default response -func (o *ColumnFamilyDroppableRatioByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyDroppableRatioByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyDroppableRatioByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyDroppableRatioByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_estimate_keys_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_estimate_keys_by_name_get_parameters.go deleted file mode 100644 index 6b5a446c4a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_estimate_keys_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyEstimateKeysByNameGetParams creates a new ColumnFamilyEstimateKeysByNameGetParams object -// with the default values initialized. -func NewColumnFamilyEstimateKeysByNameGetParams() *ColumnFamilyEstimateKeysByNameGetParams { - var () - return &ColumnFamilyEstimateKeysByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyEstimateKeysByNameGetParamsWithTimeout creates a new ColumnFamilyEstimateKeysByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyEstimateKeysByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyEstimateKeysByNameGetParams { - var () - return &ColumnFamilyEstimateKeysByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyEstimateKeysByNameGetParamsWithContext creates a new ColumnFamilyEstimateKeysByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyEstimateKeysByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyEstimateKeysByNameGetParams { - var () - return &ColumnFamilyEstimateKeysByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyEstimateKeysByNameGetParamsWithHTTPClient creates a new ColumnFamilyEstimateKeysByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyEstimateKeysByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyEstimateKeysByNameGetParams { - var () - return &ColumnFamilyEstimateKeysByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyEstimateKeysByNameGetParams contains all the parameters to send to the API endpoint -for the column family estimate keys by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyEstimateKeysByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family estimate keys by name get params -func (o *ColumnFamilyEstimateKeysByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyEstimateKeysByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family estimate keys by name get params -func (o *ColumnFamilyEstimateKeysByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family estimate keys by name get params -func (o *ColumnFamilyEstimateKeysByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyEstimateKeysByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family estimate keys by name get params -func (o *ColumnFamilyEstimateKeysByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family estimate keys by name get params -func (o *ColumnFamilyEstimateKeysByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyEstimateKeysByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family estimate keys by name get params -func (o *ColumnFamilyEstimateKeysByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family estimate keys by name get params -func (o *ColumnFamilyEstimateKeysByNameGetParams) WithName(name string) *ColumnFamilyEstimateKeysByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family estimate keys by name get params -func (o *ColumnFamilyEstimateKeysByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyEstimateKeysByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_estimate_keys_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_estimate_keys_by_name_get_responses.go deleted file mode 100644 index 3afbb01516..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_estimate_keys_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyEstimateKeysByNameGetReader is a Reader for the ColumnFamilyEstimateKeysByNameGet structure. -type ColumnFamilyEstimateKeysByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyEstimateKeysByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyEstimateKeysByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyEstimateKeysByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyEstimateKeysByNameGetOK creates a ColumnFamilyEstimateKeysByNameGetOK with default headers values -func NewColumnFamilyEstimateKeysByNameGetOK() *ColumnFamilyEstimateKeysByNameGetOK { - return &ColumnFamilyEstimateKeysByNameGetOK{} -} - -/* -ColumnFamilyEstimateKeysByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyEstimateKeysByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyEstimateKeysByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyEstimateKeysByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyEstimateKeysByNameGetDefault creates a ColumnFamilyEstimateKeysByNameGetDefault with default headers values -func NewColumnFamilyEstimateKeysByNameGetDefault(code int) *ColumnFamilyEstimateKeysByNameGetDefault { - return &ColumnFamilyEstimateKeysByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyEstimateKeysByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyEstimateKeysByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family estimate keys by name get default response -func (o *ColumnFamilyEstimateKeysByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyEstimateKeysByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyEstimateKeysByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyEstimateKeysByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_get_parameters.go deleted file mode 100644 index 253a229203..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyGetParams creates a new ColumnFamilyGetParams object -// with the default values initialized. -func NewColumnFamilyGetParams() *ColumnFamilyGetParams { - - return &ColumnFamilyGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyGetParamsWithTimeout creates a new ColumnFamilyGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyGetParams { - - return &ColumnFamilyGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyGetParamsWithContext creates a new ColumnFamilyGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyGetParamsWithContext(ctx context.Context) *ColumnFamilyGetParams { - - return &ColumnFamilyGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyGetParamsWithHTTPClient creates a new ColumnFamilyGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyGetParams { - - return &ColumnFamilyGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyGetParams contains all the parameters to send to the API endpoint -for the column family get operation typically these are written to a http.Request -*/ -type ColumnFamilyGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family get params -func (o *ColumnFamilyGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family get params -func (o *ColumnFamilyGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family get params -func (o *ColumnFamilyGetParams) WithContext(ctx context.Context) *ColumnFamilyGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family get params -func (o *ColumnFamilyGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family get params -func (o *ColumnFamilyGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family get params -func (o *ColumnFamilyGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_get_responses.go deleted file mode 100644 index 9761eccba4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyGetReader is a Reader for the ColumnFamilyGet structure. -type ColumnFamilyGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyGetOK creates a ColumnFamilyGetOK with default headers values -func NewColumnFamilyGetOK() *ColumnFamilyGetOK { - return &ColumnFamilyGetOK{} -} - -/* -ColumnFamilyGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyGetOK struct { - Payload []*models.ColumnFamilyInfo -} - -func (o *ColumnFamilyGetOK) GetPayload() []*models.ColumnFamilyInfo { - return o.Payload -} - -func (o *ColumnFamilyGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyGetDefault creates a ColumnFamilyGetDefault with default headers values -func NewColumnFamilyGetDefault(code int) *ColumnFamilyGetDefault { - return &ColumnFamilyGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family get default response -func (o *ColumnFamilyGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_load_sstable_by_name_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_load_sstable_by_name_post_parameters.go deleted file mode 100644 index e6a107eb8d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_load_sstable_by_name_post_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyLoadSstableByNamePostParams creates a new ColumnFamilyLoadSstableByNamePostParams object -// with the default values initialized. -func NewColumnFamilyLoadSstableByNamePostParams() *ColumnFamilyLoadSstableByNamePostParams { - var () - return &ColumnFamilyLoadSstableByNamePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyLoadSstableByNamePostParamsWithTimeout creates a new ColumnFamilyLoadSstableByNamePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyLoadSstableByNamePostParamsWithTimeout(timeout time.Duration) *ColumnFamilyLoadSstableByNamePostParams { - var () - return &ColumnFamilyLoadSstableByNamePostParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyLoadSstableByNamePostParamsWithContext creates a new ColumnFamilyLoadSstableByNamePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyLoadSstableByNamePostParamsWithContext(ctx context.Context) *ColumnFamilyLoadSstableByNamePostParams { - var () - return &ColumnFamilyLoadSstableByNamePostParams{ - - Context: ctx, - } -} - -// NewColumnFamilyLoadSstableByNamePostParamsWithHTTPClient creates a new ColumnFamilyLoadSstableByNamePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyLoadSstableByNamePostParamsWithHTTPClient(client *http.Client) *ColumnFamilyLoadSstableByNamePostParams { - var () - return &ColumnFamilyLoadSstableByNamePostParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyLoadSstableByNamePostParams contains all the parameters to send to the API endpoint -for the column family load sstable by name post operation typically these are written to a http.Request -*/ -type ColumnFamilyLoadSstableByNamePostParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family load sstable by name post params -func (o *ColumnFamilyLoadSstableByNamePostParams) WithTimeout(timeout time.Duration) *ColumnFamilyLoadSstableByNamePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family load sstable by name post params -func (o *ColumnFamilyLoadSstableByNamePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family load sstable by name post params -func (o *ColumnFamilyLoadSstableByNamePostParams) WithContext(ctx context.Context) *ColumnFamilyLoadSstableByNamePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family load sstable by name post params -func (o *ColumnFamilyLoadSstableByNamePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family load sstable by name post params -func (o *ColumnFamilyLoadSstableByNamePostParams) WithHTTPClient(client *http.Client) *ColumnFamilyLoadSstableByNamePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family load sstable by name post params -func (o *ColumnFamilyLoadSstableByNamePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family load sstable by name post params -func (o *ColumnFamilyLoadSstableByNamePostParams) WithName(name string) *ColumnFamilyLoadSstableByNamePostParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family load sstable by name post params -func (o *ColumnFamilyLoadSstableByNamePostParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyLoadSstableByNamePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_load_sstable_by_name_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_load_sstable_by_name_post_responses.go deleted file mode 100644 index bab35a1ba9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_load_sstable_by_name_post_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyLoadSstableByNamePostReader is a Reader for the ColumnFamilyLoadSstableByNamePost structure. -type ColumnFamilyLoadSstableByNamePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyLoadSstableByNamePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyLoadSstableByNamePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyLoadSstableByNamePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyLoadSstableByNamePostOK creates a ColumnFamilyLoadSstableByNamePostOK with default headers values -func NewColumnFamilyLoadSstableByNamePostOK() *ColumnFamilyLoadSstableByNamePostOK { - return &ColumnFamilyLoadSstableByNamePostOK{} -} - -/* -ColumnFamilyLoadSstableByNamePostOK handles this case with default header values. - -Success -*/ -type ColumnFamilyLoadSstableByNamePostOK struct { - Payload string -} - -func (o *ColumnFamilyLoadSstableByNamePostOK) GetPayload() string { - return o.Payload -} - -func (o *ColumnFamilyLoadSstableByNamePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyLoadSstableByNamePostDefault creates a ColumnFamilyLoadSstableByNamePostDefault with default headers values -func NewColumnFamilyLoadSstableByNamePostDefault(code int) *ColumnFamilyLoadSstableByNamePostDefault { - return &ColumnFamilyLoadSstableByNamePostDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyLoadSstableByNamePostDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyLoadSstableByNamePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family load sstable by name post default response -func (o *ColumnFamilyLoadSstableByNamePostDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyLoadSstableByNamePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyLoadSstableByNamePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyLoadSstableByNamePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_major_compaction_by_name_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_major_compaction_by_name_post_parameters.go deleted file mode 100644 index 8a641ab0f5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_major_compaction_by_name_post_parameters.go +++ /dev/null @@ -1,169 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewColumnFamilyMajorCompactionByNamePostParams creates a new ColumnFamilyMajorCompactionByNamePostParams object -// with the default values initialized. -func NewColumnFamilyMajorCompactionByNamePostParams() *ColumnFamilyMajorCompactionByNamePostParams { - var () - return &ColumnFamilyMajorCompactionByNamePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMajorCompactionByNamePostParamsWithTimeout creates a new ColumnFamilyMajorCompactionByNamePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMajorCompactionByNamePostParamsWithTimeout(timeout time.Duration) *ColumnFamilyMajorCompactionByNamePostParams { - var () - return &ColumnFamilyMajorCompactionByNamePostParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMajorCompactionByNamePostParamsWithContext creates a new ColumnFamilyMajorCompactionByNamePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMajorCompactionByNamePostParamsWithContext(ctx context.Context) *ColumnFamilyMajorCompactionByNamePostParams { - var () - return &ColumnFamilyMajorCompactionByNamePostParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMajorCompactionByNamePostParamsWithHTTPClient creates a new ColumnFamilyMajorCompactionByNamePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMajorCompactionByNamePostParamsWithHTTPClient(client *http.Client) *ColumnFamilyMajorCompactionByNamePostParams { - var () - return &ColumnFamilyMajorCompactionByNamePostParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMajorCompactionByNamePostParams contains all the parameters to send to the API endpoint -for the column family major compaction by name post operation typically these are written to a http.Request -*/ -type ColumnFamilyMajorCompactionByNamePostParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - /*SplitOutput - true if the output of the major compaction should be split in several sstables - - */ - SplitOutput *bool - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family major compaction by name post params -func (o *ColumnFamilyMajorCompactionByNamePostParams) WithTimeout(timeout time.Duration) *ColumnFamilyMajorCompactionByNamePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family major compaction by name post params -func (o *ColumnFamilyMajorCompactionByNamePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family major compaction by name post params -func (o *ColumnFamilyMajorCompactionByNamePostParams) WithContext(ctx context.Context) *ColumnFamilyMajorCompactionByNamePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family major compaction by name post params -func (o *ColumnFamilyMajorCompactionByNamePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family major compaction by name post params -func (o *ColumnFamilyMajorCompactionByNamePostParams) WithHTTPClient(client *http.Client) *ColumnFamilyMajorCompactionByNamePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family major compaction by name post params -func (o *ColumnFamilyMajorCompactionByNamePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family major compaction by name post params -func (o *ColumnFamilyMajorCompactionByNamePostParams) WithName(name string) *ColumnFamilyMajorCompactionByNamePostParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family major compaction by name post params -func (o *ColumnFamilyMajorCompactionByNamePostParams) SetName(name string) { - o.Name = name -} - -// WithSplitOutput adds the splitOutput to the column family major compaction by name post params -func (o *ColumnFamilyMajorCompactionByNamePostParams) WithSplitOutput(splitOutput *bool) *ColumnFamilyMajorCompactionByNamePostParams { - o.SetSplitOutput(splitOutput) - return o -} - -// SetSplitOutput adds the splitOutput to the column family major compaction by name post params -func (o *ColumnFamilyMajorCompactionByNamePostParams) SetSplitOutput(splitOutput *bool) { - o.SplitOutput = splitOutput -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMajorCompactionByNamePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if o.SplitOutput != nil { - - // query param split_output - var qrSplitOutput bool - if o.SplitOutput != nil { - qrSplitOutput = *o.SplitOutput - } - qSplitOutput := swag.FormatBool(qrSplitOutput) - if qSplitOutput != "" { - if err := r.SetQueryParam("split_output", qSplitOutput); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_major_compaction_by_name_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_major_compaction_by_name_post_responses.go deleted file mode 100644 index 67718776d9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_major_compaction_by_name_post_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMajorCompactionByNamePostReader is a Reader for the ColumnFamilyMajorCompactionByNamePost structure. -type ColumnFamilyMajorCompactionByNamePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMajorCompactionByNamePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMajorCompactionByNamePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMajorCompactionByNamePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMajorCompactionByNamePostOK creates a ColumnFamilyMajorCompactionByNamePostOK with default headers values -func NewColumnFamilyMajorCompactionByNamePostOK() *ColumnFamilyMajorCompactionByNamePostOK { - return &ColumnFamilyMajorCompactionByNamePostOK{} -} - -/* -ColumnFamilyMajorCompactionByNamePostOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMajorCompactionByNamePostOK struct { - Payload string -} - -func (o *ColumnFamilyMajorCompactionByNamePostOK) GetPayload() string { - return o.Payload -} - -func (o *ColumnFamilyMajorCompactionByNamePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMajorCompactionByNamePostDefault creates a ColumnFamilyMajorCompactionByNamePostDefault with default headers values -func NewColumnFamilyMajorCompactionByNamePostDefault(code int) *ColumnFamilyMajorCompactionByNamePostDefault { - return &ColumnFamilyMajorCompactionByNamePostDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMajorCompactionByNamePostDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMajorCompactionByNamePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family major compaction by name post default response -func (o *ColumnFamilyMajorCompactionByNamePostDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMajorCompactionByNamePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMajorCompactionByNamePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMajorCompactionByNamePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_maximum_compaction_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_maximum_compaction_by_name_get_parameters.go deleted file mode 100644 index cd92478574..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_maximum_compaction_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMaximumCompactionByNameGetParams creates a new ColumnFamilyMaximumCompactionByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMaximumCompactionByNameGetParams() *ColumnFamilyMaximumCompactionByNameGetParams { - var () - return &ColumnFamilyMaximumCompactionByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMaximumCompactionByNameGetParamsWithTimeout creates a new ColumnFamilyMaximumCompactionByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMaximumCompactionByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMaximumCompactionByNameGetParams { - var () - return &ColumnFamilyMaximumCompactionByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMaximumCompactionByNameGetParamsWithContext creates a new ColumnFamilyMaximumCompactionByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMaximumCompactionByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMaximumCompactionByNameGetParams { - var () - return &ColumnFamilyMaximumCompactionByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMaximumCompactionByNameGetParamsWithHTTPClient creates a new ColumnFamilyMaximumCompactionByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMaximumCompactionByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMaximumCompactionByNameGetParams { - var () - return &ColumnFamilyMaximumCompactionByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMaximumCompactionByNameGetParams contains all the parameters to send to the API endpoint -for the column family maximum compaction by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMaximumCompactionByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family maximum compaction by name get params -func (o *ColumnFamilyMaximumCompactionByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMaximumCompactionByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family maximum compaction by name get params -func (o *ColumnFamilyMaximumCompactionByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family maximum compaction by name get params -func (o *ColumnFamilyMaximumCompactionByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMaximumCompactionByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family maximum compaction by name get params -func (o *ColumnFamilyMaximumCompactionByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family maximum compaction by name get params -func (o *ColumnFamilyMaximumCompactionByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMaximumCompactionByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family maximum compaction by name get params -func (o *ColumnFamilyMaximumCompactionByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family maximum compaction by name get params -func (o *ColumnFamilyMaximumCompactionByNameGetParams) WithName(name string) *ColumnFamilyMaximumCompactionByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family maximum compaction by name get params -func (o *ColumnFamilyMaximumCompactionByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMaximumCompactionByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_maximum_compaction_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_maximum_compaction_by_name_get_responses.go deleted file mode 100644 index 5497614352..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_maximum_compaction_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMaximumCompactionByNameGetReader is a Reader for the ColumnFamilyMaximumCompactionByNameGet structure. -type ColumnFamilyMaximumCompactionByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMaximumCompactionByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMaximumCompactionByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMaximumCompactionByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMaximumCompactionByNameGetOK creates a ColumnFamilyMaximumCompactionByNameGetOK with default headers values -func NewColumnFamilyMaximumCompactionByNameGetOK() *ColumnFamilyMaximumCompactionByNameGetOK { - return &ColumnFamilyMaximumCompactionByNameGetOK{} -} - -/* -ColumnFamilyMaximumCompactionByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMaximumCompactionByNameGetOK struct { - Payload string -} - -func (o *ColumnFamilyMaximumCompactionByNameGetOK) GetPayload() string { - return o.Payload -} - -func (o *ColumnFamilyMaximumCompactionByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMaximumCompactionByNameGetDefault creates a ColumnFamilyMaximumCompactionByNameGetDefault with default headers values -func NewColumnFamilyMaximumCompactionByNameGetDefault(code int) *ColumnFamilyMaximumCompactionByNameGetDefault { - return &ColumnFamilyMaximumCompactionByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMaximumCompactionByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMaximumCompactionByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family maximum compaction by name get default response -func (o *ColumnFamilyMaximumCompactionByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMaximumCompactionByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMaximumCompactionByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMaximumCompactionByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_maximum_compaction_by_name_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_maximum_compaction_by_name_post_parameters.go deleted file mode 100644 index a28fdfab48..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_maximum_compaction_by_name_post_parameters.go +++ /dev/null @@ -1,162 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewColumnFamilyMaximumCompactionByNamePostParams creates a new ColumnFamilyMaximumCompactionByNamePostParams object -// with the default values initialized. -func NewColumnFamilyMaximumCompactionByNamePostParams() *ColumnFamilyMaximumCompactionByNamePostParams { - var () - return &ColumnFamilyMaximumCompactionByNamePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMaximumCompactionByNamePostParamsWithTimeout creates a new ColumnFamilyMaximumCompactionByNamePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMaximumCompactionByNamePostParamsWithTimeout(timeout time.Duration) *ColumnFamilyMaximumCompactionByNamePostParams { - var () - return &ColumnFamilyMaximumCompactionByNamePostParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMaximumCompactionByNamePostParamsWithContext creates a new ColumnFamilyMaximumCompactionByNamePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMaximumCompactionByNamePostParamsWithContext(ctx context.Context) *ColumnFamilyMaximumCompactionByNamePostParams { - var () - return &ColumnFamilyMaximumCompactionByNamePostParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMaximumCompactionByNamePostParamsWithHTTPClient creates a new ColumnFamilyMaximumCompactionByNamePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMaximumCompactionByNamePostParamsWithHTTPClient(client *http.Client) *ColumnFamilyMaximumCompactionByNamePostParams { - var () - return &ColumnFamilyMaximumCompactionByNamePostParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMaximumCompactionByNamePostParams contains all the parameters to send to the API endpoint -for the column family maximum compaction by name post operation typically these are written to a http.Request -*/ -type ColumnFamilyMaximumCompactionByNamePostParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - /*Value - The maximum number of sstables in queue before compaction kicks off - - */ - Value int32 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family maximum compaction by name post params -func (o *ColumnFamilyMaximumCompactionByNamePostParams) WithTimeout(timeout time.Duration) *ColumnFamilyMaximumCompactionByNamePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family maximum compaction by name post params -func (o *ColumnFamilyMaximumCompactionByNamePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family maximum compaction by name post params -func (o *ColumnFamilyMaximumCompactionByNamePostParams) WithContext(ctx context.Context) *ColumnFamilyMaximumCompactionByNamePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family maximum compaction by name post params -func (o *ColumnFamilyMaximumCompactionByNamePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family maximum compaction by name post params -func (o *ColumnFamilyMaximumCompactionByNamePostParams) WithHTTPClient(client *http.Client) *ColumnFamilyMaximumCompactionByNamePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family maximum compaction by name post params -func (o *ColumnFamilyMaximumCompactionByNamePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family maximum compaction by name post params -func (o *ColumnFamilyMaximumCompactionByNamePostParams) WithName(name string) *ColumnFamilyMaximumCompactionByNamePostParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family maximum compaction by name post params -func (o *ColumnFamilyMaximumCompactionByNamePostParams) SetName(name string) { - o.Name = name -} - -// WithValue adds the value to the column family maximum compaction by name post params -func (o *ColumnFamilyMaximumCompactionByNamePostParams) WithValue(value int32) *ColumnFamilyMaximumCompactionByNamePostParams { - o.SetValue(value) - return o -} - -// SetValue adds the value to the column family maximum compaction by name post params -func (o *ColumnFamilyMaximumCompactionByNamePostParams) SetValue(value int32) { - o.Value = value -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMaximumCompactionByNamePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - // query param value - qrValue := o.Value - qValue := swag.FormatInt32(qrValue) - if qValue != "" { - if err := r.SetQueryParam("value", qValue); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_maximum_compaction_by_name_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_maximum_compaction_by_name_post_responses.go deleted file mode 100644 index 26d1f69529..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_maximum_compaction_by_name_post_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMaximumCompactionByNamePostReader is a Reader for the ColumnFamilyMaximumCompactionByNamePost structure. -type ColumnFamilyMaximumCompactionByNamePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMaximumCompactionByNamePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMaximumCompactionByNamePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMaximumCompactionByNamePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMaximumCompactionByNamePostOK creates a ColumnFamilyMaximumCompactionByNamePostOK with default headers values -func NewColumnFamilyMaximumCompactionByNamePostOK() *ColumnFamilyMaximumCompactionByNamePostOK { - return &ColumnFamilyMaximumCompactionByNamePostOK{} -} - -/* -ColumnFamilyMaximumCompactionByNamePostOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMaximumCompactionByNamePostOK struct { - Payload string -} - -func (o *ColumnFamilyMaximumCompactionByNamePostOK) GetPayload() string { - return o.Payload -} - -func (o *ColumnFamilyMaximumCompactionByNamePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMaximumCompactionByNamePostDefault creates a ColumnFamilyMaximumCompactionByNamePostDefault with default headers values -func NewColumnFamilyMaximumCompactionByNamePostDefault(code int) *ColumnFamilyMaximumCompactionByNamePostDefault { - return &ColumnFamilyMaximumCompactionByNamePostDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMaximumCompactionByNamePostDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMaximumCompactionByNamePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family maximum compaction by name post default response -func (o *ColumnFamilyMaximumCompactionByNamePostDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMaximumCompactionByNamePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMaximumCompactionByNamePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMaximumCompactionByNamePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_live_data_size_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_live_data_size_by_name_get_parameters.go deleted file mode 100644 index 196eff5f1a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_live_data_size_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams creates a new ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams() *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams { - var () - return &ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams { - var () - return &ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParamsWithContext creates a new ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams { - var () - return &ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams { - var () - return &ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics all memtables live data size by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics all memtables live data size by name get params -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics all memtables live data size by name get params -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics all memtables live data size by name get params -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics all memtables live data size by name get params -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics all memtables live data size by name get params -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics all memtables live data size by name get params -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics all memtables live data size by name get params -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams) WithName(name string) *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics all memtables live data size by name get params -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_live_data_size_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_live_data_size_by_name_get_responses.go deleted file mode 100644 index 40a21e6c87..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_live_data_size_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetReader is a Reader for the ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGet structure. -type ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetOK creates a ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetOK with default headers values -func NewColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetOK() *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetOK { - return &ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetOK{} -} - -/* -ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetDefault creates a ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetDefault with default headers values -func NewColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetDefault(code int) *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetDefault { - return &ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics all memtables live data size by name get default response -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_live_data_size_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_live_data_size_get_parameters.go deleted file mode 100644 index 6d2da4ad0e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_live_data_size_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams creates a new ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams() *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams { - - return &ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsAllMemtablesLiveDataSizeGetParamsWithTimeout creates a new ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsAllMemtablesLiveDataSizeGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams { - - return &ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsAllMemtablesLiveDataSizeGetParamsWithContext creates a new ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsAllMemtablesLiveDataSizeGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams { - - return &ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsAllMemtablesLiveDataSizeGetParamsWithHTTPClient creates a new ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsAllMemtablesLiveDataSizeGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams { - - return &ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams contains all the parameters to send to the API endpoint -for the column family metrics all memtables live data size get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics all memtables live data size get params -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics all memtables live data size get params -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics all memtables live data size get params -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics all memtables live data size get params -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics all memtables live data size get params -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics all memtables live data size get params -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_live_data_size_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_live_data_size_get_responses.go deleted file mode 100644 index 7f3beb73eb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_live_data_size_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsAllMemtablesLiveDataSizeGetReader is a Reader for the ColumnFamilyMetricsAllMemtablesLiveDataSizeGet structure. -type ColumnFamilyMetricsAllMemtablesLiveDataSizeGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsAllMemtablesLiveDataSizeGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsAllMemtablesLiveDataSizeGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsAllMemtablesLiveDataSizeGetOK creates a ColumnFamilyMetricsAllMemtablesLiveDataSizeGetOK with default headers values -func NewColumnFamilyMetricsAllMemtablesLiveDataSizeGetOK() *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetOK { - return &ColumnFamilyMetricsAllMemtablesLiveDataSizeGetOK{} -} - -/* -ColumnFamilyMetricsAllMemtablesLiveDataSizeGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsAllMemtablesLiveDataSizeGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsAllMemtablesLiveDataSizeGetDefault creates a ColumnFamilyMetricsAllMemtablesLiveDataSizeGetDefault with default headers values -func NewColumnFamilyMetricsAllMemtablesLiveDataSizeGetDefault(code int) *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetDefault { - return &ColumnFamilyMetricsAllMemtablesLiveDataSizeGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsAllMemtablesLiveDataSizeGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsAllMemtablesLiveDataSizeGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics all memtables live data size get default response -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_off_heap_size_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_off_heap_size_by_name_get_parameters.go deleted file mode 100644 index b99284072a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_off_heap_size_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams creates a new ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams() *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams { - var () - return &ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams { - var () - return &ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParamsWithContext creates a new ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams { - var () - return &ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams { - var () - return &ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics all memtables off heap size by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics all memtables off heap size by name get params -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics all memtables off heap size by name get params -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics all memtables off heap size by name get params -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics all memtables off heap size by name get params -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics all memtables off heap size by name get params -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics all memtables off heap size by name get params -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics all memtables off heap size by name get params -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams) WithName(name string) *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics all memtables off heap size by name get params -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_off_heap_size_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_off_heap_size_by_name_get_responses.go deleted file mode 100644 index 3148e953b5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_off_heap_size_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetReader is a Reader for the ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGet structure. -type ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetOK creates a ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetOK with default headers values -func NewColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetOK() *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetOK { - return &ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetOK{} -} - -/* -ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetDefault creates a ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetDefault with default headers values -func NewColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetDefault(code int) *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetDefault { - return &ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics all memtables off heap size by name get default response -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_off_heap_size_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_off_heap_size_get_parameters.go deleted file mode 100644 index aad49a13af..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_off_heap_size_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams creates a new ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams() *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams { - - return &ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsAllMemtablesOffHeapSizeGetParamsWithTimeout creates a new ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsAllMemtablesOffHeapSizeGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams { - - return &ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsAllMemtablesOffHeapSizeGetParamsWithContext creates a new ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsAllMemtablesOffHeapSizeGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams { - - return &ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsAllMemtablesOffHeapSizeGetParamsWithHTTPClient creates a new ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsAllMemtablesOffHeapSizeGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams { - - return &ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams contains all the parameters to send to the API endpoint -for the column family metrics all memtables off heap size get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics all memtables off heap size get params -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics all memtables off heap size get params -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics all memtables off heap size get params -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics all memtables off heap size get params -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics all memtables off heap size get params -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics all memtables off heap size get params -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_off_heap_size_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_off_heap_size_get_responses.go deleted file mode 100644 index 34085de4b9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_off_heap_size_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsAllMemtablesOffHeapSizeGetReader is a Reader for the ColumnFamilyMetricsAllMemtablesOffHeapSizeGet structure. -type ColumnFamilyMetricsAllMemtablesOffHeapSizeGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsAllMemtablesOffHeapSizeGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsAllMemtablesOffHeapSizeGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsAllMemtablesOffHeapSizeGetOK creates a ColumnFamilyMetricsAllMemtablesOffHeapSizeGetOK with default headers values -func NewColumnFamilyMetricsAllMemtablesOffHeapSizeGetOK() *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetOK { - return &ColumnFamilyMetricsAllMemtablesOffHeapSizeGetOK{} -} - -/* -ColumnFamilyMetricsAllMemtablesOffHeapSizeGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsAllMemtablesOffHeapSizeGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsAllMemtablesOffHeapSizeGetDefault creates a ColumnFamilyMetricsAllMemtablesOffHeapSizeGetDefault with default headers values -func NewColumnFamilyMetricsAllMemtablesOffHeapSizeGetDefault(code int) *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetDefault { - return &ColumnFamilyMetricsAllMemtablesOffHeapSizeGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsAllMemtablesOffHeapSizeGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsAllMemtablesOffHeapSizeGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics all memtables off heap size get default response -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_on_heap_size_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_on_heap_size_by_name_get_parameters.go deleted file mode 100644 index 595c266efb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_on_heap_size_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams creates a new ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams() *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams { - var () - return &ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams { - var () - return &ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParamsWithContext creates a new ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams { - var () - return &ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams { - var () - return &ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics all memtables on heap size by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics all memtables on heap size by name get params -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics all memtables on heap size by name get params -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics all memtables on heap size by name get params -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics all memtables on heap size by name get params -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics all memtables on heap size by name get params -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics all memtables on heap size by name get params -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics all memtables on heap size by name get params -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams) WithName(name string) *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics all memtables on heap size by name get params -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_on_heap_size_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_on_heap_size_by_name_get_responses.go deleted file mode 100644 index 2fae364fd1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_on_heap_size_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetReader is a Reader for the ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGet structure. -type ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetOK creates a ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetOK with default headers values -func NewColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetOK() *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetOK { - return &ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetOK{} -} - -/* -ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetDefault creates a ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetDefault with default headers values -func NewColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetDefault(code int) *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetDefault { - return &ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics all memtables on heap size by name get default response -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_on_heap_size_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_on_heap_size_get_parameters.go deleted file mode 100644 index 91ede151c6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_on_heap_size_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams creates a new ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams() *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams { - - return &ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsAllMemtablesOnHeapSizeGetParamsWithTimeout creates a new ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsAllMemtablesOnHeapSizeGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams { - - return &ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsAllMemtablesOnHeapSizeGetParamsWithContext creates a new ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsAllMemtablesOnHeapSizeGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams { - - return &ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsAllMemtablesOnHeapSizeGetParamsWithHTTPClient creates a new ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsAllMemtablesOnHeapSizeGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams { - - return &ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams contains all the parameters to send to the API endpoint -for the column family metrics all memtables on heap size get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics all memtables on heap size get params -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics all memtables on heap size get params -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics all memtables on heap size get params -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics all memtables on heap size get params -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics all memtables on heap size get params -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics all memtables on heap size get params -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_on_heap_size_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_on_heap_size_get_responses.go deleted file mode 100644 index 3f66f17852..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_all_memtables_on_heap_size_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsAllMemtablesOnHeapSizeGetReader is a Reader for the ColumnFamilyMetricsAllMemtablesOnHeapSizeGet structure. -type ColumnFamilyMetricsAllMemtablesOnHeapSizeGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsAllMemtablesOnHeapSizeGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsAllMemtablesOnHeapSizeGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsAllMemtablesOnHeapSizeGetOK creates a ColumnFamilyMetricsAllMemtablesOnHeapSizeGetOK with default headers values -func NewColumnFamilyMetricsAllMemtablesOnHeapSizeGetOK() *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetOK { - return &ColumnFamilyMetricsAllMemtablesOnHeapSizeGetOK{} -} - -/* -ColumnFamilyMetricsAllMemtablesOnHeapSizeGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsAllMemtablesOnHeapSizeGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsAllMemtablesOnHeapSizeGetDefault creates a ColumnFamilyMetricsAllMemtablesOnHeapSizeGetDefault with default headers values -func NewColumnFamilyMetricsAllMemtablesOnHeapSizeGetDefault(code int) *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetDefault { - return &ColumnFamilyMetricsAllMemtablesOnHeapSizeGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsAllMemtablesOnHeapSizeGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsAllMemtablesOnHeapSizeGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics all memtables on heap size get default response -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_disk_space_used_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_disk_space_used_by_name_get_parameters.go deleted file mode 100644 index 7d177dea27..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_disk_space_used_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams creates a new ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams() *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams { - var () - return &ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams { - var () - return &ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParamsWithContext creates a new ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams { - var () - return &ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams { - var () - return &ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics bloom filter disk space used by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics bloom filter disk space used by name get params -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics bloom filter disk space used by name get params -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics bloom filter disk space used by name get params -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics bloom filter disk space used by name get params -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics bloom filter disk space used by name get params -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics bloom filter disk space used by name get params -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics bloom filter disk space used by name get params -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams) WithName(name string) *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics bloom filter disk space used by name get params -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_disk_space_used_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_disk_space_used_by_name_get_responses.go deleted file mode 100644 index 4cdcff2dcf..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_disk_space_used_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetReader is a Reader for the ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGet structure. -type ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetOK creates a ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetOK with default headers values -func NewColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetOK() *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetOK { - return &ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetOK{} -} - -/* -ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetDefault creates a ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetDefault with default headers values -func NewColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetDefault(code int) *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetDefault { - return &ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics bloom filter disk space used by name get default response -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_disk_space_used_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_disk_space_used_get_parameters.go deleted file mode 100644 index 144a0f0e22..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_disk_space_used_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams creates a new ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams() *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams { - - return &ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParamsWithTimeout creates a new ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams { - - return &ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParamsWithContext creates a new ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams { - - return &ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParamsWithHTTPClient creates a new ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams { - - return &ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams contains all the parameters to send to the API endpoint -for the column family metrics bloom filter disk space used get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics bloom filter disk space used get params -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics bloom filter disk space used get params -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics bloom filter disk space used get params -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics bloom filter disk space used get params -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics bloom filter disk space used get params -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics bloom filter disk space used get params -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_disk_space_used_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_disk_space_used_get_responses.go deleted file mode 100644 index 92f9616d77..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_disk_space_used_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetReader is a Reader for the ColumnFamilyMetricsBloomFilterDiskSpaceUsedGet structure. -type ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsBloomFilterDiskSpaceUsedGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsBloomFilterDiskSpaceUsedGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsBloomFilterDiskSpaceUsedGetOK creates a ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetOK with default headers values -func NewColumnFamilyMetricsBloomFilterDiskSpaceUsedGetOK() *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetOK { - return &ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetOK{} -} - -/* -ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsBloomFilterDiskSpaceUsedGetDefault creates a ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetDefault with default headers values -func NewColumnFamilyMetricsBloomFilterDiskSpaceUsedGetDefault(code int) *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetDefault { - return &ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics bloom filter disk space used get default response -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_positives_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_positives_by_name_get_parameters.go deleted file mode 100644 index 2c2ba78ee7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_positives_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams creates a new ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams() *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams { - var () - return &ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams { - var () - return &ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParamsWithContext creates a new ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams { - var () - return &ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams { - var () - return &ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics bloom filter false positives by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics bloom filter false positives by name get params -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics bloom filter false positives by name get params -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics bloom filter false positives by name get params -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics bloom filter false positives by name get params -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics bloom filter false positives by name get params -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics bloom filter false positives by name get params -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics bloom filter false positives by name get params -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams) WithName(name string) *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics bloom filter false positives by name get params -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_positives_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_positives_by_name_get_responses.go deleted file mode 100644 index 8455a4400f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_positives_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetReader is a Reader for the ColumnFamilyMetricsBloomFilterFalsePositivesByNameGet structure. -type ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsBloomFilterFalsePositivesByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsBloomFilterFalsePositivesByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsBloomFilterFalsePositivesByNameGetOK creates a ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetOK with default headers values -func NewColumnFamilyMetricsBloomFilterFalsePositivesByNameGetOK() *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetOK { - return &ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetOK{} -} - -/* -ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsBloomFilterFalsePositivesByNameGetDefault creates a ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetDefault with default headers values -func NewColumnFamilyMetricsBloomFilterFalsePositivesByNameGetDefault(code int) *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetDefault { - return &ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics bloom filter false positives by name get default response -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_positives_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_positives_get_parameters.go deleted file mode 100644 index 69b0f7e108..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_positives_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsBloomFilterFalsePositivesGetParams creates a new ColumnFamilyMetricsBloomFilterFalsePositivesGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsBloomFilterFalsePositivesGetParams() *ColumnFamilyMetricsBloomFilterFalsePositivesGetParams { - - return &ColumnFamilyMetricsBloomFilterFalsePositivesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsBloomFilterFalsePositivesGetParamsWithTimeout creates a new ColumnFamilyMetricsBloomFilterFalsePositivesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsBloomFilterFalsePositivesGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsBloomFilterFalsePositivesGetParams { - - return &ColumnFamilyMetricsBloomFilterFalsePositivesGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsBloomFilterFalsePositivesGetParamsWithContext creates a new ColumnFamilyMetricsBloomFilterFalsePositivesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsBloomFilterFalsePositivesGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsBloomFilterFalsePositivesGetParams { - - return &ColumnFamilyMetricsBloomFilterFalsePositivesGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsBloomFilterFalsePositivesGetParamsWithHTTPClient creates a new ColumnFamilyMetricsBloomFilterFalsePositivesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsBloomFilterFalsePositivesGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsBloomFilterFalsePositivesGetParams { - - return &ColumnFamilyMetricsBloomFilterFalsePositivesGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsBloomFilterFalsePositivesGetParams contains all the parameters to send to the API endpoint -for the column family metrics bloom filter false positives get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsBloomFilterFalsePositivesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics bloom filter false positives get params -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsBloomFilterFalsePositivesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics bloom filter false positives get params -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics bloom filter false positives get params -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsBloomFilterFalsePositivesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics bloom filter false positives get params -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics bloom filter false positives get params -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsBloomFilterFalsePositivesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics bloom filter false positives get params -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_positives_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_positives_get_responses.go deleted file mode 100644 index 5b7b3fa4d7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_positives_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsBloomFilterFalsePositivesGetReader is a Reader for the ColumnFamilyMetricsBloomFilterFalsePositivesGet structure. -type ColumnFamilyMetricsBloomFilterFalsePositivesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsBloomFilterFalsePositivesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsBloomFilterFalsePositivesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsBloomFilterFalsePositivesGetOK creates a ColumnFamilyMetricsBloomFilterFalsePositivesGetOK with default headers values -func NewColumnFamilyMetricsBloomFilterFalsePositivesGetOK() *ColumnFamilyMetricsBloomFilterFalsePositivesGetOK { - return &ColumnFamilyMetricsBloomFilterFalsePositivesGetOK{} -} - -/* -ColumnFamilyMetricsBloomFilterFalsePositivesGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsBloomFilterFalsePositivesGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsBloomFilterFalsePositivesGetDefault creates a ColumnFamilyMetricsBloomFilterFalsePositivesGetDefault with default headers values -func NewColumnFamilyMetricsBloomFilterFalsePositivesGetDefault(code int) *ColumnFamilyMetricsBloomFilterFalsePositivesGetDefault { - return &ColumnFamilyMetricsBloomFilterFalsePositivesGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsBloomFilterFalsePositivesGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsBloomFilterFalsePositivesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics bloom filter false positives get default response -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsBloomFilterFalsePositivesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_ratio_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_ratio_by_name_get_parameters.go deleted file mode 100644 index 3a8e76dfb1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_ratio_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams creates a new ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams() *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams { - var () - return &ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsBloomFilterFalseRatioByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsBloomFilterFalseRatioByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams { - var () - return &ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsBloomFilterFalseRatioByNameGetParamsWithContext creates a new ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsBloomFilterFalseRatioByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams { - var () - return &ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsBloomFilterFalseRatioByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsBloomFilterFalseRatioByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams { - var () - return &ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics bloom filter false ratio by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics bloom filter false ratio by name get params -func (o *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics bloom filter false ratio by name get params -func (o *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics bloom filter false ratio by name get params -func (o *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics bloom filter false ratio by name get params -func (o *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics bloom filter false ratio by name get params -func (o *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics bloom filter false ratio by name get params -func (o *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics bloom filter false ratio by name get params -func (o *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams) WithName(name string) *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics bloom filter false ratio by name get params -func (o *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_ratio_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_ratio_by_name_get_responses.go deleted file mode 100644 index 1adb05de9b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_ratio_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsBloomFilterFalseRatioByNameGetReader is a Reader for the ColumnFamilyMetricsBloomFilterFalseRatioByNameGet structure. -type ColumnFamilyMetricsBloomFilterFalseRatioByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsBloomFilterFalseRatioByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsBloomFilterFalseRatioByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsBloomFilterFalseRatioByNameGetOK creates a ColumnFamilyMetricsBloomFilterFalseRatioByNameGetOK with default headers values -func NewColumnFamilyMetricsBloomFilterFalseRatioByNameGetOK() *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetOK { - return &ColumnFamilyMetricsBloomFilterFalseRatioByNameGetOK{} -} - -/* -ColumnFamilyMetricsBloomFilterFalseRatioByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsBloomFilterFalseRatioByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsBloomFilterFalseRatioByNameGetDefault creates a ColumnFamilyMetricsBloomFilterFalseRatioByNameGetDefault with default headers values -func NewColumnFamilyMetricsBloomFilterFalseRatioByNameGetDefault(code int) *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetDefault { - return &ColumnFamilyMetricsBloomFilterFalseRatioByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsBloomFilterFalseRatioByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsBloomFilterFalseRatioByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics bloom filter false ratio by name get default response -func (o *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_ratio_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_ratio_get_parameters.go deleted file mode 100644 index a7b731cca4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_ratio_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsBloomFilterFalseRatioGetParams creates a new ColumnFamilyMetricsBloomFilterFalseRatioGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsBloomFilterFalseRatioGetParams() *ColumnFamilyMetricsBloomFilterFalseRatioGetParams { - - return &ColumnFamilyMetricsBloomFilterFalseRatioGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsBloomFilterFalseRatioGetParamsWithTimeout creates a new ColumnFamilyMetricsBloomFilterFalseRatioGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsBloomFilterFalseRatioGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsBloomFilterFalseRatioGetParams { - - return &ColumnFamilyMetricsBloomFilterFalseRatioGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsBloomFilterFalseRatioGetParamsWithContext creates a new ColumnFamilyMetricsBloomFilterFalseRatioGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsBloomFilterFalseRatioGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsBloomFilterFalseRatioGetParams { - - return &ColumnFamilyMetricsBloomFilterFalseRatioGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsBloomFilterFalseRatioGetParamsWithHTTPClient creates a new ColumnFamilyMetricsBloomFilterFalseRatioGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsBloomFilterFalseRatioGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsBloomFilterFalseRatioGetParams { - - return &ColumnFamilyMetricsBloomFilterFalseRatioGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsBloomFilterFalseRatioGetParams contains all the parameters to send to the API endpoint -for the column family metrics bloom filter false ratio get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsBloomFilterFalseRatioGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics bloom filter false ratio get params -func (o *ColumnFamilyMetricsBloomFilterFalseRatioGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsBloomFilterFalseRatioGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics bloom filter false ratio get params -func (o *ColumnFamilyMetricsBloomFilterFalseRatioGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics bloom filter false ratio get params -func (o *ColumnFamilyMetricsBloomFilterFalseRatioGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsBloomFilterFalseRatioGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics bloom filter false ratio get params -func (o *ColumnFamilyMetricsBloomFilterFalseRatioGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics bloom filter false ratio get params -func (o *ColumnFamilyMetricsBloomFilterFalseRatioGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsBloomFilterFalseRatioGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics bloom filter false ratio get params -func (o *ColumnFamilyMetricsBloomFilterFalseRatioGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsBloomFilterFalseRatioGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_ratio_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_ratio_get_responses.go deleted file mode 100644 index 3e37e426e1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_false_ratio_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsBloomFilterFalseRatioGetReader is a Reader for the ColumnFamilyMetricsBloomFilterFalseRatioGet structure. -type ColumnFamilyMetricsBloomFilterFalseRatioGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsBloomFilterFalseRatioGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsBloomFilterFalseRatioGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsBloomFilterFalseRatioGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsBloomFilterFalseRatioGetOK creates a ColumnFamilyMetricsBloomFilterFalseRatioGetOK with default headers values -func NewColumnFamilyMetricsBloomFilterFalseRatioGetOK() *ColumnFamilyMetricsBloomFilterFalseRatioGetOK { - return &ColumnFamilyMetricsBloomFilterFalseRatioGetOK{} -} - -/* -ColumnFamilyMetricsBloomFilterFalseRatioGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsBloomFilterFalseRatioGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsBloomFilterFalseRatioGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsBloomFilterFalseRatioGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsBloomFilterFalseRatioGetDefault creates a ColumnFamilyMetricsBloomFilterFalseRatioGetDefault with default headers values -func NewColumnFamilyMetricsBloomFilterFalseRatioGetDefault(code int) *ColumnFamilyMetricsBloomFilterFalseRatioGetDefault { - return &ColumnFamilyMetricsBloomFilterFalseRatioGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsBloomFilterFalseRatioGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsBloomFilterFalseRatioGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics bloom filter false ratio get default response -func (o *ColumnFamilyMetricsBloomFilterFalseRatioGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsBloomFilterFalseRatioGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsBloomFilterFalseRatioGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsBloomFilterFalseRatioGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_off_heap_memory_used_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_off_heap_memory_used_by_name_get_parameters.go deleted file mode 100644 index fce05146f6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_off_heap_memory_used_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams creates a new ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams() *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams { - var () - return &ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams { - var () - return &ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParamsWithContext creates a new ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams { - var () - return &ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams { - var () - return &ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics bloom filter off heap memory used by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics bloom filter off heap memory used by name get params -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics bloom filter off heap memory used by name get params -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics bloom filter off heap memory used by name get params -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics bloom filter off heap memory used by name get params -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics bloom filter off heap memory used by name get params -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics bloom filter off heap memory used by name get params -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics bloom filter off heap memory used by name get params -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams) WithName(name string) *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics bloom filter off heap memory used by name get params -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_off_heap_memory_used_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_off_heap_memory_used_by_name_get_responses.go deleted file mode 100644 index 42c63d73f0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_off_heap_memory_used_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetReader is a Reader for the ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGet structure. -type ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetOK creates a ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetOK with default headers values -func NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetOK() *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetOK { - return &ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetOK{} -} - -/* -ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetDefault creates a ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetDefault with default headers values -func NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetDefault(code int) *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetDefault { - return &ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics bloom filter off heap memory used by name get default response -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_off_heap_memory_used_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_off_heap_memory_used_get_parameters.go deleted file mode 100644 index 3e8443ab8d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_off_heap_memory_used_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams creates a new ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams() *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams { - - return &ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParamsWithTimeout creates a new ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams { - - return &ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParamsWithContext creates a new ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams { - - return &ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParamsWithHTTPClient creates a new ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams { - - return &ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams contains all the parameters to send to the API endpoint -for the column family metrics bloom filter off heap memory used get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics bloom filter off heap memory used get params -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics bloom filter off heap memory used get params -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics bloom filter off heap memory used get params -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics bloom filter off heap memory used get params -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics bloom filter off heap memory used get params -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics bloom filter off heap memory used get params -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_off_heap_memory_used_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_off_heap_memory_used_get_responses.go deleted file mode 100644 index b3d499cdc8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_bloom_filter_off_heap_memory_used_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetReader is a Reader for the ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGet structure. -type ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetOK creates a ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetOK with default headers values -func NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetOK() *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetOK { - return &ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetOK{} -} - -/* -ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetDefault creates a ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetDefault with default headers values -func NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetDefault(code int) *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetDefault { - return &ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics bloom filter off heap memory used get default response -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_commit_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_commit_by_name_get_parameters.go deleted file mode 100644 index ff326b15e3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_commit_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsCasCommitByNameGetParams creates a new ColumnFamilyMetricsCasCommitByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsCasCommitByNameGetParams() *ColumnFamilyMetricsCasCommitByNameGetParams { - var () - return &ColumnFamilyMetricsCasCommitByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsCasCommitByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsCasCommitByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsCasCommitByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsCasCommitByNameGetParams { - var () - return &ColumnFamilyMetricsCasCommitByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsCasCommitByNameGetParamsWithContext creates a new ColumnFamilyMetricsCasCommitByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsCasCommitByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsCasCommitByNameGetParams { - var () - return &ColumnFamilyMetricsCasCommitByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsCasCommitByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsCasCommitByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsCasCommitByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsCasCommitByNameGetParams { - var () - return &ColumnFamilyMetricsCasCommitByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsCasCommitByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics cas commit by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsCasCommitByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics cas commit by name get params -func (o *ColumnFamilyMetricsCasCommitByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsCasCommitByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics cas commit by name get params -func (o *ColumnFamilyMetricsCasCommitByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics cas commit by name get params -func (o *ColumnFamilyMetricsCasCommitByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsCasCommitByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics cas commit by name get params -func (o *ColumnFamilyMetricsCasCommitByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics cas commit by name get params -func (o *ColumnFamilyMetricsCasCommitByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsCasCommitByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics cas commit by name get params -func (o *ColumnFamilyMetricsCasCommitByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics cas commit by name get params -func (o *ColumnFamilyMetricsCasCommitByNameGetParams) WithName(name string) *ColumnFamilyMetricsCasCommitByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics cas commit by name get params -func (o *ColumnFamilyMetricsCasCommitByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsCasCommitByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_commit_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_commit_by_name_get_responses.go deleted file mode 100644 index 06eb7c359e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_commit_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsCasCommitByNameGetReader is a Reader for the ColumnFamilyMetricsCasCommitByNameGet structure. -type ColumnFamilyMetricsCasCommitByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsCasCommitByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsCasCommitByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsCasCommitByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsCasCommitByNameGetOK creates a ColumnFamilyMetricsCasCommitByNameGetOK with default headers values -func NewColumnFamilyMetricsCasCommitByNameGetOK() *ColumnFamilyMetricsCasCommitByNameGetOK { - return &ColumnFamilyMetricsCasCommitByNameGetOK{} -} - -/* -ColumnFamilyMetricsCasCommitByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsCasCommitByNameGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsCasCommitByNameGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsCasCommitByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsCasCommitByNameGetDefault creates a ColumnFamilyMetricsCasCommitByNameGetDefault with default headers values -func NewColumnFamilyMetricsCasCommitByNameGetDefault(code int) *ColumnFamilyMetricsCasCommitByNameGetDefault { - return &ColumnFamilyMetricsCasCommitByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsCasCommitByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsCasCommitByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics cas commit by name get default response -func (o *ColumnFamilyMetricsCasCommitByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsCasCommitByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsCasCommitByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsCasCommitByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_commit_estimated_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_commit_estimated_histogram_by_name_get_parameters.go deleted file mode 100644 index 36477470d2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_commit_estimated_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams creates a new ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams() *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics cas commit estimated histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics cas commit estimated histogram by name get params -func (o *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics cas commit estimated histogram by name get params -func (o *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics cas commit estimated histogram by name get params -func (o *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics cas commit estimated histogram by name get params -func (o *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics cas commit estimated histogram by name get params -func (o *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics cas commit estimated histogram by name get params -func (o *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics cas commit estimated histogram by name get params -func (o *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics cas commit estimated histogram by name get params -func (o *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_commit_estimated_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_commit_estimated_histogram_by_name_get_responses.go deleted file mode 100644 index 4642ec0077..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_commit_estimated_histogram_by_name_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGet structure. -type ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetOK creates a ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetOK() *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetOK { - return &ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetOK struct { -} - -func (o *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetDefault creates a ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetDefault(code int) *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetDefault { - return &ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics cas commit estimated histogram by name get default response -func (o *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_commit_estimated_recent_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_commit_estimated_recent_histogram_by_name_get_parameters.go deleted file mode 100644 index 254da6bb05..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_commit_estimated_recent_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams creates a new ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams() *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics cas commit estimated recent histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics cas commit estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics cas commit estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics cas commit estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics cas commit estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics cas commit estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics cas commit estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics cas commit estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics cas commit estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_commit_estimated_recent_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_commit_estimated_recent_histogram_by_name_get_responses.go deleted file mode 100644 index cba510998c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_commit_estimated_recent_histogram_by_name_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGet structure. -type ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetOK creates a ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetOK() *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetOK { - return &ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetOK struct { -} - -func (o *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetDefault creates a ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetDefault(code int) *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetDefault { - return &ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics cas commit estimated recent histogram by name get default response -func (o *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_prepare_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_prepare_by_name_get_parameters.go deleted file mode 100644 index 5368d6bbcd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_prepare_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsCasPrepareByNameGetParams creates a new ColumnFamilyMetricsCasPrepareByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsCasPrepareByNameGetParams() *ColumnFamilyMetricsCasPrepareByNameGetParams { - var () - return &ColumnFamilyMetricsCasPrepareByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsCasPrepareByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsCasPrepareByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsCasPrepareByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsCasPrepareByNameGetParams { - var () - return &ColumnFamilyMetricsCasPrepareByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsCasPrepareByNameGetParamsWithContext creates a new ColumnFamilyMetricsCasPrepareByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsCasPrepareByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsCasPrepareByNameGetParams { - var () - return &ColumnFamilyMetricsCasPrepareByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsCasPrepareByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsCasPrepareByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsCasPrepareByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsCasPrepareByNameGetParams { - var () - return &ColumnFamilyMetricsCasPrepareByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsCasPrepareByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics cas prepare by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsCasPrepareByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics cas prepare by name get params -func (o *ColumnFamilyMetricsCasPrepareByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsCasPrepareByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics cas prepare by name get params -func (o *ColumnFamilyMetricsCasPrepareByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics cas prepare by name get params -func (o *ColumnFamilyMetricsCasPrepareByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsCasPrepareByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics cas prepare by name get params -func (o *ColumnFamilyMetricsCasPrepareByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics cas prepare by name get params -func (o *ColumnFamilyMetricsCasPrepareByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsCasPrepareByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics cas prepare by name get params -func (o *ColumnFamilyMetricsCasPrepareByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics cas prepare by name get params -func (o *ColumnFamilyMetricsCasPrepareByNameGetParams) WithName(name string) *ColumnFamilyMetricsCasPrepareByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics cas prepare by name get params -func (o *ColumnFamilyMetricsCasPrepareByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsCasPrepareByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_prepare_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_prepare_by_name_get_responses.go deleted file mode 100644 index e800ec2b2d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_prepare_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsCasPrepareByNameGetReader is a Reader for the ColumnFamilyMetricsCasPrepareByNameGet structure. -type ColumnFamilyMetricsCasPrepareByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsCasPrepareByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsCasPrepareByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsCasPrepareByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsCasPrepareByNameGetOK creates a ColumnFamilyMetricsCasPrepareByNameGetOK with default headers values -func NewColumnFamilyMetricsCasPrepareByNameGetOK() *ColumnFamilyMetricsCasPrepareByNameGetOK { - return &ColumnFamilyMetricsCasPrepareByNameGetOK{} -} - -/* -ColumnFamilyMetricsCasPrepareByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsCasPrepareByNameGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsCasPrepareByNameGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsCasPrepareByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsCasPrepareByNameGetDefault creates a ColumnFamilyMetricsCasPrepareByNameGetDefault with default headers values -func NewColumnFamilyMetricsCasPrepareByNameGetDefault(code int) *ColumnFamilyMetricsCasPrepareByNameGetDefault { - return &ColumnFamilyMetricsCasPrepareByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsCasPrepareByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsCasPrepareByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics cas prepare by name get default response -func (o *ColumnFamilyMetricsCasPrepareByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsCasPrepareByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsCasPrepareByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsCasPrepareByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_prepare_estimated_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_prepare_estimated_histogram_by_name_get_parameters.go deleted file mode 100644 index e380a38c9d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_prepare_estimated_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams creates a new ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams() *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics cas prepare estimated histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics cas prepare estimated histogram by name get params -func (o *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics cas prepare estimated histogram by name get params -func (o *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics cas prepare estimated histogram by name get params -func (o *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics cas prepare estimated histogram by name get params -func (o *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics cas prepare estimated histogram by name get params -func (o *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics cas prepare estimated histogram by name get params -func (o *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics cas prepare estimated histogram by name get params -func (o *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics cas prepare estimated histogram by name get params -func (o *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_prepare_estimated_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_prepare_estimated_histogram_by_name_get_responses.go deleted file mode 100644 index d2b5723777..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_prepare_estimated_histogram_by_name_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGet structure. -type ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetOK creates a ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetOK() *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetOK { - return &ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetOK struct { -} - -func (o *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetDefault creates a ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetDefault(code int) *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetDefault { - return &ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics cas prepare estimated histogram by name get default response -func (o *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_prepare_estimated_recent_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_prepare_estimated_recent_histogram_by_name_get_parameters.go deleted file mode 100644 index 92c21842bd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_prepare_estimated_recent_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams creates a new ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams() *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics cas prepare estimated recent histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics cas prepare estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics cas prepare estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics cas prepare estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics cas prepare estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics cas prepare estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics cas prepare estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics cas prepare estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics cas prepare estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_prepare_estimated_recent_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_prepare_estimated_recent_histogram_by_name_get_responses.go deleted file mode 100644 index 4dadbc4a88..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_prepare_estimated_recent_histogram_by_name_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGet structure. -type ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetOK creates a ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetOK() *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetOK { - return &ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetOK struct { -} - -func (o *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetDefault creates a ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetDefault(code int) *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetDefault { - return &ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics cas prepare estimated recent histogram by name get default response -func (o *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_propose_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_propose_by_name_get_parameters.go deleted file mode 100644 index 43089a188e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_propose_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsCasProposeByNameGetParams creates a new ColumnFamilyMetricsCasProposeByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsCasProposeByNameGetParams() *ColumnFamilyMetricsCasProposeByNameGetParams { - var () - return &ColumnFamilyMetricsCasProposeByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsCasProposeByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsCasProposeByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsCasProposeByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsCasProposeByNameGetParams { - var () - return &ColumnFamilyMetricsCasProposeByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsCasProposeByNameGetParamsWithContext creates a new ColumnFamilyMetricsCasProposeByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsCasProposeByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsCasProposeByNameGetParams { - var () - return &ColumnFamilyMetricsCasProposeByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsCasProposeByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsCasProposeByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsCasProposeByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsCasProposeByNameGetParams { - var () - return &ColumnFamilyMetricsCasProposeByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsCasProposeByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics cas propose by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsCasProposeByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics cas propose by name get params -func (o *ColumnFamilyMetricsCasProposeByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsCasProposeByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics cas propose by name get params -func (o *ColumnFamilyMetricsCasProposeByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics cas propose by name get params -func (o *ColumnFamilyMetricsCasProposeByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsCasProposeByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics cas propose by name get params -func (o *ColumnFamilyMetricsCasProposeByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics cas propose by name get params -func (o *ColumnFamilyMetricsCasProposeByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsCasProposeByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics cas propose by name get params -func (o *ColumnFamilyMetricsCasProposeByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics cas propose by name get params -func (o *ColumnFamilyMetricsCasProposeByNameGetParams) WithName(name string) *ColumnFamilyMetricsCasProposeByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics cas propose by name get params -func (o *ColumnFamilyMetricsCasProposeByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsCasProposeByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_propose_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_propose_by_name_get_responses.go deleted file mode 100644 index 2bda59f953..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_propose_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsCasProposeByNameGetReader is a Reader for the ColumnFamilyMetricsCasProposeByNameGet structure. -type ColumnFamilyMetricsCasProposeByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsCasProposeByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsCasProposeByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsCasProposeByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsCasProposeByNameGetOK creates a ColumnFamilyMetricsCasProposeByNameGetOK with default headers values -func NewColumnFamilyMetricsCasProposeByNameGetOK() *ColumnFamilyMetricsCasProposeByNameGetOK { - return &ColumnFamilyMetricsCasProposeByNameGetOK{} -} - -/* -ColumnFamilyMetricsCasProposeByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsCasProposeByNameGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsCasProposeByNameGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsCasProposeByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsCasProposeByNameGetDefault creates a ColumnFamilyMetricsCasProposeByNameGetDefault with default headers values -func NewColumnFamilyMetricsCasProposeByNameGetDefault(code int) *ColumnFamilyMetricsCasProposeByNameGetDefault { - return &ColumnFamilyMetricsCasProposeByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsCasProposeByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsCasProposeByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics cas propose by name get default response -func (o *ColumnFamilyMetricsCasProposeByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsCasProposeByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsCasProposeByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsCasProposeByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_propose_estimated_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_propose_estimated_histogram_by_name_get_parameters.go deleted file mode 100644 index 209ff544d5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_propose_estimated_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams creates a new ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams() *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics cas propose estimated histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics cas propose estimated histogram by name get params -func (o *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics cas propose estimated histogram by name get params -func (o *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics cas propose estimated histogram by name get params -func (o *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics cas propose estimated histogram by name get params -func (o *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics cas propose estimated histogram by name get params -func (o *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics cas propose estimated histogram by name get params -func (o *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics cas propose estimated histogram by name get params -func (o *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics cas propose estimated histogram by name get params -func (o *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_propose_estimated_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_propose_estimated_histogram_by_name_get_responses.go deleted file mode 100644 index 6bb389c027..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_propose_estimated_histogram_by_name_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGet structure. -type ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetOK creates a ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetOK() *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetOK { - return &ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetOK struct { -} - -func (o *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetDefault creates a ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetDefault(code int) *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetDefault { - return &ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics cas propose estimated histogram by name get default response -func (o *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_propose_estimated_recent_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_propose_estimated_recent_histogram_by_name_get_parameters.go deleted file mode 100644 index 597c863305..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_propose_estimated_recent_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams creates a new ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams() *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics cas propose estimated recent histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics cas propose estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics cas propose estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics cas propose estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics cas propose estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics cas propose estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics cas propose estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics cas propose estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics cas propose estimated recent histogram by name get params -func (o *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_propose_estimated_recent_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_propose_estimated_recent_histogram_by_name_get_responses.go deleted file mode 100644 index bb34782a1b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_cas_propose_estimated_recent_histogram_by_name_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGet structure. -type ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetOK creates a ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetOK() *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetOK { - return &ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetOK struct { -} - -func (o *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetDefault creates a ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetDefault(code int) *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetDefault { - return &ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics cas propose estimated recent histogram by name get default response -func (o *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_col_update_time_delta_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_col_update_time_delta_histogram_by_name_get_parameters.go deleted file mode 100644 index 6fa3679f38..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_col_update_time_delta_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams creates a new ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams() *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics col update time delta histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics col update time delta histogram by name get params -func (o *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics col update time delta histogram by name get params -func (o *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics col update time delta histogram by name get params -func (o *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics col update time delta histogram by name get params -func (o *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics col update time delta histogram by name get params -func (o *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics col update time delta histogram by name get params -func (o *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics col update time delta histogram by name get params -func (o *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics col update time delta histogram by name get params -func (o *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_col_update_time_delta_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_col_update_time_delta_histogram_by_name_get_responses.go deleted file mode 100644 index 5a838461a9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_col_update_time_delta_histogram_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGet structure. -type ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetOK creates a ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetOK() *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetOK { - return &ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetDefault creates a ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetDefault(code int) *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetDefault { - return &ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics col update time delta histogram by name get default response -func (o *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_metadata_off_heap_memory_used_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_metadata_off_heap_memory_used_by_name_get_parameters.go deleted file mode 100644 index 1ba6953c2c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_metadata_off_heap_memory_used_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams creates a new ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams() *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams { - var () - return &ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams { - var () - return &ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParamsWithContext creates a new ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams { - var () - return &ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams { - var () - return &ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics compression metadata off heap memory used by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics compression metadata off heap memory used by name get params -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics compression metadata off heap memory used by name get params -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics compression metadata off heap memory used by name get params -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics compression metadata off heap memory used by name get params -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics compression metadata off heap memory used by name get params -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics compression metadata off heap memory used by name get params -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics compression metadata off heap memory used by name get params -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams) WithName(name string) *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics compression metadata off heap memory used by name get params -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_metadata_off_heap_memory_used_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_metadata_off_heap_memory_used_by_name_get_responses.go deleted file mode 100644 index 79bf1a5df4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_metadata_off_heap_memory_used_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetReader is a Reader for the ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGet structure. -type ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetOK creates a ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetOK with default headers values -func NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetOK() *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetOK { - return &ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetOK{} -} - -/* -ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetDefault creates a ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetDefault with default headers values -func NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetDefault(code int) *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetDefault { - return &ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics compression metadata off heap memory used by name get default response -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_metadata_off_heap_memory_used_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_metadata_off_heap_memory_used_get_parameters.go deleted file mode 100644 index 9884751cc4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_metadata_off_heap_memory_used_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams creates a new ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams() *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams { - - return &ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParamsWithTimeout creates a new ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams { - - return &ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParamsWithContext creates a new ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams { - - return &ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParamsWithHTTPClient creates a new ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams { - - return &ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams contains all the parameters to send to the API endpoint -for the column family metrics compression metadata off heap memory used get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics compression metadata off heap memory used get params -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics compression metadata off heap memory used get params -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics compression metadata off heap memory used get params -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics compression metadata off heap memory used get params -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics compression metadata off heap memory used get params -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics compression metadata off heap memory used get params -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_metadata_off_heap_memory_used_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_metadata_off_heap_memory_used_get_responses.go deleted file mode 100644 index 46919eb977..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_metadata_off_heap_memory_used_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetReader is a Reader for the ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGet structure. -type ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetOK creates a ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetOK with default headers values -func NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetOK() *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetOK { - return &ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetOK{} -} - -/* -ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetDefault creates a ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetDefault with default headers values -func NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetDefault(code int) *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetDefault { - return &ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics compression metadata off heap memory used get default response -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_ratio_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_ratio_by_name_get_parameters.go deleted file mode 100644 index 3fb119bfac..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_ratio_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsCompressionRatioByNameGetParams creates a new ColumnFamilyMetricsCompressionRatioByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsCompressionRatioByNameGetParams() *ColumnFamilyMetricsCompressionRatioByNameGetParams { - var () - return &ColumnFamilyMetricsCompressionRatioByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsCompressionRatioByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsCompressionRatioByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsCompressionRatioByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsCompressionRatioByNameGetParams { - var () - return &ColumnFamilyMetricsCompressionRatioByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsCompressionRatioByNameGetParamsWithContext creates a new ColumnFamilyMetricsCompressionRatioByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsCompressionRatioByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsCompressionRatioByNameGetParams { - var () - return &ColumnFamilyMetricsCompressionRatioByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsCompressionRatioByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsCompressionRatioByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsCompressionRatioByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsCompressionRatioByNameGetParams { - var () - return &ColumnFamilyMetricsCompressionRatioByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsCompressionRatioByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics compression ratio by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsCompressionRatioByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics compression ratio by name get params -func (o *ColumnFamilyMetricsCompressionRatioByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsCompressionRatioByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics compression ratio by name get params -func (o *ColumnFamilyMetricsCompressionRatioByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics compression ratio by name get params -func (o *ColumnFamilyMetricsCompressionRatioByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsCompressionRatioByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics compression ratio by name get params -func (o *ColumnFamilyMetricsCompressionRatioByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics compression ratio by name get params -func (o *ColumnFamilyMetricsCompressionRatioByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsCompressionRatioByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics compression ratio by name get params -func (o *ColumnFamilyMetricsCompressionRatioByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics compression ratio by name get params -func (o *ColumnFamilyMetricsCompressionRatioByNameGetParams) WithName(name string) *ColumnFamilyMetricsCompressionRatioByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics compression ratio by name get params -func (o *ColumnFamilyMetricsCompressionRatioByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsCompressionRatioByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_ratio_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_ratio_by_name_get_responses.go deleted file mode 100644 index 01fdb785af..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_ratio_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsCompressionRatioByNameGetReader is a Reader for the ColumnFamilyMetricsCompressionRatioByNameGet structure. -type ColumnFamilyMetricsCompressionRatioByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsCompressionRatioByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsCompressionRatioByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsCompressionRatioByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsCompressionRatioByNameGetOK creates a ColumnFamilyMetricsCompressionRatioByNameGetOK with default headers values -func NewColumnFamilyMetricsCompressionRatioByNameGetOK() *ColumnFamilyMetricsCompressionRatioByNameGetOK { - return &ColumnFamilyMetricsCompressionRatioByNameGetOK{} -} - -/* -ColumnFamilyMetricsCompressionRatioByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsCompressionRatioByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsCompressionRatioByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsCompressionRatioByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsCompressionRatioByNameGetDefault creates a ColumnFamilyMetricsCompressionRatioByNameGetDefault with default headers values -func NewColumnFamilyMetricsCompressionRatioByNameGetDefault(code int) *ColumnFamilyMetricsCompressionRatioByNameGetDefault { - return &ColumnFamilyMetricsCompressionRatioByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsCompressionRatioByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsCompressionRatioByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics compression ratio by name get default response -func (o *ColumnFamilyMetricsCompressionRatioByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsCompressionRatioByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsCompressionRatioByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsCompressionRatioByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_ratio_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_ratio_get_parameters.go deleted file mode 100644 index 71d795d470..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_ratio_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsCompressionRatioGetParams creates a new ColumnFamilyMetricsCompressionRatioGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsCompressionRatioGetParams() *ColumnFamilyMetricsCompressionRatioGetParams { - - return &ColumnFamilyMetricsCompressionRatioGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsCompressionRatioGetParamsWithTimeout creates a new ColumnFamilyMetricsCompressionRatioGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsCompressionRatioGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsCompressionRatioGetParams { - - return &ColumnFamilyMetricsCompressionRatioGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsCompressionRatioGetParamsWithContext creates a new ColumnFamilyMetricsCompressionRatioGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsCompressionRatioGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsCompressionRatioGetParams { - - return &ColumnFamilyMetricsCompressionRatioGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsCompressionRatioGetParamsWithHTTPClient creates a new ColumnFamilyMetricsCompressionRatioGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsCompressionRatioGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsCompressionRatioGetParams { - - return &ColumnFamilyMetricsCompressionRatioGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsCompressionRatioGetParams contains all the parameters to send to the API endpoint -for the column family metrics compression ratio get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsCompressionRatioGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics compression ratio get params -func (o *ColumnFamilyMetricsCompressionRatioGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsCompressionRatioGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics compression ratio get params -func (o *ColumnFamilyMetricsCompressionRatioGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics compression ratio get params -func (o *ColumnFamilyMetricsCompressionRatioGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsCompressionRatioGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics compression ratio get params -func (o *ColumnFamilyMetricsCompressionRatioGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics compression ratio get params -func (o *ColumnFamilyMetricsCompressionRatioGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsCompressionRatioGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics compression ratio get params -func (o *ColumnFamilyMetricsCompressionRatioGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsCompressionRatioGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_ratio_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_ratio_get_responses.go deleted file mode 100644 index 0e5ad187fa..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_compression_ratio_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsCompressionRatioGetReader is a Reader for the ColumnFamilyMetricsCompressionRatioGet structure. -type ColumnFamilyMetricsCompressionRatioGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsCompressionRatioGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsCompressionRatioGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsCompressionRatioGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsCompressionRatioGetOK creates a ColumnFamilyMetricsCompressionRatioGetOK with default headers values -func NewColumnFamilyMetricsCompressionRatioGetOK() *ColumnFamilyMetricsCompressionRatioGetOK { - return &ColumnFamilyMetricsCompressionRatioGetOK{} -} - -/* -ColumnFamilyMetricsCompressionRatioGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsCompressionRatioGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsCompressionRatioGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsCompressionRatioGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsCompressionRatioGetDefault creates a ColumnFamilyMetricsCompressionRatioGetDefault with default headers values -func NewColumnFamilyMetricsCompressionRatioGetDefault(code int) *ColumnFamilyMetricsCompressionRatioGetDefault { - return &ColumnFamilyMetricsCompressionRatioGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsCompressionRatioGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsCompressionRatioGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics compression ratio get default response -func (o *ColumnFamilyMetricsCompressionRatioGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsCompressionRatioGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsCompressionRatioGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsCompressionRatioGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_coordinator_read_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_coordinator_read_get_parameters.go deleted file mode 100644 index 86cd0af335..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_coordinator_read_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsCoordinatorReadGetParams creates a new ColumnFamilyMetricsCoordinatorReadGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsCoordinatorReadGetParams() *ColumnFamilyMetricsCoordinatorReadGetParams { - - return &ColumnFamilyMetricsCoordinatorReadGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsCoordinatorReadGetParamsWithTimeout creates a new ColumnFamilyMetricsCoordinatorReadGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsCoordinatorReadGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsCoordinatorReadGetParams { - - return &ColumnFamilyMetricsCoordinatorReadGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsCoordinatorReadGetParamsWithContext creates a new ColumnFamilyMetricsCoordinatorReadGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsCoordinatorReadGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsCoordinatorReadGetParams { - - return &ColumnFamilyMetricsCoordinatorReadGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsCoordinatorReadGetParamsWithHTTPClient creates a new ColumnFamilyMetricsCoordinatorReadGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsCoordinatorReadGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsCoordinatorReadGetParams { - - return &ColumnFamilyMetricsCoordinatorReadGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsCoordinatorReadGetParams contains all the parameters to send to the API endpoint -for the column family metrics coordinator read get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsCoordinatorReadGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics coordinator read get params -func (o *ColumnFamilyMetricsCoordinatorReadGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsCoordinatorReadGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics coordinator read get params -func (o *ColumnFamilyMetricsCoordinatorReadGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics coordinator read get params -func (o *ColumnFamilyMetricsCoordinatorReadGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsCoordinatorReadGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics coordinator read get params -func (o *ColumnFamilyMetricsCoordinatorReadGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics coordinator read get params -func (o *ColumnFamilyMetricsCoordinatorReadGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsCoordinatorReadGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics coordinator read get params -func (o *ColumnFamilyMetricsCoordinatorReadGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsCoordinatorReadGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_coordinator_read_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_coordinator_read_get_responses.go deleted file mode 100644 index 58e4938fae..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_coordinator_read_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsCoordinatorReadGetReader is a Reader for the ColumnFamilyMetricsCoordinatorReadGet structure. -type ColumnFamilyMetricsCoordinatorReadGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsCoordinatorReadGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsCoordinatorReadGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsCoordinatorReadGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsCoordinatorReadGetOK creates a ColumnFamilyMetricsCoordinatorReadGetOK with default headers values -func NewColumnFamilyMetricsCoordinatorReadGetOK() *ColumnFamilyMetricsCoordinatorReadGetOK { - return &ColumnFamilyMetricsCoordinatorReadGetOK{} -} - -/* -ColumnFamilyMetricsCoordinatorReadGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsCoordinatorReadGetOK struct { -} - -func (o *ColumnFamilyMetricsCoordinatorReadGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyMetricsCoordinatorReadGetDefault creates a ColumnFamilyMetricsCoordinatorReadGetDefault with default headers values -func NewColumnFamilyMetricsCoordinatorReadGetDefault(code int) *ColumnFamilyMetricsCoordinatorReadGetDefault { - return &ColumnFamilyMetricsCoordinatorReadGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsCoordinatorReadGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsCoordinatorReadGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics coordinator read get default response -func (o *ColumnFamilyMetricsCoordinatorReadGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsCoordinatorReadGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsCoordinatorReadGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsCoordinatorReadGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_coordinator_scan_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_coordinator_scan_get_parameters.go deleted file mode 100644 index 0bc8e9ffa9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_coordinator_scan_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsCoordinatorScanGetParams creates a new ColumnFamilyMetricsCoordinatorScanGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsCoordinatorScanGetParams() *ColumnFamilyMetricsCoordinatorScanGetParams { - - return &ColumnFamilyMetricsCoordinatorScanGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsCoordinatorScanGetParamsWithTimeout creates a new ColumnFamilyMetricsCoordinatorScanGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsCoordinatorScanGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsCoordinatorScanGetParams { - - return &ColumnFamilyMetricsCoordinatorScanGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsCoordinatorScanGetParamsWithContext creates a new ColumnFamilyMetricsCoordinatorScanGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsCoordinatorScanGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsCoordinatorScanGetParams { - - return &ColumnFamilyMetricsCoordinatorScanGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsCoordinatorScanGetParamsWithHTTPClient creates a new ColumnFamilyMetricsCoordinatorScanGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsCoordinatorScanGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsCoordinatorScanGetParams { - - return &ColumnFamilyMetricsCoordinatorScanGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsCoordinatorScanGetParams contains all the parameters to send to the API endpoint -for the column family metrics coordinator scan get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsCoordinatorScanGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics coordinator scan get params -func (o *ColumnFamilyMetricsCoordinatorScanGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsCoordinatorScanGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics coordinator scan get params -func (o *ColumnFamilyMetricsCoordinatorScanGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics coordinator scan get params -func (o *ColumnFamilyMetricsCoordinatorScanGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsCoordinatorScanGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics coordinator scan get params -func (o *ColumnFamilyMetricsCoordinatorScanGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics coordinator scan get params -func (o *ColumnFamilyMetricsCoordinatorScanGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsCoordinatorScanGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics coordinator scan get params -func (o *ColumnFamilyMetricsCoordinatorScanGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsCoordinatorScanGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_coordinator_scan_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_coordinator_scan_get_responses.go deleted file mode 100644 index 07364e8868..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_coordinator_scan_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsCoordinatorScanGetReader is a Reader for the ColumnFamilyMetricsCoordinatorScanGet structure. -type ColumnFamilyMetricsCoordinatorScanGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsCoordinatorScanGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsCoordinatorScanGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsCoordinatorScanGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsCoordinatorScanGetOK creates a ColumnFamilyMetricsCoordinatorScanGetOK with default headers values -func NewColumnFamilyMetricsCoordinatorScanGetOK() *ColumnFamilyMetricsCoordinatorScanGetOK { - return &ColumnFamilyMetricsCoordinatorScanGetOK{} -} - -/* -ColumnFamilyMetricsCoordinatorScanGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsCoordinatorScanGetOK struct { -} - -func (o *ColumnFamilyMetricsCoordinatorScanGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyMetricsCoordinatorScanGetDefault creates a ColumnFamilyMetricsCoordinatorScanGetDefault with default headers values -func NewColumnFamilyMetricsCoordinatorScanGetDefault(code int) *ColumnFamilyMetricsCoordinatorScanGetDefault { - return &ColumnFamilyMetricsCoordinatorScanGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsCoordinatorScanGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsCoordinatorScanGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics coordinator scan get default response -func (o *ColumnFamilyMetricsCoordinatorScanGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsCoordinatorScanGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsCoordinatorScanGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsCoordinatorScanGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_estimated_column_count_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_estimated_column_count_histogram_by_name_get_parameters.go deleted file mode 100644 index cfcd146ce0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_estimated_column_count_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams creates a new ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams() *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics estimated column count histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics estimated column count histogram by name get params -func (o *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics estimated column count histogram by name get params -func (o *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics estimated column count histogram by name get params -func (o *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics estimated column count histogram by name get params -func (o *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics estimated column count histogram by name get params -func (o *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics estimated column count histogram by name get params -func (o *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics estimated column count histogram by name get params -func (o *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics estimated column count histogram by name get params -func (o *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_estimated_column_count_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_estimated_column_count_histogram_by_name_get_responses.go deleted file mode 100644 index 05c2ece2fb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_estimated_column_count_histogram_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGet structure. -type ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetOK creates a ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetOK() *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetOK { - return &ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetDefault creates a ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetDefault(code int) *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetDefault { - return &ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics estimated column count histogram by name get default response -func (o *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_estimated_row_count_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_estimated_row_count_by_name_get_parameters.go deleted file mode 100644 index 2c11f032ce..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_estimated_row_count_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsEstimatedRowCountByNameGetParams creates a new ColumnFamilyMetricsEstimatedRowCountByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsEstimatedRowCountByNameGetParams() *ColumnFamilyMetricsEstimatedRowCountByNameGetParams { - var () - return &ColumnFamilyMetricsEstimatedRowCountByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsEstimatedRowCountByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsEstimatedRowCountByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsEstimatedRowCountByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsEstimatedRowCountByNameGetParams { - var () - return &ColumnFamilyMetricsEstimatedRowCountByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsEstimatedRowCountByNameGetParamsWithContext creates a new ColumnFamilyMetricsEstimatedRowCountByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsEstimatedRowCountByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsEstimatedRowCountByNameGetParams { - var () - return &ColumnFamilyMetricsEstimatedRowCountByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsEstimatedRowCountByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsEstimatedRowCountByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsEstimatedRowCountByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsEstimatedRowCountByNameGetParams { - var () - return &ColumnFamilyMetricsEstimatedRowCountByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsEstimatedRowCountByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics estimated row count by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsEstimatedRowCountByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics estimated row count by name get params -func (o *ColumnFamilyMetricsEstimatedRowCountByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsEstimatedRowCountByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics estimated row count by name get params -func (o *ColumnFamilyMetricsEstimatedRowCountByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics estimated row count by name get params -func (o *ColumnFamilyMetricsEstimatedRowCountByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsEstimatedRowCountByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics estimated row count by name get params -func (o *ColumnFamilyMetricsEstimatedRowCountByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics estimated row count by name get params -func (o *ColumnFamilyMetricsEstimatedRowCountByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsEstimatedRowCountByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics estimated row count by name get params -func (o *ColumnFamilyMetricsEstimatedRowCountByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics estimated row count by name get params -func (o *ColumnFamilyMetricsEstimatedRowCountByNameGetParams) WithName(name string) *ColumnFamilyMetricsEstimatedRowCountByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics estimated row count by name get params -func (o *ColumnFamilyMetricsEstimatedRowCountByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsEstimatedRowCountByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_estimated_row_count_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_estimated_row_count_by_name_get_responses.go deleted file mode 100644 index 3d05806272..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_estimated_row_count_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsEstimatedRowCountByNameGetReader is a Reader for the ColumnFamilyMetricsEstimatedRowCountByNameGet structure. -type ColumnFamilyMetricsEstimatedRowCountByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsEstimatedRowCountByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsEstimatedRowCountByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsEstimatedRowCountByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsEstimatedRowCountByNameGetOK creates a ColumnFamilyMetricsEstimatedRowCountByNameGetOK with default headers values -func NewColumnFamilyMetricsEstimatedRowCountByNameGetOK() *ColumnFamilyMetricsEstimatedRowCountByNameGetOK { - return &ColumnFamilyMetricsEstimatedRowCountByNameGetOK{} -} - -/* -ColumnFamilyMetricsEstimatedRowCountByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsEstimatedRowCountByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsEstimatedRowCountByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsEstimatedRowCountByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsEstimatedRowCountByNameGetDefault creates a ColumnFamilyMetricsEstimatedRowCountByNameGetDefault with default headers values -func NewColumnFamilyMetricsEstimatedRowCountByNameGetDefault(code int) *ColumnFamilyMetricsEstimatedRowCountByNameGetDefault { - return &ColumnFamilyMetricsEstimatedRowCountByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsEstimatedRowCountByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsEstimatedRowCountByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics estimated row count by name get default response -func (o *ColumnFamilyMetricsEstimatedRowCountByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsEstimatedRowCountByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsEstimatedRowCountByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsEstimatedRowCountByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_estimated_row_size_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_estimated_row_size_histogram_by_name_get_parameters.go deleted file mode 100644 index 8205076305..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_estimated_row_size_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams creates a new ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams() *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics estimated row size histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics estimated row size histogram by name get params -func (o *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics estimated row size histogram by name get params -func (o *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics estimated row size histogram by name get params -func (o *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics estimated row size histogram by name get params -func (o *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics estimated row size histogram by name get params -func (o *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics estimated row size histogram by name get params -func (o *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics estimated row size histogram by name get params -func (o *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics estimated row size histogram by name get params -func (o *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_estimated_row_size_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_estimated_row_size_histogram_by_name_get_responses.go deleted file mode 100644 index 7694c1b9c5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_estimated_row_size_histogram_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGet structure. -type ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetOK creates a ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetOK() *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetOK { - return &ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetDefault creates a ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetDefault(code int) *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetDefault { - return &ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics estimated row size histogram by name get default response -func (o *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_index_summary_off_heap_memory_used_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_index_summary_off_heap_memory_used_by_name_get_parameters.go deleted file mode 100644 index fb62ee33cd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_index_summary_off_heap_memory_used_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams creates a new ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams() *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams { - var () - return &ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams { - var () - return &ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParamsWithContext creates a new ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams { - var () - return &ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams { - var () - return &ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics index summary off heap memory used by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics index summary off heap memory used by name get params -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics index summary off heap memory used by name get params -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics index summary off heap memory used by name get params -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics index summary off heap memory used by name get params -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics index summary off heap memory used by name get params -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics index summary off heap memory used by name get params -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics index summary off heap memory used by name get params -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams) WithName(name string) *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics index summary off heap memory used by name get params -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_index_summary_off_heap_memory_used_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_index_summary_off_heap_memory_used_by_name_get_responses.go deleted file mode 100644 index 16ac36e594..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_index_summary_off_heap_memory_used_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetReader is a Reader for the ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGet structure. -type ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetOK creates a ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetOK with default headers values -func NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetOK() *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetOK { - return &ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetOK{} -} - -/* -ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetDefault creates a ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetDefault with default headers values -func NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetDefault(code int) *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetDefault { - return &ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics index summary off heap memory used by name get default response -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_index_summary_off_heap_memory_used_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_index_summary_off_heap_memory_used_get_parameters.go deleted file mode 100644 index d0ac967d42..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_index_summary_off_heap_memory_used_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams creates a new ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams() *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams { - - return &ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParamsWithTimeout creates a new ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams { - - return &ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParamsWithContext creates a new ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams { - - return &ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParamsWithHTTPClient creates a new ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams { - - return &ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams contains all the parameters to send to the API endpoint -for the column family metrics index summary off heap memory used get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics index summary off heap memory used get params -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics index summary off heap memory used get params -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics index summary off heap memory used get params -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics index summary off heap memory used get params -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics index summary off heap memory used get params -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics index summary off heap memory used get params -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_index_summary_off_heap_memory_used_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_index_summary_off_heap_memory_used_get_responses.go deleted file mode 100644 index 536f246e9b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_index_summary_off_heap_memory_used_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetReader is a Reader for the ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGet structure. -type ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetOK creates a ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetOK with default headers values -func NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetOK() *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetOK { - return &ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetOK{} -} - -/* -ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetDefault creates a ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetDefault with default headers values -func NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetDefault(code int) *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetDefault { - return &ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics index summary off heap memory used get default response -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_key_cache_hit_rate_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_key_cache_hit_rate_by_name_get_parameters.go deleted file mode 100644 index 3b77a90cf2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_key_cache_hit_rate_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsKeyCacheHitRateByNameGetParams creates a new ColumnFamilyMetricsKeyCacheHitRateByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsKeyCacheHitRateByNameGetParams() *ColumnFamilyMetricsKeyCacheHitRateByNameGetParams { - var () - return &ColumnFamilyMetricsKeyCacheHitRateByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsKeyCacheHitRateByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsKeyCacheHitRateByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsKeyCacheHitRateByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsKeyCacheHitRateByNameGetParams { - var () - return &ColumnFamilyMetricsKeyCacheHitRateByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsKeyCacheHitRateByNameGetParamsWithContext creates a new ColumnFamilyMetricsKeyCacheHitRateByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsKeyCacheHitRateByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsKeyCacheHitRateByNameGetParams { - var () - return &ColumnFamilyMetricsKeyCacheHitRateByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsKeyCacheHitRateByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsKeyCacheHitRateByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsKeyCacheHitRateByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsKeyCacheHitRateByNameGetParams { - var () - return &ColumnFamilyMetricsKeyCacheHitRateByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsKeyCacheHitRateByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics key cache hit rate by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsKeyCacheHitRateByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics key cache hit rate by name get params -func (o *ColumnFamilyMetricsKeyCacheHitRateByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsKeyCacheHitRateByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics key cache hit rate by name get params -func (o *ColumnFamilyMetricsKeyCacheHitRateByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics key cache hit rate by name get params -func (o *ColumnFamilyMetricsKeyCacheHitRateByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsKeyCacheHitRateByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics key cache hit rate by name get params -func (o *ColumnFamilyMetricsKeyCacheHitRateByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics key cache hit rate by name get params -func (o *ColumnFamilyMetricsKeyCacheHitRateByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsKeyCacheHitRateByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics key cache hit rate by name get params -func (o *ColumnFamilyMetricsKeyCacheHitRateByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics key cache hit rate by name get params -func (o *ColumnFamilyMetricsKeyCacheHitRateByNameGetParams) WithName(name string) *ColumnFamilyMetricsKeyCacheHitRateByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics key cache hit rate by name get params -func (o *ColumnFamilyMetricsKeyCacheHitRateByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsKeyCacheHitRateByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_key_cache_hit_rate_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_key_cache_hit_rate_by_name_get_responses.go deleted file mode 100644 index 28b38764c7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_key_cache_hit_rate_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsKeyCacheHitRateByNameGetReader is a Reader for the ColumnFamilyMetricsKeyCacheHitRateByNameGet structure. -type ColumnFamilyMetricsKeyCacheHitRateByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsKeyCacheHitRateByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsKeyCacheHitRateByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsKeyCacheHitRateByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsKeyCacheHitRateByNameGetOK creates a ColumnFamilyMetricsKeyCacheHitRateByNameGetOK with default headers values -func NewColumnFamilyMetricsKeyCacheHitRateByNameGetOK() *ColumnFamilyMetricsKeyCacheHitRateByNameGetOK { - return &ColumnFamilyMetricsKeyCacheHitRateByNameGetOK{} -} - -/* -ColumnFamilyMetricsKeyCacheHitRateByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsKeyCacheHitRateByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsKeyCacheHitRateByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsKeyCacheHitRateByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsKeyCacheHitRateByNameGetDefault creates a ColumnFamilyMetricsKeyCacheHitRateByNameGetDefault with default headers values -func NewColumnFamilyMetricsKeyCacheHitRateByNameGetDefault(code int) *ColumnFamilyMetricsKeyCacheHitRateByNameGetDefault { - return &ColumnFamilyMetricsKeyCacheHitRateByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsKeyCacheHitRateByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsKeyCacheHitRateByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics key cache hit rate by name get default response -func (o *ColumnFamilyMetricsKeyCacheHitRateByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsKeyCacheHitRateByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsKeyCacheHitRateByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsKeyCacheHitRateByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_disk_space_used_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_disk_space_used_by_name_get_parameters.go deleted file mode 100644 index db9f30cfec..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_disk_space_used_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams creates a new ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams() *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams { - var () - return &ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams { - var () - return &ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParamsWithContext creates a new ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams { - var () - return &ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams { - var () - return &ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics live disk space used by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics live disk space used by name get params -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics live disk space used by name get params -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics live disk space used by name get params -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics live disk space used by name get params -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics live disk space used by name get params -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics live disk space used by name get params -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics live disk space used by name get params -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams) WithName(name string) *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics live disk space used by name get params -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_disk_space_used_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_disk_space_used_by_name_get_responses.go deleted file mode 100644 index 25c76bd803..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_disk_space_used_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetReader is a Reader for the ColumnFamilyMetricsLiveDiskSpaceUsedByNameGet structure. -type ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsLiveDiskSpaceUsedByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsLiveDiskSpaceUsedByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsLiveDiskSpaceUsedByNameGetOK creates a ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetOK with default headers values -func NewColumnFamilyMetricsLiveDiskSpaceUsedByNameGetOK() *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetOK { - return &ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetOK{} -} - -/* -ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsLiveDiskSpaceUsedByNameGetDefault creates a ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetDefault with default headers values -func NewColumnFamilyMetricsLiveDiskSpaceUsedByNameGetDefault(code int) *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetDefault { - return &ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics live disk space used by name get default response -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_disk_space_used_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_disk_space_used_get_parameters.go deleted file mode 100644 index 199242bb11..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_disk_space_used_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsLiveDiskSpaceUsedGetParams creates a new ColumnFamilyMetricsLiveDiskSpaceUsedGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsLiveDiskSpaceUsedGetParams() *ColumnFamilyMetricsLiveDiskSpaceUsedGetParams { - - return &ColumnFamilyMetricsLiveDiskSpaceUsedGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsLiveDiskSpaceUsedGetParamsWithTimeout creates a new ColumnFamilyMetricsLiveDiskSpaceUsedGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsLiveDiskSpaceUsedGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsLiveDiskSpaceUsedGetParams { - - return &ColumnFamilyMetricsLiveDiskSpaceUsedGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsLiveDiskSpaceUsedGetParamsWithContext creates a new ColumnFamilyMetricsLiveDiskSpaceUsedGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsLiveDiskSpaceUsedGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsLiveDiskSpaceUsedGetParams { - - return &ColumnFamilyMetricsLiveDiskSpaceUsedGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsLiveDiskSpaceUsedGetParamsWithHTTPClient creates a new ColumnFamilyMetricsLiveDiskSpaceUsedGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsLiveDiskSpaceUsedGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsLiveDiskSpaceUsedGetParams { - - return &ColumnFamilyMetricsLiveDiskSpaceUsedGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsLiveDiskSpaceUsedGetParams contains all the parameters to send to the API endpoint -for the column family metrics live disk space used get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsLiveDiskSpaceUsedGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics live disk space used get params -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsLiveDiskSpaceUsedGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics live disk space used get params -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics live disk space used get params -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsLiveDiskSpaceUsedGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics live disk space used get params -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics live disk space used get params -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsLiveDiskSpaceUsedGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics live disk space used get params -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_disk_space_used_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_disk_space_used_get_responses.go deleted file mode 100644 index e85d8d4f3f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_disk_space_used_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsLiveDiskSpaceUsedGetReader is a Reader for the ColumnFamilyMetricsLiveDiskSpaceUsedGet structure. -type ColumnFamilyMetricsLiveDiskSpaceUsedGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsLiveDiskSpaceUsedGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsLiveDiskSpaceUsedGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsLiveDiskSpaceUsedGetOK creates a ColumnFamilyMetricsLiveDiskSpaceUsedGetOK with default headers values -func NewColumnFamilyMetricsLiveDiskSpaceUsedGetOK() *ColumnFamilyMetricsLiveDiskSpaceUsedGetOK { - return &ColumnFamilyMetricsLiveDiskSpaceUsedGetOK{} -} - -/* -ColumnFamilyMetricsLiveDiskSpaceUsedGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsLiveDiskSpaceUsedGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsLiveDiskSpaceUsedGetDefault creates a ColumnFamilyMetricsLiveDiskSpaceUsedGetDefault with default headers values -func NewColumnFamilyMetricsLiveDiskSpaceUsedGetDefault(code int) *ColumnFamilyMetricsLiveDiskSpaceUsedGetDefault { - return &ColumnFamilyMetricsLiveDiskSpaceUsedGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsLiveDiskSpaceUsedGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsLiveDiskSpaceUsedGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics live disk space used get default response -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsLiveDiskSpaceUsedGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_scanned_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_scanned_histogram_by_name_get_parameters.go deleted file mode 100644 index 443b6716c5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_scanned_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsLiveScannedHistogramByNameGetParams creates a new ColumnFamilyMetricsLiveScannedHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsLiveScannedHistogramByNameGetParams() *ColumnFamilyMetricsLiveScannedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsLiveScannedHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsLiveScannedHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsLiveScannedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsLiveScannedHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsLiveScannedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsLiveScannedHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsLiveScannedHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsLiveScannedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsLiveScannedHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsLiveScannedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsLiveScannedHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsLiveScannedHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsLiveScannedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsLiveScannedHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsLiveScannedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsLiveScannedHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsLiveScannedHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics live scanned histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsLiveScannedHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics live scanned histogram by name get params -func (o *ColumnFamilyMetricsLiveScannedHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsLiveScannedHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics live scanned histogram by name get params -func (o *ColumnFamilyMetricsLiveScannedHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics live scanned histogram by name get params -func (o *ColumnFamilyMetricsLiveScannedHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsLiveScannedHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics live scanned histogram by name get params -func (o *ColumnFamilyMetricsLiveScannedHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics live scanned histogram by name get params -func (o *ColumnFamilyMetricsLiveScannedHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsLiveScannedHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics live scanned histogram by name get params -func (o *ColumnFamilyMetricsLiveScannedHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics live scanned histogram by name get params -func (o *ColumnFamilyMetricsLiveScannedHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsLiveScannedHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics live scanned histogram by name get params -func (o *ColumnFamilyMetricsLiveScannedHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsLiveScannedHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_scanned_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_scanned_histogram_by_name_get_responses.go deleted file mode 100644 index f7a513fdb4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_scanned_histogram_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsLiveScannedHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsLiveScannedHistogramByNameGet structure. -type ColumnFamilyMetricsLiveScannedHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsLiveScannedHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsLiveScannedHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsLiveScannedHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsLiveScannedHistogramByNameGetOK creates a ColumnFamilyMetricsLiveScannedHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsLiveScannedHistogramByNameGetOK() *ColumnFamilyMetricsLiveScannedHistogramByNameGetOK { - return &ColumnFamilyMetricsLiveScannedHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsLiveScannedHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsLiveScannedHistogramByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsLiveScannedHistogramByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsLiveScannedHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsLiveScannedHistogramByNameGetDefault creates a ColumnFamilyMetricsLiveScannedHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsLiveScannedHistogramByNameGetDefault(code int) *ColumnFamilyMetricsLiveScannedHistogramByNameGetDefault { - return &ColumnFamilyMetricsLiveScannedHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsLiveScannedHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsLiveScannedHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics live scanned histogram by name get default response -func (o *ColumnFamilyMetricsLiveScannedHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsLiveScannedHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsLiveScannedHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsLiveScannedHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_ss_table_count_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_ss_table_count_by_name_get_parameters.go deleted file mode 100644 index 4774b8dbcb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_ss_table_count_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsLiveSsTableCountByNameGetParams creates a new ColumnFamilyMetricsLiveSsTableCountByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsLiveSsTableCountByNameGetParams() *ColumnFamilyMetricsLiveSsTableCountByNameGetParams { - var () - return &ColumnFamilyMetricsLiveSsTableCountByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsLiveSsTableCountByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsLiveSsTableCountByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsLiveSsTableCountByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsLiveSsTableCountByNameGetParams { - var () - return &ColumnFamilyMetricsLiveSsTableCountByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsLiveSsTableCountByNameGetParamsWithContext creates a new ColumnFamilyMetricsLiveSsTableCountByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsLiveSsTableCountByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsLiveSsTableCountByNameGetParams { - var () - return &ColumnFamilyMetricsLiveSsTableCountByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsLiveSsTableCountByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsLiveSsTableCountByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsLiveSsTableCountByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsLiveSsTableCountByNameGetParams { - var () - return &ColumnFamilyMetricsLiveSsTableCountByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsLiveSsTableCountByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics live ss table count by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsLiveSsTableCountByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics live ss table count by name get params -func (o *ColumnFamilyMetricsLiveSsTableCountByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsLiveSsTableCountByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics live ss table count by name get params -func (o *ColumnFamilyMetricsLiveSsTableCountByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics live ss table count by name get params -func (o *ColumnFamilyMetricsLiveSsTableCountByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsLiveSsTableCountByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics live ss table count by name get params -func (o *ColumnFamilyMetricsLiveSsTableCountByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics live ss table count by name get params -func (o *ColumnFamilyMetricsLiveSsTableCountByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsLiveSsTableCountByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics live ss table count by name get params -func (o *ColumnFamilyMetricsLiveSsTableCountByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics live ss table count by name get params -func (o *ColumnFamilyMetricsLiveSsTableCountByNameGetParams) WithName(name string) *ColumnFamilyMetricsLiveSsTableCountByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics live ss table count by name get params -func (o *ColumnFamilyMetricsLiveSsTableCountByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsLiveSsTableCountByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_ss_table_count_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_ss_table_count_by_name_get_responses.go deleted file mode 100644 index dc17456df2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_ss_table_count_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsLiveSsTableCountByNameGetReader is a Reader for the ColumnFamilyMetricsLiveSsTableCountByNameGet structure. -type ColumnFamilyMetricsLiveSsTableCountByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsLiveSsTableCountByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsLiveSsTableCountByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsLiveSsTableCountByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsLiveSsTableCountByNameGetOK creates a ColumnFamilyMetricsLiveSsTableCountByNameGetOK with default headers values -func NewColumnFamilyMetricsLiveSsTableCountByNameGetOK() *ColumnFamilyMetricsLiveSsTableCountByNameGetOK { - return &ColumnFamilyMetricsLiveSsTableCountByNameGetOK{} -} - -/* -ColumnFamilyMetricsLiveSsTableCountByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsLiveSsTableCountByNameGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsLiveSsTableCountByNameGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsLiveSsTableCountByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsLiveSsTableCountByNameGetDefault creates a ColumnFamilyMetricsLiveSsTableCountByNameGetDefault with default headers values -func NewColumnFamilyMetricsLiveSsTableCountByNameGetDefault(code int) *ColumnFamilyMetricsLiveSsTableCountByNameGetDefault { - return &ColumnFamilyMetricsLiveSsTableCountByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsLiveSsTableCountByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsLiveSsTableCountByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics live ss table count by name get default response -func (o *ColumnFamilyMetricsLiveSsTableCountByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsLiveSsTableCountByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsLiveSsTableCountByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsLiveSsTableCountByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_ss_table_count_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_ss_table_count_get_parameters.go deleted file mode 100644 index 7639bf3610..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_ss_table_count_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsLiveSsTableCountGetParams creates a new ColumnFamilyMetricsLiveSsTableCountGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsLiveSsTableCountGetParams() *ColumnFamilyMetricsLiveSsTableCountGetParams { - - return &ColumnFamilyMetricsLiveSsTableCountGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsLiveSsTableCountGetParamsWithTimeout creates a new ColumnFamilyMetricsLiveSsTableCountGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsLiveSsTableCountGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsLiveSsTableCountGetParams { - - return &ColumnFamilyMetricsLiveSsTableCountGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsLiveSsTableCountGetParamsWithContext creates a new ColumnFamilyMetricsLiveSsTableCountGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsLiveSsTableCountGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsLiveSsTableCountGetParams { - - return &ColumnFamilyMetricsLiveSsTableCountGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsLiveSsTableCountGetParamsWithHTTPClient creates a new ColumnFamilyMetricsLiveSsTableCountGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsLiveSsTableCountGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsLiveSsTableCountGetParams { - - return &ColumnFamilyMetricsLiveSsTableCountGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsLiveSsTableCountGetParams contains all the parameters to send to the API endpoint -for the column family metrics live ss table count get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsLiveSsTableCountGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics live ss table count get params -func (o *ColumnFamilyMetricsLiveSsTableCountGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsLiveSsTableCountGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics live ss table count get params -func (o *ColumnFamilyMetricsLiveSsTableCountGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics live ss table count get params -func (o *ColumnFamilyMetricsLiveSsTableCountGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsLiveSsTableCountGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics live ss table count get params -func (o *ColumnFamilyMetricsLiveSsTableCountGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics live ss table count get params -func (o *ColumnFamilyMetricsLiveSsTableCountGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsLiveSsTableCountGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics live ss table count get params -func (o *ColumnFamilyMetricsLiveSsTableCountGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsLiveSsTableCountGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_ss_table_count_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_ss_table_count_get_responses.go deleted file mode 100644 index 213d0d305e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_live_ss_table_count_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsLiveSsTableCountGetReader is a Reader for the ColumnFamilyMetricsLiveSsTableCountGet structure. -type ColumnFamilyMetricsLiveSsTableCountGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsLiveSsTableCountGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsLiveSsTableCountGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsLiveSsTableCountGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsLiveSsTableCountGetOK creates a ColumnFamilyMetricsLiveSsTableCountGetOK with default headers values -func NewColumnFamilyMetricsLiveSsTableCountGetOK() *ColumnFamilyMetricsLiveSsTableCountGetOK { - return &ColumnFamilyMetricsLiveSsTableCountGetOK{} -} - -/* -ColumnFamilyMetricsLiveSsTableCountGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsLiveSsTableCountGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsLiveSsTableCountGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsLiveSsTableCountGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsLiveSsTableCountGetDefault creates a ColumnFamilyMetricsLiveSsTableCountGetDefault with default headers values -func NewColumnFamilyMetricsLiveSsTableCountGetDefault(code int) *ColumnFamilyMetricsLiveSsTableCountGetDefault { - return &ColumnFamilyMetricsLiveSsTableCountGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsLiveSsTableCountGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsLiveSsTableCountGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics live ss table count get default response -func (o *ColumnFamilyMetricsLiveSsTableCountGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsLiveSsTableCountGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsLiveSsTableCountGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsLiveSsTableCountGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_max_row_size_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_max_row_size_by_name_get_parameters.go deleted file mode 100644 index 6f827aac6b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_max_row_size_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsMaxRowSizeByNameGetParams creates a new ColumnFamilyMetricsMaxRowSizeByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsMaxRowSizeByNameGetParams() *ColumnFamilyMetricsMaxRowSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMaxRowSizeByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsMaxRowSizeByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsMaxRowSizeByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsMaxRowSizeByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsMaxRowSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMaxRowSizeByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsMaxRowSizeByNameGetParamsWithContext creates a new ColumnFamilyMetricsMaxRowSizeByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsMaxRowSizeByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsMaxRowSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMaxRowSizeByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsMaxRowSizeByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsMaxRowSizeByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsMaxRowSizeByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsMaxRowSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMaxRowSizeByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsMaxRowSizeByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics max row size by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsMaxRowSizeByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics max row size by name get params -func (o *ColumnFamilyMetricsMaxRowSizeByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsMaxRowSizeByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics max row size by name get params -func (o *ColumnFamilyMetricsMaxRowSizeByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics max row size by name get params -func (o *ColumnFamilyMetricsMaxRowSizeByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsMaxRowSizeByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics max row size by name get params -func (o *ColumnFamilyMetricsMaxRowSizeByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics max row size by name get params -func (o *ColumnFamilyMetricsMaxRowSizeByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsMaxRowSizeByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics max row size by name get params -func (o *ColumnFamilyMetricsMaxRowSizeByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics max row size by name get params -func (o *ColumnFamilyMetricsMaxRowSizeByNameGetParams) WithName(name string) *ColumnFamilyMetricsMaxRowSizeByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics max row size by name get params -func (o *ColumnFamilyMetricsMaxRowSizeByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsMaxRowSizeByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_max_row_size_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_max_row_size_by_name_get_responses.go deleted file mode 100644 index 123658dc2f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_max_row_size_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsMaxRowSizeByNameGetReader is a Reader for the ColumnFamilyMetricsMaxRowSizeByNameGet structure. -type ColumnFamilyMetricsMaxRowSizeByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsMaxRowSizeByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsMaxRowSizeByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsMaxRowSizeByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsMaxRowSizeByNameGetOK creates a ColumnFamilyMetricsMaxRowSizeByNameGetOK with default headers values -func NewColumnFamilyMetricsMaxRowSizeByNameGetOK() *ColumnFamilyMetricsMaxRowSizeByNameGetOK { - return &ColumnFamilyMetricsMaxRowSizeByNameGetOK{} -} - -/* -ColumnFamilyMetricsMaxRowSizeByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsMaxRowSizeByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsMaxRowSizeByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsMaxRowSizeByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsMaxRowSizeByNameGetDefault creates a ColumnFamilyMetricsMaxRowSizeByNameGetDefault with default headers values -func NewColumnFamilyMetricsMaxRowSizeByNameGetDefault(code int) *ColumnFamilyMetricsMaxRowSizeByNameGetDefault { - return &ColumnFamilyMetricsMaxRowSizeByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsMaxRowSizeByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsMaxRowSizeByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics max row size by name get default response -func (o *ColumnFamilyMetricsMaxRowSizeByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsMaxRowSizeByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsMaxRowSizeByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsMaxRowSizeByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_max_row_size_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_max_row_size_get_parameters.go deleted file mode 100644 index b42a11ff2a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_max_row_size_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsMaxRowSizeGetParams creates a new ColumnFamilyMetricsMaxRowSizeGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsMaxRowSizeGetParams() *ColumnFamilyMetricsMaxRowSizeGetParams { - - return &ColumnFamilyMetricsMaxRowSizeGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsMaxRowSizeGetParamsWithTimeout creates a new ColumnFamilyMetricsMaxRowSizeGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsMaxRowSizeGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsMaxRowSizeGetParams { - - return &ColumnFamilyMetricsMaxRowSizeGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsMaxRowSizeGetParamsWithContext creates a new ColumnFamilyMetricsMaxRowSizeGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsMaxRowSizeGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsMaxRowSizeGetParams { - - return &ColumnFamilyMetricsMaxRowSizeGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsMaxRowSizeGetParamsWithHTTPClient creates a new ColumnFamilyMetricsMaxRowSizeGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsMaxRowSizeGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsMaxRowSizeGetParams { - - return &ColumnFamilyMetricsMaxRowSizeGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsMaxRowSizeGetParams contains all the parameters to send to the API endpoint -for the column family metrics max row size get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsMaxRowSizeGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics max row size get params -func (o *ColumnFamilyMetricsMaxRowSizeGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsMaxRowSizeGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics max row size get params -func (o *ColumnFamilyMetricsMaxRowSizeGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics max row size get params -func (o *ColumnFamilyMetricsMaxRowSizeGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsMaxRowSizeGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics max row size get params -func (o *ColumnFamilyMetricsMaxRowSizeGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics max row size get params -func (o *ColumnFamilyMetricsMaxRowSizeGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsMaxRowSizeGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics max row size get params -func (o *ColumnFamilyMetricsMaxRowSizeGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsMaxRowSizeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_max_row_size_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_max_row_size_get_responses.go deleted file mode 100644 index cfcb196c8e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_max_row_size_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsMaxRowSizeGetReader is a Reader for the ColumnFamilyMetricsMaxRowSizeGet structure. -type ColumnFamilyMetricsMaxRowSizeGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsMaxRowSizeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsMaxRowSizeGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsMaxRowSizeGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsMaxRowSizeGetOK creates a ColumnFamilyMetricsMaxRowSizeGetOK with default headers values -func NewColumnFamilyMetricsMaxRowSizeGetOK() *ColumnFamilyMetricsMaxRowSizeGetOK { - return &ColumnFamilyMetricsMaxRowSizeGetOK{} -} - -/* -ColumnFamilyMetricsMaxRowSizeGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsMaxRowSizeGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsMaxRowSizeGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsMaxRowSizeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsMaxRowSizeGetDefault creates a ColumnFamilyMetricsMaxRowSizeGetDefault with default headers values -func NewColumnFamilyMetricsMaxRowSizeGetDefault(code int) *ColumnFamilyMetricsMaxRowSizeGetDefault { - return &ColumnFamilyMetricsMaxRowSizeGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsMaxRowSizeGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsMaxRowSizeGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics max row size get default response -func (o *ColumnFamilyMetricsMaxRowSizeGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsMaxRowSizeGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsMaxRowSizeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsMaxRowSizeGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_mean_row_size_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_mean_row_size_by_name_get_parameters.go deleted file mode 100644 index 95d032a165..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_mean_row_size_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsMeanRowSizeByNameGetParams creates a new ColumnFamilyMetricsMeanRowSizeByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsMeanRowSizeByNameGetParams() *ColumnFamilyMetricsMeanRowSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMeanRowSizeByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsMeanRowSizeByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsMeanRowSizeByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsMeanRowSizeByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsMeanRowSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMeanRowSizeByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsMeanRowSizeByNameGetParamsWithContext creates a new ColumnFamilyMetricsMeanRowSizeByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsMeanRowSizeByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsMeanRowSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMeanRowSizeByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsMeanRowSizeByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsMeanRowSizeByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsMeanRowSizeByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsMeanRowSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMeanRowSizeByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsMeanRowSizeByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics mean row size by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsMeanRowSizeByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics mean row size by name get params -func (o *ColumnFamilyMetricsMeanRowSizeByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsMeanRowSizeByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics mean row size by name get params -func (o *ColumnFamilyMetricsMeanRowSizeByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics mean row size by name get params -func (o *ColumnFamilyMetricsMeanRowSizeByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsMeanRowSizeByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics mean row size by name get params -func (o *ColumnFamilyMetricsMeanRowSizeByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics mean row size by name get params -func (o *ColumnFamilyMetricsMeanRowSizeByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsMeanRowSizeByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics mean row size by name get params -func (o *ColumnFamilyMetricsMeanRowSizeByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics mean row size by name get params -func (o *ColumnFamilyMetricsMeanRowSizeByNameGetParams) WithName(name string) *ColumnFamilyMetricsMeanRowSizeByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics mean row size by name get params -func (o *ColumnFamilyMetricsMeanRowSizeByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsMeanRowSizeByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_mean_row_size_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_mean_row_size_by_name_get_responses.go deleted file mode 100644 index d814ff9322..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_mean_row_size_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsMeanRowSizeByNameGetReader is a Reader for the ColumnFamilyMetricsMeanRowSizeByNameGet structure. -type ColumnFamilyMetricsMeanRowSizeByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsMeanRowSizeByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsMeanRowSizeByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsMeanRowSizeByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsMeanRowSizeByNameGetOK creates a ColumnFamilyMetricsMeanRowSizeByNameGetOK with default headers values -func NewColumnFamilyMetricsMeanRowSizeByNameGetOK() *ColumnFamilyMetricsMeanRowSizeByNameGetOK { - return &ColumnFamilyMetricsMeanRowSizeByNameGetOK{} -} - -/* -ColumnFamilyMetricsMeanRowSizeByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsMeanRowSizeByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsMeanRowSizeByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsMeanRowSizeByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsMeanRowSizeByNameGetDefault creates a ColumnFamilyMetricsMeanRowSizeByNameGetDefault with default headers values -func NewColumnFamilyMetricsMeanRowSizeByNameGetDefault(code int) *ColumnFamilyMetricsMeanRowSizeByNameGetDefault { - return &ColumnFamilyMetricsMeanRowSizeByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsMeanRowSizeByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsMeanRowSizeByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics mean row size by name get default response -func (o *ColumnFamilyMetricsMeanRowSizeByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsMeanRowSizeByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsMeanRowSizeByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsMeanRowSizeByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_mean_row_size_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_mean_row_size_get_parameters.go deleted file mode 100644 index ef9f14fcd3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_mean_row_size_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsMeanRowSizeGetParams creates a new ColumnFamilyMetricsMeanRowSizeGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsMeanRowSizeGetParams() *ColumnFamilyMetricsMeanRowSizeGetParams { - - return &ColumnFamilyMetricsMeanRowSizeGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsMeanRowSizeGetParamsWithTimeout creates a new ColumnFamilyMetricsMeanRowSizeGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsMeanRowSizeGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsMeanRowSizeGetParams { - - return &ColumnFamilyMetricsMeanRowSizeGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsMeanRowSizeGetParamsWithContext creates a new ColumnFamilyMetricsMeanRowSizeGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsMeanRowSizeGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsMeanRowSizeGetParams { - - return &ColumnFamilyMetricsMeanRowSizeGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsMeanRowSizeGetParamsWithHTTPClient creates a new ColumnFamilyMetricsMeanRowSizeGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsMeanRowSizeGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsMeanRowSizeGetParams { - - return &ColumnFamilyMetricsMeanRowSizeGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsMeanRowSizeGetParams contains all the parameters to send to the API endpoint -for the column family metrics mean row size get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsMeanRowSizeGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics mean row size get params -func (o *ColumnFamilyMetricsMeanRowSizeGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsMeanRowSizeGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics mean row size get params -func (o *ColumnFamilyMetricsMeanRowSizeGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics mean row size get params -func (o *ColumnFamilyMetricsMeanRowSizeGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsMeanRowSizeGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics mean row size get params -func (o *ColumnFamilyMetricsMeanRowSizeGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics mean row size get params -func (o *ColumnFamilyMetricsMeanRowSizeGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsMeanRowSizeGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics mean row size get params -func (o *ColumnFamilyMetricsMeanRowSizeGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsMeanRowSizeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_mean_row_size_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_mean_row_size_get_responses.go deleted file mode 100644 index 14e0167ca0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_mean_row_size_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsMeanRowSizeGetReader is a Reader for the ColumnFamilyMetricsMeanRowSizeGet structure. -type ColumnFamilyMetricsMeanRowSizeGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsMeanRowSizeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsMeanRowSizeGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsMeanRowSizeGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsMeanRowSizeGetOK creates a ColumnFamilyMetricsMeanRowSizeGetOK with default headers values -func NewColumnFamilyMetricsMeanRowSizeGetOK() *ColumnFamilyMetricsMeanRowSizeGetOK { - return &ColumnFamilyMetricsMeanRowSizeGetOK{} -} - -/* -ColumnFamilyMetricsMeanRowSizeGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsMeanRowSizeGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsMeanRowSizeGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsMeanRowSizeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsMeanRowSizeGetDefault creates a ColumnFamilyMetricsMeanRowSizeGetDefault with default headers values -func NewColumnFamilyMetricsMeanRowSizeGetDefault(code int) *ColumnFamilyMetricsMeanRowSizeGetDefault { - return &ColumnFamilyMetricsMeanRowSizeGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsMeanRowSizeGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsMeanRowSizeGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics mean row size get default response -func (o *ColumnFamilyMetricsMeanRowSizeGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsMeanRowSizeGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsMeanRowSizeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsMeanRowSizeGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_columns_count_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_columns_count_by_name_get_parameters.go deleted file mode 100644 index 1c13095e4d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_columns_count_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsMemtableColumnsCountByNameGetParams creates a new ColumnFamilyMetricsMemtableColumnsCountByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsMemtableColumnsCountByNameGetParams() *ColumnFamilyMetricsMemtableColumnsCountByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableColumnsCountByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsMemtableColumnsCountByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsMemtableColumnsCountByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsMemtableColumnsCountByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableColumnsCountByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableColumnsCountByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsMemtableColumnsCountByNameGetParamsWithContext creates a new ColumnFamilyMetricsMemtableColumnsCountByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsMemtableColumnsCountByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsMemtableColumnsCountByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableColumnsCountByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsMemtableColumnsCountByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsMemtableColumnsCountByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsMemtableColumnsCountByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableColumnsCountByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableColumnsCountByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsMemtableColumnsCountByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics memtable columns count by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsMemtableColumnsCountByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics memtable columns count by name get params -func (o *ColumnFamilyMetricsMemtableColumnsCountByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableColumnsCountByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics memtable columns count by name get params -func (o *ColumnFamilyMetricsMemtableColumnsCountByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics memtable columns count by name get params -func (o *ColumnFamilyMetricsMemtableColumnsCountByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsMemtableColumnsCountByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics memtable columns count by name get params -func (o *ColumnFamilyMetricsMemtableColumnsCountByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics memtable columns count by name get params -func (o *ColumnFamilyMetricsMemtableColumnsCountByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableColumnsCountByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics memtable columns count by name get params -func (o *ColumnFamilyMetricsMemtableColumnsCountByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics memtable columns count by name get params -func (o *ColumnFamilyMetricsMemtableColumnsCountByNameGetParams) WithName(name string) *ColumnFamilyMetricsMemtableColumnsCountByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics memtable columns count by name get params -func (o *ColumnFamilyMetricsMemtableColumnsCountByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsMemtableColumnsCountByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_columns_count_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_columns_count_by_name_get_responses.go deleted file mode 100644 index f9a099dea7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_columns_count_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsMemtableColumnsCountByNameGetReader is a Reader for the ColumnFamilyMetricsMemtableColumnsCountByNameGet structure. -type ColumnFamilyMetricsMemtableColumnsCountByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsMemtableColumnsCountByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsMemtableColumnsCountByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsMemtableColumnsCountByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsMemtableColumnsCountByNameGetOK creates a ColumnFamilyMetricsMemtableColumnsCountByNameGetOK with default headers values -func NewColumnFamilyMetricsMemtableColumnsCountByNameGetOK() *ColumnFamilyMetricsMemtableColumnsCountByNameGetOK { - return &ColumnFamilyMetricsMemtableColumnsCountByNameGetOK{} -} - -/* -ColumnFamilyMetricsMemtableColumnsCountByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsMemtableColumnsCountByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsMemtableColumnsCountByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableColumnsCountByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsMemtableColumnsCountByNameGetDefault creates a ColumnFamilyMetricsMemtableColumnsCountByNameGetDefault with default headers values -func NewColumnFamilyMetricsMemtableColumnsCountByNameGetDefault(code int) *ColumnFamilyMetricsMemtableColumnsCountByNameGetDefault { - return &ColumnFamilyMetricsMemtableColumnsCountByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsMemtableColumnsCountByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsMemtableColumnsCountByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics memtable columns count by name get default response -func (o *ColumnFamilyMetricsMemtableColumnsCountByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsMemtableColumnsCountByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableColumnsCountByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsMemtableColumnsCountByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_columns_count_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_columns_count_get_parameters.go deleted file mode 100644 index 467df3de94..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_columns_count_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsMemtableColumnsCountGetParams creates a new ColumnFamilyMetricsMemtableColumnsCountGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsMemtableColumnsCountGetParams() *ColumnFamilyMetricsMemtableColumnsCountGetParams { - - return &ColumnFamilyMetricsMemtableColumnsCountGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsMemtableColumnsCountGetParamsWithTimeout creates a new ColumnFamilyMetricsMemtableColumnsCountGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsMemtableColumnsCountGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableColumnsCountGetParams { - - return &ColumnFamilyMetricsMemtableColumnsCountGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsMemtableColumnsCountGetParamsWithContext creates a new ColumnFamilyMetricsMemtableColumnsCountGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsMemtableColumnsCountGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsMemtableColumnsCountGetParams { - - return &ColumnFamilyMetricsMemtableColumnsCountGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsMemtableColumnsCountGetParamsWithHTTPClient creates a new ColumnFamilyMetricsMemtableColumnsCountGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsMemtableColumnsCountGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableColumnsCountGetParams { - - return &ColumnFamilyMetricsMemtableColumnsCountGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsMemtableColumnsCountGetParams contains all the parameters to send to the API endpoint -for the column family metrics memtable columns count get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsMemtableColumnsCountGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics memtable columns count get params -func (o *ColumnFamilyMetricsMemtableColumnsCountGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableColumnsCountGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics memtable columns count get params -func (o *ColumnFamilyMetricsMemtableColumnsCountGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics memtable columns count get params -func (o *ColumnFamilyMetricsMemtableColumnsCountGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsMemtableColumnsCountGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics memtable columns count get params -func (o *ColumnFamilyMetricsMemtableColumnsCountGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics memtable columns count get params -func (o *ColumnFamilyMetricsMemtableColumnsCountGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableColumnsCountGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics memtable columns count get params -func (o *ColumnFamilyMetricsMemtableColumnsCountGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsMemtableColumnsCountGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_columns_count_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_columns_count_get_responses.go deleted file mode 100644 index 119e5fd6ad..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_columns_count_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsMemtableColumnsCountGetReader is a Reader for the ColumnFamilyMetricsMemtableColumnsCountGet structure. -type ColumnFamilyMetricsMemtableColumnsCountGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsMemtableColumnsCountGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsMemtableColumnsCountGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsMemtableColumnsCountGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsMemtableColumnsCountGetOK creates a ColumnFamilyMetricsMemtableColumnsCountGetOK with default headers values -func NewColumnFamilyMetricsMemtableColumnsCountGetOK() *ColumnFamilyMetricsMemtableColumnsCountGetOK { - return &ColumnFamilyMetricsMemtableColumnsCountGetOK{} -} - -/* -ColumnFamilyMetricsMemtableColumnsCountGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsMemtableColumnsCountGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsMemtableColumnsCountGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableColumnsCountGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsMemtableColumnsCountGetDefault creates a ColumnFamilyMetricsMemtableColumnsCountGetDefault with default headers values -func NewColumnFamilyMetricsMemtableColumnsCountGetDefault(code int) *ColumnFamilyMetricsMemtableColumnsCountGetDefault { - return &ColumnFamilyMetricsMemtableColumnsCountGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsMemtableColumnsCountGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsMemtableColumnsCountGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics memtable columns count get default response -func (o *ColumnFamilyMetricsMemtableColumnsCountGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsMemtableColumnsCountGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableColumnsCountGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsMemtableColumnsCountGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_live_data_size_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_live_data_size_by_name_get_parameters.go deleted file mode 100644 index c45dee74fe..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_live_data_size_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams creates a new ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams() *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsMemtableLiveDataSizeByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsMemtableLiveDataSizeByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsMemtableLiveDataSizeByNameGetParamsWithContext creates a new ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsMemtableLiveDataSizeByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsMemtableLiveDataSizeByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsMemtableLiveDataSizeByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics memtable live data size by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics memtable live data size by name get params -func (o *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics memtable live data size by name get params -func (o *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics memtable live data size by name get params -func (o *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics memtable live data size by name get params -func (o *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics memtable live data size by name get params -func (o *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics memtable live data size by name get params -func (o *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics memtable live data size by name get params -func (o *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams) WithName(name string) *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics memtable live data size by name get params -func (o *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_live_data_size_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_live_data_size_by_name_get_responses.go deleted file mode 100644 index cbe801915e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_live_data_size_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsMemtableLiveDataSizeByNameGetReader is a Reader for the ColumnFamilyMetricsMemtableLiveDataSizeByNameGet structure. -type ColumnFamilyMetricsMemtableLiveDataSizeByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsMemtableLiveDataSizeByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsMemtableLiveDataSizeByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsMemtableLiveDataSizeByNameGetOK creates a ColumnFamilyMetricsMemtableLiveDataSizeByNameGetOK with default headers values -func NewColumnFamilyMetricsMemtableLiveDataSizeByNameGetOK() *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetOK { - return &ColumnFamilyMetricsMemtableLiveDataSizeByNameGetOK{} -} - -/* -ColumnFamilyMetricsMemtableLiveDataSizeByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsMemtableLiveDataSizeByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsMemtableLiveDataSizeByNameGetDefault creates a ColumnFamilyMetricsMemtableLiveDataSizeByNameGetDefault with default headers values -func NewColumnFamilyMetricsMemtableLiveDataSizeByNameGetDefault(code int) *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetDefault { - return &ColumnFamilyMetricsMemtableLiveDataSizeByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsMemtableLiveDataSizeByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsMemtableLiveDataSizeByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics memtable live data size by name get default response -func (o *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_live_data_size_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_live_data_size_get_parameters.go deleted file mode 100644 index 993c6fdaac..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_live_data_size_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsMemtableLiveDataSizeGetParams creates a new ColumnFamilyMetricsMemtableLiveDataSizeGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsMemtableLiveDataSizeGetParams() *ColumnFamilyMetricsMemtableLiveDataSizeGetParams { - - return &ColumnFamilyMetricsMemtableLiveDataSizeGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsMemtableLiveDataSizeGetParamsWithTimeout creates a new ColumnFamilyMetricsMemtableLiveDataSizeGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsMemtableLiveDataSizeGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableLiveDataSizeGetParams { - - return &ColumnFamilyMetricsMemtableLiveDataSizeGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsMemtableLiveDataSizeGetParamsWithContext creates a new ColumnFamilyMetricsMemtableLiveDataSizeGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsMemtableLiveDataSizeGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsMemtableLiveDataSizeGetParams { - - return &ColumnFamilyMetricsMemtableLiveDataSizeGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsMemtableLiveDataSizeGetParamsWithHTTPClient creates a new ColumnFamilyMetricsMemtableLiveDataSizeGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsMemtableLiveDataSizeGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableLiveDataSizeGetParams { - - return &ColumnFamilyMetricsMemtableLiveDataSizeGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsMemtableLiveDataSizeGetParams contains all the parameters to send to the API endpoint -for the column family metrics memtable live data size get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsMemtableLiveDataSizeGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics memtable live data size get params -func (o *ColumnFamilyMetricsMemtableLiveDataSizeGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableLiveDataSizeGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics memtable live data size get params -func (o *ColumnFamilyMetricsMemtableLiveDataSizeGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics memtable live data size get params -func (o *ColumnFamilyMetricsMemtableLiveDataSizeGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsMemtableLiveDataSizeGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics memtable live data size get params -func (o *ColumnFamilyMetricsMemtableLiveDataSizeGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics memtable live data size get params -func (o *ColumnFamilyMetricsMemtableLiveDataSizeGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableLiveDataSizeGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics memtable live data size get params -func (o *ColumnFamilyMetricsMemtableLiveDataSizeGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsMemtableLiveDataSizeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_live_data_size_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_live_data_size_get_responses.go deleted file mode 100644 index ad81638a5a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_live_data_size_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsMemtableLiveDataSizeGetReader is a Reader for the ColumnFamilyMetricsMemtableLiveDataSizeGet structure. -type ColumnFamilyMetricsMemtableLiveDataSizeGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsMemtableLiveDataSizeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsMemtableLiveDataSizeGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsMemtableLiveDataSizeGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsMemtableLiveDataSizeGetOK creates a ColumnFamilyMetricsMemtableLiveDataSizeGetOK with default headers values -func NewColumnFamilyMetricsMemtableLiveDataSizeGetOK() *ColumnFamilyMetricsMemtableLiveDataSizeGetOK { - return &ColumnFamilyMetricsMemtableLiveDataSizeGetOK{} -} - -/* -ColumnFamilyMetricsMemtableLiveDataSizeGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsMemtableLiveDataSizeGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsMemtableLiveDataSizeGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableLiveDataSizeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsMemtableLiveDataSizeGetDefault creates a ColumnFamilyMetricsMemtableLiveDataSizeGetDefault with default headers values -func NewColumnFamilyMetricsMemtableLiveDataSizeGetDefault(code int) *ColumnFamilyMetricsMemtableLiveDataSizeGetDefault { - return &ColumnFamilyMetricsMemtableLiveDataSizeGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsMemtableLiveDataSizeGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsMemtableLiveDataSizeGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics memtable live data size get default response -func (o *ColumnFamilyMetricsMemtableLiveDataSizeGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsMemtableLiveDataSizeGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableLiveDataSizeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsMemtableLiveDataSizeGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_off_heap_size_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_off_heap_size_by_name_get_parameters.go deleted file mode 100644 index 38ef3db03e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_off_heap_size_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams creates a new ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams() *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsMemtableOffHeapSizeByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsMemtableOffHeapSizeByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsMemtableOffHeapSizeByNameGetParamsWithContext creates a new ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsMemtableOffHeapSizeByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsMemtableOffHeapSizeByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsMemtableOffHeapSizeByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics memtable off heap size by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics memtable off heap size by name get params -func (o *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics memtable off heap size by name get params -func (o *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics memtable off heap size by name get params -func (o *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics memtable off heap size by name get params -func (o *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics memtable off heap size by name get params -func (o *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics memtable off heap size by name get params -func (o *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics memtable off heap size by name get params -func (o *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams) WithName(name string) *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics memtable off heap size by name get params -func (o *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_off_heap_size_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_off_heap_size_by_name_get_responses.go deleted file mode 100644 index cc41f5c09f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_off_heap_size_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsMemtableOffHeapSizeByNameGetReader is a Reader for the ColumnFamilyMetricsMemtableOffHeapSizeByNameGet structure. -type ColumnFamilyMetricsMemtableOffHeapSizeByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsMemtableOffHeapSizeByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsMemtableOffHeapSizeByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsMemtableOffHeapSizeByNameGetOK creates a ColumnFamilyMetricsMemtableOffHeapSizeByNameGetOK with default headers values -func NewColumnFamilyMetricsMemtableOffHeapSizeByNameGetOK() *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetOK { - return &ColumnFamilyMetricsMemtableOffHeapSizeByNameGetOK{} -} - -/* -ColumnFamilyMetricsMemtableOffHeapSizeByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsMemtableOffHeapSizeByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsMemtableOffHeapSizeByNameGetDefault creates a ColumnFamilyMetricsMemtableOffHeapSizeByNameGetDefault with default headers values -func NewColumnFamilyMetricsMemtableOffHeapSizeByNameGetDefault(code int) *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetDefault { - return &ColumnFamilyMetricsMemtableOffHeapSizeByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsMemtableOffHeapSizeByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsMemtableOffHeapSizeByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics memtable off heap size by name get default response -func (o *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_off_heap_size_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_off_heap_size_get_parameters.go deleted file mode 100644 index 4f60d022ea..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_off_heap_size_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsMemtableOffHeapSizeGetParams creates a new ColumnFamilyMetricsMemtableOffHeapSizeGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsMemtableOffHeapSizeGetParams() *ColumnFamilyMetricsMemtableOffHeapSizeGetParams { - - return &ColumnFamilyMetricsMemtableOffHeapSizeGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsMemtableOffHeapSizeGetParamsWithTimeout creates a new ColumnFamilyMetricsMemtableOffHeapSizeGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsMemtableOffHeapSizeGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableOffHeapSizeGetParams { - - return &ColumnFamilyMetricsMemtableOffHeapSizeGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsMemtableOffHeapSizeGetParamsWithContext creates a new ColumnFamilyMetricsMemtableOffHeapSizeGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsMemtableOffHeapSizeGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsMemtableOffHeapSizeGetParams { - - return &ColumnFamilyMetricsMemtableOffHeapSizeGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsMemtableOffHeapSizeGetParamsWithHTTPClient creates a new ColumnFamilyMetricsMemtableOffHeapSizeGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsMemtableOffHeapSizeGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableOffHeapSizeGetParams { - - return &ColumnFamilyMetricsMemtableOffHeapSizeGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsMemtableOffHeapSizeGetParams contains all the parameters to send to the API endpoint -for the column family metrics memtable off heap size get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsMemtableOffHeapSizeGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics memtable off heap size get params -func (o *ColumnFamilyMetricsMemtableOffHeapSizeGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableOffHeapSizeGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics memtable off heap size get params -func (o *ColumnFamilyMetricsMemtableOffHeapSizeGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics memtable off heap size get params -func (o *ColumnFamilyMetricsMemtableOffHeapSizeGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsMemtableOffHeapSizeGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics memtable off heap size get params -func (o *ColumnFamilyMetricsMemtableOffHeapSizeGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics memtable off heap size get params -func (o *ColumnFamilyMetricsMemtableOffHeapSizeGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableOffHeapSizeGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics memtable off heap size get params -func (o *ColumnFamilyMetricsMemtableOffHeapSizeGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsMemtableOffHeapSizeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_off_heap_size_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_off_heap_size_get_responses.go deleted file mode 100644 index 9ee1532f09..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_off_heap_size_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsMemtableOffHeapSizeGetReader is a Reader for the ColumnFamilyMetricsMemtableOffHeapSizeGet structure. -type ColumnFamilyMetricsMemtableOffHeapSizeGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsMemtableOffHeapSizeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsMemtableOffHeapSizeGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsMemtableOffHeapSizeGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsMemtableOffHeapSizeGetOK creates a ColumnFamilyMetricsMemtableOffHeapSizeGetOK with default headers values -func NewColumnFamilyMetricsMemtableOffHeapSizeGetOK() *ColumnFamilyMetricsMemtableOffHeapSizeGetOK { - return &ColumnFamilyMetricsMemtableOffHeapSizeGetOK{} -} - -/* -ColumnFamilyMetricsMemtableOffHeapSizeGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsMemtableOffHeapSizeGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsMemtableOffHeapSizeGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableOffHeapSizeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsMemtableOffHeapSizeGetDefault creates a ColumnFamilyMetricsMemtableOffHeapSizeGetDefault with default headers values -func NewColumnFamilyMetricsMemtableOffHeapSizeGetDefault(code int) *ColumnFamilyMetricsMemtableOffHeapSizeGetDefault { - return &ColumnFamilyMetricsMemtableOffHeapSizeGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsMemtableOffHeapSizeGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsMemtableOffHeapSizeGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics memtable off heap size get default response -func (o *ColumnFamilyMetricsMemtableOffHeapSizeGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsMemtableOffHeapSizeGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableOffHeapSizeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsMemtableOffHeapSizeGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_on_heap_size_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_on_heap_size_by_name_get_parameters.go deleted file mode 100644 index acd6cc9955..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_on_heap_size_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams creates a new ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams() *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsMemtableOnHeapSizeByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsMemtableOnHeapSizeByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsMemtableOnHeapSizeByNameGetParamsWithContext creates a new ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsMemtableOnHeapSizeByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsMemtableOnHeapSizeByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsMemtableOnHeapSizeByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics memtable on heap size by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics memtable on heap size by name get params -func (o *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics memtable on heap size by name get params -func (o *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics memtable on heap size by name get params -func (o *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics memtable on heap size by name get params -func (o *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics memtable on heap size by name get params -func (o *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics memtable on heap size by name get params -func (o *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics memtable on heap size by name get params -func (o *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams) WithName(name string) *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics memtable on heap size by name get params -func (o *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_on_heap_size_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_on_heap_size_by_name_get_responses.go deleted file mode 100644 index b1247cdc78..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_on_heap_size_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsMemtableOnHeapSizeByNameGetReader is a Reader for the ColumnFamilyMetricsMemtableOnHeapSizeByNameGet structure. -type ColumnFamilyMetricsMemtableOnHeapSizeByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsMemtableOnHeapSizeByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsMemtableOnHeapSizeByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsMemtableOnHeapSizeByNameGetOK creates a ColumnFamilyMetricsMemtableOnHeapSizeByNameGetOK with default headers values -func NewColumnFamilyMetricsMemtableOnHeapSizeByNameGetOK() *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetOK { - return &ColumnFamilyMetricsMemtableOnHeapSizeByNameGetOK{} -} - -/* -ColumnFamilyMetricsMemtableOnHeapSizeByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsMemtableOnHeapSizeByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsMemtableOnHeapSizeByNameGetDefault creates a ColumnFamilyMetricsMemtableOnHeapSizeByNameGetDefault with default headers values -func NewColumnFamilyMetricsMemtableOnHeapSizeByNameGetDefault(code int) *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetDefault { - return &ColumnFamilyMetricsMemtableOnHeapSizeByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsMemtableOnHeapSizeByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsMemtableOnHeapSizeByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics memtable on heap size by name get default response -func (o *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_on_heap_size_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_on_heap_size_get_parameters.go deleted file mode 100644 index d3473876f2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_on_heap_size_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsMemtableOnHeapSizeGetParams creates a new ColumnFamilyMetricsMemtableOnHeapSizeGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsMemtableOnHeapSizeGetParams() *ColumnFamilyMetricsMemtableOnHeapSizeGetParams { - - return &ColumnFamilyMetricsMemtableOnHeapSizeGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsMemtableOnHeapSizeGetParamsWithTimeout creates a new ColumnFamilyMetricsMemtableOnHeapSizeGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsMemtableOnHeapSizeGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableOnHeapSizeGetParams { - - return &ColumnFamilyMetricsMemtableOnHeapSizeGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsMemtableOnHeapSizeGetParamsWithContext creates a new ColumnFamilyMetricsMemtableOnHeapSizeGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsMemtableOnHeapSizeGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsMemtableOnHeapSizeGetParams { - - return &ColumnFamilyMetricsMemtableOnHeapSizeGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsMemtableOnHeapSizeGetParamsWithHTTPClient creates a new ColumnFamilyMetricsMemtableOnHeapSizeGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsMemtableOnHeapSizeGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableOnHeapSizeGetParams { - - return &ColumnFamilyMetricsMemtableOnHeapSizeGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsMemtableOnHeapSizeGetParams contains all the parameters to send to the API endpoint -for the column family metrics memtable on heap size get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsMemtableOnHeapSizeGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics memtable on heap size get params -func (o *ColumnFamilyMetricsMemtableOnHeapSizeGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableOnHeapSizeGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics memtable on heap size get params -func (o *ColumnFamilyMetricsMemtableOnHeapSizeGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics memtable on heap size get params -func (o *ColumnFamilyMetricsMemtableOnHeapSizeGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsMemtableOnHeapSizeGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics memtable on heap size get params -func (o *ColumnFamilyMetricsMemtableOnHeapSizeGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics memtable on heap size get params -func (o *ColumnFamilyMetricsMemtableOnHeapSizeGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableOnHeapSizeGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics memtable on heap size get params -func (o *ColumnFamilyMetricsMemtableOnHeapSizeGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsMemtableOnHeapSizeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_on_heap_size_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_on_heap_size_get_responses.go deleted file mode 100644 index ab974948a2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_on_heap_size_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsMemtableOnHeapSizeGetReader is a Reader for the ColumnFamilyMetricsMemtableOnHeapSizeGet structure. -type ColumnFamilyMetricsMemtableOnHeapSizeGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsMemtableOnHeapSizeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsMemtableOnHeapSizeGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsMemtableOnHeapSizeGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsMemtableOnHeapSizeGetOK creates a ColumnFamilyMetricsMemtableOnHeapSizeGetOK with default headers values -func NewColumnFamilyMetricsMemtableOnHeapSizeGetOK() *ColumnFamilyMetricsMemtableOnHeapSizeGetOK { - return &ColumnFamilyMetricsMemtableOnHeapSizeGetOK{} -} - -/* -ColumnFamilyMetricsMemtableOnHeapSizeGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsMemtableOnHeapSizeGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsMemtableOnHeapSizeGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableOnHeapSizeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsMemtableOnHeapSizeGetDefault creates a ColumnFamilyMetricsMemtableOnHeapSizeGetDefault with default headers values -func NewColumnFamilyMetricsMemtableOnHeapSizeGetDefault(code int) *ColumnFamilyMetricsMemtableOnHeapSizeGetDefault { - return &ColumnFamilyMetricsMemtableOnHeapSizeGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsMemtableOnHeapSizeGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsMemtableOnHeapSizeGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics memtable on heap size get default response -func (o *ColumnFamilyMetricsMemtableOnHeapSizeGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsMemtableOnHeapSizeGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableOnHeapSizeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsMemtableOnHeapSizeGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_switch_count_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_switch_count_by_name_get_parameters.go deleted file mode 100644 index 8ac0e9bde0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_switch_count_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsMemtableSwitchCountByNameGetParams creates a new ColumnFamilyMetricsMemtableSwitchCountByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsMemtableSwitchCountByNameGetParams() *ColumnFamilyMetricsMemtableSwitchCountByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableSwitchCountByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsMemtableSwitchCountByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsMemtableSwitchCountByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsMemtableSwitchCountByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableSwitchCountByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableSwitchCountByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsMemtableSwitchCountByNameGetParamsWithContext creates a new ColumnFamilyMetricsMemtableSwitchCountByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsMemtableSwitchCountByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsMemtableSwitchCountByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableSwitchCountByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsMemtableSwitchCountByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsMemtableSwitchCountByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsMemtableSwitchCountByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableSwitchCountByNameGetParams { - var () - return &ColumnFamilyMetricsMemtableSwitchCountByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsMemtableSwitchCountByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics memtable switch count by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsMemtableSwitchCountByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics memtable switch count by name get params -func (o *ColumnFamilyMetricsMemtableSwitchCountByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableSwitchCountByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics memtable switch count by name get params -func (o *ColumnFamilyMetricsMemtableSwitchCountByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics memtable switch count by name get params -func (o *ColumnFamilyMetricsMemtableSwitchCountByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsMemtableSwitchCountByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics memtable switch count by name get params -func (o *ColumnFamilyMetricsMemtableSwitchCountByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics memtable switch count by name get params -func (o *ColumnFamilyMetricsMemtableSwitchCountByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableSwitchCountByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics memtable switch count by name get params -func (o *ColumnFamilyMetricsMemtableSwitchCountByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics memtable switch count by name get params -func (o *ColumnFamilyMetricsMemtableSwitchCountByNameGetParams) WithName(name string) *ColumnFamilyMetricsMemtableSwitchCountByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics memtable switch count by name get params -func (o *ColumnFamilyMetricsMemtableSwitchCountByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsMemtableSwitchCountByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_switch_count_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_switch_count_by_name_get_responses.go deleted file mode 100644 index 8ce5b801ba..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_switch_count_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsMemtableSwitchCountByNameGetReader is a Reader for the ColumnFamilyMetricsMemtableSwitchCountByNameGet structure. -type ColumnFamilyMetricsMemtableSwitchCountByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsMemtableSwitchCountByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsMemtableSwitchCountByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsMemtableSwitchCountByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsMemtableSwitchCountByNameGetOK creates a ColumnFamilyMetricsMemtableSwitchCountByNameGetOK with default headers values -func NewColumnFamilyMetricsMemtableSwitchCountByNameGetOK() *ColumnFamilyMetricsMemtableSwitchCountByNameGetOK { - return &ColumnFamilyMetricsMemtableSwitchCountByNameGetOK{} -} - -/* -ColumnFamilyMetricsMemtableSwitchCountByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsMemtableSwitchCountByNameGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsMemtableSwitchCountByNameGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableSwitchCountByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsMemtableSwitchCountByNameGetDefault creates a ColumnFamilyMetricsMemtableSwitchCountByNameGetDefault with default headers values -func NewColumnFamilyMetricsMemtableSwitchCountByNameGetDefault(code int) *ColumnFamilyMetricsMemtableSwitchCountByNameGetDefault { - return &ColumnFamilyMetricsMemtableSwitchCountByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsMemtableSwitchCountByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsMemtableSwitchCountByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics memtable switch count by name get default response -func (o *ColumnFamilyMetricsMemtableSwitchCountByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsMemtableSwitchCountByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableSwitchCountByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsMemtableSwitchCountByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_switch_count_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_switch_count_get_parameters.go deleted file mode 100644 index b090be77b3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_switch_count_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsMemtableSwitchCountGetParams creates a new ColumnFamilyMetricsMemtableSwitchCountGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsMemtableSwitchCountGetParams() *ColumnFamilyMetricsMemtableSwitchCountGetParams { - - return &ColumnFamilyMetricsMemtableSwitchCountGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsMemtableSwitchCountGetParamsWithTimeout creates a new ColumnFamilyMetricsMemtableSwitchCountGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsMemtableSwitchCountGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableSwitchCountGetParams { - - return &ColumnFamilyMetricsMemtableSwitchCountGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsMemtableSwitchCountGetParamsWithContext creates a new ColumnFamilyMetricsMemtableSwitchCountGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsMemtableSwitchCountGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsMemtableSwitchCountGetParams { - - return &ColumnFamilyMetricsMemtableSwitchCountGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsMemtableSwitchCountGetParamsWithHTTPClient creates a new ColumnFamilyMetricsMemtableSwitchCountGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsMemtableSwitchCountGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableSwitchCountGetParams { - - return &ColumnFamilyMetricsMemtableSwitchCountGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsMemtableSwitchCountGetParams contains all the parameters to send to the API endpoint -for the column family metrics memtable switch count get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsMemtableSwitchCountGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics memtable switch count get params -func (o *ColumnFamilyMetricsMemtableSwitchCountGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsMemtableSwitchCountGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics memtable switch count get params -func (o *ColumnFamilyMetricsMemtableSwitchCountGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics memtable switch count get params -func (o *ColumnFamilyMetricsMemtableSwitchCountGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsMemtableSwitchCountGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics memtable switch count get params -func (o *ColumnFamilyMetricsMemtableSwitchCountGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics memtable switch count get params -func (o *ColumnFamilyMetricsMemtableSwitchCountGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsMemtableSwitchCountGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics memtable switch count get params -func (o *ColumnFamilyMetricsMemtableSwitchCountGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsMemtableSwitchCountGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_switch_count_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_switch_count_get_responses.go deleted file mode 100644 index 49830e4137..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_memtable_switch_count_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsMemtableSwitchCountGetReader is a Reader for the ColumnFamilyMetricsMemtableSwitchCountGet structure. -type ColumnFamilyMetricsMemtableSwitchCountGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsMemtableSwitchCountGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsMemtableSwitchCountGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsMemtableSwitchCountGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsMemtableSwitchCountGetOK creates a ColumnFamilyMetricsMemtableSwitchCountGetOK with default headers values -func NewColumnFamilyMetricsMemtableSwitchCountGetOK() *ColumnFamilyMetricsMemtableSwitchCountGetOK { - return &ColumnFamilyMetricsMemtableSwitchCountGetOK{} -} - -/* -ColumnFamilyMetricsMemtableSwitchCountGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsMemtableSwitchCountGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsMemtableSwitchCountGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableSwitchCountGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsMemtableSwitchCountGetDefault creates a ColumnFamilyMetricsMemtableSwitchCountGetDefault with default headers values -func NewColumnFamilyMetricsMemtableSwitchCountGetDefault(code int) *ColumnFamilyMetricsMemtableSwitchCountGetDefault { - return &ColumnFamilyMetricsMemtableSwitchCountGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsMemtableSwitchCountGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsMemtableSwitchCountGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics memtable switch count get default response -func (o *ColumnFamilyMetricsMemtableSwitchCountGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsMemtableSwitchCountGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsMemtableSwitchCountGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsMemtableSwitchCountGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_min_row_size_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_min_row_size_by_name_get_parameters.go deleted file mode 100644 index 556f1492e9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_min_row_size_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsMinRowSizeByNameGetParams creates a new ColumnFamilyMetricsMinRowSizeByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsMinRowSizeByNameGetParams() *ColumnFamilyMetricsMinRowSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMinRowSizeByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsMinRowSizeByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsMinRowSizeByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsMinRowSizeByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsMinRowSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMinRowSizeByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsMinRowSizeByNameGetParamsWithContext creates a new ColumnFamilyMetricsMinRowSizeByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsMinRowSizeByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsMinRowSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMinRowSizeByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsMinRowSizeByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsMinRowSizeByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsMinRowSizeByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsMinRowSizeByNameGetParams { - var () - return &ColumnFamilyMetricsMinRowSizeByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsMinRowSizeByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics min row size by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsMinRowSizeByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics min row size by name get params -func (o *ColumnFamilyMetricsMinRowSizeByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsMinRowSizeByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics min row size by name get params -func (o *ColumnFamilyMetricsMinRowSizeByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics min row size by name get params -func (o *ColumnFamilyMetricsMinRowSizeByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsMinRowSizeByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics min row size by name get params -func (o *ColumnFamilyMetricsMinRowSizeByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics min row size by name get params -func (o *ColumnFamilyMetricsMinRowSizeByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsMinRowSizeByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics min row size by name get params -func (o *ColumnFamilyMetricsMinRowSizeByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics min row size by name get params -func (o *ColumnFamilyMetricsMinRowSizeByNameGetParams) WithName(name string) *ColumnFamilyMetricsMinRowSizeByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics min row size by name get params -func (o *ColumnFamilyMetricsMinRowSizeByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsMinRowSizeByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_min_row_size_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_min_row_size_by_name_get_responses.go deleted file mode 100644 index d48ab89f67..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_min_row_size_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsMinRowSizeByNameGetReader is a Reader for the ColumnFamilyMetricsMinRowSizeByNameGet structure. -type ColumnFamilyMetricsMinRowSizeByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsMinRowSizeByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsMinRowSizeByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsMinRowSizeByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsMinRowSizeByNameGetOK creates a ColumnFamilyMetricsMinRowSizeByNameGetOK with default headers values -func NewColumnFamilyMetricsMinRowSizeByNameGetOK() *ColumnFamilyMetricsMinRowSizeByNameGetOK { - return &ColumnFamilyMetricsMinRowSizeByNameGetOK{} -} - -/* -ColumnFamilyMetricsMinRowSizeByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsMinRowSizeByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsMinRowSizeByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsMinRowSizeByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsMinRowSizeByNameGetDefault creates a ColumnFamilyMetricsMinRowSizeByNameGetDefault with default headers values -func NewColumnFamilyMetricsMinRowSizeByNameGetDefault(code int) *ColumnFamilyMetricsMinRowSizeByNameGetDefault { - return &ColumnFamilyMetricsMinRowSizeByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsMinRowSizeByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsMinRowSizeByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics min row size by name get default response -func (o *ColumnFamilyMetricsMinRowSizeByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsMinRowSizeByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsMinRowSizeByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsMinRowSizeByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_min_row_size_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_min_row_size_get_parameters.go deleted file mode 100644 index 59f4010f05..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_min_row_size_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsMinRowSizeGetParams creates a new ColumnFamilyMetricsMinRowSizeGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsMinRowSizeGetParams() *ColumnFamilyMetricsMinRowSizeGetParams { - - return &ColumnFamilyMetricsMinRowSizeGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsMinRowSizeGetParamsWithTimeout creates a new ColumnFamilyMetricsMinRowSizeGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsMinRowSizeGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsMinRowSizeGetParams { - - return &ColumnFamilyMetricsMinRowSizeGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsMinRowSizeGetParamsWithContext creates a new ColumnFamilyMetricsMinRowSizeGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsMinRowSizeGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsMinRowSizeGetParams { - - return &ColumnFamilyMetricsMinRowSizeGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsMinRowSizeGetParamsWithHTTPClient creates a new ColumnFamilyMetricsMinRowSizeGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsMinRowSizeGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsMinRowSizeGetParams { - - return &ColumnFamilyMetricsMinRowSizeGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsMinRowSizeGetParams contains all the parameters to send to the API endpoint -for the column family metrics min row size get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsMinRowSizeGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics min row size get params -func (o *ColumnFamilyMetricsMinRowSizeGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsMinRowSizeGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics min row size get params -func (o *ColumnFamilyMetricsMinRowSizeGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics min row size get params -func (o *ColumnFamilyMetricsMinRowSizeGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsMinRowSizeGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics min row size get params -func (o *ColumnFamilyMetricsMinRowSizeGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics min row size get params -func (o *ColumnFamilyMetricsMinRowSizeGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsMinRowSizeGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics min row size get params -func (o *ColumnFamilyMetricsMinRowSizeGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsMinRowSizeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_min_row_size_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_min_row_size_get_responses.go deleted file mode 100644 index 79e4688642..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_min_row_size_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsMinRowSizeGetReader is a Reader for the ColumnFamilyMetricsMinRowSizeGet structure. -type ColumnFamilyMetricsMinRowSizeGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsMinRowSizeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsMinRowSizeGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsMinRowSizeGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsMinRowSizeGetOK creates a ColumnFamilyMetricsMinRowSizeGetOK with default headers values -func NewColumnFamilyMetricsMinRowSizeGetOK() *ColumnFamilyMetricsMinRowSizeGetOK { - return &ColumnFamilyMetricsMinRowSizeGetOK{} -} - -/* -ColumnFamilyMetricsMinRowSizeGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsMinRowSizeGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsMinRowSizeGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsMinRowSizeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsMinRowSizeGetDefault creates a ColumnFamilyMetricsMinRowSizeGetDefault with default headers values -func NewColumnFamilyMetricsMinRowSizeGetDefault(code int) *ColumnFamilyMetricsMinRowSizeGetDefault { - return &ColumnFamilyMetricsMinRowSizeGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsMinRowSizeGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsMinRowSizeGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics min row size get default response -func (o *ColumnFamilyMetricsMinRowSizeGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsMinRowSizeGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsMinRowSizeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsMinRowSizeGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_compactions_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_compactions_by_name_get_parameters.go deleted file mode 100644 index 5ff9f845e3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_compactions_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsPendingCompactionsByNameGetParams creates a new ColumnFamilyMetricsPendingCompactionsByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsPendingCompactionsByNameGetParams() *ColumnFamilyMetricsPendingCompactionsByNameGetParams { - var () - return &ColumnFamilyMetricsPendingCompactionsByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsPendingCompactionsByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsPendingCompactionsByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsPendingCompactionsByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsPendingCompactionsByNameGetParams { - var () - return &ColumnFamilyMetricsPendingCompactionsByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsPendingCompactionsByNameGetParamsWithContext creates a new ColumnFamilyMetricsPendingCompactionsByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsPendingCompactionsByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsPendingCompactionsByNameGetParams { - var () - return &ColumnFamilyMetricsPendingCompactionsByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsPendingCompactionsByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsPendingCompactionsByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsPendingCompactionsByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsPendingCompactionsByNameGetParams { - var () - return &ColumnFamilyMetricsPendingCompactionsByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsPendingCompactionsByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics pending compactions by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsPendingCompactionsByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics pending compactions by name get params -func (o *ColumnFamilyMetricsPendingCompactionsByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsPendingCompactionsByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics pending compactions by name get params -func (o *ColumnFamilyMetricsPendingCompactionsByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics pending compactions by name get params -func (o *ColumnFamilyMetricsPendingCompactionsByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsPendingCompactionsByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics pending compactions by name get params -func (o *ColumnFamilyMetricsPendingCompactionsByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics pending compactions by name get params -func (o *ColumnFamilyMetricsPendingCompactionsByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsPendingCompactionsByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics pending compactions by name get params -func (o *ColumnFamilyMetricsPendingCompactionsByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics pending compactions by name get params -func (o *ColumnFamilyMetricsPendingCompactionsByNameGetParams) WithName(name string) *ColumnFamilyMetricsPendingCompactionsByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics pending compactions by name get params -func (o *ColumnFamilyMetricsPendingCompactionsByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsPendingCompactionsByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_compactions_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_compactions_by_name_get_responses.go deleted file mode 100644 index 5864656575..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_compactions_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsPendingCompactionsByNameGetReader is a Reader for the ColumnFamilyMetricsPendingCompactionsByNameGet structure. -type ColumnFamilyMetricsPendingCompactionsByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsPendingCompactionsByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsPendingCompactionsByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsPendingCompactionsByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsPendingCompactionsByNameGetOK creates a ColumnFamilyMetricsPendingCompactionsByNameGetOK with default headers values -func NewColumnFamilyMetricsPendingCompactionsByNameGetOK() *ColumnFamilyMetricsPendingCompactionsByNameGetOK { - return &ColumnFamilyMetricsPendingCompactionsByNameGetOK{} -} - -/* -ColumnFamilyMetricsPendingCompactionsByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsPendingCompactionsByNameGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsPendingCompactionsByNameGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsPendingCompactionsByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsPendingCompactionsByNameGetDefault creates a ColumnFamilyMetricsPendingCompactionsByNameGetDefault with default headers values -func NewColumnFamilyMetricsPendingCompactionsByNameGetDefault(code int) *ColumnFamilyMetricsPendingCompactionsByNameGetDefault { - return &ColumnFamilyMetricsPendingCompactionsByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsPendingCompactionsByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsPendingCompactionsByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics pending compactions by name get default response -func (o *ColumnFamilyMetricsPendingCompactionsByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsPendingCompactionsByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsPendingCompactionsByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsPendingCompactionsByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_compactions_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_compactions_get_parameters.go deleted file mode 100644 index dd486883c5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_compactions_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsPendingCompactionsGetParams creates a new ColumnFamilyMetricsPendingCompactionsGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsPendingCompactionsGetParams() *ColumnFamilyMetricsPendingCompactionsGetParams { - - return &ColumnFamilyMetricsPendingCompactionsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsPendingCompactionsGetParamsWithTimeout creates a new ColumnFamilyMetricsPendingCompactionsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsPendingCompactionsGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsPendingCompactionsGetParams { - - return &ColumnFamilyMetricsPendingCompactionsGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsPendingCompactionsGetParamsWithContext creates a new ColumnFamilyMetricsPendingCompactionsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsPendingCompactionsGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsPendingCompactionsGetParams { - - return &ColumnFamilyMetricsPendingCompactionsGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsPendingCompactionsGetParamsWithHTTPClient creates a new ColumnFamilyMetricsPendingCompactionsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsPendingCompactionsGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsPendingCompactionsGetParams { - - return &ColumnFamilyMetricsPendingCompactionsGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsPendingCompactionsGetParams contains all the parameters to send to the API endpoint -for the column family metrics pending compactions get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsPendingCompactionsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics pending compactions get params -func (o *ColumnFamilyMetricsPendingCompactionsGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsPendingCompactionsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics pending compactions get params -func (o *ColumnFamilyMetricsPendingCompactionsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics pending compactions get params -func (o *ColumnFamilyMetricsPendingCompactionsGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsPendingCompactionsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics pending compactions get params -func (o *ColumnFamilyMetricsPendingCompactionsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics pending compactions get params -func (o *ColumnFamilyMetricsPendingCompactionsGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsPendingCompactionsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics pending compactions get params -func (o *ColumnFamilyMetricsPendingCompactionsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsPendingCompactionsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_compactions_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_compactions_get_responses.go deleted file mode 100644 index 06ef0475b3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_compactions_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsPendingCompactionsGetReader is a Reader for the ColumnFamilyMetricsPendingCompactionsGet structure. -type ColumnFamilyMetricsPendingCompactionsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsPendingCompactionsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsPendingCompactionsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsPendingCompactionsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsPendingCompactionsGetOK creates a ColumnFamilyMetricsPendingCompactionsGetOK with default headers values -func NewColumnFamilyMetricsPendingCompactionsGetOK() *ColumnFamilyMetricsPendingCompactionsGetOK { - return &ColumnFamilyMetricsPendingCompactionsGetOK{} -} - -/* -ColumnFamilyMetricsPendingCompactionsGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsPendingCompactionsGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsPendingCompactionsGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsPendingCompactionsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsPendingCompactionsGetDefault creates a ColumnFamilyMetricsPendingCompactionsGetDefault with default headers values -func NewColumnFamilyMetricsPendingCompactionsGetDefault(code int) *ColumnFamilyMetricsPendingCompactionsGetDefault { - return &ColumnFamilyMetricsPendingCompactionsGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsPendingCompactionsGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsPendingCompactionsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics pending compactions get default response -func (o *ColumnFamilyMetricsPendingCompactionsGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsPendingCompactionsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsPendingCompactionsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsPendingCompactionsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_flushes_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_flushes_by_name_get_parameters.go deleted file mode 100644 index 7f137a313d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_flushes_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsPendingFlushesByNameGetParams creates a new ColumnFamilyMetricsPendingFlushesByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsPendingFlushesByNameGetParams() *ColumnFamilyMetricsPendingFlushesByNameGetParams { - var () - return &ColumnFamilyMetricsPendingFlushesByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsPendingFlushesByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsPendingFlushesByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsPendingFlushesByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsPendingFlushesByNameGetParams { - var () - return &ColumnFamilyMetricsPendingFlushesByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsPendingFlushesByNameGetParamsWithContext creates a new ColumnFamilyMetricsPendingFlushesByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsPendingFlushesByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsPendingFlushesByNameGetParams { - var () - return &ColumnFamilyMetricsPendingFlushesByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsPendingFlushesByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsPendingFlushesByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsPendingFlushesByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsPendingFlushesByNameGetParams { - var () - return &ColumnFamilyMetricsPendingFlushesByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsPendingFlushesByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics pending flushes by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsPendingFlushesByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics pending flushes by name get params -func (o *ColumnFamilyMetricsPendingFlushesByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsPendingFlushesByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics pending flushes by name get params -func (o *ColumnFamilyMetricsPendingFlushesByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics pending flushes by name get params -func (o *ColumnFamilyMetricsPendingFlushesByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsPendingFlushesByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics pending flushes by name get params -func (o *ColumnFamilyMetricsPendingFlushesByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics pending flushes by name get params -func (o *ColumnFamilyMetricsPendingFlushesByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsPendingFlushesByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics pending flushes by name get params -func (o *ColumnFamilyMetricsPendingFlushesByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics pending flushes by name get params -func (o *ColumnFamilyMetricsPendingFlushesByNameGetParams) WithName(name string) *ColumnFamilyMetricsPendingFlushesByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics pending flushes by name get params -func (o *ColumnFamilyMetricsPendingFlushesByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsPendingFlushesByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_flushes_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_flushes_by_name_get_responses.go deleted file mode 100644 index 8e43ed345c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_flushes_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsPendingFlushesByNameGetReader is a Reader for the ColumnFamilyMetricsPendingFlushesByNameGet structure. -type ColumnFamilyMetricsPendingFlushesByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsPendingFlushesByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsPendingFlushesByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsPendingFlushesByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsPendingFlushesByNameGetOK creates a ColumnFamilyMetricsPendingFlushesByNameGetOK with default headers values -func NewColumnFamilyMetricsPendingFlushesByNameGetOK() *ColumnFamilyMetricsPendingFlushesByNameGetOK { - return &ColumnFamilyMetricsPendingFlushesByNameGetOK{} -} - -/* -ColumnFamilyMetricsPendingFlushesByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsPendingFlushesByNameGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsPendingFlushesByNameGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsPendingFlushesByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsPendingFlushesByNameGetDefault creates a ColumnFamilyMetricsPendingFlushesByNameGetDefault with default headers values -func NewColumnFamilyMetricsPendingFlushesByNameGetDefault(code int) *ColumnFamilyMetricsPendingFlushesByNameGetDefault { - return &ColumnFamilyMetricsPendingFlushesByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsPendingFlushesByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsPendingFlushesByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics pending flushes by name get default response -func (o *ColumnFamilyMetricsPendingFlushesByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsPendingFlushesByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsPendingFlushesByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsPendingFlushesByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_flushes_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_flushes_get_parameters.go deleted file mode 100644 index 9b97447634..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_flushes_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsPendingFlushesGetParams creates a new ColumnFamilyMetricsPendingFlushesGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsPendingFlushesGetParams() *ColumnFamilyMetricsPendingFlushesGetParams { - - return &ColumnFamilyMetricsPendingFlushesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsPendingFlushesGetParamsWithTimeout creates a new ColumnFamilyMetricsPendingFlushesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsPendingFlushesGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsPendingFlushesGetParams { - - return &ColumnFamilyMetricsPendingFlushesGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsPendingFlushesGetParamsWithContext creates a new ColumnFamilyMetricsPendingFlushesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsPendingFlushesGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsPendingFlushesGetParams { - - return &ColumnFamilyMetricsPendingFlushesGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsPendingFlushesGetParamsWithHTTPClient creates a new ColumnFamilyMetricsPendingFlushesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsPendingFlushesGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsPendingFlushesGetParams { - - return &ColumnFamilyMetricsPendingFlushesGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsPendingFlushesGetParams contains all the parameters to send to the API endpoint -for the column family metrics pending flushes get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsPendingFlushesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics pending flushes get params -func (o *ColumnFamilyMetricsPendingFlushesGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsPendingFlushesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics pending flushes get params -func (o *ColumnFamilyMetricsPendingFlushesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics pending flushes get params -func (o *ColumnFamilyMetricsPendingFlushesGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsPendingFlushesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics pending flushes get params -func (o *ColumnFamilyMetricsPendingFlushesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics pending flushes get params -func (o *ColumnFamilyMetricsPendingFlushesGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsPendingFlushesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics pending flushes get params -func (o *ColumnFamilyMetricsPendingFlushesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsPendingFlushesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_flushes_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_flushes_get_responses.go deleted file mode 100644 index fc64f4e04f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_pending_flushes_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsPendingFlushesGetReader is a Reader for the ColumnFamilyMetricsPendingFlushesGet structure. -type ColumnFamilyMetricsPendingFlushesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsPendingFlushesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsPendingFlushesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsPendingFlushesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsPendingFlushesGetOK creates a ColumnFamilyMetricsPendingFlushesGetOK with default headers values -func NewColumnFamilyMetricsPendingFlushesGetOK() *ColumnFamilyMetricsPendingFlushesGetOK { - return &ColumnFamilyMetricsPendingFlushesGetOK{} -} - -/* -ColumnFamilyMetricsPendingFlushesGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsPendingFlushesGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsPendingFlushesGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsPendingFlushesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsPendingFlushesGetDefault creates a ColumnFamilyMetricsPendingFlushesGetDefault with default headers values -func NewColumnFamilyMetricsPendingFlushesGetDefault(code int) *ColumnFamilyMetricsPendingFlushesGetDefault { - return &ColumnFamilyMetricsPendingFlushesGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsPendingFlushesGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsPendingFlushesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics pending flushes get default response -func (o *ColumnFamilyMetricsPendingFlushesGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsPendingFlushesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsPendingFlushesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsPendingFlushesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_by_name_get_parameters.go deleted file mode 100644 index 8fac8b5eeb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsRangeLatencyByNameGetParams creates a new ColumnFamilyMetricsRangeLatencyByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsRangeLatencyByNameGetParams() *ColumnFamilyMetricsRangeLatencyByNameGetParams { - var () - return &ColumnFamilyMetricsRangeLatencyByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsRangeLatencyByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsRangeLatencyByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsRangeLatencyByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsRangeLatencyByNameGetParams { - var () - return &ColumnFamilyMetricsRangeLatencyByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsRangeLatencyByNameGetParamsWithContext creates a new ColumnFamilyMetricsRangeLatencyByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsRangeLatencyByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsRangeLatencyByNameGetParams { - var () - return &ColumnFamilyMetricsRangeLatencyByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsRangeLatencyByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsRangeLatencyByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsRangeLatencyByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsRangeLatencyByNameGetParams { - var () - return &ColumnFamilyMetricsRangeLatencyByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsRangeLatencyByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics range latency by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsRangeLatencyByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics range latency by name get params -func (o *ColumnFamilyMetricsRangeLatencyByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsRangeLatencyByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics range latency by name get params -func (o *ColumnFamilyMetricsRangeLatencyByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics range latency by name get params -func (o *ColumnFamilyMetricsRangeLatencyByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsRangeLatencyByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics range latency by name get params -func (o *ColumnFamilyMetricsRangeLatencyByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics range latency by name get params -func (o *ColumnFamilyMetricsRangeLatencyByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsRangeLatencyByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics range latency by name get params -func (o *ColumnFamilyMetricsRangeLatencyByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics range latency by name get params -func (o *ColumnFamilyMetricsRangeLatencyByNameGetParams) WithName(name string) *ColumnFamilyMetricsRangeLatencyByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics range latency by name get params -func (o *ColumnFamilyMetricsRangeLatencyByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsRangeLatencyByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_by_name_get_responses.go deleted file mode 100644 index cf6845b209..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsRangeLatencyByNameGetReader is a Reader for the ColumnFamilyMetricsRangeLatencyByNameGet structure. -type ColumnFamilyMetricsRangeLatencyByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsRangeLatencyByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsRangeLatencyByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsRangeLatencyByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsRangeLatencyByNameGetOK creates a ColumnFamilyMetricsRangeLatencyByNameGetOK with default headers values -func NewColumnFamilyMetricsRangeLatencyByNameGetOK() *ColumnFamilyMetricsRangeLatencyByNameGetOK { - return &ColumnFamilyMetricsRangeLatencyByNameGetOK{} -} - -/* -ColumnFamilyMetricsRangeLatencyByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsRangeLatencyByNameGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsRangeLatencyByNameGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsRangeLatencyByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsRangeLatencyByNameGetDefault creates a ColumnFamilyMetricsRangeLatencyByNameGetDefault with default headers values -func NewColumnFamilyMetricsRangeLatencyByNameGetDefault(code int) *ColumnFamilyMetricsRangeLatencyByNameGetDefault { - return &ColumnFamilyMetricsRangeLatencyByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsRangeLatencyByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsRangeLatencyByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics range latency by name get default response -func (o *ColumnFamilyMetricsRangeLatencyByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsRangeLatencyByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsRangeLatencyByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsRangeLatencyByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_estimated_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_estimated_histogram_by_name_get_parameters.go deleted file mode 100644 index d908a041af..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_estimated_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams creates a new ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams() *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics range latency estimated histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics range latency estimated histogram by name get params -func (o *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics range latency estimated histogram by name get params -func (o *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics range latency estimated histogram by name get params -func (o *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics range latency estimated histogram by name get params -func (o *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics range latency estimated histogram by name get params -func (o *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics range latency estimated histogram by name get params -func (o *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics range latency estimated histogram by name get params -func (o *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics range latency estimated histogram by name get params -func (o *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_estimated_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_estimated_histogram_by_name_get_responses.go deleted file mode 100644 index 4fa680e25d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_estimated_histogram_by_name_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGet structure. -type ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetOK creates a ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetOK() *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetOK { - return &ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetOK struct { -} - -func (o *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetDefault creates a ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetDefault(code int) *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetDefault { - return &ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics range latency estimated histogram by name get default response -func (o *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_estimated_recent_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_estimated_recent_histogram_by_name_get_parameters.go deleted file mode 100644 index f2790feec9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_estimated_recent_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams creates a new ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams() *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics range latency estimated recent histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics range latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics range latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics range latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics range latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics range latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics range latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics range latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics range latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_estimated_recent_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_estimated_recent_histogram_by_name_get_responses.go deleted file mode 100644 index 5dcb37c078..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_estimated_recent_histogram_by_name_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGet structure. -type ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetOK creates a ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetOK() *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetOK { - return &ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetOK struct { -} - -func (o *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetDefault creates a ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetDefault(code int) *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetDefault { - return &ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics range latency estimated recent histogram by name get default response -func (o *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_get_parameters.go deleted file mode 100644 index 5bcb289314..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsRangeLatencyGetParams creates a new ColumnFamilyMetricsRangeLatencyGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsRangeLatencyGetParams() *ColumnFamilyMetricsRangeLatencyGetParams { - - return &ColumnFamilyMetricsRangeLatencyGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsRangeLatencyGetParamsWithTimeout creates a new ColumnFamilyMetricsRangeLatencyGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsRangeLatencyGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsRangeLatencyGetParams { - - return &ColumnFamilyMetricsRangeLatencyGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsRangeLatencyGetParamsWithContext creates a new ColumnFamilyMetricsRangeLatencyGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsRangeLatencyGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsRangeLatencyGetParams { - - return &ColumnFamilyMetricsRangeLatencyGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsRangeLatencyGetParamsWithHTTPClient creates a new ColumnFamilyMetricsRangeLatencyGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsRangeLatencyGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsRangeLatencyGetParams { - - return &ColumnFamilyMetricsRangeLatencyGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsRangeLatencyGetParams contains all the parameters to send to the API endpoint -for the column family metrics range latency get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsRangeLatencyGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics range latency get params -func (o *ColumnFamilyMetricsRangeLatencyGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsRangeLatencyGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics range latency get params -func (o *ColumnFamilyMetricsRangeLatencyGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics range latency get params -func (o *ColumnFamilyMetricsRangeLatencyGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsRangeLatencyGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics range latency get params -func (o *ColumnFamilyMetricsRangeLatencyGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics range latency get params -func (o *ColumnFamilyMetricsRangeLatencyGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsRangeLatencyGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics range latency get params -func (o *ColumnFamilyMetricsRangeLatencyGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsRangeLatencyGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_get_responses.go deleted file mode 100644 index e17b57dafc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_range_latency_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsRangeLatencyGetReader is a Reader for the ColumnFamilyMetricsRangeLatencyGet structure. -type ColumnFamilyMetricsRangeLatencyGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsRangeLatencyGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsRangeLatencyGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsRangeLatencyGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsRangeLatencyGetOK creates a ColumnFamilyMetricsRangeLatencyGetOK with default headers values -func NewColumnFamilyMetricsRangeLatencyGetOK() *ColumnFamilyMetricsRangeLatencyGetOK { - return &ColumnFamilyMetricsRangeLatencyGetOK{} -} - -/* -ColumnFamilyMetricsRangeLatencyGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsRangeLatencyGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsRangeLatencyGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsRangeLatencyGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsRangeLatencyGetDefault creates a ColumnFamilyMetricsRangeLatencyGetDefault with default headers values -func NewColumnFamilyMetricsRangeLatencyGetDefault(code int) *ColumnFamilyMetricsRangeLatencyGetDefault { - return &ColumnFamilyMetricsRangeLatencyGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsRangeLatencyGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsRangeLatencyGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics range latency get default response -func (o *ColumnFamilyMetricsRangeLatencyGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsRangeLatencyGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsRangeLatencyGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsRangeLatencyGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_by_name_get_parameters.go deleted file mode 100644 index 4e25c6b623..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsReadByNameGetParams creates a new ColumnFamilyMetricsReadByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsReadByNameGetParams() *ColumnFamilyMetricsReadByNameGetParams { - var () - return &ColumnFamilyMetricsReadByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsReadByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsReadByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsReadByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadByNameGetParams { - var () - return &ColumnFamilyMetricsReadByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsReadByNameGetParamsWithContext creates a new ColumnFamilyMetricsReadByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsReadByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsReadByNameGetParams { - var () - return &ColumnFamilyMetricsReadByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsReadByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsReadByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsReadByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadByNameGetParams { - var () - return &ColumnFamilyMetricsReadByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsReadByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics read by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsReadByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics read by name get params -func (o *ColumnFamilyMetricsReadByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics read by name get params -func (o *ColumnFamilyMetricsReadByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics read by name get params -func (o *ColumnFamilyMetricsReadByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsReadByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics read by name get params -func (o *ColumnFamilyMetricsReadByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics read by name get params -func (o *ColumnFamilyMetricsReadByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics read by name get params -func (o *ColumnFamilyMetricsReadByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics read by name get params -func (o *ColumnFamilyMetricsReadByNameGetParams) WithName(name string) *ColumnFamilyMetricsReadByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics read by name get params -func (o *ColumnFamilyMetricsReadByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsReadByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_by_name_get_responses.go deleted file mode 100644 index c4bfe8a2c9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsReadByNameGetReader is a Reader for the ColumnFamilyMetricsReadByNameGet structure. -type ColumnFamilyMetricsReadByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsReadByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsReadByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsReadByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsReadByNameGetOK creates a ColumnFamilyMetricsReadByNameGetOK with default headers values -func NewColumnFamilyMetricsReadByNameGetOK() *ColumnFamilyMetricsReadByNameGetOK { - return &ColumnFamilyMetricsReadByNameGetOK{} -} - -/* -ColumnFamilyMetricsReadByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsReadByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsReadByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsReadByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsReadByNameGetDefault creates a ColumnFamilyMetricsReadByNameGetDefault with default headers values -func NewColumnFamilyMetricsReadByNameGetDefault(code int) *ColumnFamilyMetricsReadByNameGetDefault { - return &ColumnFamilyMetricsReadByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsReadByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsReadByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics read by name get default response -func (o *ColumnFamilyMetricsReadByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsReadByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsReadByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsReadByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_get_parameters.go deleted file mode 100644 index 1a542f7290..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsReadGetParams creates a new ColumnFamilyMetricsReadGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsReadGetParams() *ColumnFamilyMetricsReadGetParams { - - return &ColumnFamilyMetricsReadGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsReadGetParamsWithTimeout creates a new ColumnFamilyMetricsReadGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsReadGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadGetParams { - - return &ColumnFamilyMetricsReadGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsReadGetParamsWithContext creates a new ColumnFamilyMetricsReadGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsReadGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsReadGetParams { - - return &ColumnFamilyMetricsReadGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsReadGetParamsWithHTTPClient creates a new ColumnFamilyMetricsReadGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsReadGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadGetParams { - - return &ColumnFamilyMetricsReadGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsReadGetParams contains all the parameters to send to the API endpoint -for the column family metrics read get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsReadGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics read get params -func (o *ColumnFamilyMetricsReadGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics read get params -func (o *ColumnFamilyMetricsReadGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics read get params -func (o *ColumnFamilyMetricsReadGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsReadGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics read get params -func (o *ColumnFamilyMetricsReadGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics read get params -func (o *ColumnFamilyMetricsReadGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics read get params -func (o *ColumnFamilyMetricsReadGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsReadGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_get_responses.go deleted file mode 100644 index 269033bb5f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsReadGetReader is a Reader for the ColumnFamilyMetricsReadGet structure. -type ColumnFamilyMetricsReadGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsReadGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsReadGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsReadGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsReadGetOK creates a ColumnFamilyMetricsReadGetOK with default headers values -func NewColumnFamilyMetricsReadGetOK() *ColumnFamilyMetricsReadGetOK { - return &ColumnFamilyMetricsReadGetOK{} -} - -/* -ColumnFamilyMetricsReadGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsReadGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsReadGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsReadGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsReadGetDefault creates a ColumnFamilyMetricsReadGetDefault with default headers values -func NewColumnFamilyMetricsReadGetDefault(code int) *ColumnFamilyMetricsReadGetDefault { - return &ColumnFamilyMetricsReadGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsReadGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsReadGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics read get default response -func (o *ColumnFamilyMetricsReadGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsReadGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsReadGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsReadGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_by_name_get_parameters.go deleted file mode 100644 index a41cb8b68b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsReadLatencyByNameGetParams creates a new ColumnFamilyMetricsReadLatencyByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsReadLatencyByNameGetParams() *ColumnFamilyMetricsReadLatencyByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsReadLatencyByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsReadLatencyByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsReadLatencyByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadLatencyByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsReadLatencyByNameGetParamsWithContext creates a new ColumnFamilyMetricsReadLatencyByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsReadLatencyByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsReadLatencyByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsReadLatencyByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsReadLatencyByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsReadLatencyByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadLatencyByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsReadLatencyByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics read latency by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsReadLatencyByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics read latency by name get params -func (o *ColumnFamilyMetricsReadLatencyByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadLatencyByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics read latency by name get params -func (o *ColumnFamilyMetricsReadLatencyByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics read latency by name get params -func (o *ColumnFamilyMetricsReadLatencyByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsReadLatencyByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics read latency by name get params -func (o *ColumnFamilyMetricsReadLatencyByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics read latency by name get params -func (o *ColumnFamilyMetricsReadLatencyByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadLatencyByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics read latency by name get params -func (o *ColumnFamilyMetricsReadLatencyByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics read latency by name get params -func (o *ColumnFamilyMetricsReadLatencyByNameGetParams) WithName(name string) *ColumnFamilyMetricsReadLatencyByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics read latency by name get params -func (o *ColumnFamilyMetricsReadLatencyByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsReadLatencyByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_by_name_get_responses.go deleted file mode 100644 index ed5703e546..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsReadLatencyByNameGetReader is a Reader for the ColumnFamilyMetricsReadLatencyByNameGet structure. -type ColumnFamilyMetricsReadLatencyByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsReadLatencyByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsReadLatencyByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsReadLatencyByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsReadLatencyByNameGetOK creates a ColumnFamilyMetricsReadLatencyByNameGetOK with default headers values -func NewColumnFamilyMetricsReadLatencyByNameGetOK() *ColumnFamilyMetricsReadLatencyByNameGetOK { - return &ColumnFamilyMetricsReadLatencyByNameGetOK{} -} - -/* -ColumnFamilyMetricsReadLatencyByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsReadLatencyByNameGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsReadLatencyByNameGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsReadLatencyByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsReadLatencyByNameGetDefault creates a ColumnFamilyMetricsReadLatencyByNameGetDefault with default headers values -func NewColumnFamilyMetricsReadLatencyByNameGetDefault(code int) *ColumnFamilyMetricsReadLatencyByNameGetDefault { - return &ColumnFamilyMetricsReadLatencyByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsReadLatencyByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsReadLatencyByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics read latency by name get default response -func (o *ColumnFamilyMetricsReadLatencyByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsReadLatencyByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsReadLatencyByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsReadLatencyByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_estimated_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_estimated_histogram_by_name_get_parameters.go deleted file mode 100644 index 57ad249ddd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_estimated_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams creates a new ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams() *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics read latency estimated histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics read latency estimated histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics read latency estimated histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics read latency estimated histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics read latency estimated histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics read latency estimated histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics read latency estimated histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics read latency estimated histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics read latency estimated histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_estimated_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_estimated_histogram_by_name_get_responses.go deleted file mode 100644 index 0b0e791fea..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_estimated_histogram_by_name_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGet structure. -type ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetOK creates a ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetOK() *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetOK { - return &ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetOK struct { -} - -func (o *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetDefault creates a ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetDefault(code int) *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetDefault { - return &ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics read latency estimated histogram by name get default response -func (o *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_estimated_recent_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_estimated_recent_histogram_by_name_get_parameters.go deleted file mode 100644 index 032a1938da..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_estimated_recent_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams creates a new ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams() *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics read latency estimated recent histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics read latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics read latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics read latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics read latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics read latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics read latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics read latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics read latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_estimated_recent_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_estimated_recent_histogram_by_name_get_responses.go deleted file mode 100644 index 4fbabd461a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_estimated_recent_histogram_by_name_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGet structure. -type ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetOK creates a ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetOK() *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetOK { - return &ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetOK struct { -} - -func (o *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetDefault creates a ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetDefault(code int) *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetDefault { - return &ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics read latency estimated recent histogram by name get default response -func (o *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_get_parameters.go deleted file mode 100644 index b247af889b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsReadLatencyGetParams creates a new ColumnFamilyMetricsReadLatencyGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsReadLatencyGetParams() *ColumnFamilyMetricsReadLatencyGetParams { - - return &ColumnFamilyMetricsReadLatencyGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsReadLatencyGetParamsWithTimeout creates a new ColumnFamilyMetricsReadLatencyGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsReadLatencyGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadLatencyGetParams { - - return &ColumnFamilyMetricsReadLatencyGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsReadLatencyGetParamsWithContext creates a new ColumnFamilyMetricsReadLatencyGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsReadLatencyGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsReadLatencyGetParams { - - return &ColumnFamilyMetricsReadLatencyGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsReadLatencyGetParamsWithHTTPClient creates a new ColumnFamilyMetricsReadLatencyGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsReadLatencyGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadLatencyGetParams { - - return &ColumnFamilyMetricsReadLatencyGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsReadLatencyGetParams contains all the parameters to send to the API endpoint -for the column family metrics read latency get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsReadLatencyGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics read latency get params -func (o *ColumnFamilyMetricsReadLatencyGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadLatencyGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics read latency get params -func (o *ColumnFamilyMetricsReadLatencyGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics read latency get params -func (o *ColumnFamilyMetricsReadLatencyGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsReadLatencyGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics read latency get params -func (o *ColumnFamilyMetricsReadLatencyGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics read latency get params -func (o *ColumnFamilyMetricsReadLatencyGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadLatencyGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics read latency get params -func (o *ColumnFamilyMetricsReadLatencyGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsReadLatencyGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_get_responses.go deleted file mode 100644 index 82aa36cb47..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsReadLatencyGetReader is a Reader for the ColumnFamilyMetricsReadLatencyGet structure. -type ColumnFamilyMetricsReadLatencyGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsReadLatencyGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsReadLatencyGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsReadLatencyGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsReadLatencyGetOK creates a ColumnFamilyMetricsReadLatencyGetOK with default headers values -func NewColumnFamilyMetricsReadLatencyGetOK() *ColumnFamilyMetricsReadLatencyGetOK { - return &ColumnFamilyMetricsReadLatencyGetOK{} -} - -/* -ColumnFamilyMetricsReadLatencyGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsReadLatencyGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsReadLatencyGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsReadLatencyGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsReadLatencyGetDefault creates a ColumnFamilyMetricsReadLatencyGetDefault with default headers values -func NewColumnFamilyMetricsReadLatencyGetDefault(code int) *ColumnFamilyMetricsReadLatencyGetDefault { - return &ColumnFamilyMetricsReadLatencyGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsReadLatencyGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsReadLatencyGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics read latency get default response -func (o *ColumnFamilyMetricsReadLatencyGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsReadLatencyGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsReadLatencyGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsReadLatencyGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_histogram_by_name_get_parameters.go deleted file mode 100644 index de88f7cdc2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsReadLatencyHistogramByNameGetParams creates a new ColumnFamilyMetricsReadLatencyHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsReadLatencyHistogramByNameGetParams() *ColumnFamilyMetricsReadLatencyHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsReadLatencyHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsReadLatencyHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsReadLatencyHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadLatencyHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsReadLatencyHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsReadLatencyHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsReadLatencyHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsReadLatencyHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsReadLatencyHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsReadLatencyHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsReadLatencyHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadLatencyHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsReadLatencyHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics read latency histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsReadLatencyHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics read latency histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadLatencyHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics read latency histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics read latency histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsReadLatencyHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics read latency histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics read latency histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadLatencyHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics read latency histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics read latency histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsReadLatencyHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics read latency histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsReadLatencyHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_histogram_by_name_get_responses.go deleted file mode 100644 index 815c3f90eb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_histogram_by_name_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsReadLatencyHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsReadLatencyHistogramByNameGet structure. -type ColumnFamilyMetricsReadLatencyHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsReadLatencyHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsReadLatencyHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsReadLatencyHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsReadLatencyHistogramByNameGetOK creates a ColumnFamilyMetricsReadLatencyHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsReadLatencyHistogramByNameGetOK() *ColumnFamilyMetricsReadLatencyHistogramByNameGetOK { - return &ColumnFamilyMetricsReadLatencyHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsReadLatencyHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsReadLatencyHistogramByNameGetOK struct { -} - -func (o *ColumnFamilyMetricsReadLatencyHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyMetricsReadLatencyHistogramByNameGetDefault creates a ColumnFamilyMetricsReadLatencyHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsReadLatencyHistogramByNameGetDefault(code int) *ColumnFamilyMetricsReadLatencyHistogramByNameGetDefault { - return &ColumnFamilyMetricsReadLatencyHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsReadLatencyHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsReadLatencyHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics read latency histogram by name get default response -func (o *ColumnFamilyMetricsReadLatencyHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsReadLatencyHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsReadLatencyHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsReadLatencyHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_histogram_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_histogram_get_parameters.go deleted file mode 100644 index 5f8cb38dfb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_histogram_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsReadLatencyHistogramGetParams creates a new ColumnFamilyMetricsReadLatencyHistogramGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsReadLatencyHistogramGetParams() *ColumnFamilyMetricsReadLatencyHistogramGetParams { - - return &ColumnFamilyMetricsReadLatencyHistogramGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsReadLatencyHistogramGetParamsWithTimeout creates a new ColumnFamilyMetricsReadLatencyHistogramGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsReadLatencyHistogramGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadLatencyHistogramGetParams { - - return &ColumnFamilyMetricsReadLatencyHistogramGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsReadLatencyHistogramGetParamsWithContext creates a new ColumnFamilyMetricsReadLatencyHistogramGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsReadLatencyHistogramGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsReadLatencyHistogramGetParams { - - return &ColumnFamilyMetricsReadLatencyHistogramGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsReadLatencyHistogramGetParamsWithHTTPClient creates a new ColumnFamilyMetricsReadLatencyHistogramGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsReadLatencyHistogramGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadLatencyHistogramGetParams { - - return &ColumnFamilyMetricsReadLatencyHistogramGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsReadLatencyHistogramGetParams contains all the parameters to send to the API endpoint -for the column family metrics read latency histogram get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsReadLatencyHistogramGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics read latency histogram get params -func (o *ColumnFamilyMetricsReadLatencyHistogramGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadLatencyHistogramGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics read latency histogram get params -func (o *ColumnFamilyMetricsReadLatencyHistogramGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics read latency histogram get params -func (o *ColumnFamilyMetricsReadLatencyHistogramGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsReadLatencyHistogramGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics read latency histogram get params -func (o *ColumnFamilyMetricsReadLatencyHistogramGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics read latency histogram get params -func (o *ColumnFamilyMetricsReadLatencyHistogramGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadLatencyHistogramGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics read latency histogram get params -func (o *ColumnFamilyMetricsReadLatencyHistogramGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsReadLatencyHistogramGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_histogram_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_histogram_get_responses.go deleted file mode 100644 index 8c7aa1b94c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_histogram_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsReadLatencyHistogramGetReader is a Reader for the ColumnFamilyMetricsReadLatencyHistogramGet structure. -type ColumnFamilyMetricsReadLatencyHistogramGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsReadLatencyHistogramGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsReadLatencyHistogramGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsReadLatencyHistogramGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsReadLatencyHistogramGetOK creates a ColumnFamilyMetricsReadLatencyHistogramGetOK with default headers values -func NewColumnFamilyMetricsReadLatencyHistogramGetOK() *ColumnFamilyMetricsReadLatencyHistogramGetOK { - return &ColumnFamilyMetricsReadLatencyHistogramGetOK{} -} - -/* -ColumnFamilyMetricsReadLatencyHistogramGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsReadLatencyHistogramGetOK struct { - Payload []*models.Histogram -} - -func (o *ColumnFamilyMetricsReadLatencyHistogramGetOK) GetPayload() []*models.Histogram { - return o.Payload -} - -func (o *ColumnFamilyMetricsReadLatencyHistogramGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsReadLatencyHistogramGetDefault creates a ColumnFamilyMetricsReadLatencyHistogramGetDefault with default headers values -func NewColumnFamilyMetricsReadLatencyHistogramGetDefault(code int) *ColumnFamilyMetricsReadLatencyHistogramGetDefault { - return &ColumnFamilyMetricsReadLatencyHistogramGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsReadLatencyHistogramGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsReadLatencyHistogramGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics read latency histogram get default response -func (o *ColumnFamilyMetricsReadLatencyHistogramGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsReadLatencyHistogramGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsReadLatencyHistogramGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsReadLatencyHistogramGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_moving_average_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_moving_average_histogram_by_name_get_parameters.go deleted file mode 100644 index a9090f1a98..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_moving_average_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams creates a new ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams() *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics read latency moving average histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics read latency moving average histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics read latency moving average histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics read latency moving average histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics read latency moving average histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics read latency moving average histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics read latency moving average histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics read latency moving average histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics read latency moving average histogram by name get params -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_moving_average_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_moving_average_histogram_by_name_get_responses.go deleted file mode 100644 index 645a9b896f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_moving_average_histogram_by_name_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGet structure. -type ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetOK creates a ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetOK() *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetOK { - return &ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetOK struct { -} - -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetDefault creates a ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetDefault(code int) *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetDefault { - return &ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics read latency moving average histogram by name get default response -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_moving_average_histogram_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_moving_average_histogram_get_parameters.go deleted file mode 100644 index 611e30134b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_moving_average_histogram_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams creates a new ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams() *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams { - - return &ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParamsWithTimeout creates a new ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams { - - return &ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParamsWithContext creates a new ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams { - - return &ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParamsWithHTTPClient creates a new ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams { - - return &ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams contains all the parameters to send to the API endpoint -for the column family metrics read latency moving average histogram get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics read latency moving average histogram get params -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics read latency moving average histogram get params -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics read latency moving average histogram get params -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics read latency moving average histogram get params -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics read latency moving average histogram get params -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics read latency moving average histogram get params -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_moving_average_histogram_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_moving_average_histogram_get_responses.go deleted file mode 100644 index 7a1062fa43..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_read_latency_moving_average_histogram_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetReader is a Reader for the ColumnFamilyMetricsReadLatencyMovingAverageHistogramGet structure. -type ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsReadLatencyMovingAverageHistogramGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsReadLatencyMovingAverageHistogramGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsReadLatencyMovingAverageHistogramGetOK creates a ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetOK with default headers values -func NewColumnFamilyMetricsReadLatencyMovingAverageHistogramGetOK() *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetOK { - return &ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetOK{} -} - -/* -ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetOK struct { - Payload []*models.RateMovingAverageAndHistogram -} - -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetOK) GetPayload() []*models.RateMovingAverageAndHistogram { - return o.Payload -} - -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsReadLatencyMovingAverageHistogramGetDefault creates a ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetDefault with default headers values -func NewColumnFamilyMetricsReadLatencyMovingAverageHistogramGetDefault(code int) *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetDefault { - return &ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics read latency moving average histogram get default response -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_positives_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_positives_by_name_get_parameters.go deleted file mode 100644 index 0c3d32eba7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_positives_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams creates a new ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams() *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams { - var () - return &ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams { - var () - return &ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParamsWithContext creates a new ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams { - var () - return &ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams { - var () - return &ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics recent bloom filter false positives by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics recent bloom filter false positives by name get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics recent bloom filter false positives by name get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics recent bloom filter false positives by name get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics recent bloom filter false positives by name get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics recent bloom filter false positives by name get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics recent bloom filter false positives by name get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics recent bloom filter false positives by name get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams) WithName(name string) *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics recent bloom filter false positives by name get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_positives_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_positives_by_name_get_responses.go deleted file mode 100644 index 1fdae9bad4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_positives_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetReader is a Reader for the ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGet structure. -type ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetOK creates a ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetOK with default headers values -func NewColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetOK() *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetOK { - return &ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetOK{} -} - -/* -ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetDefault creates a ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetDefault with default headers values -func NewColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetDefault(code int) *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetDefault { - return &ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics recent bloom filter false positives by name get default response -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_positives_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_positives_get_parameters.go deleted file mode 100644 index f9b63b0ddc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_positives_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams creates a new ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams() *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams { - - return &ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParamsWithTimeout creates a new ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams { - - return &ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParamsWithContext creates a new ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams { - - return &ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParamsWithHTTPClient creates a new ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams { - - return &ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams contains all the parameters to send to the API endpoint -for the column family metrics recent bloom filter false positives get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics recent bloom filter false positives get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics recent bloom filter false positives get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics recent bloom filter false positives get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics recent bloom filter false positives get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics recent bloom filter false positives get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics recent bloom filter false positives get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_positives_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_positives_get_responses.go deleted file mode 100644 index 6005248b1d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_positives_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetReader is a Reader for the ColumnFamilyMetricsRecentBloomFilterFalsePositivesGet structure. -type ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsRecentBloomFilterFalsePositivesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsRecentBloomFilterFalsePositivesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsRecentBloomFilterFalsePositivesGetOK creates a ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetOK with default headers values -func NewColumnFamilyMetricsRecentBloomFilterFalsePositivesGetOK() *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetOK { - return &ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetOK{} -} - -/* -ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsRecentBloomFilterFalsePositivesGetDefault creates a ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetDefault with default headers values -func NewColumnFamilyMetricsRecentBloomFilterFalsePositivesGetDefault(code int) *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetDefault { - return &ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics recent bloom filter false positives get default response -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_ratio_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_ratio_by_name_get_parameters.go deleted file mode 100644 index 9762e1daaf..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_ratio_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams creates a new ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams() *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams { - var () - return &ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams { - var () - return &ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParamsWithContext creates a new ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams { - var () - return &ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams { - var () - return &ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics recent bloom filter false ratio by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics recent bloom filter false ratio by name get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics recent bloom filter false ratio by name get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics recent bloom filter false ratio by name get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics recent bloom filter false ratio by name get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics recent bloom filter false ratio by name get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics recent bloom filter false ratio by name get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics recent bloom filter false ratio by name get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams) WithName(name string) *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics recent bloom filter false ratio by name get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_ratio_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_ratio_by_name_get_responses.go deleted file mode 100644 index b84165a560..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_ratio_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetReader is a Reader for the ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGet structure. -type ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetOK creates a ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetOK with default headers values -func NewColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetOK() *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetOK { - return &ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetOK{} -} - -/* -ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetDefault creates a ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetDefault with default headers values -func NewColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetDefault(code int) *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetDefault { - return &ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics recent bloom filter false ratio by name get default response -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_ratio_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_ratio_get_parameters.go deleted file mode 100644 index 3410082b5f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_ratio_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams creates a new ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams() *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams { - - return &ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsRecentBloomFilterFalseRatioGetParamsWithTimeout creates a new ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsRecentBloomFilterFalseRatioGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams { - - return &ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsRecentBloomFilterFalseRatioGetParamsWithContext creates a new ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsRecentBloomFilterFalseRatioGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams { - - return &ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsRecentBloomFilterFalseRatioGetParamsWithHTTPClient creates a new ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsRecentBloomFilterFalseRatioGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams { - - return &ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams contains all the parameters to send to the API endpoint -for the column family metrics recent bloom filter false ratio get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics recent bloom filter false ratio get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics recent bloom filter false ratio get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics recent bloom filter false ratio get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics recent bloom filter false ratio get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics recent bloom filter false ratio get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics recent bloom filter false ratio get params -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_ratio_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_ratio_get_responses.go deleted file mode 100644 index 7d0faf4bc5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_recent_bloom_filter_false_ratio_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsRecentBloomFilterFalseRatioGetReader is a Reader for the ColumnFamilyMetricsRecentBloomFilterFalseRatioGet structure. -type ColumnFamilyMetricsRecentBloomFilterFalseRatioGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsRecentBloomFilterFalseRatioGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsRecentBloomFilterFalseRatioGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsRecentBloomFilterFalseRatioGetOK creates a ColumnFamilyMetricsRecentBloomFilterFalseRatioGetOK with default headers values -func NewColumnFamilyMetricsRecentBloomFilterFalseRatioGetOK() *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetOK { - return &ColumnFamilyMetricsRecentBloomFilterFalseRatioGetOK{} -} - -/* -ColumnFamilyMetricsRecentBloomFilterFalseRatioGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsRecentBloomFilterFalseRatioGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsRecentBloomFilterFalseRatioGetDefault creates a ColumnFamilyMetricsRecentBloomFilterFalseRatioGetDefault with default headers values -func NewColumnFamilyMetricsRecentBloomFilterFalseRatioGetDefault(code int) *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetDefault { - return &ColumnFamilyMetricsRecentBloomFilterFalseRatioGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsRecentBloomFilterFalseRatioGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsRecentBloomFilterFalseRatioGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics recent bloom filter false ratio get default response -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_by_name_get_parameters.go deleted file mode 100644 index 852178cc78..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsRowCacheHitByNameGetParams creates a new ColumnFamilyMetricsRowCacheHitByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsRowCacheHitByNameGetParams() *ColumnFamilyMetricsRowCacheHitByNameGetParams { - var () - return &ColumnFamilyMetricsRowCacheHitByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsRowCacheHitByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsRowCacheHitByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsRowCacheHitByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsRowCacheHitByNameGetParams { - var () - return &ColumnFamilyMetricsRowCacheHitByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsRowCacheHitByNameGetParamsWithContext creates a new ColumnFamilyMetricsRowCacheHitByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsRowCacheHitByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsRowCacheHitByNameGetParams { - var () - return &ColumnFamilyMetricsRowCacheHitByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsRowCacheHitByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsRowCacheHitByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsRowCacheHitByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsRowCacheHitByNameGetParams { - var () - return &ColumnFamilyMetricsRowCacheHitByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsRowCacheHitByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics row cache hit by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsRowCacheHitByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics row cache hit by name get params -func (o *ColumnFamilyMetricsRowCacheHitByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsRowCacheHitByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics row cache hit by name get params -func (o *ColumnFamilyMetricsRowCacheHitByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics row cache hit by name get params -func (o *ColumnFamilyMetricsRowCacheHitByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsRowCacheHitByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics row cache hit by name get params -func (o *ColumnFamilyMetricsRowCacheHitByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics row cache hit by name get params -func (o *ColumnFamilyMetricsRowCacheHitByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsRowCacheHitByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics row cache hit by name get params -func (o *ColumnFamilyMetricsRowCacheHitByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics row cache hit by name get params -func (o *ColumnFamilyMetricsRowCacheHitByNameGetParams) WithName(name string) *ColumnFamilyMetricsRowCacheHitByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics row cache hit by name get params -func (o *ColumnFamilyMetricsRowCacheHitByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsRowCacheHitByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_by_name_get_responses.go deleted file mode 100644 index aee068b9da..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsRowCacheHitByNameGetReader is a Reader for the ColumnFamilyMetricsRowCacheHitByNameGet structure. -type ColumnFamilyMetricsRowCacheHitByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsRowCacheHitByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsRowCacheHitByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsRowCacheHitByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsRowCacheHitByNameGetOK creates a ColumnFamilyMetricsRowCacheHitByNameGetOK with default headers values -func NewColumnFamilyMetricsRowCacheHitByNameGetOK() *ColumnFamilyMetricsRowCacheHitByNameGetOK { - return &ColumnFamilyMetricsRowCacheHitByNameGetOK{} -} - -/* -ColumnFamilyMetricsRowCacheHitByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsRowCacheHitByNameGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsRowCacheHitByNameGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsRowCacheHitByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsRowCacheHitByNameGetDefault creates a ColumnFamilyMetricsRowCacheHitByNameGetDefault with default headers values -func NewColumnFamilyMetricsRowCacheHitByNameGetDefault(code int) *ColumnFamilyMetricsRowCacheHitByNameGetDefault { - return &ColumnFamilyMetricsRowCacheHitByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsRowCacheHitByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsRowCacheHitByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics row cache hit by name get default response -func (o *ColumnFamilyMetricsRowCacheHitByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsRowCacheHitByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsRowCacheHitByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsRowCacheHitByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_get_parameters.go deleted file mode 100644 index d1287d9a31..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsRowCacheHitGetParams creates a new ColumnFamilyMetricsRowCacheHitGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsRowCacheHitGetParams() *ColumnFamilyMetricsRowCacheHitGetParams { - - return &ColumnFamilyMetricsRowCacheHitGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsRowCacheHitGetParamsWithTimeout creates a new ColumnFamilyMetricsRowCacheHitGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsRowCacheHitGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsRowCacheHitGetParams { - - return &ColumnFamilyMetricsRowCacheHitGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsRowCacheHitGetParamsWithContext creates a new ColumnFamilyMetricsRowCacheHitGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsRowCacheHitGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsRowCacheHitGetParams { - - return &ColumnFamilyMetricsRowCacheHitGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsRowCacheHitGetParamsWithHTTPClient creates a new ColumnFamilyMetricsRowCacheHitGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsRowCacheHitGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsRowCacheHitGetParams { - - return &ColumnFamilyMetricsRowCacheHitGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsRowCacheHitGetParams contains all the parameters to send to the API endpoint -for the column family metrics row cache hit get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsRowCacheHitGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics row cache hit get params -func (o *ColumnFamilyMetricsRowCacheHitGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsRowCacheHitGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics row cache hit get params -func (o *ColumnFamilyMetricsRowCacheHitGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics row cache hit get params -func (o *ColumnFamilyMetricsRowCacheHitGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsRowCacheHitGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics row cache hit get params -func (o *ColumnFamilyMetricsRowCacheHitGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics row cache hit get params -func (o *ColumnFamilyMetricsRowCacheHitGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsRowCacheHitGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics row cache hit get params -func (o *ColumnFamilyMetricsRowCacheHitGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsRowCacheHitGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_get_responses.go deleted file mode 100644 index edf71b2399..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsRowCacheHitGetReader is a Reader for the ColumnFamilyMetricsRowCacheHitGet structure. -type ColumnFamilyMetricsRowCacheHitGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsRowCacheHitGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsRowCacheHitGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsRowCacheHitGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsRowCacheHitGetOK creates a ColumnFamilyMetricsRowCacheHitGetOK with default headers values -func NewColumnFamilyMetricsRowCacheHitGetOK() *ColumnFamilyMetricsRowCacheHitGetOK { - return &ColumnFamilyMetricsRowCacheHitGetOK{} -} - -/* -ColumnFamilyMetricsRowCacheHitGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsRowCacheHitGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsRowCacheHitGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsRowCacheHitGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsRowCacheHitGetDefault creates a ColumnFamilyMetricsRowCacheHitGetDefault with default headers values -func NewColumnFamilyMetricsRowCacheHitGetDefault(code int) *ColumnFamilyMetricsRowCacheHitGetDefault { - return &ColumnFamilyMetricsRowCacheHitGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsRowCacheHitGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsRowCacheHitGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics row cache hit get default response -func (o *ColumnFamilyMetricsRowCacheHitGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsRowCacheHitGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsRowCacheHitGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsRowCacheHitGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_out_of_range_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_out_of_range_by_name_get_parameters.go deleted file mode 100644 index 66bff9e5d1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_out_of_range_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams creates a new ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams() *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams { - var () - return &ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams { - var () - return &ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParamsWithContext creates a new ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams { - var () - return &ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams { - var () - return &ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics row cache hit out of range by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics row cache hit out of range by name get params -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics row cache hit out of range by name get params -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics row cache hit out of range by name get params -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics row cache hit out of range by name get params -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics row cache hit out of range by name get params -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics row cache hit out of range by name get params -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics row cache hit out of range by name get params -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams) WithName(name string) *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics row cache hit out of range by name get params -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_out_of_range_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_out_of_range_by_name_get_responses.go deleted file mode 100644 index 3eb8d5b96b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_out_of_range_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetReader is a Reader for the ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGet structure. -type ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetOK creates a ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetOK with default headers values -func NewColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetOK() *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetOK { - return &ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetOK{} -} - -/* -ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetDefault creates a ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetDefault with default headers values -func NewColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetDefault(code int) *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetDefault { - return &ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics row cache hit out of range by name get default response -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_out_of_range_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_out_of_range_get_parameters.go deleted file mode 100644 index f0d4c6517d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_out_of_range_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsRowCacheHitOutOfRangeGetParams creates a new ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsRowCacheHitOutOfRangeGetParams() *ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams { - - return &ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsRowCacheHitOutOfRangeGetParamsWithTimeout creates a new ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsRowCacheHitOutOfRangeGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams { - - return &ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsRowCacheHitOutOfRangeGetParamsWithContext creates a new ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsRowCacheHitOutOfRangeGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams { - - return &ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsRowCacheHitOutOfRangeGetParamsWithHTTPClient creates a new ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsRowCacheHitOutOfRangeGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams { - - return &ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams contains all the parameters to send to the API endpoint -for the column family metrics row cache hit out of range get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics row cache hit out of range get params -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics row cache hit out of range get params -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics row cache hit out of range get params -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics row cache hit out of range get params -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics row cache hit out of range get params -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics row cache hit out of range get params -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_out_of_range_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_out_of_range_get_responses.go deleted file mode 100644 index a5ae7ed79c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_hit_out_of_range_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsRowCacheHitOutOfRangeGetReader is a Reader for the ColumnFamilyMetricsRowCacheHitOutOfRangeGet structure. -type ColumnFamilyMetricsRowCacheHitOutOfRangeGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsRowCacheHitOutOfRangeGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsRowCacheHitOutOfRangeGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsRowCacheHitOutOfRangeGetOK creates a ColumnFamilyMetricsRowCacheHitOutOfRangeGetOK with default headers values -func NewColumnFamilyMetricsRowCacheHitOutOfRangeGetOK() *ColumnFamilyMetricsRowCacheHitOutOfRangeGetOK { - return &ColumnFamilyMetricsRowCacheHitOutOfRangeGetOK{} -} - -/* -ColumnFamilyMetricsRowCacheHitOutOfRangeGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsRowCacheHitOutOfRangeGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsRowCacheHitOutOfRangeGetDefault creates a ColumnFamilyMetricsRowCacheHitOutOfRangeGetDefault with default headers values -func NewColumnFamilyMetricsRowCacheHitOutOfRangeGetDefault(code int) *ColumnFamilyMetricsRowCacheHitOutOfRangeGetDefault { - return &ColumnFamilyMetricsRowCacheHitOutOfRangeGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsRowCacheHitOutOfRangeGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsRowCacheHitOutOfRangeGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics row cache hit out of range get default response -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsRowCacheHitOutOfRangeGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_miss_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_miss_by_name_get_parameters.go deleted file mode 100644 index 122c2dd848..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_miss_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsRowCacheMissByNameGetParams creates a new ColumnFamilyMetricsRowCacheMissByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsRowCacheMissByNameGetParams() *ColumnFamilyMetricsRowCacheMissByNameGetParams { - var () - return &ColumnFamilyMetricsRowCacheMissByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsRowCacheMissByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsRowCacheMissByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsRowCacheMissByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsRowCacheMissByNameGetParams { - var () - return &ColumnFamilyMetricsRowCacheMissByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsRowCacheMissByNameGetParamsWithContext creates a new ColumnFamilyMetricsRowCacheMissByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsRowCacheMissByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsRowCacheMissByNameGetParams { - var () - return &ColumnFamilyMetricsRowCacheMissByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsRowCacheMissByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsRowCacheMissByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsRowCacheMissByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsRowCacheMissByNameGetParams { - var () - return &ColumnFamilyMetricsRowCacheMissByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsRowCacheMissByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics row cache miss by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsRowCacheMissByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics row cache miss by name get params -func (o *ColumnFamilyMetricsRowCacheMissByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsRowCacheMissByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics row cache miss by name get params -func (o *ColumnFamilyMetricsRowCacheMissByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics row cache miss by name get params -func (o *ColumnFamilyMetricsRowCacheMissByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsRowCacheMissByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics row cache miss by name get params -func (o *ColumnFamilyMetricsRowCacheMissByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics row cache miss by name get params -func (o *ColumnFamilyMetricsRowCacheMissByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsRowCacheMissByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics row cache miss by name get params -func (o *ColumnFamilyMetricsRowCacheMissByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics row cache miss by name get params -func (o *ColumnFamilyMetricsRowCacheMissByNameGetParams) WithName(name string) *ColumnFamilyMetricsRowCacheMissByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics row cache miss by name get params -func (o *ColumnFamilyMetricsRowCacheMissByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsRowCacheMissByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_miss_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_miss_by_name_get_responses.go deleted file mode 100644 index cc192fd2d0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_miss_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsRowCacheMissByNameGetReader is a Reader for the ColumnFamilyMetricsRowCacheMissByNameGet structure. -type ColumnFamilyMetricsRowCacheMissByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsRowCacheMissByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsRowCacheMissByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsRowCacheMissByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsRowCacheMissByNameGetOK creates a ColumnFamilyMetricsRowCacheMissByNameGetOK with default headers values -func NewColumnFamilyMetricsRowCacheMissByNameGetOK() *ColumnFamilyMetricsRowCacheMissByNameGetOK { - return &ColumnFamilyMetricsRowCacheMissByNameGetOK{} -} - -/* -ColumnFamilyMetricsRowCacheMissByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsRowCacheMissByNameGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsRowCacheMissByNameGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsRowCacheMissByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsRowCacheMissByNameGetDefault creates a ColumnFamilyMetricsRowCacheMissByNameGetDefault with default headers values -func NewColumnFamilyMetricsRowCacheMissByNameGetDefault(code int) *ColumnFamilyMetricsRowCacheMissByNameGetDefault { - return &ColumnFamilyMetricsRowCacheMissByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsRowCacheMissByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsRowCacheMissByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics row cache miss by name get default response -func (o *ColumnFamilyMetricsRowCacheMissByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsRowCacheMissByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsRowCacheMissByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsRowCacheMissByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_miss_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_miss_get_parameters.go deleted file mode 100644 index 44f3e79262..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_miss_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsRowCacheMissGetParams creates a new ColumnFamilyMetricsRowCacheMissGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsRowCacheMissGetParams() *ColumnFamilyMetricsRowCacheMissGetParams { - - return &ColumnFamilyMetricsRowCacheMissGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsRowCacheMissGetParamsWithTimeout creates a new ColumnFamilyMetricsRowCacheMissGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsRowCacheMissGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsRowCacheMissGetParams { - - return &ColumnFamilyMetricsRowCacheMissGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsRowCacheMissGetParamsWithContext creates a new ColumnFamilyMetricsRowCacheMissGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsRowCacheMissGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsRowCacheMissGetParams { - - return &ColumnFamilyMetricsRowCacheMissGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsRowCacheMissGetParamsWithHTTPClient creates a new ColumnFamilyMetricsRowCacheMissGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsRowCacheMissGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsRowCacheMissGetParams { - - return &ColumnFamilyMetricsRowCacheMissGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsRowCacheMissGetParams contains all the parameters to send to the API endpoint -for the column family metrics row cache miss get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsRowCacheMissGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics row cache miss get params -func (o *ColumnFamilyMetricsRowCacheMissGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsRowCacheMissGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics row cache miss get params -func (o *ColumnFamilyMetricsRowCacheMissGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics row cache miss get params -func (o *ColumnFamilyMetricsRowCacheMissGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsRowCacheMissGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics row cache miss get params -func (o *ColumnFamilyMetricsRowCacheMissGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics row cache miss get params -func (o *ColumnFamilyMetricsRowCacheMissGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsRowCacheMissGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics row cache miss get params -func (o *ColumnFamilyMetricsRowCacheMissGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsRowCacheMissGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_miss_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_miss_get_responses.go deleted file mode 100644 index caa9d6048d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_row_cache_miss_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsRowCacheMissGetReader is a Reader for the ColumnFamilyMetricsRowCacheMissGet structure. -type ColumnFamilyMetricsRowCacheMissGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsRowCacheMissGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsRowCacheMissGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsRowCacheMissGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsRowCacheMissGetOK creates a ColumnFamilyMetricsRowCacheMissGetOK with default headers values -func NewColumnFamilyMetricsRowCacheMissGetOK() *ColumnFamilyMetricsRowCacheMissGetOK { - return &ColumnFamilyMetricsRowCacheMissGetOK{} -} - -/* -ColumnFamilyMetricsRowCacheMissGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsRowCacheMissGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsRowCacheMissGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsRowCacheMissGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsRowCacheMissGetDefault creates a ColumnFamilyMetricsRowCacheMissGetDefault with default headers values -func NewColumnFamilyMetricsRowCacheMissGetDefault(code int) *ColumnFamilyMetricsRowCacheMissGetDefault { - return &ColumnFamilyMetricsRowCacheMissGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsRowCacheMissGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsRowCacheMissGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics row cache miss get default response -func (o *ColumnFamilyMetricsRowCacheMissGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsRowCacheMissGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsRowCacheMissGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsRowCacheMissGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_snapshots_size_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_snapshots_size_by_name_get_parameters.go deleted file mode 100644 index 9c0f7d1f63..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_snapshots_size_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsSnapshotsSizeByNameGetParams creates a new ColumnFamilyMetricsSnapshotsSizeByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsSnapshotsSizeByNameGetParams() *ColumnFamilyMetricsSnapshotsSizeByNameGetParams { - var () - return &ColumnFamilyMetricsSnapshotsSizeByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsSnapshotsSizeByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsSnapshotsSizeByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsSnapshotsSizeByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsSnapshotsSizeByNameGetParams { - var () - return &ColumnFamilyMetricsSnapshotsSizeByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsSnapshotsSizeByNameGetParamsWithContext creates a new ColumnFamilyMetricsSnapshotsSizeByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsSnapshotsSizeByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsSnapshotsSizeByNameGetParams { - var () - return &ColumnFamilyMetricsSnapshotsSizeByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsSnapshotsSizeByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsSnapshotsSizeByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsSnapshotsSizeByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsSnapshotsSizeByNameGetParams { - var () - return &ColumnFamilyMetricsSnapshotsSizeByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsSnapshotsSizeByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics snapshots size by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsSnapshotsSizeByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics snapshots size by name get params -func (o *ColumnFamilyMetricsSnapshotsSizeByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsSnapshotsSizeByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics snapshots size by name get params -func (o *ColumnFamilyMetricsSnapshotsSizeByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics snapshots size by name get params -func (o *ColumnFamilyMetricsSnapshotsSizeByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsSnapshotsSizeByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics snapshots size by name get params -func (o *ColumnFamilyMetricsSnapshotsSizeByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics snapshots size by name get params -func (o *ColumnFamilyMetricsSnapshotsSizeByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsSnapshotsSizeByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics snapshots size by name get params -func (o *ColumnFamilyMetricsSnapshotsSizeByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics snapshots size by name get params -func (o *ColumnFamilyMetricsSnapshotsSizeByNameGetParams) WithName(name string) *ColumnFamilyMetricsSnapshotsSizeByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics snapshots size by name get params -func (o *ColumnFamilyMetricsSnapshotsSizeByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsSnapshotsSizeByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_snapshots_size_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_snapshots_size_by_name_get_responses.go deleted file mode 100644 index 296cd92284..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_snapshots_size_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsSnapshotsSizeByNameGetReader is a Reader for the ColumnFamilyMetricsSnapshotsSizeByNameGet structure. -type ColumnFamilyMetricsSnapshotsSizeByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsSnapshotsSizeByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsSnapshotsSizeByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsSnapshotsSizeByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsSnapshotsSizeByNameGetOK creates a ColumnFamilyMetricsSnapshotsSizeByNameGetOK with default headers values -func NewColumnFamilyMetricsSnapshotsSizeByNameGetOK() *ColumnFamilyMetricsSnapshotsSizeByNameGetOK { - return &ColumnFamilyMetricsSnapshotsSizeByNameGetOK{} -} - -/* -ColumnFamilyMetricsSnapshotsSizeByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsSnapshotsSizeByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsSnapshotsSizeByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsSnapshotsSizeByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsSnapshotsSizeByNameGetDefault creates a ColumnFamilyMetricsSnapshotsSizeByNameGetDefault with default headers values -func NewColumnFamilyMetricsSnapshotsSizeByNameGetDefault(code int) *ColumnFamilyMetricsSnapshotsSizeByNameGetDefault { - return &ColumnFamilyMetricsSnapshotsSizeByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsSnapshotsSizeByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsSnapshotsSizeByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics snapshots size by name get default response -func (o *ColumnFamilyMetricsSnapshotsSizeByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsSnapshotsSizeByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsSnapshotsSizeByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsSnapshotsSizeByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_speculative_retries_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_speculative_retries_by_name_get_parameters.go deleted file mode 100644 index a001c08fa5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_speculative_retries_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsSpeculativeRetriesByNameGetParams creates a new ColumnFamilyMetricsSpeculativeRetriesByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsSpeculativeRetriesByNameGetParams() *ColumnFamilyMetricsSpeculativeRetriesByNameGetParams { - var () - return &ColumnFamilyMetricsSpeculativeRetriesByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsSpeculativeRetriesByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsSpeculativeRetriesByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsSpeculativeRetriesByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsSpeculativeRetriesByNameGetParams { - var () - return &ColumnFamilyMetricsSpeculativeRetriesByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsSpeculativeRetriesByNameGetParamsWithContext creates a new ColumnFamilyMetricsSpeculativeRetriesByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsSpeculativeRetriesByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsSpeculativeRetriesByNameGetParams { - var () - return &ColumnFamilyMetricsSpeculativeRetriesByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsSpeculativeRetriesByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsSpeculativeRetriesByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsSpeculativeRetriesByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsSpeculativeRetriesByNameGetParams { - var () - return &ColumnFamilyMetricsSpeculativeRetriesByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsSpeculativeRetriesByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics speculative retries by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsSpeculativeRetriesByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics speculative retries by name get params -func (o *ColumnFamilyMetricsSpeculativeRetriesByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsSpeculativeRetriesByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics speculative retries by name get params -func (o *ColumnFamilyMetricsSpeculativeRetriesByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics speculative retries by name get params -func (o *ColumnFamilyMetricsSpeculativeRetriesByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsSpeculativeRetriesByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics speculative retries by name get params -func (o *ColumnFamilyMetricsSpeculativeRetriesByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics speculative retries by name get params -func (o *ColumnFamilyMetricsSpeculativeRetriesByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsSpeculativeRetriesByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics speculative retries by name get params -func (o *ColumnFamilyMetricsSpeculativeRetriesByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics speculative retries by name get params -func (o *ColumnFamilyMetricsSpeculativeRetriesByNameGetParams) WithName(name string) *ColumnFamilyMetricsSpeculativeRetriesByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics speculative retries by name get params -func (o *ColumnFamilyMetricsSpeculativeRetriesByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsSpeculativeRetriesByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_speculative_retries_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_speculative_retries_by_name_get_responses.go deleted file mode 100644 index 9e6c8f56c2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_speculative_retries_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsSpeculativeRetriesByNameGetReader is a Reader for the ColumnFamilyMetricsSpeculativeRetriesByNameGet structure. -type ColumnFamilyMetricsSpeculativeRetriesByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsSpeculativeRetriesByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsSpeculativeRetriesByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsSpeculativeRetriesByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsSpeculativeRetriesByNameGetOK creates a ColumnFamilyMetricsSpeculativeRetriesByNameGetOK with default headers values -func NewColumnFamilyMetricsSpeculativeRetriesByNameGetOK() *ColumnFamilyMetricsSpeculativeRetriesByNameGetOK { - return &ColumnFamilyMetricsSpeculativeRetriesByNameGetOK{} -} - -/* -ColumnFamilyMetricsSpeculativeRetriesByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsSpeculativeRetriesByNameGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsSpeculativeRetriesByNameGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsSpeculativeRetriesByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsSpeculativeRetriesByNameGetDefault creates a ColumnFamilyMetricsSpeculativeRetriesByNameGetDefault with default headers values -func NewColumnFamilyMetricsSpeculativeRetriesByNameGetDefault(code int) *ColumnFamilyMetricsSpeculativeRetriesByNameGetDefault { - return &ColumnFamilyMetricsSpeculativeRetriesByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsSpeculativeRetriesByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsSpeculativeRetriesByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics speculative retries by name get default response -func (o *ColumnFamilyMetricsSpeculativeRetriesByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsSpeculativeRetriesByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsSpeculativeRetriesByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsSpeculativeRetriesByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_speculative_retries_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_speculative_retries_get_parameters.go deleted file mode 100644 index 73e7f276ea..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_speculative_retries_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsSpeculativeRetriesGetParams creates a new ColumnFamilyMetricsSpeculativeRetriesGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsSpeculativeRetriesGetParams() *ColumnFamilyMetricsSpeculativeRetriesGetParams { - - return &ColumnFamilyMetricsSpeculativeRetriesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsSpeculativeRetriesGetParamsWithTimeout creates a new ColumnFamilyMetricsSpeculativeRetriesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsSpeculativeRetriesGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsSpeculativeRetriesGetParams { - - return &ColumnFamilyMetricsSpeculativeRetriesGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsSpeculativeRetriesGetParamsWithContext creates a new ColumnFamilyMetricsSpeculativeRetriesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsSpeculativeRetriesGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsSpeculativeRetriesGetParams { - - return &ColumnFamilyMetricsSpeculativeRetriesGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsSpeculativeRetriesGetParamsWithHTTPClient creates a new ColumnFamilyMetricsSpeculativeRetriesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsSpeculativeRetriesGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsSpeculativeRetriesGetParams { - - return &ColumnFamilyMetricsSpeculativeRetriesGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsSpeculativeRetriesGetParams contains all the parameters to send to the API endpoint -for the column family metrics speculative retries get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsSpeculativeRetriesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics speculative retries get params -func (o *ColumnFamilyMetricsSpeculativeRetriesGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsSpeculativeRetriesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics speculative retries get params -func (o *ColumnFamilyMetricsSpeculativeRetriesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics speculative retries get params -func (o *ColumnFamilyMetricsSpeculativeRetriesGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsSpeculativeRetriesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics speculative retries get params -func (o *ColumnFamilyMetricsSpeculativeRetriesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics speculative retries get params -func (o *ColumnFamilyMetricsSpeculativeRetriesGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsSpeculativeRetriesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics speculative retries get params -func (o *ColumnFamilyMetricsSpeculativeRetriesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsSpeculativeRetriesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_speculative_retries_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_speculative_retries_get_responses.go deleted file mode 100644 index 70ffa8690b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_speculative_retries_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsSpeculativeRetriesGetReader is a Reader for the ColumnFamilyMetricsSpeculativeRetriesGet structure. -type ColumnFamilyMetricsSpeculativeRetriesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsSpeculativeRetriesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsSpeculativeRetriesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsSpeculativeRetriesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsSpeculativeRetriesGetOK creates a ColumnFamilyMetricsSpeculativeRetriesGetOK with default headers values -func NewColumnFamilyMetricsSpeculativeRetriesGetOK() *ColumnFamilyMetricsSpeculativeRetriesGetOK { - return &ColumnFamilyMetricsSpeculativeRetriesGetOK{} -} - -/* -ColumnFamilyMetricsSpeculativeRetriesGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsSpeculativeRetriesGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsSpeculativeRetriesGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsSpeculativeRetriesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsSpeculativeRetriesGetDefault creates a ColumnFamilyMetricsSpeculativeRetriesGetDefault with default headers values -func NewColumnFamilyMetricsSpeculativeRetriesGetDefault(code int) *ColumnFamilyMetricsSpeculativeRetriesGetDefault { - return &ColumnFamilyMetricsSpeculativeRetriesGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsSpeculativeRetriesGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsSpeculativeRetriesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics speculative retries get default response -func (o *ColumnFamilyMetricsSpeculativeRetriesGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsSpeculativeRetriesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsSpeculativeRetriesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsSpeculativeRetriesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_sstables_per_read_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_sstables_per_read_histogram_by_name_get_parameters.go deleted file mode 100644 index 6f2758b37e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_sstables_per_read_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams creates a new ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams() *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsSstablesPerReadHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsSstablesPerReadHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsSstablesPerReadHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsSstablesPerReadHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsSstablesPerReadHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsSstablesPerReadHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics sstables per read histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics sstables per read histogram by name get params -func (o *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics sstables per read histogram by name get params -func (o *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics sstables per read histogram by name get params -func (o *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics sstables per read histogram by name get params -func (o *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics sstables per read histogram by name get params -func (o *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics sstables per read histogram by name get params -func (o *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics sstables per read histogram by name get params -func (o *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics sstables per read histogram by name get params -func (o *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_sstables_per_read_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_sstables_per_read_histogram_by_name_get_responses.go deleted file mode 100644 index 8838d48169..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_sstables_per_read_histogram_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsSstablesPerReadHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsSstablesPerReadHistogramByNameGet structure. -type ColumnFamilyMetricsSstablesPerReadHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsSstablesPerReadHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsSstablesPerReadHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsSstablesPerReadHistogramByNameGetOK creates a ColumnFamilyMetricsSstablesPerReadHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsSstablesPerReadHistogramByNameGetOK() *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetOK { - return &ColumnFamilyMetricsSstablesPerReadHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsSstablesPerReadHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsSstablesPerReadHistogramByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsSstablesPerReadHistogramByNameGetDefault creates a ColumnFamilyMetricsSstablesPerReadHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsSstablesPerReadHistogramByNameGetDefault(code int) *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetDefault { - return &ColumnFamilyMetricsSstablesPerReadHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsSstablesPerReadHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsSstablesPerReadHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics sstables per read histogram by name get default response -func (o *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_tombstone_scanned_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_tombstone_scanned_histogram_by_name_get_parameters.go deleted file mode 100644 index 3a257271d6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_tombstone_scanned_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams creates a new ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams() *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsTombstoneScannedHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsTombstoneScannedHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsTombstoneScannedHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsTombstoneScannedHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsTombstoneScannedHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsTombstoneScannedHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics tombstone scanned histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics tombstone scanned histogram by name get params -func (o *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics tombstone scanned histogram by name get params -func (o *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics tombstone scanned histogram by name get params -func (o *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics tombstone scanned histogram by name get params -func (o *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics tombstone scanned histogram by name get params -func (o *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics tombstone scanned histogram by name get params -func (o *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics tombstone scanned histogram by name get params -func (o *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics tombstone scanned histogram by name get params -func (o *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_tombstone_scanned_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_tombstone_scanned_histogram_by_name_get_responses.go deleted file mode 100644 index 9bd72f9fa5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_tombstone_scanned_histogram_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsTombstoneScannedHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsTombstoneScannedHistogramByNameGet structure. -type ColumnFamilyMetricsTombstoneScannedHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsTombstoneScannedHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsTombstoneScannedHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsTombstoneScannedHistogramByNameGetOK creates a ColumnFamilyMetricsTombstoneScannedHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsTombstoneScannedHistogramByNameGetOK() *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetOK { - return &ColumnFamilyMetricsTombstoneScannedHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsTombstoneScannedHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsTombstoneScannedHistogramByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsTombstoneScannedHistogramByNameGetDefault creates a ColumnFamilyMetricsTombstoneScannedHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsTombstoneScannedHistogramByNameGetDefault(code int) *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetDefault { - return &ColumnFamilyMetricsTombstoneScannedHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsTombstoneScannedHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsTombstoneScannedHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics tombstone scanned histogram by name get default response -func (o *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_total_disk_space_used_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_total_disk_space_used_by_name_get_parameters.go deleted file mode 100644 index 7ac6906d6d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_total_disk_space_used_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams creates a new ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams() *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams { - var () - return &ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams { - var () - return &ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParamsWithContext creates a new ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams { - var () - return &ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams { - var () - return &ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics total disk space used by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics total disk space used by name get params -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics total disk space used by name get params -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics total disk space used by name get params -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics total disk space used by name get params -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics total disk space used by name get params -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics total disk space used by name get params -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics total disk space used by name get params -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams) WithName(name string) *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics total disk space used by name get params -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_total_disk_space_used_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_total_disk_space_used_by_name_get_responses.go deleted file mode 100644 index a01ea0dc85..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_total_disk_space_used_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetReader is a Reader for the ColumnFamilyMetricsTotalDiskSpaceUsedByNameGet structure. -type ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsTotalDiskSpaceUsedByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsTotalDiskSpaceUsedByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsTotalDiskSpaceUsedByNameGetOK creates a ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetOK with default headers values -func NewColumnFamilyMetricsTotalDiskSpaceUsedByNameGetOK() *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetOK { - return &ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetOK{} -} - -/* -ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetOK struct { - Payload int64 -} - -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetOK) GetPayload() int64 { - return o.Payload -} - -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsTotalDiskSpaceUsedByNameGetDefault creates a ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetDefault with default headers values -func NewColumnFamilyMetricsTotalDiskSpaceUsedByNameGetDefault(code int) *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetDefault { - return &ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics total disk space used by name get default response -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_total_disk_space_used_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_total_disk_space_used_get_parameters.go deleted file mode 100644 index 2eb161d670..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_total_disk_space_used_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsTotalDiskSpaceUsedGetParams creates a new ColumnFamilyMetricsTotalDiskSpaceUsedGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsTotalDiskSpaceUsedGetParams() *ColumnFamilyMetricsTotalDiskSpaceUsedGetParams { - - return &ColumnFamilyMetricsTotalDiskSpaceUsedGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsTotalDiskSpaceUsedGetParamsWithTimeout creates a new ColumnFamilyMetricsTotalDiskSpaceUsedGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsTotalDiskSpaceUsedGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsTotalDiskSpaceUsedGetParams { - - return &ColumnFamilyMetricsTotalDiskSpaceUsedGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsTotalDiskSpaceUsedGetParamsWithContext creates a new ColumnFamilyMetricsTotalDiskSpaceUsedGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsTotalDiskSpaceUsedGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsTotalDiskSpaceUsedGetParams { - - return &ColumnFamilyMetricsTotalDiskSpaceUsedGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsTotalDiskSpaceUsedGetParamsWithHTTPClient creates a new ColumnFamilyMetricsTotalDiskSpaceUsedGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsTotalDiskSpaceUsedGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsTotalDiskSpaceUsedGetParams { - - return &ColumnFamilyMetricsTotalDiskSpaceUsedGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsTotalDiskSpaceUsedGetParams contains all the parameters to send to the API endpoint -for the column family metrics total disk space used get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsTotalDiskSpaceUsedGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics total disk space used get params -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsTotalDiskSpaceUsedGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics total disk space used get params -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics total disk space used get params -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsTotalDiskSpaceUsedGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics total disk space used get params -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics total disk space used get params -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsTotalDiskSpaceUsedGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics total disk space used get params -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_total_disk_space_used_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_total_disk_space_used_get_responses.go deleted file mode 100644 index 8929f10e44..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_total_disk_space_used_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsTotalDiskSpaceUsedGetReader is a Reader for the ColumnFamilyMetricsTotalDiskSpaceUsedGet structure. -type ColumnFamilyMetricsTotalDiskSpaceUsedGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsTotalDiskSpaceUsedGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsTotalDiskSpaceUsedGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsTotalDiskSpaceUsedGetOK creates a ColumnFamilyMetricsTotalDiskSpaceUsedGetOK with default headers values -func NewColumnFamilyMetricsTotalDiskSpaceUsedGetOK() *ColumnFamilyMetricsTotalDiskSpaceUsedGetOK { - return &ColumnFamilyMetricsTotalDiskSpaceUsedGetOK{} -} - -/* -ColumnFamilyMetricsTotalDiskSpaceUsedGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsTotalDiskSpaceUsedGetOK struct { - Payload int64 -} - -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedGetOK) GetPayload() int64 { - return o.Payload -} - -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsTotalDiskSpaceUsedGetDefault creates a ColumnFamilyMetricsTotalDiskSpaceUsedGetDefault with default headers values -func NewColumnFamilyMetricsTotalDiskSpaceUsedGetDefault(code int) *ColumnFamilyMetricsTotalDiskSpaceUsedGetDefault { - return &ColumnFamilyMetricsTotalDiskSpaceUsedGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsTotalDiskSpaceUsedGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsTotalDiskSpaceUsedGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics total disk space used get default response -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsTotalDiskSpaceUsedGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_true_snapshots_size_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_true_snapshots_size_get_parameters.go deleted file mode 100644 index 7e9bd8a854..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_true_snapshots_size_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsTrueSnapshotsSizeGetParams creates a new ColumnFamilyMetricsTrueSnapshotsSizeGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsTrueSnapshotsSizeGetParams() *ColumnFamilyMetricsTrueSnapshotsSizeGetParams { - - return &ColumnFamilyMetricsTrueSnapshotsSizeGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsTrueSnapshotsSizeGetParamsWithTimeout creates a new ColumnFamilyMetricsTrueSnapshotsSizeGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsTrueSnapshotsSizeGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsTrueSnapshotsSizeGetParams { - - return &ColumnFamilyMetricsTrueSnapshotsSizeGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsTrueSnapshotsSizeGetParamsWithContext creates a new ColumnFamilyMetricsTrueSnapshotsSizeGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsTrueSnapshotsSizeGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsTrueSnapshotsSizeGetParams { - - return &ColumnFamilyMetricsTrueSnapshotsSizeGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsTrueSnapshotsSizeGetParamsWithHTTPClient creates a new ColumnFamilyMetricsTrueSnapshotsSizeGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsTrueSnapshotsSizeGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsTrueSnapshotsSizeGetParams { - - return &ColumnFamilyMetricsTrueSnapshotsSizeGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsTrueSnapshotsSizeGetParams contains all the parameters to send to the API endpoint -for the column family metrics true snapshots size get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsTrueSnapshotsSizeGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics true snapshots size get params -func (o *ColumnFamilyMetricsTrueSnapshotsSizeGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsTrueSnapshotsSizeGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics true snapshots size get params -func (o *ColumnFamilyMetricsTrueSnapshotsSizeGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics true snapshots size get params -func (o *ColumnFamilyMetricsTrueSnapshotsSizeGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsTrueSnapshotsSizeGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics true snapshots size get params -func (o *ColumnFamilyMetricsTrueSnapshotsSizeGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics true snapshots size get params -func (o *ColumnFamilyMetricsTrueSnapshotsSizeGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsTrueSnapshotsSizeGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics true snapshots size get params -func (o *ColumnFamilyMetricsTrueSnapshotsSizeGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsTrueSnapshotsSizeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_true_snapshots_size_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_true_snapshots_size_get_responses.go deleted file mode 100644 index 76fbce7e62..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_true_snapshots_size_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsTrueSnapshotsSizeGetReader is a Reader for the ColumnFamilyMetricsTrueSnapshotsSizeGet structure. -type ColumnFamilyMetricsTrueSnapshotsSizeGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsTrueSnapshotsSizeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsTrueSnapshotsSizeGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsTrueSnapshotsSizeGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsTrueSnapshotsSizeGetOK creates a ColumnFamilyMetricsTrueSnapshotsSizeGetOK with default headers values -func NewColumnFamilyMetricsTrueSnapshotsSizeGetOK() *ColumnFamilyMetricsTrueSnapshotsSizeGetOK { - return &ColumnFamilyMetricsTrueSnapshotsSizeGetOK{} -} - -/* -ColumnFamilyMetricsTrueSnapshotsSizeGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsTrueSnapshotsSizeGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsTrueSnapshotsSizeGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsTrueSnapshotsSizeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsTrueSnapshotsSizeGetDefault creates a ColumnFamilyMetricsTrueSnapshotsSizeGetDefault with default headers values -func NewColumnFamilyMetricsTrueSnapshotsSizeGetDefault(code int) *ColumnFamilyMetricsTrueSnapshotsSizeGetDefault { - return &ColumnFamilyMetricsTrueSnapshotsSizeGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsTrueSnapshotsSizeGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsTrueSnapshotsSizeGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics true snapshots size get default response -func (o *ColumnFamilyMetricsTrueSnapshotsSizeGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsTrueSnapshotsSizeGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsTrueSnapshotsSizeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsTrueSnapshotsSizeGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_waiting_on_free_memtable_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_waiting_on_free_memtable_get_parameters.go deleted file mode 100644 index 958d5da958..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_waiting_on_free_memtable_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsWaitingOnFreeMemtableGetParams creates a new ColumnFamilyMetricsWaitingOnFreeMemtableGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsWaitingOnFreeMemtableGetParams() *ColumnFamilyMetricsWaitingOnFreeMemtableGetParams { - - return &ColumnFamilyMetricsWaitingOnFreeMemtableGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsWaitingOnFreeMemtableGetParamsWithTimeout creates a new ColumnFamilyMetricsWaitingOnFreeMemtableGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsWaitingOnFreeMemtableGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsWaitingOnFreeMemtableGetParams { - - return &ColumnFamilyMetricsWaitingOnFreeMemtableGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsWaitingOnFreeMemtableGetParamsWithContext creates a new ColumnFamilyMetricsWaitingOnFreeMemtableGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsWaitingOnFreeMemtableGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsWaitingOnFreeMemtableGetParams { - - return &ColumnFamilyMetricsWaitingOnFreeMemtableGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsWaitingOnFreeMemtableGetParamsWithHTTPClient creates a new ColumnFamilyMetricsWaitingOnFreeMemtableGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsWaitingOnFreeMemtableGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsWaitingOnFreeMemtableGetParams { - - return &ColumnFamilyMetricsWaitingOnFreeMemtableGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsWaitingOnFreeMemtableGetParams contains all the parameters to send to the API endpoint -for the column family metrics waiting on free memtable get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsWaitingOnFreeMemtableGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics waiting on free memtable get params -func (o *ColumnFamilyMetricsWaitingOnFreeMemtableGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsWaitingOnFreeMemtableGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics waiting on free memtable get params -func (o *ColumnFamilyMetricsWaitingOnFreeMemtableGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics waiting on free memtable get params -func (o *ColumnFamilyMetricsWaitingOnFreeMemtableGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsWaitingOnFreeMemtableGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics waiting on free memtable get params -func (o *ColumnFamilyMetricsWaitingOnFreeMemtableGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics waiting on free memtable get params -func (o *ColumnFamilyMetricsWaitingOnFreeMemtableGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsWaitingOnFreeMemtableGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics waiting on free memtable get params -func (o *ColumnFamilyMetricsWaitingOnFreeMemtableGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsWaitingOnFreeMemtableGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_waiting_on_free_memtable_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_waiting_on_free_memtable_get_responses.go deleted file mode 100644 index 3664e557fd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_waiting_on_free_memtable_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsWaitingOnFreeMemtableGetReader is a Reader for the ColumnFamilyMetricsWaitingOnFreeMemtableGet structure. -type ColumnFamilyMetricsWaitingOnFreeMemtableGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsWaitingOnFreeMemtableGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsWaitingOnFreeMemtableGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsWaitingOnFreeMemtableGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsWaitingOnFreeMemtableGetOK creates a ColumnFamilyMetricsWaitingOnFreeMemtableGetOK with default headers values -func NewColumnFamilyMetricsWaitingOnFreeMemtableGetOK() *ColumnFamilyMetricsWaitingOnFreeMemtableGetOK { - return &ColumnFamilyMetricsWaitingOnFreeMemtableGetOK{} -} - -/* -ColumnFamilyMetricsWaitingOnFreeMemtableGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsWaitingOnFreeMemtableGetOK struct { -} - -func (o *ColumnFamilyMetricsWaitingOnFreeMemtableGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyMetricsWaitingOnFreeMemtableGetDefault creates a ColumnFamilyMetricsWaitingOnFreeMemtableGetDefault with default headers values -func NewColumnFamilyMetricsWaitingOnFreeMemtableGetDefault(code int) *ColumnFamilyMetricsWaitingOnFreeMemtableGetDefault { - return &ColumnFamilyMetricsWaitingOnFreeMemtableGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsWaitingOnFreeMemtableGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsWaitingOnFreeMemtableGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics waiting on free memtable get default response -func (o *ColumnFamilyMetricsWaitingOnFreeMemtableGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsWaitingOnFreeMemtableGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsWaitingOnFreeMemtableGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsWaitingOnFreeMemtableGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_by_name_get_parameters.go deleted file mode 100644 index 95a95afcc6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsWriteByNameGetParams creates a new ColumnFamilyMetricsWriteByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsWriteByNameGetParams() *ColumnFamilyMetricsWriteByNameGetParams { - var () - return &ColumnFamilyMetricsWriteByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsWriteByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsWriteByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsWriteByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteByNameGetParams { - var () - return &ColumnFamilyMetricsWriteByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsWriteByNameGetParamsWithContext creates a new ColumnFamilyMetricsWriteByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsWriteByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsWriteByNameGetParams { - var () - return &ColumnFamilyMetricsWriteByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsWriteByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsWriteByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsWriteByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteByNameGetParams { - var () - return &ColumnFamilyMetricsWriteByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsWriteByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics write by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsWriteByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics write by name get params -func (o *ColumnFamilyMetricsWriteByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics write by name get params -func (o *ColumnFamilyMetricsWriteByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics write by name get params -func (o *ColumnFamilyMetricsWriteByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsWriteByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics write by name get params -func (o *ColumnFamilyMetricsWriteByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics write by name get params -func (o *ColumnFamilyMetricsWriteByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics write by name get params -func (o *ColumnFamilyMetricsWriteByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics write by name get params -func (o *ColumnFamilyMetricsWriteByNameGetParams) WithName(name string) *ColumnFamilyMetricsWriteByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics write by name get params -func (o *ColumnFamilyMetricsWriteByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsWriteByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_by_name_get_responses.go deleted file mode 100644 index a57fba546d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsWriteByNameGetReader is a Reader for the ColumnFamilyMetricsWriteByNameGet structure. -type ColumnFamilyMetricsWriteByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsWriteByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsWriteByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsWriteByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsWriteByNameGetOK creates a ColumnFamilyMetricsWriteByNameGetOK with default headers values -func NewColumnFamilyMetricsWriteByNameGetOK() *ColumnFamilyMetricsWriteByNameGetOK { - return &ColumnFamilyMetricsWriteByNameGetOK{} -} - -/* -ColumnFamilyMetricsWriteByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsWriteByNameGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsWriteByNameGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsWriteByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsWriteByNameGetDefault creates a ColumnFamilyMetricsWriteByNameGetDefault with default headers values -func NewColumnFamilyMetricsWriteByNameGetDefault(code int) *ColumnFamilyMetricsWriteByNameGetDefault { - return &ColumnFamilyMetricsWriteByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsWriteByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsWriteByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics write by name get default response -func (o *ColumnFamilyMetricsWriteByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsWriteByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsWriteByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsWriteByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_get_parameters.go deleted file mode 100644 index 558bc37fd6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsWriteGetParams creates a new ColumnFamilyMetricsWriteGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsWriteGetParams() *ColumnFamilyMetricsWriteGetParams { - - return &ColumnFamilyMetricsWriteGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsWriteGetParamsWithTimeout creates a new ColumnFamilyMetricsWriteGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsWriteGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteGetParams { - - return &ColumnFamilyMetricsWriteGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsWriteGetParamsWithContext creates a new ColumnFamilyMetricsWriteGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsWriteGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsWriteGetParams { - - return &ColumnFamilyMetricsWriteGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsWriteGetParamsWithHTTPClient creates a new ColumnFamilyMetricsWriteGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsWriteGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteGetParams { - - return &ColumnFamilyMetricsWriteGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsWriteGetParams contains all the parameters to send to the API endpoint -for the column family metrics write get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsWriteGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics write get params -func (o *ColumnFamilyMetricsWriteGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics write get params -func (o *ColumnFamilyMetricsWriteGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics write get params -func (o *ColumnFamilyMetricsWriteGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsWriteGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics write get params -func (o *ColumnFamilyMetricsWriteGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics write get params -func (o *ColumnFamilyMetricsWriteGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics write get params -func (o *ColumnFamilyMetricsWriteGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsWriteGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_get_responses.go deleted file mode 100644 index 4e95cc1043..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsWriteGetReader is a Reader for the ColumnFamilyMetricsWriteGet structure. -type ColumnFamilyMetricsWriteGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsWriteGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsWriteGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsWriteGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsWriteGetOK creates a ColumnFamilyMetricsWriteGetOK with default headers values -func NewColumnFamilyMetricsWriteGetOK() *ColumnFamilyMetricsWriteGetOK { - return &ColumnFamilyMetricsWriteGetOK{} -} - -/* -ColumnFamilyMetricsWriteGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsWriteGetOK struct { - Payload interface{} -} - -func (o *ColumnFamilyMetricsWriteGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *ColumnFamilyMetricsWriteGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsWriteGetDefault creates a ColumnFamilyMetricsWriteGetDefault with default headers values -func NewColumnFamilyMetricsWriteGetDefault(code int) *ColumnFamilyMetricsWriteGetDefault { - return &ColumnFamilyMetricsWriteGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsWriteGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsWriteGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics write get default response -func (o *ColumnFamilyMetricsWriteGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsWriteGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsWriteGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsWriteGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_by_name_get_parameters.go deleted file mode 100644 index 0bc18ec7f0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsWriteLatencyByNameGetParams creates a new ColumnFamilyMetricsWriteLatencyByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsWriteLatencyByNameGetParams() *ColumnFamilyMetricsWriteLatencyByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsWriteLatencyByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsWriteLatencyByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsWriteLatencyByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteLatencyByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsWriteLatencyByNameGetParamsWithContext creates a new ColumnFamilyMetricsWriteLatencyByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsWriteLatencyByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsWriteLatencyByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsWriteLatencyByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsWriteLatencyByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsWriteLatencyByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteLatencyByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsWriteLatencyByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics write latency by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsWriteLatencyByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics write latency by name get params -func (o *ColumnFamilyMetricsWriteLatencyByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteLatencyByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics write latency by name get params -func (o *ColumnFamilyMetricsWriteLatencyByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics write latency by name get params -func (o *ColumnFamilyMetricsWriteLatencyByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsWriteLatencyByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics write latency by name get params -func (o *ColumnFamilyMetricsWriteLatencyByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics write latency by name get params -func (o *ColumnFamilyMetricsWriteLatencyByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteLatencyByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics write latency by name get params -func (o *ColumnFamilyMetricsWriteLatencyByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics write latency by name get params -func (o *ColumnFamilyMetricsWriteLatencyByNameGetParams) WithName(name string) *ColumnFamilyMetricsWriteLatencyByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics write latency by name get params -func (o *ColumnFamilyMetricsWriteLatencyByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsWriteLatencyByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_by_name_get_responses.go deleted file mode 100644 index 7c19b239dc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsWriteLatencyByNameGetReader is a Reader for the ColumnFamilyMetricsWriteLatencyByNameGet structure. -type ColumnFamilyMetricsWriteLatencyByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsWriteLatencyByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsWriteLatencyByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsWriteLatencyByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsWriteLatencyByNameGetOK creates a ColumnFamilyMetricsWriteLatencyByNameGetOK with default headers values -func NewColumnFamilyMetricsWriteLatencyByNameGetOK() *ColumnFamilyMetricsWriteLatencyByNameGetOK { - return &ColumnFamilyMetricsWriteLatencyByNameGetOK{} -} - -/* -ColumnFamilyMetricsWriteLatencyByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsWriteLatencyByNameGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsWriteLatencyByNameGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsWriteLatencyByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsWriteLatencyByNameGetDefault creates a ColumnFamilyMetricsWriteLatencyByNameGetDefault with default headers values -func NewColumnFamilyMetricsWriteLatencyByNameGetDefault(code int) *ColumnFamilyMetricsWriteLatencyByNameGetDefault { - return &ColumnFamilyMetricsWriteLatencyByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsWriteLatencyByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsWriteLatencyByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics write latency by name get default response -func (o *ColumnFamilyMetricsWriteLatencyByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsWriteLatencyByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsWriteLatencyByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsWriteLatencyByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_estimated_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_estimated_histogram_by_name_get_parameters.go deleted file mode 100644 index 89bd0d2ade..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_estimated_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams creates a new ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams() *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics write latency estimated histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics write latency estimated histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics write latency estimated histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics write latency estimated histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics write latency estimated histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics write latency estimated histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics write latency estimated histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics write latency estimated histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics write latency estimated histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_estimated_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_estimated_histogram_by_name_get_responses.go deleted file mode 100644 index 3333a24cd6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_estimated_histogram_by_name_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGet structure. -type ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetOK creates a ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetOK() *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetOK { - return &ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetOK struct { -} - -func (o *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetDefault creates a ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetDefault(code int) *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetDefault { - return &ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics write latency estimated histogram by name get default response -func (o *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_estimated_recent_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_estimated_recent_histogram_by_name_get_parameters.go deleted file mode 100644 index 1144aba796..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_estimated_recent_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams creates a new ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams() *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics write latency estimated recent histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics write latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics write latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics write latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics write latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics write latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics write latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics write latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics write latency estimated recent histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_estimated_recent_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_estimated_recent_histogram_by_name_get_responses.go deleted file mode 100644 index a9d2aa83d4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_estimated_recent_histogram_by_name_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGet structure. -type ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetOK creates a ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetOK() *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetOK { - return &ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetOK struct { -} - -func (o *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetDefault creates a ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetDefault(code int) *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetDefault { - return &ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics write latency estimated recent histogram by name get default response -func (o *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_get_parameters.go deleted file mode 100644 index 90a9f745b6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsWriteLatencyGetParams creates a new ColumnFamilyMetricsWriteLatencyGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsWriteLatencyGetParams() *ColumnFamilyMetricsWriteLatencyGetParams { - - return &ColumnFamilyMetricsWriteLatencyGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsWriteLatencyGetParamsWithTimeout creates a new ColumnFamilyMetricsWriteLatencyGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsWriteLatencyGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteLatencyGetParams { - - return &ColumnFamilyMetricsWriteLatencyGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsWriteLatencyGetParamsWithContext creates a new ColumnFamilyMetricsWriteLatencyGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsWriteLatencyGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsWriteLatencyGetParams { - - return &ColumnFamilyMetricsWriteLatencyGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsWriteLatencyGetParamsWithHTTPClient creates a new ColumnFamilyMetricsWriteLatencyGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsWriteLatencyGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteLatencyGetParams { - - return &ColumnFamilyMetricsWriteLatencyGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsWriteLatencyGetParams contains all the parameters to send to the API endpoint -for the column family metrics write latency get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsWriteLatencyGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics write latency get params -func (o *ColumnFamilyMetricsWriteLatencyGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteLatencyGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics write latency get params -func (o *ColumnFamilyMetricsWriteLatencyGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics write latency get params -func (o *ColumnFamilyMetricsWriteLatencyGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsWriteLatencyGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics write latency get params -func (o *ColumnFamilyMetricsWriteLatencyGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics write latency get params -func (o *ColumnFamilyMetricsWriteLatencyGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteLatencyGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics write latency get params -func (o *ColumnFamilyMetricsWriteLatencyGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsWriteLatencyGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_get_responses.go deleted file mode 100644 index 283540d0db..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsWriteLatencyGetReader is a Reader for the ColumnFamilyMetricsWriteLatencyGet structure. -type ColumnFamilyMetricsWriteLatencyGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsWriteLatencyGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsWriteLatencyGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsWriteLatencyGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsWriteLatencyGetOK creates a ColumnFamilyMetricsWriteLatencyGetOK with default headers values -func NewColumnFamilyMetricsWriteLatencyGetOK() *ColumnFamilyMetricsWriteLatencyGetOK { - return &ColumnFamilyMetricsWriteLatencyGetOK{} -} - -/* -ColumnFamilyMetricsWriteLatencyGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsWriteLatencyGetOK struct { - Payload int32 -} - -func (o *ColumnFamilyMetricsWriteLatencyGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *ColumnFamilyMetricsWriteLatencyGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsWriteLatencyGetDefault creates a ColumnFamilyMetricsWriteLatencyGetDefault with default headers values -func NewColumnFamilyMetricsWriteLatencyGetDefault(code int) *ColumnFamilyMetricsWriteLatencyGetDefault { - return &ColumnFamilyMetricsWriteLatencyGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsWriteLatencyGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsWriteLatencyGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics write latency get default response -func (o *ColumnFamilyMetricsWriteLatencyGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsWriteLatencyGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsWriteLatencyGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsWriteLatencyGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_histogram_by_name_get_parameters.go deleted file mode 100644 index 0ce860536a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsWriteLatencyHistogramByNameGetParams creates a new ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsWriteLatencyHistogramByNameGetParams() *ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsWriteLatencyHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsWriteLatencyHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsWriteLatencyHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsWriteLatencyHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsWriteLatencyHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsWriteLatencyHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics write latency histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics write latency histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics write latency histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics write latency histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics write latency histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics write latency histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics write latency histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics write latency histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics write latency histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_histogram_by_name_get_responses.go deleted file mode 100644 index be47259e61..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_histogram_by_name_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsWriteLatencyHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsWriteLatencyHistogramByNameGet structure. -type ColumnFamilyMetricsWriteLatencyHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsWriteLatencyHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsWriteLatencyHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsWriteLatencyHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsWriteLatencyHistogramByNameGetOK creates a ColumnFamilyMetricsWriteLatencyHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsWriteLatencyHistogramByNameGetOK() *ColumnFamilyMetricsWriteLatencyHistogramByNameGetOK { - return &ColumnFamilyMetricsWriteLatencyHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsWriteLatencyHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsWriteLatencyHistogramByNameGetOK struct { -} - -func (o *ColumnFamilyMetricsWriteLatencyHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyMetricsWriteLatencyHistogramByNameGetDefault creates a ColumnFamilyMetricsWriteLatencyHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsWriteLatencyHistogramByNameGetDefault(code int) *ColumnFamilyMetricsWriteLatencyHistogramByNameGetDefault { - return &ColumnFamilyMetricsWriteLatencyHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsWriteLatencyHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsWriteLatencyHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics write latency histogram by name get default response -func (o *ColumnFamilyMetricsWriteLatencyHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsWriteLatencyHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsWriteLatencyHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsWriteLatencyHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_histogram_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_histogram_get_parameters.go deleted file mode 100644 index 7036f3ed6b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_histogram_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsWriteLatencyHistogramGetParams creates a new ColumnFamilyMetricsWriteLatencyHistogramGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsWriteLatencyHistogramGetParams() *ColumnFamilyMetricsWriteLatencyHistogramGetParams { - - return &ColumnFamilyMetricsWriteLatencyHistogramGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsWriteLatencyHistogramGetParamsWithTimeout creates a new ColumnFamilyMetricsWriteLatencyHistogramGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsWriteLatencyHistogramGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteLatencyHistogramGetParams { - - return &ColumnFamilyMetricsWriteLatencyHistogramGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsWriteLatencyHistogramGetParamsWithContext creates a new ColumnFamilyMetricsWriteLatencyHistogramGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsWriteLatencyHistogramGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsWriteLatencyHistogramGetParams { - - return &ColumnFamilyMetricsWriteLatencyHistogramGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsWriteLatencyHistogramGetParamsWithHTTPClient creates a new ColumnFamilyMetricsWriteLatencyHistogramGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsWriteLatencyHistogramGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteLatencyHistogramGetParams { - - return &ColumnFamilyMetricsWriteLatencyHistogramGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsWriteLatencyHistogramGetParams contains all the parameters to send to the API endpoint -for the column family metrics write latency histogram get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsWriteLatencyHistogramGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics write latency histogram get params -func (o *ColumnFamilyMetricsWriteLatencyHistogramGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteLatencyHistogramGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics write latency histogram get params -func (o *ColumnFamilyMetricsWriteLatencyHistogramGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics write latency histogram get params -func (o *ColumnFamilyMetricsWriteLatencyHistogramGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsWriteLatencyHistogramGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics write latency histogram get params -func (o *ColumnFamilyMetricsWriteLatencyHistogramGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics write latency histogram get params -func (o *ColumnFamilyMetricsWriteLatencyHistogramGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteLatencyHistogramGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics write latency histogram get params -func (o *ColumnFamilyMetricsWriteLatencyHistogramGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsWriteLatencyHistogramGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_histogram_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_histogram_get_responses.go deleted file mode 100644 index ac0abb0e6d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_histogram_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsWriteLatencyHistogramGetReader is a Reader for the ColumnFamilyMetricsWriteLatencyHistogramGet structure. -type ColumnFamilyMetricsWriteLatencyHistogramGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsWriteLatencyHistogramGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsWriteLatencyHistogramGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsWriteLatencyHistogramGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsWriteLatencyHistogramGetOK creates a ColumnFamilyMetricsWriteLatencyHistogramGetOK with default headers values -func NewColumnFamilyMetricsWriteLatencyHistogramGetOK() *ColumnFamilyMetricsWriteLatencyHistogramGetOK { - return &ColumnFamilyMetricsWriteLatencyHistogramGetOK{} -} - -/* -ColumnFamilyMetricsWriteLatencyHistogramGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsWriteLatencyHistogramGetOK struct { - Payload []*models.Histogram -} - -func (o *ColumnFamilyMetricsWriteLatencyHistogramGetOK) GetPayload() []*models.Histogram { - return o.Payload -} - -func (o *ColumnFamilyMetricsWriteLatencyHistogramGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsWriteLatencyHistogramGetDefault creates a ColumnFamilyMetricsWriteLatencyHistogramGetDefault with default headers values -func NewColumnFamilyMetricsWriteLatencyHistogramGetDefault(code int) *ColumnFamilyMetricsWriteLatencyHistogramGetDefault { - return &ColumnFamilyMetricsWriteLatencyHistogramGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsWriteLatencyHistogramGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsWriteLatencyHistogramGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics write latency histogram get default response -func (o *ColumnFamilyMetricsWriteLatencyHistogramGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsWriteLatencyHistogramGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsWriteLatencyHistogramGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsWriteLatencyHistogramGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_moving_average_histogram_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_moving_average_histogram_by_name_get_parameters.go deleted file mode 100644 index 2a0703f103..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_moving_average_histogram_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams creates a new ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams() *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParamsWithTimeout creates a new ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParamsWithContext creates a new ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParamsWithHTTPClient creates a new ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams { - var () - return &ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams contains all the parameters to send to the API endpoint -for the column family metrics write latency moving average histogram by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics write latency moving average histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics write latency moving average histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics write latency moving average histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics write latency moving average histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics write latency moving average histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics write latency moving average histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family metrics write latency moving average histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams) WithName(name string) *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family metrics write latency moving average histogram by name get params -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_moving_average_histogram_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_moving_average_histogram_by_name_get_responses.go deleted file mode 100644 index dd2b1556d0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_moving_average_histogram_by_name_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetReader is a Reader for the ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGet structure. -type ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetOK creates a ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetOK with default headers values -func NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetOK() *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetOK { - return &ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetOK{} -} - -/* -ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetOK struct { -} - -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetDefault creates a ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetDefault with default headers values -func NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetDefault(code int) *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetDefault { - return &ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics write latency moving average histogram by name get default response -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_moving_average_histogram_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_moving_average_histogram_get_parameters.go deleted file mode 100644 index 16c80314b0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_moving_average_histogram_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams creates a new ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams object -// with the default values initialized. -func NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams() *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams { - - return &ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParamsWithTimeout creates a new ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams { - - return &ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParamsWithContext creates a new ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParamsWithContext(ctx context.Context) *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams { - - return &ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParamsWithHTTPClient creates a new ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams { - - return &ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams contains all the parameters to send to the API endpoint -for the column family metrics write latency moving average histogram get operation typically these are written to a http.Request -*/ -type ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family metrics write latency moving average histogram get params -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family metrics write latency moving average histogram get params -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family metrics write latency moving average histogram get params -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams) WithContext(ctx context.Context) *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family metrics write latency moving average histogram get params -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family metrics write latency moving average histogram get params -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family metrics write latency moving average histogram get params -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_moving_average_histogram_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_moving_average_histogram_get_responses.go deleted file mode 100644 index 9a90f03d23..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_metrics_write_latency_moving_average_histogram_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetReader is a Reader for the ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGet structure. -type ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetOK creates a ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetOK with default headers values -func NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetOK() *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetOK { - return &ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetOK{} -} - -/* -ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetOK struct { - Payload []*models.RateMovingAverageAndHistogram -} - -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetOK) GetPayload() []*models.RateMovingAverageAndHistogram { - return o.Payload -} - -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetDefault creates a ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetDefault with default headers values -func NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetDefault(code int) *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetDefault { - return &ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family metrics write latency moving average histogram get default response -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_minimum_compaction_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_minimum_compaction_by_name_get_parameters.go deleted file mode 100644 index 43b8084f7f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_minimum_compaction_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyMinimumCompactionByNameGetParams creates a new ColumnFamilyMinimumCompactionByNameGetParams object -// with the default values initialized. -func NewColumnFamilyMinimumCompactionByNameGetParams() *ColumnFamilyMinimumCompactionByNameGetParams { - var () - return &ColumnFamilyMinimumCompactionByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMinimumCompactionByNameGetParamsWithTimeout creates a new ColumnFamilyMinimumCompactionByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMinimumCompactionByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyMinimumCompactionByNameGetParams { - var () - return &ColumnFamilyMinimumCompactionByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMinimumCompactionByNameGetParamsWithContext creates a new ColumnFamilyMinimumCompactionByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMinimumCompactionByNameGetParamsWithContext(ctx context.Context) *ColumnFamilyMinimumCompactionByNameGetParams { - var () - return &ColumnFamilyMinimumCompactionByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMinimumCompactionByNameGetParamsWithHTTPClient creates a new ColumnFamilyMinimumCompactionByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMinimumCompactionByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyMinimumCompactionByNameGetParams { - var () - return &ColumnFamilyMinimumCompactionByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMinimumCompactionByNameGetParams contains all the parameters to send to the API endpoint -for the column family minimum compaction by name get operation typically these are written to a http.Request -*/ -type ColumnFamilyMinimumCompactionByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family minimum compaction by name get params -func (o *ColumnFamilyMinimumCompactionByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyMinimumCompactionByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family minimum compaction by name get params -func (o *ColumnFamilyMinimumCompactionByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family minimum compaction by name get params -func (o *ColumnFamilyMinimumCompactionByNameGetParams) WithContext(ctx context.Context) *ColumnFamilyMinimumCompactionByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family minimum compaction by name get params -func (o *ColumnFamilyMinimumCompactionByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family minimum compaction by name get params -func (o *ColumnFamilyMinimumCompactionByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyMinimumCompactionByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family minimum compaction by name get params -func (o *ColumnFamilyMinimumCompactionByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family minimum compaction by name get params -func (o *ColumnFamilyMinimumCompactionByNameGetParams) WithName(name string) *ColumnFamilyMinimumCompactionByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family minimum compaction by name get params -func (o *ColumnFamilyMinimumCompactionByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMinimumCompactionByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_minimum_compaction_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_minimum_compaction_by_name_get_responses.go deleted file mode 100644 index afcd2adf6d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_minimum_compaction_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMinimumCompactionByNameGetReader is a Reader for the ColumnFamilyMinimumCompactionByNameGet structure. -type ColumnFamilyMinimumCompactionByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMinimumCompactionByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMinimumCompactionByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMinimumCompactionByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMinimumCompactionByNameGetOK creates a ColumnFamilyMinimumCompactionByNameGetOK with default headers values -func NewColumnFamilyMinimumCompactionByNameGetOK() *ColumnFamilyMinimumCompactionByNameGetOK { - return &ColumnFamilyMinimumCompactionByNameGetOK{} -} - -/* -ColumnFamilyMinimumCompactionByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMinimumCompactionByNameGetOK struct { - Payload string -} - -func (o *ColumnFamilyMinimumCompactionByNameGetOK) GetPayload() string { - return o.Payload -} - -func (o *ColumnFamilyMinimumCompactionByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMinimumCompactionByNameGetDefault creates a ColumnFamilyMinimumCompactionByNameGetDefault with default headers values -func NewColumnFamilyMinimumCompactionByNameGetDefault(code int) *ColumnFamilyMinimumCompactionByNameGetDefault { - return &ColumnFamilyMinimumCompactionByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMinimumCompactionByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMinimumCompactionByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family minimum compaction by name get default response -func (o *ColumnFamilyMinimumCompactionByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMinimumCompactionByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMinimumCompactionByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMinimumCompactionByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_minimum_compaction_by_name_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_minimum_compaction_by_name_post_parameters.go deleted file mode 100644 index dec2278426..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_minimum_compaction_by_name_post_parameters.go +++ /dev/null @@ -1,162 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewColumnFamilyMinimumCompactionByNamePostParams creates a new ColumnFamilyMinimumCompactionByNamePostParams object -// with the default values initialized. -func NewColumnFamilyMinimumCompactionByNamePostParams() *ColumnFamilyMinimumCompactionByNamePostParams { - var () - return &ColumnFamilyMinimumCompactionByNamePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyMinimumCompactionByNamePostParamsWithTimeout creates a new ColumnFamilyMinimumCompactionByNamePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyMinimumCompactionByNamePostParamsWithTimeout(timeout time.Duration) *ColumnFamilyMinimumCompactionByNamePostParams { - var () - return &ColumnFamilyMinimumCompactionByNamePostParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyMinimumCompactionByNamePostParamsWithContext creates a new ColumnFamilyMinimumCompactionByNamePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyMinimumCompactionByNamePostParamsWithContext(ctx context.Context) *ColumnFamilyMinimumCompactionByNamePostParams { - var () - return &ColumnFamilyMinimumCompactionByNamePostParams{ - - Context: ctx, - } -} - -// NewColumnFamilyMinimumCompactionByNamePostParamsWithHTTPClient creates a new ColumnFamilyMinimumCompactionByNamePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyMinimumCompactionByNamePostParamsWithHTTPClient(client *http.Client) *ColumnFamilyMinimumCompactionByNamePostParams { - var () - return &ColumnFamilyMinimumCompactionByNamePostParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyMinimumCompactionByNamePostParams contains all the parameters to send to the API endpoint -for the column family minimum compaction by name post operation typically these are written to a http.Request -*/ -type ColumnFamilyMinimumCompactionByNamePostParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - /*Value - The minimum number of sstables in queue before compaction kicks off - - */ - Value int32 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family minimum compaction by name post params -func (o *ColumnFamilyMinimumCompactionByNamePostParams) WithTimeout(timeout time.Duration) *ColumnFamilyMinimumCompactionByNamePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family minimum compaction by name post params -func (o *ColumnFamilyMinimumCompactionByNamePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family minimum compaction by name post params -func (o *ColumnFamilyMinimumCompactionByNamePostParams) WithContext(ctx context.Context) *ColumnFamilyMinimumCompactionByNamePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family minimum compaction by name post params -func (o *ColumnFamilyMinimumCompactionByNamePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family minimum compaction by name post params -func (o *ColumnFamilyMinimumCompactionByNamePostParams) WithHTTPClient(client *http.Client) *ColumnFamilyMinimumCompactionByNamePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family minimum compaction by name post params -func (o *ColumnFamilyMinimumCompactionByNamePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family minimum compaction by name post params -func (o *ColumnFamilyMinimumCompactionByNamePostParams) WithName(name string) *ColumnFamilyMinimumCompactionByNamePostParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family minimum compaction by name post params -func (o *ColumnFamilyMinimumCompactionByNamePostParams) SetName(name string) { - o.Name = name -} - -// WithValue adds the value to the column family minimum compaction by name post params -func (o *ColumnFamilyMinimumCompactionByNamePostParams) WithValue(value int32) *ColumnFamilyMinimumCompactionByNamePostParams { - o.SetValue(value) - return o -} - -// SetValue adds the value to the column family minimum compaction by name post params -func (o *ColumnFamilyMinimumCompactionByNamePostParams) SetValue(value int32) { - o.Value = value -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyMinimumCompactionByNamePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - // query param value - qrValue := o.Value - qValue := swag.FormatInt32(qrValue) - if qValue != "" { - if err := r.SetQueryParam("value", qValue); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_minimum_compaction_by_name_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_minimum_compaction_by_name_post_responses.go deleted file mode 100644 index 3cdd5e6aa1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_minimum_compaction_by_name_post_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyMinimumCompactionByNamePostReader is a Reader for the ColumnFamilyMinimumCompactionByNamePost structure. -type ColumnFamilyMinimumCompactionByNamePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyMinimumCompactionByNamePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyMinimumCompactionByNamePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyMinimumCompactionByNamePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyMinimumCompactionByNamePostOK creates a ColumnFamilyMinimumCompactionByNamePostOK with default headers values -func NewColumnFamilyMinimumCompactionByNamePostOK() *ColumnFamilyMinimumCompactionByNamePostOK { - return &ColumnFamilyMinimumCompactionByNamePostOK{} -} - -/* -ColumnFamilyMinimumCompactionByNamePostOK handles this case with default header values. - -Success -*/ -type ColumnFamilyMinimumCompactionByNamePostOK struct { - Payload string -} - -func (o *ColumnFamilyMinimumCompactionByNamePostOK) GetPayload() string { - return o.Payload -} - -func (o *ColumnFamilyMinimumCompactionByNamePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyMinimumCompactionByNamePostDefault creates a ColumnFamilyMinimumCompactionByNamePostDefault with default headers values -func NewColumnFamilyMinimumCompactionByNamePostDefault(code int) *ColumnFamilyMinimumCompactionByNamePostDefault { - return &ColumnFamilyMinimumCompactionByNamePostDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyMinimumCompactionByNamePostDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyMinimumCompactionByNamePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family minimum compaction by name post default response -func (o *ColumnFamilyMinimumCompactionByNamePostDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyMinimumCompactionByNamePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyMinimumCompactionByNamePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyMinimumCompactionByNamePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_name_get_parameters.go deleted file mode 100644 index 56de4de4b2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_name_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyNameGetParams creates a new ColumnFamilyNameGetParams object -// with the default values initialized. -func NewColumnFamilyNameGetParams() *ColumnFamilyNameGetParams { - - return &ColumnFamilyNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyNameGetParamsWithTimeout creates a new ColumnFamilyNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyNameGetParams { - - return &ColumnFamilyNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyNameGetParamsWithContext creates a new ColumnFamilyNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyNameGetParamsWithContext(ctx context.Context) *ColumnFamilyNameGetParams { - - return &ColumnFamilyNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyNameGetParamsWithHTTPClient creates a new ColumnFamilyNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyNameGetParams { - - return &ColumnFamilyNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyNameGetParams contains all the parameters to send to the API endpoint -for the column family name get operation typically these are written to a http.Request -*/ -type ColumnFamilyNameGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family name get params -func (o *ColumnFamilyNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family name get params -func (o *ColumnFamilyNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family name get params -func (o *ColumnFamilyNameGetParams) WithContext(ctx context.Context) *ColumnFamilyNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family name get params -func (o *ColumnFamilyNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family name get params -func (o *ColumnFamilyNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family name get params -func (o *ColumnFamilyNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_name_get_responses.go deleted file mode 100644 index b924823299..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyNameGetReader is a Reader for the ColumnFamilyNameGet structure. -type ColumnFamilyNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyNameGetOK creates a ColumnFamilyNameGetOK with default headers values -func NewColumnFamilyNameGetOK() *ColumnFamilyNameGetOK { - return &ColumnFamilyNameGetOK{} -} - -/* -ColumnFamilyNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyNameGetOK struct { - Payload []string -} - -func (o *ColumnFamilyNameGetOK) GetPayload() []string { - return o.Payload -} - -func (o *ColumnFamilyNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyNameGetDefault creates a ColumnFamilyNameGetDefault with default headers values -func NewColumnFamilyNameGetDefault(code int) *ColumnFamilyNameGetDefault { - return &ColumnFamilyNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family name get default response -func (o *ColumnFamilyNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_name_keyspace_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_name_keyspace_get_parameters.go deleted file mode 100644 index b121be0287..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_name_keyspace_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilyNameKeyspaceGetParams creates a new ColumnFamilyNameKeyspaceGetParams object -// with the default values initialized. -func NewColumnFamilyNameKeyspaceGetParams() *ColumnFamilyNameKeyspaceGetParams { - - return &ColumnFamilyNameKeyspaceGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilyNameKeyspaceGetParamsWithTimeout creates a new ColumnFamilyNameKeyspaceGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilyNameKeyspaceGetParamsWithTimeout(timeout time.Duration) *ColumnFamilyNameKeyspaceGetParams { - - return &ColumnFamilyNameKeyspaceGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilyNameKeyspaceGetParamsWithContext creates a new ColumnFamilyNameKeyspaceGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilyNameKeyspaceGetParamsWithContext(ctx context.Context) *ColumnFamilyNameKeyspaceGetParams { - - return &ColumnFamilyNameKeyspaceGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilyNameKeyspaceGetParamsWithHTTPClient creates a new ColumnFamilyNameKeyspaceGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilyNameKeyspaceGetParamsWithHTTPClient(client *http.Client) *ColumnFamilyNameKeyspaceGetParams { - - return &ColumnFamilyNameKeyspaceGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilyNameKeyspaceGetParams contains all the parameters to send to the API endpoint -for the column family name keyspace get operation typically these are written to a http.Request -*/ -type ColumnFamilyNameKeyspaceGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family name keyspace get params -func (o *ColumnFamilyNameKeyspaceGetParams) WithTimeout(timeout time.Duration) *ColumnFamilyNameKeyspaceGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family name keyspace get params -func (o *ColumnFamilyNameKeyspaceGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family name keyspace get params -func (o *ColumnFamilyNameKeyspaceGetParams) WithContext(ctx context.Context) *ColumnFamilyNameKeyspaceGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family name keyspace get params -func (o *ColumnFamilyNameKeyspaceGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family name keyspace get params -func (o *ColumnFamilyNameKeyspaceGetParams) WithHTTPClient(client *http.Client) *ColumnFamilyNameKeyspaceGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family name keyspace get params -func (o *ColumnFamilyNameKeyspaceGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilyNameKeyspaceGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_name_keyspace_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_name_keyspace_get_responses.go deleted file mode 100644 index 8738cb5ec9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_name_keyspace_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilyNameKeyspaceGetReader is a Reader for the ColumnFamilyNameKeyspaceGet structure. -type ColumnFamilyNameKeyspaceGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilyNameKeyspaceGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilyNameKeyspaceGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilyNameKeyspaceGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilyNameKeyspaceGetOK creates a ColumnFamilyNameKeyspaceGetOK with default headers values -func NewColumnFamilyNameKeyspaceGetOK() *ColumnFamilyNameKeyspaceGetOK { - return &ColumnFamilyNameKeyspaceGetOK{} -} - -/* -ColumnFamilyNameKeyspaceGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilyNameKeyspaceGetOK struct { - Payload []string -} - -func (o *ColumnFamilyNameKeyspaceGetOK) GetPayload() []string { - return o.Payload -} - -func (o *ColumnFamilyNameKeyspaceGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilyNameKeyspaceGetDefault creates a ColumnFamilyNameKeyspaceGetDefault with default headers values -func NewColumnFamilyNameKeyspaceGetDefault(code int) *ColumnFamilyNameKeyspaceGetDefault { - return &ColumnFamilyNameKeyspaceGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilyNameKeyspaceGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilyNameKeyspaceGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family name keyspace get default response -func (o *ColumnFamilyNameKeyspaceGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilyNameKeyspaceGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilyNameKeyspaceGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilyNameKeyspaceGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_sstables_by_key_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_sstables_by_key_by_name_get_parameters.go deleted file mode 100644 index 63c5c8eb73..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_sstables_by_key_by_name_get_parameters.go +++ /dev/null @@ -1,161 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilySstablesByKeyByNameGetParams creates a new ColumnFamilySstablesByKeyByNameGetParams object -// with the default values initialized. -func NewColumnFamilySstablesByKeyByNameGetParams() *ColumnFamilySstablesByKeyByNameGetParams { - var () - return &ColumnFamilySstablesByKeyByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilySstablesByKeyByNameGetParamsWithTimeout creates a new ColumnFamilySstablesByKeyByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilySstablesByKeyByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilySstablesByKeyByNameGetParams { - var () - return &ColumnFamilySstablesByKeyByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilySstablesByKeyByNameGetParamsWithContext creates a new ColumnFamilySstablesByKeyByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilySstablesByKeyByNameGetParamsWithContext(ctx context.Context) *ColumnFamilySstablesByKeyByNameGetParams { - var () - return &ColumnFamilySstablesByKeyByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilySstablesByKeyByNameGetParamsWithHTTPClient creates a new ColumnFamilySstablesByKeyByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilySstablesByKeyByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilySstablesByKeyByNameGetParams { - var () - return &ColumnFamilySstablesByKeyByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilySstablesByKeyByNameGetParams contains all the parameters to send to the API endpoint -for the column family sstables by key by name get operation typically these are written to a http.Request -*/ -type ColumnFamilySstablesByKeyByNameGetParams struct { - - /*Key - The partition key. In a composite-key scenario, use ':' to separate the columns in the key. - - */ - Key string - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family sstables by key by name get params -func (o *ColumnFamilySstablesByKeyByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilySstablesByKeyByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family sstables by key by name get params -func (o *ColumnFamilySstablesByKeyByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family sstables by key by name get params -func (o *ColumnFamilySstablesByKeyByNameGetParams) WithContext(ctx context.Context) *ColumnFamilySstablesByKeyByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family sstables by key by name get params -func (o *ColumnFamilySstablesByKeyByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family sstables by key by name get params -func (o *ColumnFamilySstablesByKeyByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilySstablesByKeyByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family sstables by key by name get params -func (o *ColumnFamilySstablesByKeyByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithKey adds the key to the column family sstables by key by name get params -func (o *ColumnFamilySstablesByKeyByNameGetParams) WithKey(key string) *ColumnFamilySstablesByKeyByNameGetParams { - o.SetKey(key) - return o -} - -// SetKey adds the key to the column family sstables by key by name get params -func (o *ColumnFamilySstablesByKeyByNameGetParams) SetKey(key string) { - o.Key = key -} - -// WithName adds the name to the column family sstables by key by name get params -func (o *ColumnFamilySstablesByKeyByNameGetParams) WithName(name string) *ColumnFamilySstablesByKeyByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family sstables by key by name get params -func (o *ColumnFamilySstablesByKeyByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilySstablesByKeyByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param key - qrKey := o.Key - qKey := qrKey - if qKey != "" { - if err := r.SetQueryParam("key", qKey); err != nil { - return err - } - } - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_sstables_by_key_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_sstables_by_key_by_name_get_responses.go deleted file mode 100644 index 471485187e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_sstables_by_key_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilySstablesByKeyByNameGetReader is a Reader for the ColumnFamilySstablesByKeyByNameGet structure. -type ColumnFamilySstablesByKeyByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilySstablesByKeyByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilySstablesByKeyByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilySstablesByKeyByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilySstablesByKeyByNameGetOK creates a ColumnFamilySstablesByKeyByNameGetOK with default headers values -func NewColumnFamilySstablesByKeyByNameGetOK() *ColumnFamilySstablesByKeyByNameGetOK { - return &ColumnFamilySstablesByKeyByNameGetOK{} -} - -/* -ColumnFamilySstablesByKeyByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilySstablesByKeyByNameGetOK struct { - Payload []string -} - -func (o *ColumnFamilySstablesByKeyByNameGetOK) GetPayload() []string { - return o.Payload -} - -func (o *ColumnFamilySstablesByKeyByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilySstablesByKeyByNameGetDefault creates a ColumnFamilySstablesByKeyByNameGetDefault with default headers values -func NewColumnFamilySstablesByKeyByNameGetDefault(code int) *ColumnFamilySstablesByKeyByNameGetDefault { - return &ColumnFamilySstablesByKeyByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilySstablesByKeyByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilySstablesByKeyByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family sstables by key by name get default response -func (o *ColumnFamilySstablesByKeyByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilySstablesByKeyByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilySstablesByKeyByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilySstablesByKeyByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_sstables_per_level_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_sstables_per_level_by_name_get_parameters.go deleted file mode 100644 index 14530689c8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_sstables_per_level_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilySstablesPerLevelByNameGetParams creates a new ColumnFamilySstablesPerLevelByNameGetParams object -// with the default values initialized. -func NewColumnFamilySstablesPerLevelByNameGetParams() *ColumnFamilySstablesPerLevelByNameGetParams { - var () - return &ColumnFamilySstablesPerLevelByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilySstablesPerLevelByNameGetParamsWithTimeout creates a new ColumnFamilySstablesPerLevelByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilySstablesPerLevelByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilySstablesPerLevelByNameGetParams { - var () - return &ColumnFamilySstablesPerLevelByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilySstablesPerLevelByNameGetParamsWithContext creates a new ColumnFamilySstablesPerLevelByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilySstablesPerLevelByNameGetParamsWithContext(ctx context.Context) *ColumnFamilySstablesPerLevelByNameGetParams { - var () - return &ColumnFamilySstablesPerLevelByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilySstablesPerLevelByNameGetParamsWithHTTPClient creates a new ColumnFamilySstablesPerLevelByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilySstablesPerLevelByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilySstablesPerLevelByNameGetParams { - var () - return &ColumnFamilySstablesPerLevelByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilySstablesPerLevelByNameGetParams contains all the parameters to send to the API endpoint -for the column family sstables per level by name get operation typically these are written to a http.Request -*/ -type ColumnFamilySstablesPerLevelByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family sstables per level by name get params -func (o *ColumnFamilySstablesPerLevelByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilySstablesPerLevelByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family sstables per level by name get params -func (o *ColumnFamilySstablesPerLevelByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family sstables per level by name get params -func (o *ColumnFamilySstablesPerLevelByNameGetParams) WithContext(ctx context.Context) *ColumnFamilySstablesPerLevelByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family sstables per level by name get params -func (o *ColumnFamilySstablesPerLevelByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family sstables per level by name get params -func (o *ColumnFamilySstablesPerLevelByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilySstablesPerLevelByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family sstables per level by name get params -func (o *ColumnFamilySstablesPerLevelByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family sstables per level by name get params -func (o *ColumnFamilySstablesPerLevelByNameGetParams) WithName(name string) *ColumnFamilySstablesPerLevelByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family sstables per level by name get params -func (o *ColumnFamilySstablesPerLevelByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilySstablesPerLevelByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_sstables_per_level_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_sstables_per_level_by_name_get_responses.go deleted file mode 100644 index 930f0a5393..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_sstables_per_level_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilySstablesPerLevelByNameGetReader is a Reader for the ColumnFamilySstablesPerLevelByNameGet structure. -type ColumnFamilySstablesPerLevelByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilySstablesPerLevelByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilySstablesPerLevelByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilySstablesPerLevelByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilySstablesPerLevelByNameGetOK creates a ColumnFamilySstablesPerLevelByNameGetOK with default headers values -func NewColumnFamilySstablesPerLevelByNameGetOK() *ColumnFamilySstablesPerLevelByNameGetOK { - return &ColumnFamilySstablesPerLevelByNameGetOK{} -} - -/* -ColumnFamilySstablesPerLevelByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilySstablesPerLevelByNameGetOK struct { - Payload []int32 -} - -func (o *ColumnFamilySstablesPerLevelByNameGetOK) GetPayload() []int32 { - return o.Payload -} - -func (o *ColumnFamilySstablesPerLevelByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilySstablesPerLevelByNameGetDefault creates a ColumnFamilySstablesPerLevelByNameGetDefault with default headers values -func NewColumnFamilySstablesPerLevelByNameGetDefault(code int) *ColumnFamilySstablesPerLevelByNameGetDefault { - return &ColumnFamilySstablesPerLevelByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilySstablesPerLevelByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilySstablesPerLevelByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family sstables per level by name get default response -func (o *ColumnFamilySstablesPerLevelByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilySstablesPerLevelByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilySstablesPerLevelByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilySstablesPerLevelByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_sstables_unleveled_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_sstables_unleveled_by_name_get_parameters.go deleted file mode 100644 index 54db8c307b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_sstables_unleveled_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewColumnFamilySstablesUnleveledByNameGetParams creates a new ColumnFamilySstablesUnleveledByNameGetParams object -// with the default values initialized. -func NewColumnFamilySstablesUnleveledByNameGetParams() *ColumnFamilySstablesUnleveledByNameGetParams { - var () - return &ColumnFamilySstablesUnleveledByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewColumnFamilySstablesUnleveledByNameGetParamsWithTimeout creates a new ColumnFamilySstablesUnleveledByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewColumnFamilySstablesUnleveledByNameGetParamsWithTimeout(timeout time.Duration) *ColumnFamilySstablesUnleveledByNameGetParams { - var () - return &ColumnFamilySstablesUnleveledByNameGetParams{ - - timeout: timeout, - } -} - -// NewColumnFamilySstablesUnleveledByNameGetParamsWithContext creates a new ColumnFamilySstablesUnleveledByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewColumnFamilySstablesUnleveledByNameGetParamsWithContext(ctx context.Context) *ColumnFamilySstablesUnleveledByNameGetParams { - var () - return &ColumnFamilySstablesUnleveledByNameGetParams{ - - Context: ctx, - } -} - -// NewColumnFamilySstablesUnleveledByNameGetParamsWithHTTPClient creates a new ColumnFamilySstablesUnleveledByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewColumnFamilySstablesUnleveledByNameGetParamsWithHTTPClient(client *http.Client) *ColumnFamilySstablesUnleveledByNameGetParams { - var () - return &ColumnFamilySstablesUnleveledByNameGetParams{ - HTTPClient: client, - } -} - -/* -ColumnFamilySstablesUnleveledByNameGetParams contains all the parameters to send to the API endpoint -for the column family sstables unleveled by name get operation typically these are written to a http.Request -*/ -type ColumnFamilySstablesUnleveledByNameGetParams struct { - - /*Name - The column family name in keyspace:name format - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the column family sstables unleveled by name get params -func (o *ColumnFamilySstablesUnleveledByNameGetParams) WithTimeout(timeout time.Duration) *ColumnFamilySstablesUnleveledByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the column family sstables unleveled by name get params -func (o *ColumnFamilySstablesUnleveledByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the column family sstables unleveled by name get params -func (o *ColumnFamilySstablesUnleveledByNameGetParams) WithContext(ctx context.Context) *ColumnFamilySstablesUnleveledByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the column family sstables unleveled by name get params -func (o *ColumnFamilySstablesUnleveledByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the column family sstables unleveled by name get params -func (o *ColumnFamilySstablesUnleveledByNameGetParams) WithHTTPClient(client *http.Client) *ColumnFamilySstablesUnleveledByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the column family sstables unleveled by name get params -func (o *ColumnFamilySstablesUnleveledByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the column family sstables unleveled by name get params -func (o *ColumnFamilySstablesUnleveledByNameGetParams) WithName(name string) *ColumnFamilySstablesUnleveledByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the column family sstables unleveled by name get params -func (o *ColumnFamilySstablesUnleveledByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *ColumnFamilySstablesUnleveledByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_sstables_unleveled_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_sstables_unleveled_by_name_get_responses.go deleted file mode 100644 index 53e94c4f36..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/column_family_sstables_unleveled_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// ColumnFamilySstablesUnleveledByNameGetReader is a Reader for the ColumnFamilySstablesUnleveledByNameGet structure. -type ColumnFamilySstablesUnleveledByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *ColumnFamilySstablesUnleveledByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewColumnFamilySstablesUnleveledByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewColumnFamilySstablesUnleveledByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewColumnFamilySstablesUnleveledByNameGetOK creates a ColumnFamilySstablesUnleveledByNameGetOK with default headers values -func NewColumnFamilySstablesUnleveledByNameGetOK() *ColumnFamilySstablesUnleveledByNameGetOK { - return &ColumnFamilySstablesUnleveledByNameGetOK{} -} - -/* -ColumnFamilySstablesUnleveledByNameGetOK handles this case with default header values. - -Success -*/ -type ColumnFamilySstablesUnleveledByNameGetOK struct { - Payload []string -} - -func (o *ColumnFamilySstablesUnleveledByNameGetOK) GetPayload() []string { - return o.Payload -} - -func (o *ColumnFamilySstablesUnleveledByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewColumnFamilySstablesUnleveledByNameGetDefault creates a ColumnFamilySstablesUnleveledByNameGetDefault with default headers values -func NewColumnFamilySstablesUnleveledByNameGetDefault(code int) *ColumnFamilySstablesUnleveledByNameGetDefault { - return &ColumnFamilySstablesUnleveledByNameGetDefault{ - _statusCode: code, - } -} - -/* -ColumnFamilySstablesUnleveledByNameGetDefault handles this case with default header values. - -internal server error -*/ -type ColumnFamilySstablesUnleveledByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the column family sstables unleveled by name get default response -func (o *ColumnFamilySstablesUnleveledByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *ColumnFamilySstablesUnleveledByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *ColumnFamilySstablesUnleveledByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *ColumnFamilySstablesUnleveledByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commit_log_metrics_waiting_on_commit_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commit_log_metrics_waiting_on_commit_get_parameters.go deleted file mode 100644 index cb2a3e04b7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commit_log_metrics_waiting_on_commit_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCommitLogMetricsWaitingOnCommitGetParams creates a new CommitLogMetricsWaitingOnCommitGetParams object -// with the default values initialized. -func NewCommitLogMetricsWaitingOnCommitGetParams() *CommitLogMetricsWaitingOnCommitGetParams { - - return &CommitLogMetricsWaitingOnCommitGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCommitLogMetricsWaitingOnCommitGetParamsWithTimeout creates a new CommitLogMetricsWaitingOnCommitGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCommitLogMetricsWaitingOnCommitGetParamsWithTimeout(timeout time.Duration) *CommitLogMetricsWaitingOnCommitGetParams { - - return &CommitLogMetricsWaitingOnCommitGetParams{ - - timeout: timeout, - } -} - -// NewCommitLogMetricsWaitingOnCommitGetParamsWithContext creates a new CommitLogMetricsWaitingOnCommitGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCommitLogMetricsWaitingOnCommitGetParamsWithContext(ctx context.Context) *CommitLogMetricsWaitingOnCommitGetParams { - - return &CommitLogMetricsWaitingOnCommitGetParams{ - - Context: ctx, - } -} - -// NewCommitLogMetricsWaitingOnCommitGetParamsWithHTTPClient creates a new CommitLogMetricsWaitingOnCommitGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCommitLogMetricsWaitingOnCommitGetParamsWithHTTPClient(client *http.Client) *CommitLogMetricsWaitingOnCommitGetParams { - - return &CommitLogMetricsWaitingOnCommitGetParams{ - HTTPClient: client, - } -} - -/* -CommitLogMetricsWaitingOnCommitGetParams contains all the parameters to send to the API endpoint -for the commit log metrics waiting on commit get operation typically these are written to a http.Request -*/ -type CommitLogMetricsWaitingOnCommitGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the commit log metrics waiting on commit get params -func (o *CommitLogMetricsWaitingOnCommitGetParams) WithTimeout(timeout time.Duration) *CommitLogMetricsWaitingOnCommitGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the commit log metrics waiting on commit get params -func (o *CommitLogMetricsWaitingOnCommitGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the commit log metrics waiting on commit get params -func (o *CommitLogMetricsWaitingOnCommitGetParams) WithContext(ctx context.Context) *CommitLogMetricsWaitingOnCommitGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the commit log metrics waiting on commit get params -func (o *CommitLogMetricsWaitingOnCommitGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the commit log metrics waiting on commit get params -func (o *CommitLogMetricsWaitingOnCommitGetParams) WithHTTPClient(client *http.Client) *CommitLogMetricsWaitingOnCommitGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the commit log metrics waiting on commit get params -func (o *CommitLogMetricsWaitingOnCommitGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CommitLogMetricsWaitingOnCommitGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commit_log_metrics_waiting_on_commit_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commit_log_metrics_waiting_on_commit_get_responses.go deleted file mode 100644 index c44b5ba071..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commit_log_metrics_waiting_on_commit_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CommitLogMetricsWaitingOnCommitGetReader is a Reader for the CommitLogMetricsWaitingOnCommitGet structure. -type CommitLogMetricsWaitingOnCommitGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CommitLogMetricsWaitingOnCommitGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCommitLogMetricsWaitingOnCommitGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCommitLogMetricsWaitingOnCommitGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCommitLogMetricsWaitingOnCommitGetOK creates a CommitLogMetricsWaitingOnCommitGetOK with default headers values -func NewCommitLogMetricsWaitingOnCommitGetOK() *CommitLogMetricsWaitingOnCommitGetOK { - return &CommitLogMetricsWaitingOnCommitGetOK{} -} - -/* -CommitLogMetricsWaitingOnCommitGetOK handles this case with default header values. - -Success -*/ -type CommitLogMetricsWaitingOnCommitGetOK struct { -} - -func (o *CommitLogMetricsWaitingOnCommitGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewCommitLogMetricsWaitingOnCommitGetDefault creates a CommitLogMetricsWaitingOnCommitGetDefault with default headers values -func NewCommitLogMetricsWaitingOnCommitGetDefault(code int) *CommitLogMetricsWaitingOnCommitGetDefault { - return &CommitLogMetricsWaitingOnCommitGetDefault{ - _statusCode: code, - } -} - -/* -CommitLogMetricsWaitingOnCommitGetDefault handles this case with default header values. - -internal server error -*/ -type CommitLogMetricsWaitingOnCommitGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the commit log metrics waiting on commit get default response -func (o *CommitLogMetricsWaitingOnCommitGetDefault) Code() int { - return o._statusCode -} - -func (o *CommitLogMetricsWaitingOnCommitGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CommitLogMetricsWaitingOnCommitGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CommitLogMetricsWaitingOnCommitGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commit_log_metrics_waiting_on_segment_allocation_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commit_log_metrics_waiting_on_segment_allocation_get_parameters.go deleted file mode 100644 index be54bc4b74..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commit_log_metrics_waiting_on_segment_allocation_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCommitLogMetricsWaitingOnSegmentAllocationGetParams creates a new CommitLogMetricsWaitingOnSegmentAllocationGetParams object -// with the default values initialized. -func NewCommitLogMetricsWaitingOnSegmentAllocationGetParams() *CommitLogMetricsWaitingOnSegmentAllocationGetParams { - - return &CommitLogMetricsWaitingOnSegmentAllocationGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCommitLogMetricsWaitingOnSegmentAllocationGetParamsWithTimeout creates a new CommitLogMetricsWaitingOnSegmentAllocationGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCommitLogMetricsWaitingOnSegmentAllocationGetParamsWithTimeout(timeout time.Duration) *CommitLogMetricsWaitingOnSegmentAllocationGetParams { - - return &CommitLogMetricsWaitingOnSegmentAllocationGetParams{ - - timeout: timeout, - } -} - -// NewCommitLogMetricsWaitingOnSegmentAllocationGetParamsWithContext creates a new CommitLogMetricsWaitingOnSegmentAllocationGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCommitLogMetricsWaitingOnSegmentAllocationGetParamsWithContext(ctx context.Context) *CommitLogMetricsWaitingOnSegmentAllocationGetParams { - - return &CommitLogMetricsWaitingOnSegmentAllocationGetParams{ - - Context: ctx, - } -} - -// NewCommitLogMetricsWaitingOnSegmentAllocationGetParamsWithHTTPClient creates a new CommitLogMetricsWaitingOnSegmentAllocationGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCommitLogMetricsWaitingOnSegmentAllocationGetParamsWithHTTPClient(client *http.Client) *CommitLogMetricsWaitingOnSegmentAllocationGetParams { - - return &CommitLogMetricsWaitingOnSegmentAllocationGetParams{ - HTTPClient: client, - } -} - -/* -CommitLogMetricsWaitingOnSegmentAllocationGetParams contains all the parameters to send to the API endpoint -for the commit log metrics waiting on segment allocation get operation typically these are written to a http.Request -*/ -type CommitLogMetricsWaitingOnSegmentAllocationGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the commit log metrics waiting on segment allocation get params -func (o *CommitLogMetricsWaitingOnSegmentAllocationGetParams) WithTimeout(timeout time.Duration) *CommitLogMetricsWaitingOnSegmentAllocationGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the commit log metrics waiting on segment allocation get params -func (o *CommitLogMetricsWaitingOnSegmentAllocationGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the commit log metrics waiting on segment allocation get params -func (o *CommitLogMetricsWaitingOnSegmentAllocationGetParams) WithContext(ctx context.Context) *CommitLogMetricsWaitingOnSegmentAllocationGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the commit log metrics waiting on segment allocation get params -func (o *CommitLogMetricsWaitingOnSegmentAllocationGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the commit log metrics waiting on segment allocation get params -func (o *CommitLogMetricsWaitingOnSegmentAllocationGetParams) WithHTTPClient(client *http.Client) *CommitLogMetricsWaitingOnSegmentAllocationGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the commit log metrics waiting on segment allocation get params -func (o *CommitLogMetricsWaitingOnSegmentAllocationGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CommitLogMetricsWaitingOnSegmentAllocationGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commit_log_metrics_waiting_on_segment_allocation_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commit_log_metrics_waiting_on_segment_allocation_get_responses.go deleted file mode 100644 index 3c90867471..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commit_log_metrics_waiting_on_segment_allocation_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CommitLogMetricsWaitingOnSegmentAllocationGetReader is a Reader for the CommitLogMetricsWaitingOnSegmentAllocationGet structure. -type CommitLogMetricsWaitingOnSegmentAllocationGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CommitLogMetricsWaitingOnSegmentAllocationGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCommitLogMetricsWaitingOnSegmentAllocationGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCommitLogMetricsWaitingOnSegmentAllocationGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCommitLogMetricsWaitingOnSegmentAllocationGetOK creates a CommitLogMetricsWaitingOnSegmentAllocationGetOK with default headers values -func NewCommitLogMetricsWaitingOnSegmentAllocationGetOK() *CommitLogMetricsWaitingOnSegmentAllocationGetOK { - return &CommitLogMetricsWaitingOnSegmentAllocationGetOK{} -} - -/* -CommitLogMetricsWaitingOnSegmentAllocationGetOK handles this case with default header values. - -Success -*/ -type CommitLogMetricsWaitingOnSegmentAllocationGetOK struct { -} - -func (o *CommitLogMetricsWaitingOnSegmentAllocationGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewCommitLogMetricsWaitingOnSegmentAllocationGetDefault creates a CommitLogMetricsWaitingOnSegmentAllocationGetDefault with default headers values -func NewCommitLogMetricsWaitingOnSegmentAllocationGetDefault(code int) *CommitLogMetricsWaitingOnSegmentAllocationGetDefault { - return &CommitLogMetricsWaitingOnSegmentAllocationGetDefault{ - _statusCode: code, - } -} - -/* -CommitLogMetricsWaitingOnSegmentAllocationGetDefault handles this case with default header values. - -internal server error -*/ -type CommitLogMetricsWaitingOnSegmentAllocationGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the commit log metrics waiting on segment allocation get default response -func (o *CommitLogMetricsWaitingOnSegmentAllocationGetDefault) Code() int { - return o._statusCode -} - -func (o *CommitLogMetricsWaitingOnSegmentAllocationGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CommitLogMetricsWaitingOnSegmentAllocationGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CommitLogMetricsWaitingOnSegmentAllocationGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_metrics_completed_tasks_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_metrics_completed_tasks_get_parameters.go deleted file mode 100644 index f76fad52da..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_metrics_completed_tasks_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCommitlogMetricsCompletedTasksGetParams creates a new CommitlogMetricsCompletedTasksGetParams object -// with the default values initialized. -func NewCommitlogMetricsCompletedTasksGetParams() *CommitlogMetricsCompletedTasksGetParams { - - return &CommitlogMetricsCompletedTasksGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCommitlogMetricsCompletedTasksGetParamsWithTimeout creates a new CommitlogMetricsCompletedTasksGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCommitlogMetricsCompletedTasksGetParamsWithTimeout(timeout time.Duration) *CommitlogMetricsCompletedTasksGetParams { - - return &CommitlogMetricsCompletedTasksGetParams{ - - timeout: timeout, - } -} - -// NewCommitlogMetricsCompletedTasksGetParamsWithContext creates a new CommitlogMetricsCompletedTasksGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCommitlogMetricsCompletedTasksGetParamsWithContext(ctx context.Context) *CommitlogMetricsCompletedTasksGetParams { - - return &CommitlogMetricsCompletedTasksGetParams{ - - Context: ctx, - } -} - -// NewCommitlogMetricsCompletedTasksGetParamsWithHTTPClient creates a new CommitlogMetricsCompletedTasksGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCommitlogMetricsCompletedTasksGetParamsWithHTTPClient(client *http.Client) *CommitlogMetricsCompletedTasksGetParams { - - return &CommitlogMetricsCompletedTasksGetParams{ - HTTPClient: client, - } -} - -/* -CommitlogMetricsCompletedTasksGetParams contains all the parameters to send to the API endpoint -for the commitlog metrics completed tasks get operation typically these are written to a http.Request -*/ -type CommitlogMetricsCompletedTasksGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the commitlog metrics completed tasks get params -func (o *CommitlogMetricsCompletedTasksGetParams) WithTimeout(timeout time.Duration) *CommitlogMetricsCompletedTasksGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the commitlog metrics completed tasks get params -func (o *CommitlogMetricsCompletedTasksGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the commitlog metrics completed tasks get params -func (o *CommitlogMetricsCompletedTasksGetParams) WithContext(ctx context.Context) *CommitlogMetricsCompletedTasksGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the commitlog metrics completed tasks get params -func (o *CommitlogMetricsCompletedTasksGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the commitlog metrics completed tasks get params -func (o *CommitlogMetricsCompletedTasksGetParams) WithHTTPClient(client *http.Client) *CommitlogMetricsCompletedTasksGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the commitlog metrics completed tasks get params -func (o *CommitlogMetricsCompletedTasksGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CommitlogMetricsCompletedTasksGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_metrics_completed_tasks_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_metrics_completed_tasks_get_responses.go deleted file mode 100644 index dc05c56bd5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_metrics_completed_tasks_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CommitlogMetricsCompletedTasksGetReader is a Reader for the CommitlogMetricsCompletedTasksGet structure. -type CommitlogMetricsCompletedTasksGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CommitlogMetricsCompletedTasksGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCommitlogMetricsCompletedTasksGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCommitlogMetricsCompletedTasksGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCommitlogMetricsCompletedTasksGetOK creates a CommitlogMetricsCompletedTasksGetOK with default headers values -func NewCommitlogMetricsCompletedTasksGetOK() *CommitlogMetricsCompletedTasksGetOK { - return &CommitlogMetricsCompletedTasksGetOK{} -} - -/* -CommitlogMetricsCompletedTasksGetOK handles this case with default header values. - -Success -*/ -type CommitlogMetricsCompletedTasksGetOK struct { - Payload interface{} -} - -func (o *CommitlogMetricsCompletedTasksGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CommitlogMetricsCompletedTasksGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCommitlogMetricsCompletedTasksGetDefault creates a CommitlogMetricsCompletedTasksGetDefault with default headers values -func NewCommitlogMetricsCompletedTasksGetDefault(code int) *CommitlogMetricsCompletedTasksGetDefault { - return &CommitlogMetricsCompletedTasksGetDefault{ - _statusCode: code, - } -} - -/* -CommitlogMetricsCompletedTasksGetDefault handles this case with default header values. - -internal server error -*/ -type CommitlogMetricsCompletedTasksGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the commitlog metrics completed tasks get default response -func (o *CommitlogMetricsCompletedTasksGetDefault) Code() int { - return o._statusCode -} - -func (o *CommitlogMetricsCompletedTasksGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CommitlogMetricsCompletedTasksGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CommitlogMetricsCompletedTasksGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_metrics_pending_tasks_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_metrics_pending_tasks_get_parameters.go deleted file mode 100644 index ef280c9289..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_metrics_pending_tasks_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCommitlogMetricsPendingTasksGetParams creates a new CommitlogMetricsPendingTasksGetParams object -// with the default values initialized. -func NewCommitlogMetricsPendingTasksGetParams() *CommitlogMetricsPendingTasksGetParams { - - return &CommitlogMetricsPendingTasksGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCommitlogMetricsPendingTasksGetParamsWithTimeout creates a new CommitlogMetricsPendingTasksGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCommitlogMetricsPendingTasksGetParamsWithTimeout(timeout time.Duration) *CommitlogMetricsPendingTasksGetParams { - - return &CommitlogMetricsPendingTasksGetParams{ - - timeout: timeout, - } -} - -// NewCommitlogMetricsPendingTasksGetParamsWithContext creates a new CommitlogMetricsPendingTasksGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCommitlogMetricsPendingTasksGetParamsWithContext(ctx context.Context) *CommitlogMetricsPendingTasksGetParams { - - return &CommitlogMetricsPendingTasksGetParams{ - - Context: ctx, - } -} - -// NewCommitlogMetricsPendingTasksGetParamsWithHTTPClient creates a new CommitlogMetricsPendingTasksGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCommitlogMetricsPendingTasksGetParamsWithHTTPClient(client *http.Client) *CommitlogMetricsPendingTasksGetParams { - - return &CommitlogMetricsPendingTasksGetParams{ - HTTPClient: client, - } -} - -/* -CommitlogMetricsPendingTasksGetParams contains all the parameters to send to the API endpoint -for the commitlog metrics pending tasks get operation typically these are written to a http.Request -*/ -type CommitlogMetricsPendingTasksGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the commitlog metrics pending tasks get params -func (o *CommitlogMetricsPendingTasksGetParams) WithTimeout(timeout time.Duration) *CommitlogMetricsPendingTasksGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the commitlog metrics pending tasks get params -func (o *CommitlogMetricsPendingTasksGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the commitlog metrics pending tasks get params -func (o *CommitlogMetricsPendingTasksGetParams) WithContext(ctx context.Context) *CommitlogMetricsPendingTasksGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the commitlog metrics pending tasks get params -func (o *CommitlogMetricsPendingTasksGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the commitlog metrics pending tasks get params -func (o *CommitlogMetricsPendingTasksGetParams) WithHTTPClient(client *http.Client) *CommitlogMetricsPendingTasksGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the commitlog metrics pending tasks get params -func (o *CommitlogMetricsPendingTasksGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CommitlogMetricsPendingTasksGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_metrics_pending_tasks_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_metrics_pending_tasks_get_responses.go deleted file mode 100644 index 9323a0e1ff..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_metrics_pending_tasks_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CommitlogMetricsPendingTasksGetReader is a Reader for the CommitlogMetricsPendingTasksGet structure. -type CommitlogMetricsPendingTasksGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CommitlogMetricsPendingTasksGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCommitlogMetricsPendingTasksGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCommitlogMetricsPendingTasksGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCommitlogMetricsPendingTasksGetOK creates a CommitlogMetricsPendingTasksGetOK with default headers values -func NewCommitlogMetricsPendingTasksGetOK() *CommitlogMetricsPendingTasksGetOK { - return &CommitlogMetricsPendingTasksGetOK{} -} - -/* -CommitlogMetricsPendingTasksGetOK handles this case with default header values. - -Success -*/ -type CommitlogMetricsPendingTasksGetOK struct { - Payload interface{} -} - -func (o *CommitlogMetricsPendingTasksGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CommitlogMetricsPendingTasksGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCommitlogMetricsPendingTasksGetDefault creates a CommitlogMetricsPendingTasksGetDefault with default headers values -func NewCommitlogMetricsPendingTasksGetDefault(code int) *CommitlogMetricsPendingTasksGetDefault { - return &CommitlogMetricsPendingTasksGetDefault{ - _statusCode: code, - } -} - -/* -CommitlogMetricsPendingTasksGetDefault handles this case with default header values. - -internal server error -*/ -type CommitlogMetricsPendingTasksGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the commitlog metrics pending tasks get default response -func (o *CommitlogMetricsPendingTasksGetDefault) Code() int { - return o._statusCode -} - -func (o *CommitlogMetricsPendingTasksGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CommitlogMetricsPendingTasksGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CommitlogMetricsPendingTasksGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_metrics_total_commit_log_size_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_metrics_total_commit_log_size_get_parameters.go deleted file mode 100644 index c1ddab7221..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_metrics_total_commit_log_size_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCommitlogMetricsTotalCommitLogSizeGetParams creates a new CommitlogMetricsTotalCommitLogSizeGetParams object -// with the default values initialized. -func NewCommitlogMetricsTotalCommitLogSizeGetParams() *CommitlogMetricsTotalCommitLogSizeGetParams { - - return &CommitlogMetricsTotalCommitLogSizeGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCommitlogMetricsTotalCommitLogSizeGetParamsWithTimeout creates a new CommitlogMetricsTotalCommitLogSizeGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCommitlogMetricsTotalCommitLogSizeGetParamsWithTimeout(timeout time.Duration) *CommitlogMetricsTotalCommitLogSizeGetParams { - - return &CommitlogMetricsTotalCommitLogSizeGetParams{ - - timeout: timeout, - } -} - -// NewCommitlogMetricsTotalCommitLogSizeGetParamsWithContext creates a new CommitlogMetricsTotalCommitLogSizeGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCommitlogMetricsTotalCommitLogSizeGetParamsWithContext(ctx context.Context) *CommitlogMetricsTotalCommitLogSizeGetParams { - - return &CommitlogMetricsTotalCommitLogSizeGetParams{ - - Context: ctx, - } -} - -// NewCommitlogMetricsTotalCommitLogSizeGetParamsWithHTTPClient creates a new CommitlogMetricsTotalCommitLogSizeGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCommitlogMetricsTotalCommitLogSizeGetParamsWithHTTPClient(client *http.Client) *CommitlogMetricsTotalCommitLogSizeGetParams { - - return &CommitlogMetricsTotalCommitLogSizeGetParams{ - HTTPClient: client, - } -} - -/* -CommitlogMetricsTotalCommitLogSizeGetParams contains all the parameters to send to the API endpoint -for the commitlog metrics total commit log size get operation typically these are written to a http.Request -*/ -type CommitlogMetricsTotalCommitLogSizeGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the commitlog metrics total commit log size get params -func (o *CommitlogMetricsTotalCommitLogSizeGetParams) WithTimeout(timeout time.Duration) *CommitlogMetricsTotalCommitLogSizeGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the commitlog metrics total commit log size get params -func (o *CommitlogMetricsTotalCommitLogSizeGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the commitlog metrics total commit log size get params -func (o *CommitlogMetricsTotalCommitLogSizeGetParams) WithContext(ctx context.Context) *CommitlogMetricsTotalCommitLogSizeGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the commitlog metrics total commit log size get params -func (o *CommitlogMetricsTotalCommitLogSizeGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the commitlog metrics total commit log size get params -func (o *CommitlogMetricsTotalCommitLogSizeGetParams) WithHTTPClient(client *http.Client) *CommitlogMetricsTotalCommitLogSizeGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the commitlog metrics total commit log size get params -func (o *CommitlogMetricsTotalCommitLogSizeGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CommitlogMetricsTotalCommitLogSizeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_metrics_total_commit_log_size_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_metrics_total_commit_log_size_get_responses.go deleted file mode 100644 index 6f034a3ba5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_metrics_total_commit_log_size_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CommitlogMetricsTotalCommitLogSizeGetReader is a Reader for the CommitlogMetricsTotalCommitLogSizeGet structure. -type CommitlogMetricsTotalCommitLogSizeGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CommitlogMetricsTotalCommitLogSizeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCommitlogMetricsTotalCommitLogSizeGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCommitlogMetricsTotalCommitLogSizeGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCommitlogMetricsTotalCommitLogSizeGetOK creates a CommitlogMetricsTotalCommitLogSizeGetOK with default headers values -func NewCommitlogMetricsTotalCommitLogSizeGetOK() *CommitlogMetricsTotalCommitLogSizeGetOK { - return &CommitlogMetricsTotalCommitLogSizeGetOK{} -} - -/* -CommitlogMetricsTotalCommitLogSizeGetOK handles this case with default header values. - -Success -*/ -type CommitlogMetricsTotalCommitLogSizeGetOK struct { - Payload interface{} -} - -func (o *CommitlogMetricsTotalCommitLogSizeGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CommitlogMetricsTotalCommitLogSizeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCommitlogMetricsTotalCommitLogSizeGetDefault creates a CommitlogMetricsTotalCommitLogSizeGetDefault with default headers values -func NewCommitlogMetricsTotalCommitLogSizeGetDefault(code int) *CommitlogMetricsTotalCommitLogSizeGetDefault { - return &CommitlogMetricsTotalCommitLogSizeGetDefault{ - _statusCode: code, - } -} - -/* -CommitlogMetricsTotalCommitLogSizeGetDefault handles this case with default header values. - -internal server error -*/ -type CommitlogMetricsTotalCommitLogSizeGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the commitlog metrics total commit log size get default response -func (o *CommitlogMetricsTotalCommitLogSizeGetDefault) Code() int { - return o._statusCode -} - -func (o *CommitlogMetricsTotalCommitLogSizeGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CommitlogMetricsTotalCommitLogSizeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CommitlogMetricsTotalCommitLogSizeGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_recover_by_path_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_recover_by_path_post_parameters.go deleted file mode 100644 index 997f83771f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_recover_by_path_post_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCommitlogRecoverByPathPostParams creates a new CommitlogRecoverByPathPostParams object -// with the default values initialized. -func NewCommitlogRecoverByPathPostParams() *CommitlogRecoverByPathPostParams { - var () - return &CommitlogRecoverByPathPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCommitlogRecoverByPathPostParamsWithTimeout creates a new CommitlogRecoverByPathPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCommitlogRecoverByPathPostParamsWithTimeout(timeout time.Duration) *CommitlogRecoverByPathPostParams { - var () - return &CommitlogRecoverByPathPostParams{ - - timeout: timeout, - } -} - -// NewCommitlogRecoverByPathPostParamsWithContext creates a new CommitlogRecoverByPathPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewCommitlogRecoverByPathPostParamsWithContext(ctx context.Context) *CommitlogRecoverByPathPostParams { - var () - return &CommitlogRecoverByPathPostParams{ - - Context: ctx, - } -} - -// NewCommitlogRecoverByPathPostParamsWithHTTPClient creates a new CommitlogRecoverByPathPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCommitlogRecoverByPathPostParamsWithHTTPClient(client *http.Client) *CommitlogRecoverByPathPostParams { - var () - return &CommitlogRecoverByPathPostParams{ - HTTPClient: client, - } -} - -/* -CommitlogRecoverByPathPostParams contains all the parameters to send to the API endpoint -for the commitlog recover by path post operation typically these are written to a http.Request -*/ -type CommitlogRecoverByPathPostParams struct { - - /*Path - Full path of file or directory - - */ - Path string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the commitlog recover by path post params -func (o *CommitlogRecoverByPathPostParams) WithTimeout(timeout time.Duration) *CommitlogRecoverByPathPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the commitlog recover by path post params -func (o *CommitlogRecoverByPathPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the commitlog recover by path post params -func (o *CommitlogRecoverByPathPostParams) WithContext(ctx context.Context) *CommitlogRecoverByPathPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the commitlog recover by path post params -func (o *CommitlogRecoverByPathPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the commitlog recover by path post params -func (o *CommitlogRecoverByPathPostParams) WithHTTPClient(client *http.Client) *CommitlogRecoverByPathPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the commitlog recover by path post params -func (o *CommitlogRecoverByPathPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithPath adds the path to the commitlog recover by path post params -func (o *CommitlogRecoverByPathPostParams) WithPath(path string) *CommitlogRecoverByPathPostParams { - o.SetPath(path) - return o -} - -// SetPath adds the path to the commitlog recover by path post params -func (o *CommitlogRecoverByPathPostParams) SetPath(path string) { - o.Path = path -} - -// WriteToRequest writes these params to a swagger request -func (o *CommitlogRecoverByPathPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param path - if err := r.SetPathParam("path", o.Path); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_recover_by_path_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_recover_by_path_post_responses.go deleted file mode 100644 index bdd28c39b2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_recover_by_path_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CommitlogRecoverByPathPostReader is a Reader for the CommitlogRecoverByPathPost structure. -type CommitlogRecoverByPathPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CommitlogRecoverByPathPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCommitlogRecoverByPathPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCommitlogRecoverByPathPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCommitlogRecoverByPathPostOK creates a CommitlogRecoverByPathPostOK with default headers values -func NewCommitlogRecoverByPathPostOK() *CommitlogRecoverByPathPostOK { - return &CommitlogRecoverByPathPostOK{} -} - -/* -CommitlogRecoverByPathPostOK handles this case with default header values. - -Success -*/ -type CommitlogRecoverByPathPostOK struct { -} - -func (o *CommitlogRecoverByPathPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewCommitlogRecoverByPathPostDefault creates a CommitlogRecoverByPathPostDefault with default headers values -func NewCommitlogRecoverByPathPostDefault(code int) *CommitlogRecoverByPathPostDefault { - return &CommitlogRecoverByPathPostDefault{ - _statusCode: code, - } -} - -/* -CommitlogRecoverByPathPostDefault handles this case with default header values. - -internal server error -*/ -type CommitlogRecoverByPathPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the commitlog recover by path post default response -func (o *CommitlogRecoverByPathPostDefault) Code() int { - return o._statusCode -} - -func (o *CommitlogRecoverByPathPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CommitlogRecoverByPathPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CommitlogRecoverByPathPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_segments_active_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_segments_active_get_parameters.go deleted file mode 100644 index 323b5adbb6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_segments_active_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCommitlogSegmentsActiveGetParams creates a new CommitlogSegmentsActiveGetParams object -// with the default values initialized. -func NewCommitlogSegmentsActiveGetParams() *CommitlogSegmentsActiveGetParams { - - return &CommitlogSegmentsActiveGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCommitlogSegmentsActiveGetParamsWithTimeout creates a new CommitlogSegmentsActiveGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCommitlogSegmentsActiveGetParamsWithTimeout(timeout time.Duration) *CommitlogSegmentsActiveGetParams { - - return &CommitlogSegmentsActiveGetParams{ - - timeout: timeout, - } -} - -// NewCommitlogSegmentsActiveGetParamsWithContext creates a new CommitlogSegmentsActiveGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCommitlogSegmentsActiveGetParamsWithContext(ctx context.Context) *CommitlogSegmentsActiveGetParams { - - return &CommitlogSegmentsActiveGetParams{ - - Context: ctx, - } -} - -// NewCommitlogSegmentsActiveGetParamsWithHTTPClient creates a new CommitlogSegmentsActiveGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCommitlogSegmentsActiveGetParamsWithHTTPClient(client *http.Client) *CommitlogSegmentsActiveGetParams { - - return &CommitlogSegmentsActiveGetParams{ - HTTPClient: client, - } -} - -/* -CommitlogSegmentsActiveGetParams contains all the parameters to send to the API endpoint -for the commitlog segments active get operation typically these are written to a http.Request -*/ -type CommitlogSegmentsActiveGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the commitlog segments active get params -func (o *CommitlogSegmentsActiveGetParams) WithTimeout(timeout time.Duration) *CommitlogSegmentsActiveGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the commitlog segments active get params -func (o *CommitlogSegmentsActiveGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the commitlog segments active get params -func (o *CommitlogSegmentsActiveGetParams) WithContext(ctx context.Context) *CommitlogSegmentsActiveGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the commitlog segments active get params -func (o *CommitlogSegmentsActiveGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the commitlog segments active get params -func (o *CommitlogSegmentsActiveGetParams) WithHTTPClient(client *http.Client) *CommitlogSegmentsActiveGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the commitlog segments active get params -func (o *CommitlogSegmentsActiveGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CommitlogSegmentsActiveGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_segments_active_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_segments_active_get_responses.go deleted file mode 100644 index 71c4967ac2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_segments_active_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CommitlogSegmentsActiveGetReader is a Reader for the CommitlogSegmentsActiveGet structure. -type CommitlogSegmentsActiveGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CommitlogSegmentsActiveGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCommitlogSegmentsActiveGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCommitlogSegmentsActiveGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCommitlogSegmentsActiveGetOK creates a CommitlogSegmentsActiveGetOK with default headers values -func NewCommitlogSegmentsActiveGetOK() *CommitlogSegmentsActiveGetOK { - return &CommitlogSegmentsActiveGetOK{} -} - -/* -CommitlogSegmentsActiveGetOK handles this case with default header values. - -Success -*/ -type CommitlogSegmentsActiveGetOK struct { - Payload []string -} - -func (o *CommitlogSegmentsActiveGetOK) GetPayload() []string { - return o.Payload -} - -func (o *CommitlogSegmentsActiveGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCommitlogSegmentsActiveGetDefault creates a CommitlogSegmentsActiveGetDefault with default headers values -func NewCommitlogSegmentsActiveGetDefault(code int) *CommitlogSegmentsActiveGetDefault { - return &CommitlogSegmentsActiveGetDefault{ - _statusCode: code, - } -} - -/* -CommitlogSegmentsActiveGetDefault handles this case with default header values. - -internal server error -*/ -type CommitlogSegmentsActiveGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the commitlog segments active get default response -func (o *CommitlogSegmentsActiveGetDefault) Code() int { - return o._statusCode -} - -func (o *CommitlogSegmentsActiveGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CommitlogSegmentsActiveGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CommitlogSegmentsActiveGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_segments_archiving_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_segments_archiving_get_parameters.go deleted file mode 100644 index be65a05c36..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_segments_archiving_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCommitlogSegmentsArchivingGetParams creates a new CommitlogSegmentsArchivingGetParams object -// with the default values initialized. -func NewCommitlogSegmentsArchivingGetParams() *CommitlogSegmentsArchivingGetParams { - - return &CommitlogSegmentsArchivingGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCommitlogSegmentsArchivingGetParamsWithTimeout creates a new CommitlogSegmentsArchivingGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCommitlogSegmentsArchivingGetParamsWithTimeout(timeout time.Duration) *CommitlogSegmentsArchivingGetParams { - - return &CommitlogSegmentsArchivingGetParams{ - - timeout: timeout, - } -} - -// NewCommitlogSegmentsArchivingGetParamsWithContext creates a new CommitlogSegmentsArchivingGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCommitlogSegmentsArchivingGetParamsWithContext(ctx context.Context) *CommitlogSegmentsArchivingGetParams { - - return &CommitlogSegmentsArchivingGetParams{ - - Context: ctx, - } -} - -// NewCommitlogSegmentsArchivingGetParamsWithHTTPClient creates a new CommitlogSegmentsArchivingGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCommitlogSegmentsArchivingGetParamsWithHTTPClient(client *http.Client) *CommitlogSegmentsArchivingGetParams { - - return &CommitlogSegmentsArchivingGetParams{ - HTTPClient: client, - } -} - -/* -CommitlogSegmentsArchivingGetParams contains all the parameters to send to the API endpoint -for the commitlog segments archiving get operation typically these are written to a http.Request -*/ -type CommitlogSegmentsArchivingGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the commitlog segments archiving get params -func (o *CommitlogSegmentsArchivingGetParams) WithTimeout(timeout time.Duration) *CommitlogSegmentsArchivingGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the commitlog segments archiving get params -func (o *CommitlogSegmentsArchivingGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the commitlog segments archiving get params -func (o *CommitlogSegmentsArchivingGetParams) WithContext(ctx context.Context) *CommitlogSegmentsArchivingGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the commitlog segments archiving get params -func (o *CommitlogSegmentsArchivingGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the commitlog segments archiving get params -func (o *CommitlogSegmentsArchivingGetParams) WithHTTPClient(client *http.Client) *CommitlogSegmentsArchivingGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the commitlog segments archiving get params -func (o *CommitlogSegmentsArchivingGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CommitlogSegmentsArchivingGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_segments_archiving_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_segments_archiving_get_responses.go deleted file mode 100644 index 4f2df544a0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/commitlog_segments_archiving_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CommitlogSegmentsArchivingGetReader is a Reader for the CommitlogSegmentsArchivingGet structure. -type CommitlogSegmentsArchivingGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CommitlogSegmentsArchivingGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCommitlogSegmentsArchivingGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCommitlogSegmentsArchivingGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCommitlogSegmentsArchivingGetOK creates a CommitlogSegmentsArchivingGetOK with default headers values -func NewCommitlogSegmentsArchivingGetOK() *CommitlogSegmentsArchivingGetOK { - return &CommitlogSegmentsArchivingGetOK{} -} - -/* -CommitlogSegmentsArchivingGetOK handles this case with default header values. - -Success -*/ -type CommitlogSegmentsArchivingGetOK struct { - Payload []string -} - -func (o *CommitlogSegmentsArchivingGetOK) GetPayload() []string { - return o.Payload -} - -func (o *CommitlogSegmentsArchivingGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCommitlogSegmentsArchivingGetDefault creates a CommitlogSegmentsArchivingGetDefault with default headers values -func NewCommitlogSegmentsArchivingGetDefault(code int) *CommitlogSegmentsArchivingGetDefault { - return &CommitlogSegmentsArchivingGetDefault{ - _statusCode: code, - } -} - -/* -CommitlogSegmentsArchivingGetDefault handles this case with default header values. - -internal server error -*/ -type CommitlogSegmentsArchivingGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the commitlog segments archiving get default response -func (o *CommitlogSegmentsArchivingGetDefault) Code() int { - return o._statusCode -} - -func (o *CommitlogSegmentsArchivingGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CommitlogSegmentsArchivingGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CommitlogSegmentsArchivingGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_compaction_history_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_compaction_history_get_parameters.go deleted file mode 100644 index 31580ab19a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_compaction_history_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCompactionManagerCompactionHistoryGetParams creates a new CompactionManagerCompactionHistoryGetParams object -// with the default values initialized. -func NewCompactionManagerCompactionHistoryGetParams() *CompactionManagerCompactionHistoryGetParams { - - return &CompactionManagerCompactionHistoryGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCompactionManagerCompactionHistoryGetParamsWithTimeout creates a new CompactionManagerCompactionHistoryGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCompactionManagerCompactionHistoryGetParamsWithTimeout(timeout time.Duration) *CompactionManagerCompactionHistoryGetParams { - - return &CompactionManagerCompactionHistoryGetParams{ - - timeout: timeout, - } -} - -// NewCompactionManagerCompactionHistoryGetParamsWithContext creates a new CompactionManagerCompactionHistoryGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCompactionManagerCompactionHistoryGetParamsWithContext(ctx context.Context) *CompactionManagerCompactionHistoryGetParams { - - return &CompactionManagerCompactionHistoryGetParams{ - - Context: ctx, - } -} - -// NewCompactionManagerCompactionHistoryGetParamsWithHTTPClient creates a new CompactionManagerCompactionHistoryGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCompactionManagerCompactionHistoryGetParamsWithHTTPClient(client *http.Client) *CompactionManagerCompactionHistoryGetParams { - - return &CompactionManagerCompactionHistoryGetParams{ - HTTPClient: client, - } -} - -/* -CompactionManagerCompactionHistoryGetParams contains all the parameters to send to the API endpoint -for the compaction manager compaction history get operation typically these are written to a http.Request -*/ -type CompactionManagerCompactionHistoryGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the compaction manager compaction history get params -func (o *CompactionManagerCompactionHistoryGetParams) WithTimeout(timeout time.Duration) *CompactionManagerCompactionHistoryGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the compaction manager compaction history get params -func (o *CompactionManagerCompactionHistoryGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the compaction manager compaction history get params -func (o *CompactionManagerCompactionHistoryGetParams) WithContext(ctx context.Context) *CompactionManagerCompactionHistoryGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the compaction manager compaction history get params -func (o *CompactionManagerCompactionHistoryGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the compaction manager compaction history get params -func (o *CompactionManagerCompactionHistoryGetParams) WithHTTPClient(client *http.Client) *CompactionManagerCompactionHistoryGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the compaction manager compaction history get params -func (o *CompactionManagerCompactionHistoryGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CompactionManagerCompactionHistoryGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_compaction_history_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_compaction_history_get_responses.go deleted file mode 100644 index 207a1793aa..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_compaction_history_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CompactionManagerCompactionHistoryGetReader is a Reader for the CompactionManagerCompactionHistoryGet structure. -type CompactionManagerCompactionHistoryGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CompactionManagerCompactionHistoryGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCompactionManagerCompactionHistoryGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCompactionManagerCompactionHistoryGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCompactionManagerCompactionHistoryGetOK creates a CompactionManagerCompactionHistoryGetOK with default headers values -func NewCompactionManagerCompactionHistoryGetOK() *CompactionManagerCompactionHistoryGetOK { - return &CompactionManagerCompactionHistoryGetOK{} -} - -/* -CompactionManagerCompactionHistoryGetOK handles this case with default header values. - -Success -*/ -type CompactionManagerCompactionHistoryGetOK struct { - Payload []*models.History -} - -func (o *CompactionManagerCompactionHistoryGetOK) GetPayload() []*models.History { - return o.Payload -} - -func (o *CompactionManagerCompactionHistoryGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCompactionManagerCompactionHistoryGetDefault creates a CompactionManagerCompactionHistoryGetDefault with default headers values -func NewCompactionManagerCompactionHistoryGetDefault(code int) *CompactionManagerCompactionHistoryGetDefault { - return &CompactionManagerCompactionHistoryGetDefault{ - _statusCode: code, - } -} - -/* -CompactionManagerCompactionHistoryGetDefault handles this case with default header values. - -internal server error -*/ -type CompactionManagerCompactionHistoryGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the compaction manager compaction history get default response -func (o *CompactionManagerCompactionHistoryGetDefault) Code() int { - return o._statusCode -} - -func (o *CompactionManagerCompactionHistoryGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CompactionManagerCompactionHistoryGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CompactionManagerCompactionHistoryGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_compaction_info_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_compaction_info_get_parameters.go deleted file mode 100644 index 67c8639f06..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_compaction_info_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCompactionManagerCompactionInfoGetParams creates a new CompactionManagerCompactionInfoGetParams object -// with the default values initialized. -func NewCompactionManagerCompactionInfoGetParams() *CompactionManagerCompactionInfoGetParams { - - return &CompactionManagerCompactionInfoGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCompactionManagerCompactionInfoGetParamsWithTimeout creates a new CompactionManagerCompactionInfoGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCompactionManagerCompactionInfoGetParamsWithTimeout(timeout time.Duration) *CompactionManagerCompactionInfoGetParams { - - return &CompactionManagerCompactionInfoGetParams{ - - timeout: timeout, - } -} - -// NewCompactionManagerCompactionInfoGetParamsWithContext creates a new CompactionManagerCompactionInfoGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCompactionManagerCompactionInfoGetParamsWithContext(ctx context.Context) *CompactionManagerCompactionInfoGetParams { - - return &CompactionManagerCompactionInfoGetParams{ - - Context: ctx, - } -} - -// NewCompactionManagerCompactionInfoGetParamsWithHTTPClient creates a new CompactionManagerCompactionInfoGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCompactionManagerCompactionInfoGetParamsWithHTTPClient(client *http.Client) *CompactionManagerCompactionInfoGetParams { - - return &CompactionManagerCompactionInfoGetParams{ - HTTPClient: client, - } -} - -/* -CompactionManagerCompactionInfoGetParams contains all the parameters to send to the API endpoint -for the compaction manager compaction info get operation typically these are written to a http.Request -*/ -type CompactionManagerCompactionInfoGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the compaction manager compaction info get params -func (o *CompactionManagerCompactionInfoGetParams) WithTimeout(timeout time.Duration) *CompactionManagerCompactionInfoGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the compaction manager compaction info get params -func (o *CompactionManagerCompactionInfoGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the compaction manager compaction info get params -func (o *CompactionManagerCompactionInfoGetParams) WithContext(ctx context.Context) *CompactionManagerCompactionInfoGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the compaction manager compaction info get params -func (o *CompactionManagerCompactionInfoGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the compaction manager compaction info get params -func (o *CompactionManagerCompactionInfoGetParams) WithHTTPClient(client *http.Client) *CompactionManagerCompactionInfoGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the compaction manager compaction info get params -func (o *CompactionManagerCompactionInfoGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CompactionManagerCompactionInfoGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_compaction_info_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_compaction_info_get_responses.go deleted file mode 100644 index 19db4d2374..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_compaction_info_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CompactionManagerCompactionInfoGetReader is a Reader for the CompactionManagerCompactionInfoGet structure. -type CompactionManagerCompactionInfoGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CompactionManagerCompactionInfoGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCompactionManagerCompactionInfoGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCompactionManagerCompactionInfoGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCompactionManagerCompactionInfoGetOK creates a CompactionManagerCompactionInfoGetOK with default headers values -func NewCompactionManagerCompactionInfoGetOK() *CompactionManagerCompactionInfoGetOK { - return &CompactionManagerCompactionInfoGetOK{} -} - -/* -CompactionManagerCompactionInfoGetOK handles this case with default header values. - -Success -*/ -type CompactionManagerCompactionInfoGetOK struct { - Payload []*models.CompactionInfo -} - -func (o *CompactionManagerCompactionInfoGetOK) GetPayload() []*models.CompactionInfo { - return o.Payload -} - -func (o *CompactionManagerCompactionInfoGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCompactionManagerCompactionInfoGetDefault creates a CompactionManagerCompactionInfoGetDefault with default headers values -func NewCompactionManagerCompactionInfoGetDefault(code int) *CompactionManagerCompactionInfoGetDefault { - return &CompactionManagerCompactionInfoGetDefault{ - _statusCode: code, - } -} - -/* -CompactionManagerCompactionInfoGetDefault handles this case with default header values. - -internal server error -*/ -type CompactionManagerCompactionInfoGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the compaction manager compaction info get default response -func (o *CompactionManagerCompactionInfoGetDefault) Code() int { - return o._statusCode -} - -func (o *CompactionManagerCompactionInfoGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CompactionManagerCompactionInfoGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CompactionManagerCompactionInfoGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_compactions_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_compactions_get_parameters.go deleted file mode 100644 index 5ee958a989..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_compactions_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCompactionManagerCompactionsGetParams creates a new CompactionManagerCompactionsGetParams object -// with the default values initialized. -func NewCompactionManagerCompactionsGetParams() *CompactionManagerCompactionsGetParams { - - return &CompactionManagerCompactionsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCompactionManagerCompactionsGetParamsWithTimeout creates a new CompactionManagerCompactionsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCompactionManagerCompactionsGetParamsWithTimeout(timeout time.Duration) *CompactionManagerCompactionsGetParams { - - return &CompactionManagerCompactionsGetParams{ - - timeout: timeout, - } -} - -// NewCompactionManagerCompactionsGetParamsWithContext creates a new CompactionManagerCompactionsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCompactionManagerCompactionsGetParamsWithContext(ctx context.Context) *CompactionManagerCompactionsGetParams { - - return &CompactionManagerCompactionsGetParams{ - - Context: ctx, - } -} - -// NewCompactionManagerCompactionsGetParamsWithHTTPClient creates a new CompactionManagerCompactionsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCompactionManagerCompactionsGetParamsWithHTTPClient(client *http.Client) *CompactionManagerCompactionsGetParams { - - return &CompactionManagerCompactionsGetParams{ - HTTPClient: client, - } -} - -/* -CompactionManagerCompactionsGetParams contains all the parameters to send to the API endpoint -for the compaction manager compactions get operation typically these are written to a http.Request -*/ -type CompactionManagerCompactionsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the compaction manager compactions get params -func (o *CompactionManagerCompactionsGetParams) WithTimeout(timeout time.Duration) *CompactionManagerCompactionsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the compaction manager compactions get params -func (o *CompactionManagerCompactionsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the compaction manager compactions get params -func (o *CompactionManagerCompactionsGetParams) WithContext(ctx context.Context) *CompactionManagerCompactionsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the compaction manager compactions get params -func (o *CompactionManagerCompactionsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the compaction manager compactions get params -func (o *CompactionManagerCompactionsGetParams) WithHTTPClient(client *http.Client) *CompactionManagerCompactionsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the compaction manager compactions get params -func (o *CompactionManagerCompactionsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CompactionManagerCompactionsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_compactions_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_compactions_get_responses.go deleted file mode 100644 index 97ee7e14b6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_compactions_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CompactionManagerCompactionsGetReader is a Reader for the CompactionManagerCompactionsGet structure. -type CompactionManagerCompactionsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CompactionManagerCompactionsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCompactionManagerCompactionsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCompactionManagerCompactionsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCompactionManagerCompactionsGetOK creates a CompactionManagerCompactionsGetOK with default headers values -func NewCompactionManagerCompactionsGetOK() *CompactionManagerCompactionsGetOK { - return &CompactionManagerCompactionsGetOK{} -} - -/* -CompactionManagerCompactionsGetOK handles this case with default header values. - -Success -*/ -type CompactionManagerCompactionsGetOK struct { - Payload []*models.Summary -} - -func (o *CompactionManagerCompactionsGetOK) GetPayload() []*models.Summary { - return o.Payload -} - -func (o *CompactionManagerCompactionsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCompactionManagerCompactionsGetDefault creates a CompactionManagerCompactionsGetDefault with default headers values -func NewCompactionManagerCompactionsGetDefault(code int) *CompactionManagerCompactionsGetDefault { - return &CompactionManagerCompactionsGetDefault{ - _statusCode: code, - } -} - -/* -CompactionManagerCompactionsGetDefault handles this case with default header values. - -internal server error -*/ -type CompactionManagerCompactionsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the compaction manager compactions get default response -func (o *CompactionManagerCompactionsGetDefault) Code() int { - return o._statusCode -} - -func (o *CompactionManagerCompactionsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CompactionManagerCompactionsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CompactionManagerCompactionsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_force_user_defined_compaction_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_force_user_defined_compaction_post_parameters.go deleted file mode 100644 index 6348a41ad6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_force_user_defined_compaction_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCompactionManagerForceUserDefinedCompactionPostParams creates a new CompactionManagerForceUserDefinedCompactionPostParams object -// with the default values initialized. -func NewCompactionManagerForceUserDefinedCompactionPostParams() *CompactionManagerForceUserDefinedCompactionPostParams { - var () - return &CompactionManagerForceUserDefinedCompactionPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCompactionManagerForceUserDefinedCompactionPostParamsWithTimeout creates a new CompactionManagerForceUserDefinedCompactionPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCompactionManagerForceUserDefinedCompactionPostParamsWithTimeout(timeout time.Duration) *CompactionManagerForceUserDefinedCompactionPostParams { - var () - return &CompactionManagerForceUserDefinedCompactionPostParams{ - - timeout: timeout, - } -} - -// NewCompactionManagerForceUserDefinedCompactionPostParamsWithContext creates a new CompactionManagerForceUserDefinedCompactionPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewCompactionManagerForceUserDefinedCompactionPostParamsWithContext(ctx context.Context) *CompactionManagerForceUserDefinedCompactionPostParams { - var () - return &CompactionManagerForceUserDefinedCompactionPostParams{ - - Context: ctx, - } -} - -// NewCompactionManagerForceUserDefinedCompactionPostParamsWithHTTPClient creates a new CompactionManagerForceUserDefinedCompactionPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCompactionManagerForceUserDefinedCompactionPostParamsWithHTTPClient(client *http.Client) *CompactionManagerForceUserDefinedCompactionPostParams { - var () - return &CompactionManagerForceUserDefinedCompactionPostParams{ - HTTPClient: client, - } -} - -/* -CompactionManagerForceUserDefinedCompactionPostParams contains all the parameters to send to the API endpoint -for the compaction manager force user defined compaction post operation typically these are written to a http.Request -*/ -type CompactionManagerForceUserDefinedCompactionPostParams struct { - - /*DataFiles - a comma separated list of sstable file to compact. must contain keyspace and columnfamily name in path(for 2.1+) or file name itself - - */ - DataFiles string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the compaction manager force user defined compaction post params -func (o *CompactionManagerForceUserDefinedCompactionPostParams) WithTimeout(timeout time.Duration) *CompactionManagerForceUserDefinedCompactionPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the compaction manager force user defined compaction post params -func (o *CompactionManagerForceUserDefinedCompactionPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the compaction manager force user defined compaction post params -func (o *CompactionManagerForceUserDefinedCompactionPostParams) WithContext(ctx context.Context) *CompactionManagerForceUserDefinedCompactionPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the compaction manager force user defined compaction post params -func (o *CompactionManagerForceUserDefinedCompactionPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the compaction manager force user defined compaction post params -func (o *CompactionManagerForceUserDefinedCompactionPostParams) WithHTTPClient(client *http.Client) *CompactionManagerForceUserDefinedCompactionPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the compaction manager force user defined compaction post params -func (o *CompactionManagerForceUserDefinedCompactionPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithDataFiles adds the dataFiles to the compaction manager force user defined compaction post params -func (o *CompactionManagerForceUserDefinedCompactionPostParams) WithDataFiles(dataFiles string) *CompactionManagerForceUserDefinedCompactionPostParams { - o.SetDataFiles(dataFiles) - return o -} - -// SetDataFiles adds the dataFiles to the compaction manager force user defined compaction post params -func (o *CompactionManagerForceUserDefinedCompactionPostParams) SetDataFiles(dataFiles string) { - o.DataFiles = dataFiles -} - -// WriteToRequest writes these params to a swagger request -func (o *CompactionManagerForceUserDefinedCompactionPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param data_files - qrDataFiles := o.DataFiles - qDataFiles := qrDataFiles - if qDataFiles != "" { - if err := r.SetQueryParam("data_files", qDataFiles); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_force_user_defined_compaction_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_force_user_defined_compaction_post_responses.go deleted file mode 100644 index 3bffaf621c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_force_user_defined_compaction_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CompactionManagerForceUserDefinedCompactionPostReader is a Reader for the CompactionManagerForceUserDefinedCompactionPost structure. -type CompactionManagerForceUserDefinedCompactionPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CompactionManagerForceUserDefinedCompactionPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCompactionManagerForceUserDefinedCompactionPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCompactionManagerForceUserDefinedCompactionPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCompactionManagerForceUserDefinedCompactionPostOK creates a CompactionManagerForceUserDefinedCompactionPostOK with default headers values -func NewCompactionManagerForceUserDefinedCompactionPostOK() *CompactionManagerForceUserDefinedCompactionPostOK { - return &CompactionManagerForceUserDefinedCompactionPostOK{} -} - -/* -CompactionManagerForceUserDefinedCompactionPostOK handles this case with default header values. - -Success -*/ -type CompactionManagerForceUserDefinedCompactionPostOK struct { -} - -func (o *CompactionManagerForceUserDefinedCompactionPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewCompactionManagerForceUserDefinedCompactionPostDefault creates a CompactionManagerForceUserDefinedCompactionPostDefault with default headers values -func NewCompactionManagerForceUserDefinedCompactionPostDefault(code int) *CompactionManagerForceUserDefinedCompactionPostDefault { - return &CompactionManagerForceUserDefinedCompactionPostDefault{ - _statusCode: code, - } -} - -/* -CompactionManagerForceUserDefinedCompactionPostDefault handles this case with default header values. - -internal server error -*/ -type CompactionManagerForceUserDefinedCompactionPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the compaction manager force user defined compaction post default response -func (o *CompactionManagerForceUserDefinedCompactionPostDefault) Code() int { - return o._statusCode -} - -func (o *CompactionManagerForceUserDefinedCompactionPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CompactionManagerForceUserDefinedCompactionPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CompactionManagerForceUserDefinedCompactionPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_bytes_compacted_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_bytes_compacted_get_parameters.go deleted file mode 100644 index 1d92ae983d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_bytes_compacted_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCompactionManagerMetricsBytesCompactedGetParams creates a new CompactionManagerMetricsBytesCompactedGetParams object -// with the default values initialized. -func NewCompactionManagerMetricsBytesCompactedGetParams() *CompactionManagerMetricsBytesCompactedGetParams { - - return &CompactionManagerMetricsBytesCompactedGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCompactionManagerMetricsBytesCompactedGetParamsWithTimeout creates a new CompactionManagerMetricsBytesCompactedGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCompactionManagerMetricsBytesCompactedGetParamsWithTimeout(timeout time.Duration) *CompactionManagerMetricsBytesCompactedGetParams { - - return &CompactionManagerMetricsBytesCompactedGetParams{ - - timeout: timeout, - } -} - -// NewCompactionManagerMetricsBytesCompactedGetParamsWithContext creates a new CompactionManagerMetricsBytesCompactedGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCompactionManagerMetricsBytesCompactedGetParamsWithContext(ctx context.Context) *CompactionManagerMetricsBytesCompactedGetParams { - - return &CompactionManagerMetricsBytesCompactedGetParams{ - - Context: ctx, - } -} - -// NewCompactionManagerMetricsBytesCompactedGetParamsWithHTTPClient creates a new CompactionManagerMetricsBytesCompactedGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCompactionManagerMetricsBytesCompactedGetParamsWithHTTPClient(client *http.Client) *CompactionManagerMetricsBytesCompactedGetParams { - - return &CompactionManagerMetricsBytesCompactedGetParams{ - HTTPClient: client, - } -} - -/* -CompactionManagerMetricsBytesCompactedGetParams contains all the parameters to send to the API endpoint -for the compaction manager metrics bytes compacted get operation typically these are written to a http.Request -*/ -type CompactionManagerMetricsBytesCompactedGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the compaction manager metrics bytes compacted get params -func (o *CompactionManagerMetricsBytesCompactedGetParams) WithTimeout(timeout time.Duration) *CompactionManagerMetricsBytesCompactedGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the compaction manager metrics bytes compacted get params -func (o *CompactionManagerMetricsBytesCompactedGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the compaction manager metrics bytes compacted get params -func (o *CompactionManagerMetricsBytesCompactedGetParams) WithContext(ctx context.Context) *CompactionManagerMetricsBytesCompactedGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the compaction manager metrics bytes compacted get params -func (o *CompactionManagerMetricsBytesCompactedGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the compaction manager metrics bytes compacted get params -func (o *CompactionManagerMetricsBytesCompactedGetParams) WithHTTPClient(client *http.Client) *CompactionManagerMetricsBytesCompactedGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the compaction manager metrics bytes compacted get params -func (o *CompactionManagerMetricsBytesCompactedGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CompactionManagerMetricsBytesCompactedGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_bytes_compacted_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_bytes_compacted_get_responses.go deleted file mode 100644 index 0413158101..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_bytes_compacted_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CompactionManagerMetricsBytesCompactedGetReader is a Reader for the CompactionManagerMetricsBytesCompactedGet structure. -type CompactionManagerMetricsBytesCompactedGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CompactionManagerMetricsBytesCompactedGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCompactionManagerMetricsBytesCompactedGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCompactionManagerMetricsBytesCompactedGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCompactionManagerMetricsBytesCompactedGetOK creates a CompactionManagerMetricsBytesCompactedGetOK with default headers values -func NewCompactionManagerMetricsBytesCompactedGetOK() *CompactionManagerMetricsBytesCompactedGetOK { - return &CompactionManagerMetricsBytesCompactedGetOK{} -} - -/* -CompactionManagerMetricsBytesCompactedGetOK handles this case with default header values. - -Success -*/ -type CompactionManagerMetricsBytesCompactedGetOK struct { - Payload int32 -} - -func (o *CompactionManagerMetricsBytesCompactedGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *CompactionManagerMetricsBytesCompactedGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCompactionManagerMetricsBytesCompactedGetDefault creates a CompactionManagerMetricsBytesCompactedGetDefault with default headers values -func NewCompactionManagerMetricsBytesCompactedGetDefault(code int) *CompactionManagerMetricsBytesCompactedGetDefault { - return &CompactionManagerMetricsBytesCompactedGetDefault{ - _statusCode: code, - } -} - -/* -CompactionManagerMetricsBytesCompactedGetDefault handles this case with default header values. - -internal server error -*/ -type CompactionManagerMetricsBytesCompactedGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the compaction manager metrics bytes compacted get default response -func (o *CompactionManagerMetricsBytesCompactedGetDefault) Code() int { - return o._statusCode -} - -func (o *CompactionManagerMetricsBytesCompactedGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CompactionManagerMetricsBytesCompactedGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CompactionManagerMetricsBytesCompactedGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_completed_tasks_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_completed_tasks_get_parameters.go deleted file mode 100644 index 778934a81b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_completed_tasks_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCompactionManagerMetricsCompletedTasksGetParams creates a new CompactionManagerMetricsCompletedTasksGetParams object -// with the default values initialized. -func NewCompactionManagerMetricsCompletedTasksGetParams() *CompactionManagerMetricsCompletedTasksGetParams { - - return &CompactionManagerMetricsCompletedTasksGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCompactionManagerMetricsCompletedTasksGetParamsWithTimeout creates a new CompactionManagerMetricsCompletedTasksGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCompactionManagerMetricsCompletedTasksGetParamsWithTimeout(timeout time.Duration) *CompactionManagerMetricsCompletedTasksGetParams { - - return &CompactionManagerMetricsCompletedTasksGetParams{ - - timeout: timeout, - } -} - -// NewCompactionManagerMetricsCompletedTasksGetParamsWithContext creates a new CompactionManagerMetricsCompletedTasksGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCompactionManagerMetricsCompletedTasksGetParamsWithContext(ctx context.Context) *CompactionManagerMetricsCompletedTasksGetParams { - - return &CompactionManagerMetricsCompletedTasksGetParams{ - - Context: ctx, - } -} - -// NewCompactionManagerMetricsCompletedTasksGetParamsWithHTTPClient creates a new CompactionManagerMetricsCompletedTasksGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCompactionManagerMetricsCompletedTasksGetParamsWithHTTPClient(client *http.Client) *CompactionManagerMetricsCompletedTasksGetParams { - - return &CompactionManagerMetricsCompletedTasksGetParams{ - HTTPClient: client, - } -} - -/* -CompactionManagerMetricsCompletedTasksGetParams contains all the parameters to send to the API endpoint -for the compaction manager metrics completed tasks get operation typically these are written to a http.Request -*/ -type CompactionManagerMetricsCompletedTasksGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the compaction manager metrics completed tasks get params -func (o *CompactionManagerMetricsCompletedTasksGetParams) WithTimeout(timeout time.Duration) *CompactionManagerMetricsCompletedTasksGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the compaction manager metrics completed tasks get params -func (o *CompactionManagerMetricsCompletedTasksGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the compaction manager metrics completed tasks get params -func (o *CompactionManagerMetricsCompletedTasksGetParams) WithContext(ctx context.Context) *CompactionManagerMetricsCompletedTasksGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the compaction manager metrics completed tasks get params -func (o *CompactionManagerMetricsCompletedTasksGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the compaction manager metrics completed tasks get params -func (o *CompactionManagerMetricsCompletedTasksGetParams) WithHTTPClient(client *http.Client) *CompactionManagerMetricsCompletedTasksGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the compaction manager metrics completed tasks get params -func (o *CompactionManagerMetricsCompletedTasksGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CompactionManagerMetricsCompletedTasksGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_completed_tasks_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_completed_tasks_get_responses.go deleted file mode 100644 index 45ec1c2b6e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_completed_tasks_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CompactionManagerMetricsCompletedTasksGetReader is a Reader for the CompactionManagerMetricsCompletedTasksGet structure. -type CompactionManagerMetricsCompletedTasksGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CompactionManagerMetricsCompletedTasksGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCompactionManagerMetricsCompletedTasksGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCompactionManagerMetricsCompletedTasksGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCompactionManagerMetricsCompletedTasksGetOK creates a CompactionManagerMetricsCompletedTasksGetOK with default headers values -func NewCompactionManagerMetricsCompletedTasksGetOK() *CompactionManagerMetricsCompletedTasksGetOK { - return &CompactionManagerMetricsCompletedTasksGetOK{} -} - -/* -CompactionManagerMetricsCompletedTasksGetOK handles this case with default header values. - -Success -*/ -type CompactionManagerMetricsCompletedTasksGetOK struct { - Payload interface{} -} - -func (o *CompactionManagerMetricsCompletedTasksGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CompactionManagerMetricsCompletedTasksGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCompactionManagerMetricsCompletedTasksGetDefault creates a CompactionManagerMetricsCompletedTasksGetDefault with default headers values -func NewCompactionManagerMetricsCompletedTasksGetDefault(code int) *CompactionManagerMetricsCompletedTasksGetDefault { - return &CompactionManagerMetricsCompletedTasksGetDefault{ - _statusCode: code, - } -} - -/* -CompactionManagerMetricsCompletedTasksGetDefault handles this case with default header values. - -internal server error -*/ -type CompactionManagerMetricsCompletedTasksGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the compaction manager metrics completed tasks get default response -func (o *CompactionManagerMetricsCompletedTasksGetDefault) Code() int { - return o._statusCode -} - -func (o *CompactionManagerMetricsCompletedTasksGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CompactionManagerMetricsCompletedTasksGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CompactionManagerMetricsCompletedTasksGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_pending_tasks_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_pending_tasks_get_parameters.go deleted file mode 100644 index 17297c4ab7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_pending_tasks_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCompactionManagerMetricsPendingTasksGetParams creates a new CompactionManagerMetricsPendingTasksGetParams object -// with the default values initialized. -func NewCompactionManagerMetricsPendingTasksGetParams() *CompactionManagerMetricsPendingTasksGetParams { - - return &CompactionManagerMetricsPendingTasksGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCompactionManagerMetricsPendingTasksGetParamsWithTimeout creates a new CompactionManagerMetricsPendingTasksGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCompactionManagerMetricsPendingTasksGetParamsWithTimeout(timeout time.Duration) *CompactionManagerMetricsPendingTasksGetParams { - - return &CompactionManagerMetricsPendingTasksGetParams{ - - timeout: timeout, - } -} - -// NewCompactionManagerMetricsPendingTasksGetParamsWithContext creates a new CompactionManagerMetricsPendingTasksGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCompactionManagerMetricsPendingTasksGetParamsWithContext(ctx context.Context) *CompactionManagerMetricsPendingTasksGetParams { - - return &CompactionManagerMetricsPendingTasksGetParams{ - - Context: ctx, - } -} - -// NewCompactionManagerMetricsPendingTasksGetParamsWithHTTPClient creates a new CompactionManagerMetricsPendingTasksGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCompactionManagerMetricsPendingTasksGetParamsWithHTTPClient(client *http.Client) *CompactionManagerMetricsPendingTasksGetParams { - - return &CompactionManagerMetricsPendingTasksGetParams{ - HTTPClient: client, - } -} - -/* -CompactionManagerMetricsPendingTasksGetParams contains all the parameters to send to the API endpoint -for the compaction manager metrics pending tasks get operation typically these are written to a http.Request -*/ -type CompactionManagerMetricsPendingTasksGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the compaction manager metrics pending tasks get params -func (o *CompactionManagerMetricsPendingTasksGetParams) WithTimeout(timeout time.Duration) *CompactionManagerMetricsPendingTasksGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the compaction manager metrics pending tasks get params -func (o *CompactionManagerMetricsPendingTasksGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the compaction manager metrics pending tasks get params -func (o *CompactionManagerMetricsPendingTasksGetParams) WithContext(ctx context.Context) *CompactionManagerMetricsPendingTasksGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the compaction manager metrics pending tasks get params -func (o *CompactionManagerMetricsPendingTasksGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the compaction manager metrics pending tasks get params -func (o *CompactionManagerMetricsPendingTasksGetParams) WithHTTPClient(client *http.Client) *CompactionManagerMetricsPendingTasksGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the compaction manager metrics pending tasks get params -func (o *CompactionManagerMetricsPendingTasksGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CompactionManagerMetricsPendingTasksGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_pending_tasks_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_pending_tasks_get_responses.go deleted file mode 100644 index d734e3d652..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_pending_tasks_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CompactionManagerMetricsPendingTasksGetReader is a Reader for the CompactionManagerMetricsPendingTasksGet structure. -type CompactionManagerMetricsPendingTasksGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CompactionManagerMetricsPendingTasksGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCompactionManagerMetricsPendingTasksGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCompactionManagerMetricsPendingTasksGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCompactionManagerMetricsPendingTasksGetOK creates a CompactionManagerMetricsPendingTasksGetOK with default headers values -func NewCompactionManagerMetricsPendingTasksGetOK() *CompactionManagerMetricsPendingTasksGetOK { - return &CompactionManagerMetricsPendingTasksGetOK{} -} - -/* -CompactionManagerMetricsPendingTasksGetOK handles this case with default header values. - -Success -*/ -type CompactionManagerMetricsPendingTasksGetOK struct { - Payload int32 -} - -func (o *CompactionManagerMetricsPendingTasksGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *CompactionManagerMetricsPendingTasksGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCompactionManagerMetricsPendingTasksGetDefault creates a CompactionManagerMetricsPendingTasksGetDefault with default headers values -func NewCompactionManagerMetricsPendingTasksGetDefault(code int) *CompactionManagerMetricsPendingTasksGetDefault { - return &CompactionManagerMetricsPendingTasksGetDefault{ - _statusCode: code, - } -} - -/* -CompactionManagerMetricsPendingTasksGetDefault handles this case with default header values. - -internal server error -*/ -type CompactionManagerMetricsPendingTasksGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the compaction manager metrics pending tasks get default response -func (o *CompactionManagerMetricsPendingTasksGetDefault) Code() int { - return o._statusCode -} - -func (o *CompactionManagerMetricsPendingTasksGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CompactionManagerMetricsPendingTasksGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CompactionManagerMetricsPendingTasksGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_total_compactions_completed_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_total_compactions_completed_get_parameters.go deleted file mode 100644 index 141f74f760..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_total_compactions_completed_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCompactionManagerMetricsTotalCompactionsCompletedGetParams creates a new CompactionManagerMetricsTotalCompactionsCompletedGetParams object -// with the default values initialized. -func NewCompactionManagerMetricsTotalCompactionsCompletedGetParams() *CompactionManagerMetricsTotalCompactionsCompletedGetParams { - - return &CompactionManagerMetricsTotalCompactionsCompletedGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCompactionManagerMetricsTotalCompactionsCompletedGetParamsWithTimeout creates a new CompactionManagerMetricsTotalCompactionsCompletedGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCompactionManagerMetricsTotalCompactionsCompletedGetParamsWithTimeout(timeout time.Duration) *CompactionManagerMetricsTotalCompactionsCompletedGetParams { - - return &CompactionManagerMetricsTotalCompactionsCompletedGetParams{ - - timeout: timeout, - } -} - -// NewCompactionManagerMetricsTotalCompactionsCompletedGetParamsWithContext creates a new CompactionManagerMetricsTotalCompactionsCompletedGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewCompactionManagerMetricsTotalCompactionsCompletedGetParamsWithContext(ctx context.Context) *CompactionManagerMetricsTotalCompactionsCompletedGetParams { - - return &CompactionManagerMetricsTotalCompactionsCompletedGetParams{ - - Context: ctx, - } -} - -// NewCompactionManagerMetricsTotalCompactionsCompletedGetParamsWithHTTPClient creates a new CompactionManagerMetricsTotalCompactionsCompletedGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCompactionManagerMetricsTotalCompactionsCompletedGetParamsWithHTTPClient(client *http.Client) *CompactionManagerMetricsTotalCompactionsCompletedGetParams { - - return &CompactionManagerMetricsTotalCompactionsCompletedGetParams{ - HTTPClient: client, - } -} - -/* -CompactionManagerMetricsTotalCompactionsCompletedGetParams contains all the parameters to send to the API endpoint -for the compaction manager metrics total compactions completed get operation typically these are written to a http.Request -*/ -type CompactionManagerMetricsTotalCompactionsCompletedGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the compaction manager metrics total compactions completed get params -func (o *CompactionManagerMetricsTotalCompactionsCompletedGetParams) WithTimeout(timeout time.Duration) *CompactionManagerMetricsTotalCompactionsCompletedGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the compaction manager metrics total compactions completed get params -func (o *CompactionManagerMetricsTotalCompactionsCompletedGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the compaction manager metrics total compactions completed get params -func (o *CompactionManagerMetricsTotalCompactionsCompletedGetParams) WithContext(ctx context.Context) *CompactionManagerMetricsTotalCompactionsCompletedGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the compaction manager metrics total compactions completed get params -func (o *CompactionManagerMetricsTotalCompactionsCompletedGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the compaction manager metrics total compactions completed get params -func (o *CompactionManagerMetricsTotalCompactionsCompletedGetParams) WithHTTPClient(client *http.Client) *CompactionManagerMetricsTotalCompactionsCompletedGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the compaction manager metrics total compactions completed get params -func (o *CompactionManagerMetricsTotalCompactionsCompletedGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *CompactionManagerMetricsTotalCompactionsCompletedGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_total_compactions_completed_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_total_compactions_completed_get_responses.go deleted file mode 100644 index abe52c13e7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_metrics_total_compactions_completed_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CompactionManagerMetricsTotalCompactionsCompletedGetReader is a Reader for the CompactionManagerMetricsTotalCompactionsCompletedGet structure. -type CompactionManagerMetricsTotalCompactionsCompletedGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CompactionManagerMetricsTotalCompactionsCompletedGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCompactionManagerMetricsTotalCompactionsCompletedGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCompactionManagerMetricsTotalCompactionsCompletedGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCompactionManagerMetricsTotalCompactionsCompletedGetOK creates a CompactionManagerMetricsTotalCompactionsCompletedGetOK with default headers values -func NewCompactionManagerMetricsTotalCompactionsCompletedGetOK() *CompactionManagerMetricsTotalCompactionsCompletedGetOK { - return &CompactionManagerMetricsTotalCompactionsCompletedGetOK{} -} - -/* -CompactionManagerMetricsTotalCompactionsCompletedGetOK handles this case with default header values. - -Success -*/ -type CompactionManagerMetricsTotalCompactionsCompletedGetOK struct { - Payload interface{} -} - -func (o *CompactionManagerMetricsTotalCompactionsCompletedGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *CompactionManagerMetricsTotalCompactionsCompletedGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewCompactionManagerMetricsTotalCompactionsCompletedGetDefault creates a CompactionManagerMetricsTotalCompactionsCompletedGetDefault with default headers values -func NewCompactionManagerMetricsTotalCompactionsCompletedGetDefault(code int) *CompactionManagerMetricsTotalCompactionsCompletedGetDefault { - return &CompactionManagerMetricsTotalCompactionsCompletedGetDefault{ - _statusCode: code, - } -} - -/* -CompactionManagerMetricsTotalCompactionsCompletedGetDefault handles this case with default header values. - -internal server error -*/ -type CompactionManagerMetricsTotalCompactionsCompletedGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the compaction manager metrics total compactions completed get default response -func (o *CompactionManagerMetricsTotalCompactionsCompletedGetDefault) Code() int { - return o._statusCode -} - -func (o *CompactionManagerMetricsTotalCompactionsCompletedGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CompactionManagerMetricsTotalCompactionsCompletedGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CompactionManagerMetricsTotalCompactionsCompletedGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_stop_compaction_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_stop_compaction_post_parameters.go deleted file mode 100644 index 6a27b1d329..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_stop_compaction_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewCompactionManagerStopCompactionPostParams creates a new CompactionManagerStopCompactionPostParams object -// with the default values initialized. -func NewCompactionManagerStopCompactionPostParams() *CompactionManagerStopCompactionPostParams { - var () - return &CompactionManagerStopCompactionPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewCompactionManagerStopCompactionPostParamsWithTimeout creates a new CompactionManagerStopCompactionPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewCompactionManagerStopCompactionPostParamsWithTimeout(timeout time.Duration) *CompactionManagerStopCompactionPostParams { - var () - return &CompactionManagerStopCompactionPostParams{ - - timeout: timeout, - } -} - -// NewCompactionManagerStopCompactionPostParamsWithContext creates a new CompactionManagerStopCompactionPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewCompactionManagerStopCompactionPostParamsWithContext(ctx context.Context) *CompactionManagerStopCompactionPostParams { - var () - return &CompactionManagerStopCompactionPostParams{ - - Context: ctx, - } -} - -// NewCompactionManagerStopCompactionPostParamsWithHTTPClient creates a new CompactionManagerStopCompactionPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewCompactionManagerStopCompactionPostParamsWithHTTPClient(client *http.Client) *CompactionManagerStopCompactionPostParams { - var () - return &CompactionManagerStopCompactionPostParams{ - HTTPClient: client, - } -} - -/* -CompactionManagerStopCompactionPostParams contains all the parameters to send to the API endpoint -for the compaction manager stop compaction post operation typically these are written to a http.Request -*/ -type CompactionManagerStopCompactionPostParams struct { - - /*Type - the type of compaction to stop. Can be one of: - COMPACTION - VALIDATION - CLEANUP - SCRUB - INDEX_BUILD - - */ - Type string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the compaction manager stop compaction post params -func (o *CompactionManagerStopCompactionPostParams) WithTimeout(timeout time.Duration) *CompactionManagerStopCompactionPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the compaction manager stop compaction post params -func (o *CompactionManagerStopCompactionPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the compaction manager stop compaction post params -func (o *CompactionManagerStopCompactionPostParams) WithContext(ctx context.Context) *CompactionManagerStopCompactionPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the compaction manager stop compaction post params -func (o *CompactionManagerStopCompactionPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the compaction manager stop compaction post params -func (o *CompactionManagerStopCompactionPostParams) WithHTTPClient(client *http.Client) *CompactionManagerStopCompactionPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the compaction manager stop compaction post params -func (o *CompactionManagerStopCompactionPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithType adds the typeVar to the compaction manager stop compaction post params -func (o *CompactionManagerStopCompactionPostParams) WithType(typeVar string) *CompactionManagerStopCompactionPostParams { - o.SetType(typeVar) - return o -} - -// SetType adds the type to the compaction manager stop compaction post params -func (o *CompactionManagerStopCompactionPostParams) SetType(typeVar string) { - o.Type = typeVar -} - -// WriteToRequest writes these params to a swagger request -func (o *CompactionManagerStopCompactionPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param type - qrType := o.Type - qType := qrType - if qType != "" { - if err := r.SetQueryParam("type", qType); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_stop_compaction_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_stop_compaction_post_responses.go deleted file mode 100644 index bba0091480..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/compaction_manager_stop_compaction_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// CompactionManagerStopCompactionPostReader is a Reader for the CompactionManagerStopCompactionPost structure. -type CompactionManagerStopCompactionPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *CompactionManagerStopCompactionPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewCompactionManagerStopCompactionPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewCompactionManagerStopCompactionPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewCompactionManagerStopCompactionPostOK creates a CompactionManagerStopCompactionPostOK with default headers values -func NewCompactionManagerStopCompactionPostOK() *CompactionManagerStopCompactionPostOK { - return &CompactionManagerStopCompactionPostOK{} -} - -/* -CompactionManagerStopCompactionPostOK handles this case with default header values. - -Success -*/ -type CompactionManagerStopCompactionPostOK struct { -} - -func (o *CompactionManagerStopCompactionPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewCompactionManagerStopCompactionPostDefault creates a CompactionManagerStopCompactionPostDefault with default headers values -func NewCompactionManagerStopCompactionPostDefault(code int) *CompactionManagerStopCompactionPostDefault { - return &CompactionManagerStopCompactionPostDefault{ - _statusCode: code, - } -} - -/* -CompactionManagerStopCompactionPostDefault handles this case with default header values. - -internal server error -*/ -type CompactionManagerStopCompactionPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the compaction manager stop compaction post default response -func (o *CompactionManagerStopCompactionPostDefault) Code() int { - return o._statusCode -} - -func (o *CompactionManagerStopCompactionPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *CompactionManagerStopCompactionPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *CompactionManagerStopCompactionPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_count_endpoint_down_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_count_endpoint_down_get_parameters.go deleted file mode 100644 index 1fff652269..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_count_endpoint_down_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFailureDetectorCountEndpointDownGetParams creates a new FailureDetectorCountEndpointDownGetParams object -// with the default values initialized. -func NewFailureDetectorCountEndpointDownGetParams() *FailureDetectorCountEndpointDownGetParams { - - return &FailureDetectorCountEndpointDownGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFailureDetectorCountEndpointDownGetParamsWithTimeout creates a new FailureDetectorCountEndpointDownGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFailureDetectorCountEndpointDownGetParamsWithTimeout(timeout time.Duration) *FailureDetectorCountEndpointDownGetParams { - - return &FailureDetectorCountEndpointDownGetParams{ - - timeout: timeout, - } -} - -// NewFailureDetectorCountEndpointDownGetParamsWithContext creates a new FailureDetectorCountEndpointDownGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewFailureDetectorCountEndpointDownGetParamsWithContext(ctx context.Context) *FailureDetectorCountEndpointDownGetParams { - - return &FailureDetectorCountEndpointDownGetParams{ - - Context: ctx, - } -} - -// NewFailureDetectorCountEndpointDownGetParamsWithHTTPClient creates a new FailureDetectorCountEndpointDownGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFailureDetectorCountEndpointDownGetParamsWithHTTPClient(client *http.Client) *FailureDetectorCountEndpointDownGetParams { - - return &FailureDetectorCountEndpointDownGetParams{ - HTTPClient: client, - } -} - -/* -FailureDetectorCountEndpointDownGetParams contains all the parameters to send to the API endpoint -for the failure detector count endpoint down get operation typically these are written to a http.Request -*/ -type FailureDetectorCountEndpointDownGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the failure detector count endpoint down get params -func (o *FailureDetectorCountEndpointDownGetParams) WithTimeout(timeout time.Duration) *FailureDetectorCountEndpointDownGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the failure detector count endpoint down get params -func (o *FailureDetectorCountEndpointDownGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the failure detector count endpoint down get params -func (o *FailureDetectorCountEndpointDownGetParams) WithContext(ctx context.Context) *FailureDetectorCountEndpointDownGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the failure detector count endpoint down get params -func (o *FailureDetectorCountEndpointDownGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the failure detector count endpoint down get params -func (o *FailureDetectorCountEndpointDownGetParams) WithHTTPClient(client *http.Client) *FailureDetectorCountEndpointDownGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the failure detector count endpoint down get params -func (o *FailureDetectorCountEndpointDownGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FailureDetectorCountEndpointDownGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_count_endpoint_down_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_count_endpoint_down_get_responses.go deleted file mode 100644 index 88e2f92973..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_count_endpoint_down_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// FailureDetectorCountEndpointDownGetReader is a Reader for the FailureDetectorCountEndpointDownGet structure. -type FailureDetectorCountEndpointDownGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FailureDetectorCountEndpointDownGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFailureDetectorCountEndpointDownGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFailureDetectorCountEndpointDownGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFailureDetectorCountEndpointDownGetOK creates a FailureDetectorCountEndpointDownGetOK with default headers values -func NewFailureDetectorCountEndpointDownGetOK() *FailureDetectorCountEndpointDownGetOK { - return &FailureDetectorCountEndpointDownGetOK{} -} - -/* -FailureDetectorCountEndpointDownGetOK handles this case with default header values. - -Success -*/ -type FailureDetectorCountEndpointDownGetOK struct { - Payload int32 -} - -func (o *FailureDetectorCountEndpointDownGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *FailureDetectorCountEndpointDownGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFailureDetectorCountEndpointDownGetDefault creates a FailureDetectorCountEndpointDownGetDefault with default headers values -func NewFailureDetectorCountEndpointDownGetDefault(code int) *FailureDetectorCountEndpointDownGetDefault { - return &FailureDetectorCountEndpointDownGetDefault{ - _statusCode: code, - } -} - -/* -FailureDetectorCountEndpointDownGetDefault handles this case with default header values. - -internal server error -*/ -type FailureDetectorCountEndpointDownGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the failure detector count endpoint down get default response -func (o *FailureDetectorCountEndpointDownGetDefault) Code() int { - return o._statusCode -} - -func (o *FailureDetectorCountEndpointDownGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FailureDetectorCountEndpointDownGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FailureDetectorCountEndpointDownGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_count_endpoint_up_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_count_endpoint_up_get_parameters.go deleted file mode 100644 index aae7d189b4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_count_endpoint_up_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFailureDetectorCountEndpointUpGetParams creates a new FailureDetectorCountEndpointUpGetParams object -// with the default values initialized. -func NewFailureDetectorCountEndpointUpGetParams() *FailureDetectorCountEndpointUpGetParams { - - return &FailureDetectorCountEndpointUpGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFailureDetectorCountEndpointUpGetParamsWithTimeout creates a new FailureDetectorCountEndpointUpGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFailureDetectorCountEndpointUpGetParamsWithTimeout(timeout time.Duration) *FailureDetectorCountEndpointUpGetParams { - - return &FailureDetectorCountEndpointUpGetParams{ - - timeout: timeout, - } -} - -// NewFailureDetectorCountEndpointUpGetParamsWithContext creates a new FailureDetectorCountEndpointUpGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewFailureDetectorCountEndpointUpGetParamsWithContext(ctx context.Context) *FailureDetectorCountEndpointUpGetParams { - - return &FailureDetectorCountEndpointUpGetParams{ - - Context: ctx, - } -} - -// NewFailureDetectorCountEndpointUpGetParamsWithHTTPClient creates a new FailureDetectorCountEndpointUpGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFailureDetectorCountEndpointUpGetParamsWithHTTPClient(client *http.Client) *FailureDetectorCountEndpointUpGetParams { - - return &FailureDetectorCountEndpointUpGetParams{ - HTTPClient: client, - } -} - -/* -FailureDetectorCountEndpointUpGetParams contains all the parameters to send to the API endpoint -for the failure detector count endpoint up get operation typically these are written to a http.Request -*/ -type FailureDetectorCountEndpointUpGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the failure detector count endpoint up get params -func (o *FailureDetectorCountEndpointUpGetParams) WithTimeout(timeout time.Duration) *FailureDetectorCountEndpointUpGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the failure detector count endpoint up get params -func (o *FailureDetectorCountEndpointUpGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the failure detector count endpoint up get params -func (o *FailureDetectorCountEndpointUpGetParams) WithContext(ctx context.Context) *FailureDetectorCountEndpointUpGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the failure detector count endpoint up get params -func (o *FailureDetectorCountEndpointUpGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the failure detector count endpoint up get params -func (o *FailureDetectorCountEndpointUpGetParams) WithHTTPClient(client *http.Client) *FailureDetectorCountEndpointUpGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the failure detector count endpoint up get params -func (o *FailureDetectorCountEndpointUpGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FailureDetectorCountEndpointUpGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_count_endpoint_up_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_count_endpoint_up_get_responses.go deleted file mode 100644 index 9d586c1050..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_count_endpoint_up_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// FailureDetectorCountEndpointUpGetReader is a Reader for the FailureDetectorCountEndpointUpGet structure. -type FailureDetectorCountEndpointUpGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FailureDetectorCountEndpointUpGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFailureDetectorCountEndpointUpGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFailureDetectorCountEndpointUpGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFailureDetectorCountEndpointUpGetOK creates a FailureDetectorCountEndpointUpGetOK with default headers values -func NewFailureDetectorCountEndpointUpGetOK() *FailureDetectorCountEndpointUpGetOK { - return &FailureDetectorCountEndpointUpGetOK{} -} - -/* -FailureDetectorCountEndpointUpGetOK handles this case with default header values. - -Success -*/ -type FailureDetectorCountEndpointUpGetOK struct { - Payload int32 -} - -func (o *FailureDetectorCountEndpointUpGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *FailureDetectorCountEndpointUpGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFailureDetectorCountEndpointUpGetDefault creates a FailureDetectorCountEndpointUpGetDefault with default headers values -func NewFailureDetectorCountEndpointUpGetDefault(code int) *FailureDetectorCountEndpointUpGetDefault { - return &FailureDetectorCountEndpointUpGetDefault{ - _statusCode: code, - } -} - -/* -FailureDetectorCountEndpointUpGetDefault handles this case with default header values. - -internal server error -*/ -type FailureDetectorCountEndpointUpGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the failure detector count endpoint up get default response -func (o *FailureDetectorCountEndpointUpGetDefault) Code() int { - return o._statusCode -} - -func (o *FailureDetectorCountEndpointUpGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FailureDetectorCountEndpointUpGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FailureDetectorCountEndpointUpGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_endpoint_phi_values_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_endpoint_phi_values_get_parameters.go deleted file mode 100644 index d0606c4649..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_endpoint_phi_values_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFailureDetectorEndpointPhiValuesGetParams creates a new FailureDetectorEndpointPhiValuesGetParams object -// with the default values initialized. -func NewFailureDetectorEndpointPhiValuesGetParams() *FailureDetectorEndpointPhiValuesGetParams { - - return &FailureDetectorEndpointPhiValuesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFailureDetectorEndpointPhiValuesGetParamsWithTimeout creates a new FailureDetectorEndpointPhiValuesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFailureDetectorEndpointPhiValuesGetParamsWithTimeout(timeout time.Duration) *FailureDetectorEndpointPhiValuesGetParams { - - return &FailureDetectorEndpointPhiValuesGetParams{ - - timeout: timeout, - } -} - -// NewFailureDetectorEndpointPhiValuesGetParamsWithContext creates a new FailureDetectorEndpointPhiValuesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewFailureDetectorEndpointPhiValuesGetParamsWithContext(ctx context.Context) *FailureDetectorEndpointPhiValuesGetParams { - - return &FailureDetectorEndpointPhiValuesGetParams{ - - Context: ctx, - } -} - -// NewFailureDetectorEndpointPhiValuesGetParamsWithHTTPClient creates a new FailureDetectorEndpointPhiValuesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFailureDetectorEndpointPhiValuesGetParamsWithHTTPClient(client *http.Client) *FailureDetectorEndpointPhiValuesGetParams { - - return &FailureDetectorEndpointPhiValuesGetParams{ - HTTPClient: client, - } -} - -/* -FailureDetectorEndpointPhiValuesGetParams contains all the parameters to send to the API endpoint -for the failure detector endpoint phi values get operation typically these are written to a http.Request -*/ -type FailureDetectorEndpointPhiValuesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the failure detector endpoint phi values get params -func (o *FailureDetectorEndpointPhiValuesGetParams) WithTimeout(timeout time.Duration) *FailureDetectorEndpointPhiValuesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the failure detector endpoint phi values get params -func (o *FailureDetectorEndpointPhiValuesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the failure detector endpoint phi values get params -func (o *FailureDetectorEndpointPhiValuesGetParams) WithContext(ctx context.Context) *FailureDetectorEndpointPhiValuesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the failure detector endpoint phi values get params -func (o *FailureDetectorEndpointPhiValuesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the failure detector endpoint phi values get params -func (o *FailureDetectorEndpointPhiValuesGetParams) WithHTTPClient(client *http.Client) *FailureDetectorEndpointPhiValuesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the failure detector endpoint phi values get params -func (o *FailureDetectorEndpointPhiValuesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FailureDetectorEndpointPhiValuesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_endpoint_phi_values_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_endpoint_phi_values_get_responses.go deleted file mode 100644 index e96171593d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_endpoint_phi_values_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// FailureDetectorEndpointPhiValuesGetReader is a Reader for the FailureDetectorEndpointPhiValuesGet structure. -type FailureDetectorEndpointPhiValuesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FailureDetectorEndpointPhiValuesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFailureDetectorEndpointPhiValuesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFailureDetectorEndpointPhiValuesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFailureDetectorEndpointPhiValuesGetOK creates a FailureDetectorEndpointPhiValuesGetOK with default headers values -func NewFailureDetectorEndpointPhiValuesGetOK() *FailureDetectorEndpointPhiValuesGetOK { - return &FailureDetectorEndpointPhiValuesGetOK{} -} - -/* -FailureDetectorEndpointPhiValuesGetOK handles this case with default header values. - -Success -*/ -type FailureDetectorEndpointPhiValuesGetOK struct { - Payload interface{} -} - -func (o *FailureDetectorEndpointPhiValuesGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *FailureDetectorEndpointPhiValuesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFailureDetectorEndpointPhiValuesGetDefault creates a FailureDetectorEndpointPhiValuesGetDefault with default headers values -func NewFailureDetectorEndpointPhiValuesGetDefault(code int) *FailureDetectorEndpointPhiValuesGetDefault { - return &FailureDetectorEndpointPhiValuesGetDefault{ - _statusCode: code, - } -} - -/* -FailureDetectorEndpointPhiValuesGetDefault handles this case with default header values. - -internal server error -*/ -type FailureDetectorEndpointPhiValuesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the failure detector endpoint phi values get default response -func (o *FailureDetectorEndpointPhiValuesGetDefault) Code() int { - return o._statusCode -} - -func (o *FailureDetectorEndpointPhiValuesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FailureDetectorEndpointPhiValuesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FailureDetectorEndpointPhiValuesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_endpoints_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_endpoints_get_parameters.go deleted file mode 100644 index 4e2db827c8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_endpoints_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFailureDetectorEndpointsGetParams creates a new FailureDetectorEndpointsGetParams object -// with the default values initialized. -func NewFailureDetectorEndpointsGetParams() *FailureDetectorEndpointsGetParams { - - return &FailureDetectorEndpointsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFailureDetectorEndpointsGetParamsWithTimeout creates a new FailureDetectorEndpointsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFailureDetectorEndpointsGetParamsWithTimeout(timeout time.Duration) *FailureDetectorEndpointsGetParams { - - return &FailureDetectorEndpointsGetParams{ - - timeout: timeout, - } -} - -// NewFailureDetectorEndpointsGetParamsWithContext creates a new FailureDetectorEndpointsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewFailureDetectorEndpointsGetParamsWithContext(ctx context.Context) *FailureDetectorEndpointsGetParams { - - return &FailureDetectorEndpointsGetParams{ - - Context: ctx, - } -} - -// NewFailureDetectorEndpointsGetParamsWithHTTPClient creates a new FailureDetectorEndpointsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFailureDetectorEndpointsGetParamsWithHTTPClient(client *http.Client) *FailureDetectorEndpointsGetParams { - - return &FailureDetectorEndpointsGetParams{ - HTTPClient: client, - } -} - -/* -FailureDetectorEndpointsGetParams contains all the parameters to send to the API endpoint -for the failure detector endpoints get operation typically these are written to a http.Request -*/ -type FailureDetectorEndpointsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the failure detector endpoints get params -func (o *FailureDetectorEndpointsGetParams) WithTimeout(timeout time.Duration) *FailureDetectorEndpointsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the failure detector endpoints get params -func (o *FailureDetectorEndpointsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the failure detector endpoints get params -func (o *FailureDetectorEndpointsGetParams) WithContext(ctx context.Context) *FailureDetectorEndpointsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the failure detector endpoints get params -func (o *FailureDetectorEndpointsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the failure detector endpoints get params -func (o *FailureDetectorEndpointsGetParams) WithHTTPClient(client *http.Client) *FailureDetectorEndpointsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the failure detector endpoints get params -func (o *FailureDetectorEndpointsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FailureDetectorEndpointsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_endpoints_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_endpoints_get_responses.go deleted file mode 100644 index 687837f908..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_endpoints_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// FailureDetectorEndpointsGetReader is a Reader for the FailureDetectorEndpointsGet structure. -type FailureDetectorEndpointsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FailureDetectorEndpointsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFailureDetectorEndpointsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFailureDetectorEndpointsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFailureDetectorEndpointsGetOK creates a FailureDetectorEndpointsGetOK with default headers values -func NewFailureDetectorEndpointsGetOK() *FailureDetectorEndpointsGetOK { - return &FailureDetectorEndpointsGetOK{} -} - -/* -FailureDetectorEndpointsGetOK handles this case with default header values. - -Success -*/ -type FailureDetectorEndpointsGetOK struct { - Payload []*models.EndpointState -} - -func (o *FailureDetectorEndpointsGetOK) GetPayload() []*models.EndpointState { - return o.Payload -} - -func (o *FailureDetectorEndpointsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFailureDetectorEndpointsGetDefault creates a FailureDetectorEndpointsGetDefault with default headers values -func NewFailureDetectorEndpointsGetDefault(code int) *FailureDetectorEndpointsGetDefault { - return &FailureDetectorEndpointsGetDefault{ - _statusCode: code, - } -} - -/* -FailureDetectorEndpointsGetDefault handles this case with default header values. - -internal server error -*/ -type FailureDetectorEndpointsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the failure detector endpoints get default response -func (o *FailureDetectorEndpointsGetDefault) Code() int { - return o._statusCode -} - -func (o *FailureDetectorEndpointsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FailureDetectorEndpointsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FailureDetectorEndpointsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_endpoints_states_by_addr_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_endpoints_states_by_addr_get_parameters.go deleted file mode 100644 index ee78533eaa..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_endpoints_states_by_addr_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFailureDetectorEndpointsStatesByAddrGetParams creates a new FailureDetectorEndpointsStatesByAddrGetParams object -// with the default values initialized. -func NewFailureDetectorEndpointsStatesByAddrGetParams() *FailureDetectorEndpointsStatesByAddrGetParams { - var () - return &FailureDetectorEndpointsStatesByAddrGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFailureDetectorEndpointsStatesByAddrGetParamsWithTimeout creates a new FailureDetectorEndpointsStatesByAddrGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFailureDetectorEndpointsStatesByAddrGetParamsWithTimeout(timeout time.Duration) *FailureDetectorEndpointsStatesByAddrGetParams { - var () - return &FailureDetectorEndpointsStatesByAddrGetParams{ - - timeout: timeout, - } -} - -// NewFailureDetectorEndpointsStatesByAddrGetParamsWithContext creates a new FailureDetectorEndpointsStatesByAddrGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewFailureDetectorEndpointsStatesByAddrGetParamsWithContext(ctx context.Context) *FailureDetectorEndpointsStatesByAddrGetParams { - var () - return &FailureDetectorEndpointsStatesByAddrGetParams{ - - Context: ctx, - } -} - -// NewFailureDetectorEndpointsStatesByAddrGetParamsWithHTTPClient creates a new FailureDetectorEndpointsStatesByAddrGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFailureDetectorEndpointsStatesByAddrGetParamsWithHTTPClient(client *http.Client) *FailureDetectorEndpointsStatesByAddrGetParams { - var () - return &FailureDetectorEndpointsStatesByAddrGetParams{ - HTTPClient: client, - } -} - -/* -FailureDetectorEndpointsStatesByAddrGetParams contains all the parameters to send to the API endpoint -for the failure detector endpoints states by addr get operation typically these are written to a http.Request -*/ -type FailureDetectorEndpointsStatesByAddrGetParams struct { - - /*Addr - The endpoint address - - */ - Addr string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the failure detector endpoints states by addr get params -func (o *FailureDetectorEndpointsStatesByAddrGetParams) WithTimeout(timeout time.Duration) *FailureDetectorEndpointsStatesByAddrGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the failure detector endpoints states by addr get params -func (o *FailureDetectorEndpointsStatesByAddrGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the failure detector endpoints states by addr get params -func (o *FailureDetectorEndpointsStatesByAddrGetParams) WithContext(ctx context.Context) *FailureDetectorEndpointsStatesByAddrGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the failure detector endpoints states by addr get params -func (o *FailureDetectorEndpointsStatesByAddrGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the failure detector endpoints states by addr get params -func (o *FailureDetectorEndpointsStatesByAddrGetParams) WithHTTPClient(client *http.Client) *FailureDetectorEndpointsStatesByAddrGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the failure detector endpoints states by addr get params -func (o *FailureDetectorEndpointsStatesByAddrGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAddr adds the addr to the failure detector endpoints states by addr get params -func (o *FailureDetectorEndpointsStatesByAddrGetParams) WithAddr(addr string) *FailureDetectorEndpointsStatesByAddrGetParams { - o.SetAddr(addr) - return o -} - -// SetAddr adds the addr to the failure detector endpoints states by addr get params -func (o *FailureDetectorEndpointsStatesByAddrGetParams) SetAddr(addr string) { - o.Addr = addr -} - -// WriteToRequest writes these params to a swagger request -func (o *FailureDetectorEndpointsStatesByAddrGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param addr - if err := r.SetPathParam("addr", o.Addr); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_endpoints_states_by_addr_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_endpoints_states_by_addr_get_responses.go deleted file mode 100644 index b1a30a3159..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_endpoints_states_by_addr_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// FailureDetectorEndpointsStatesByAddrGetReader is a Reader for the FailureDetectorEndpointsStatesByAddrGet structure. -type FailureDetectorEndpointsStatesByAddrGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FailureDetectorEndpointsStatesByAddrGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFailureDetectorEndpointsStatesByAddrGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFailureDetectorEndpointsStatesByAddrGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFailureDetectorEndpointsStatesByAddrGetOK creates a FailureDetectorEndpointsStatesByAddrGetOK with default headers values -func NewFailureDetectorEndpointsStatesByAddrGetOK() *FailureDetectorEndpointsStatesByAddrGetOK { - return &FailureDetectorEndpointsStatesByAddrGetOK{} -} - -/* -FailureDetectorEndpointsStatesByAddrGetOK handles this case with default header values. - -Success -*/ -type FailureDetectorEndpointsStatesByAddrGetOK struct { - Payload string -} - -func (o *FailureDetectorEndpointsStatesByAddrGetOK) GetPayload() string { - return o.Payload -} - -func (o *FailureDetectorEndpointsStatesByAddrGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFailureDetectorEndpointsStatesByAddrGetDefault creates a FailureDetectorEndpointsStatesByAddrGetDefault with default headers values -func NewFailureDetectorEndpointsStatesByAddrGetDefault(code int) *FailureDetectorEndpointsStatesByAddrGetDefault { - return &FailureDetectorEndpointsStatesByAddrGetDefault{ - _statusCode: code, - } -} - -/* -FailureDetectorEndpointsStatesByAddrGetDefault handles this case with default header values. - -internal server error -*/ -type FailureDetectorEndpointsStatesByAddrGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the failure detector endpoints states by addr get default response -func (o *FailureDetectorEndpointsStatesByAddrGetDefault) Code() int { - return o._statusCode -} - -func (o *FailureDetectorEndpointsStatesByAddrGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FailureDetectorEndpointsStatesByAddrGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FailureDetectorEndpointsStatesByAddrGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_phi_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_phi_get_parameters.go deleted file mode 100644 index bf2175a114..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_phi_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFailureDetectorPhiGetParams creates a new FailureDetectorPhiGetParams object -// with the default values initialized. -func NewFailureDetectorPhiGetParams() *FailureDetectorPhiGetParams { - - return &FailureDetectorPhiGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFailureDetectorPhiGetParamsWithTimeout creates a new FailureDetectorPhiGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFailureDetectorPhiGetParamsWithTimeout(timeout time.Duration) *FailureDetectorPhiGetParams { - - return &FailureDetectorPhiGetParams{ - - timeout: timeout, - } -} - -// NewFailureDetectorPhiGetParamsWithContext creates a new FailureDetectorPhiGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewFailureDetectorPhiGetParamsWithContext(ctx context.Context) *FailureDetectorPhiGetParams { - - return &FailureDetectorPhiGetParams{ - - Context: ctx, - } -} - -// NewFailureDetectorPhiGetParamsWithHTTPClient creates a new FailureDetectorPhiGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFailureDetectorPhiGetParamsWithHTTPClient(client *http.Client) *FailureDetectorPhiGetParams { - - return &FailureDetectorPhiGetParams{ - HTTPClient: client, - } -} - -/* -FailureDetectorPhiGetParams contains all the parameters to send to the API endpoint -for the failure detector phi get operation typically these are written to a http.Request -*/ -type FailureDetectorPhiGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the failure detector phi get params -func (o *FailureDetectorPhiGetParams) WithTimeout(timeout time.Duration) *FailureDetectorPhiGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the failure detector phi get params -func (o *FailureDetectorPhiGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the failure detector phi get params -func (o *FailureDetectorPhiGetParams) WithContext(ctx context.Context) *FailureDetectorPhiGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the failure detector phi get params -func (o *FailureDetectorPhiGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the failure detector phi get params -func (o *FailureDetectorPhiGetParams) WithHTTPClient(client *http.Client) *FailureDetectorPhiGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the failure detector phi get params -func (o *FailureDetectorPhiGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FailureDetectorPhiGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_phi_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_phi_get_responses.go deleted file mode 100644 index 8ac26073ad..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_phi_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// FailureDetectorPhiGetReader is a Reader for the FailureDetectorPhiGet structure. -type FailureDetectorPhiGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FailureDetectorPhiGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFailureDetectorPhiGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFailureDetectorPhiGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFailureDetectorPhiGetOK creates a FailureDetectorPhiGetOK with default headers values -func NewFailureDetectorPhiGetOK() *FailureDetectorPhiGetOK { - return &FailureDetectorPhiGetOK{} -} - -/* -FailureDetectorPhiGetOK handles this case with default header values. - -Success -*/ -type FailureDetectorPhiGetOK struct { - Payload string -} - -func (o *FailureDetectorPhiGetOK) GetPayload() string { - return o.Payload -} - -func (o *FailureDetectorPhiGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFailureDetectorPhiGetDefault creates a FailureDetectorPhiGetDefault with default headers values -func NewFailureDetectorPhiGetDefault(code int) *FailureDetectorPhiGetDefault { - return &FailureDetectorPhiGetDefault{ - _statusCode: code, - } -} - -/* -FailureDetectorPhiGetDefault handles this case with default header values. - -internal server error -*/ -type FailureDetectorPhiGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the failure detector phi get default response -func (o *FailureDetectorPhiGetDefault) Code() int { - return o._statusCode -} - -func (o *FailureDetectorPhiGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FailureDetectorPhiGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FailureDetectorPhiGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_phi_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_phi_post_parameters.go deleted file mode 100644 index 76d817ace2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_phi_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFailureDetectorPhiPostParams creates a new FailureDetectorPhiPostParams object -// with the default values initialized. -func NewFailureDetectorPhiPostParams() *FailureDetectorPhiPostParams { - var () - return &FailureDetectorPhiPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFailureDetectorPhiPostParamsWithTimeout creates a new FailureDetectorPhiPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFailureDetectorPhiPostParamsWithTimeout(timeout time.Duration) *FailureDetectorPhiPostParams { - var () - return &FailureDetectorPhiPostParams{ - - timeout: timeout, - } -} - -// NewFailureDetectorPhiPostParamsWithContext creates a new FailureDetectorPhiPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewFailureDetectorPhiPostParamsWithContext(ctx context.Context) *FailureDetectorPhiPostParams { - var () - return &FailureDetectorPhiPostParams{ - - Context: ctx, - } -} - -// NewFailureDetectorPhiPostParamsWithHTTPClient creates a new FailureDetectorPhiPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFailureDetectorPhiPostParamsWithHTTPClient(client *http.Client) *FailureDetectorPhiPostParams { - var () - return &FailureDetectorPhiPostParams{ - HTTPClient: client, - } -} - -/* -FailureDetectorPhiPostParams contains all the parameters to send to the API endpoint -for the failure detector phi post operation typically these are written to a http.Request -*/ -type FailureDetectorPhiPostParams struct { - - /*Phi - The new phi value - - */ - Phi string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the failure detector phi post params -func (o *FailureDetectorPhiPostParams) WithTimeout(timeout time.Duration) *FailureDetectorPhiPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the failure detector phi post params -func (o *FailureDetectorPhiPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the failure detector phi post params -func (o *FailureDetectorPhiPostParams) WithContext(ctx context.Context) *FailureDetectorPhiPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the failure detector phi post params -func (o *FailureDetectorPhiPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the failure detector phi post params -func (o *FailureDetectorPhiPostParams) WithHTTPClient(client *http.Client) *FailureDetectorPhiPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the failure detector phi post params -func (o *FailureDetectorPhiPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithPhi adds the phi to the failure detector phi post params -func (o *FailureDetectorPhiPostParams) WithPhi(phi string) *FailureDetectorPhiPostParams { - o.SetPhi(phi) - return o -} - -// SetPhi adds the phi to the failure detector phi post params -func (o *FailureDetectorPhiPostParams) SetPhi(phi string) { - o.Phi = phi -} - -// WriteToRequest writes these params to a swagger request -func (o *FailureDetectorPhiPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param phi - qrPhi := o.Phi - qPhi := qrPhi - if qPhi != "" { - if err := r.SetQueryParam("phi", qPhi); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_phi_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_phi_post_responses.go deleted file mode 100644 index 58943ffccf..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_phi_post_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// FailureDetectorPhiPostReader is a Reader for the FailureDetectorPhiPost structure. -type FailureDetectorPhiPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FailureDetectorPhiPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFailureDetectorPhiPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFailureDetectorPhiPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFailureDetectorPhiPostOK creates a FailureDetectorPhiPostOK with default headers values -func NewFailureDetectorPhiPostOK() *FailureDetectorPhiPostOK { - return &FailureDetectorPhiPostOK{} -} - -/* -FailureDetectorPhiPostOK handles this case with default header values. - -Success -*/ -type FailureDetectorPhiPostOK struct { - Payload interface{} -} - -func (o *FailureDetectorPhiPostOK) GetPayload() interface{} { - return o.Payload -} - -func (o *FailureDetectorPhiPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFailureDetectorPhiPostDefault creates a FailureDetectorPhiPostDefault with default headers values -func NewFailureDetectorPhiPostDefault(code int) *FailureDetectorPhiPostDefault { - return &FailureDetectorPhiPostDefault{ - _statusCode: code, - } -} - -/* -FailureDetectorPhiPostDefault handles this case with default header values. - -internal server error -*/ -type FailureDetectorPhiPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the failure detector phi post default response -func (o *FailureDetectorPhiPostDefault) Code() int { - return o._statusCode -} - -func (o *FailureDetectorPhiPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FailureDetectorPhiPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FailureDetectorPhiPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_simple_states_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_simple_states_get_parameters.go deleted file mode 100644 index ca8a22361f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_simple_states_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFailureDetectorSimpleStatesGetParams creates a new FailureDetectorSimpleStatesGetParams object -// with the default values initialized. -func NewFailureDetectorSimpleStatesGetParams() *FailureDetectorSimpleStatesGetParams { - - return &FailureDetectorSimpleStatesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFailureDetectorSimpleStatesGetParamsWithTimeout creates a new FailureDetectorSimpleStatesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFailureDetectorSimpleStatesGetParamsWithTimeout(timeout time.Duration) *FailureDetectorSimpleStatesGetParams { - - return &FailureDetectorSimpleStatesGetParams{ - - timeout: timeout, - } -} - -// NewFailureDetectorSimpleStatesGetParamsWithContext creates a new FailureDetectorSimpleStatesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewFailureDetectorSimpleStatesGetParamsWithContext(ctx context.Context) *FailureDetectorSimpleStatesGetParams { - - return &FailureDetectorSimpleStatesGetParams{ - - Context: ctx, - } -} - -// NewFailureDetectorSimpleStatesGetParamsWithHTTPClient creates a new FailureDetectorSimpleStatesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFailureDetectorSimpleStatesGetParamsWithHTTPClient(client *http.Client) *FailureDetectorSimpleStatesGetParams { - - return &FailureDetectorSimpleStatesGetParams{ - HTTPClient: client, - } -} - -/* -FailureDetectorSimpleStatesGetParams contains all the parameters to send to the API endpoint -for the failure detector simple states get operation typically these are written to a http.Request -*/ -type FailureDetectorSimpleStatesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the failure detector simple states get params -func (o *FailureDetectorSimpleStatesGetParams) WithTimeout(timeout time.Duration) *FailureDetectorSimpleStatesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the failure detector simple states get params -func (o *FailureDetectorSimpleStatesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the failure detector simple states get params -func (o *FailureDetectorSimpleStatesGetParams) WithContext(ctx context.Context) *FailureDetectorSimpleStatesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the failure detector simple states get params -func (o *FailureDetectorSimpleStatesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the failure detector simple states get params -func (o *FailureDetectorSimpleStatesGetParams) WithHTTPClient(client *http.Client) *FailureDetectorSimpleStatesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the failure detector simple states get params -func (o *FailureDetectorSimpleStatesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FailureDetectorSimpleStatesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_simple_states_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_simple_states_get_responses.go deleted file mode 100644 index f321a09e6f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/failure_detector_simple_states_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// FailureDetectorSimpleStatesGetReader is a Reader for the FailureDetectorSimpleStatesGet structure. -type FailureDetectorSimpleStatesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FailureDetectorSimpleStatesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFailureDetectorSimpleStatesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFailureDetectorSimpleStatesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFailureDetectorSimpleStatesGetOK creates a FailureDetectorSimpleStatesGetOK with default headers values -func NewFailureDetectorSimpleStatesGetOK() *FailureDetectorSimpleStatesGetOK { - return &FailureDetectorSimpleStatesGetOK{} -} - -/* -FailureDetectorSimpleStatesGetOK handles this case with default header values. - -Success -*/ -type FailureDetectorSimpleStatesGetOK struct { - Payload []*models.Mapper -} - -func (o *FailureDetectorSimpleStatesGetOK) GetPayload() []*models.Mapper { - return o.Payload -} - -func (o *FailureDetectorSimpleStatesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFailureDetectorSimpleStatesGetDefault creates a FailureDetectorSimpleStatesGetDefault with default headers values -func NewFailureDetectorSimpleStatesGetDefault(code int) *FailureDetectorSimpleStatesGetDefault { - return &FailureDetectorSimpleStatesGetDefault{ - _statusCode: code, - } -} - -/* -FailureDetectorSimpleStatesGetDefault handles this case with default header values. - -internal server error -*/ -type FailureDetectorSimpleStatesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the failure detector simple states get default response -func (o *FailureDetectorSimpleStatesGetDefault) Code() int { - return o._statusCode -} - -func (o *FailureDetectorSimpleStatesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FailureDetectorSimpleStatesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FailureDetectorSimpleStatesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_assassinate_by_addr_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_assassinate_by_addr_post_parameters.go deleted file mode 100644 index 8665150b70..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_assassinate_by_addr_post_parameters.go +++ /dev/null @@ -1,169 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewGossiperAssassinateByAddrPostParams creates a new GossiperAssassinateByAddrPostParams object -// with the default values initialized. -func NewGossiperAssassinateByAddrPostParams() *GossiperAssassinateByAddrPostParams { - var () - return &GossiperAssassinateByAddrPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGossiperAssassinateByAddrPostParamsWithTimeout creates a new GossiperAssassinateByAddrPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGossiperAssassinateByAddrPostParamsWithTimeout(timeout time.Duration) *GossiperAssassinateByAddrPostParams { - var () - return &GossiperAssassinateByAddrPostParams{ - - timeout: timeout, - } -} - -// NewGossiperAssassinateByAddrPostParamsWithContext creates a new GossiperAssassinateByAddrPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewGossiperAssassinateByAddrPostParamsWithContext(ctx context.Context) *GossiperAssassinateByAddrPostParams { - var () - return &GossiperAssassinateByAddrPostParams{ - - Context: ctx, - } -} - -// NewGossiperAssassinateByAddrPostParamsWithHTTPClient creates a new GossiperAssassinateByAddrPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGossiperAssassinateByAddrPostParamsWithHTTPClient(client *http.Client) *GossiperAssassinateByAddrPostParams { - var () - return &GossiperAssassinateByAddrPostParams{ - HTTPClient: client, - } -} - -/* -GossiperAssassinateByAddrPostParams contains all the parameters to send to the API endpoint -for the gossiper assassinate by addr post operation typically these are written to a http.Request -*/ -type GossiperAssassinateByAddrPostParams struct { - - /*Addr - The endpoint address - - */ - Addr string - /*Unsafe - Set to True to perform an unsafe assassination - - */ - Unsafe *bool - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the gossiper assassinate by addr post params -func (o *GossiperAssassinateByAddrPostParams) WithTimeout(timeout time.Duration) *GossiperAssassinateByAddrPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the gossiper assassinate by addr post params -func (o *GossiperAssassinateByAddrPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the gossiper assassinate by addr post params -func (o *GossiperAssassinateByAddrPostParams) WithContext(ctx context.Context) *GossiperAssassinateByAddrPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the gossiper assassinate by addr post params -func (o *GossiperAssassinateByAddrPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the gossiper assassinate by addr post params -func (o *GossiperAssassinateByAddrPostParams) WithHTTPClient(client *http.Client) *GossiperAssassinateByAddrPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the gossiper assassinate by addr post params -func (o *GossiperAssassinateByAddrPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAddr adds the addr to the gossiper assassinate by addr post params -func (o *GossiperAssassinateByAddrPostParams) WithAddr(addr string) *GossiperAssassinateByAddrPostParams { - o.SetAddr(addr) - return o -} - -// SetAddr adds the addr to the gossiper assassinate by addr post params -func (o *GossiperAssassinateByAddrPostParams) SetAddr(addr string) { - o.Addr = addr -} - -// WithUnsafe adds the unsafe to the gossiper assassinate by addr post params -func (o *GossiperAssassinateByAddrPostParams) WithUnsafe(unsafe *bool) *GossiperAssassinateByAddrPostParams { - o.SetUnsafe(unsafe) - return o -} - -// SetUnsafe adds the unsafe to the gossiper assassinate by addr post params -func (o *GossiperAssassinateByAddrPostParams) SetUnsafe(unsafe *bool) { - o.Unsafe = unsafe -} - -// WriteToRequest writes these params to a swagger request -func (o *GossiperAssassinateByAddrPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param addr - if err := r.SetPathParam("addr", o.Addr); err != nil { - return err - } - - if o.Unsafe != nil { - - // query param unsafe - var qrUnsafe bool - if o.Unsafe != nil { - qrUnsafe = *o.Unsafe - } - qUnsafe := swag.FormatBool(qrUnsafe) - if qUnsafe != "" { - if err := r.SetQueryParam("unsafe", qUnsafe); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_assassinate_by_addr_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_assassinate_by_addr_post_responses.go deleted file mode 100644 index 188d970313..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_assassinate_by_addr_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// GossiperAssassinateByAddrPostReader is a Reader for the GossiperAssassinateByAddrPost structure. -type GossiperAssassinateByAddrPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GossiperAssassinateByAddrPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGossiperAssassinateByAddrPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGossiperAssassinateByAddrPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGossiperAssassinateByAddrPostOK creates a GossiperAssassinateByAddrPostOK with default headers values -func NewGossiperAssassinateByAddrPostOK() *GossiperAssassinateByAddrPostOK { - return &GossiperAssassinateByAddrPostOK{} -} - -/* -GossiperAssassinateByAddrPostOK handles this case with default header values. - -Success -*/ -type GossiperAssassinateByAddrPostOK struct { -} - -func (o *GossiperAssassinateByAddrPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewGossiperAssassinateByAddrPostDefault creates a GossiperAssassinateByAddrPostDefault with default headers values -func NewGossiperAssassinateByAddrPostDefault(code int) *GossiperAssassinateByAddrPostDefault { - return &GossiperAssassinateByAddrPostDefault{ - _statusCode: code, - } -} - -/* -GossiperAssassinateByAddrPostDefault handles this case with default header values. - -internal server error -*/ -type GossiperAssassinateByAddrPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the gossiper assassinate by addr post default response -func (o *GossiperAssassinateByAddrPostDefault) Code() int { - return o._statusCode -} - -func (o *GossiperAssassinateByAddrPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *GossiperAssassinateByAddrPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *GossiperAssassinateByAddrPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_downtime_by_addr_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_downtime_by_addr_get_parameters.go deleted file mode 100644 index 02a33e659d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_downtime_by_addr_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGossiperDowntimeByAddrGetParams creates a new GossiperDowntimeByAddrGetParams object -// with the default values initialized. -func NewGossiperDowntimeByAddrGetParams() *GossiperDowntimeByAddrGetParams { - var () - return &GossiperDowntimeByAddrGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGossiperDowntimeByAddrGetParamsWithTimeout creates a new GossiperDowntimeByAddrGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGossiperDowntimeByAddrGetParamsWithTimeout(timeout time.Duration) *GossiperDowntimeByAddrGetParams { - var () - return &GossiperDowntimeByAddrGetParams{ - - timeout: timeout, - } -} - -// NewGossiperDowntimeByAddrGetParamsWithContext creates a new GossiperDowntimeByAddrGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewGossiperDowntimeByAddrGetParamsWithContext(ctx context.Context) *GossiperDowntimeByAddrGetParams { - var () - return &GossiperDowntimeByAddrGetParams{ - - Context: ctx, - } -} - -// NewGossiperDowntimeByAddrGetParamsWithHTTPClient creates a new GossiperDowntimeByAddrGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGossiperDowntimeByAddrGetParamsWithHTTPClient(client *http.Client) *GossiperDowntimeByAddrGetParams { - var () - return &GossiperDowntimeByAddrGetParams{ - HTTPClient: client, - } -} - -/* -GossiperDowntimeByAddrGetParams contains all the parameters to send to the API endpoint -for the gossiper downtime by addr get operation typically these are written to a http.Request -*/ -type GossiperDowntimeByAddrGetParams struct { - - /*Addr - The endpoint address - - */ - Addr string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the gossiper downtime by addr get params -func (o *GossiperDowntimeByAddrGetParams) WithTimeout(timeout time.Duration) *GossiperDowntimeByAddrGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the gossiper downtime by addr get params -func (o *GossiperDowntimeByAddrGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the gossiper downtime by addr get params -func (o *GossiperDowntimeByAddrGetParams) WithContext(ctx context.Context) *GossiperDowntimeByAddrGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the gossiper downtime by addr get params -func (o *GossiperDowntimeByAddrGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the gossiper downtime by addr get params -func (o *GossiperDowntimeByAddrGetParams) WithHTTPClient(client *http.Client) *GossiperDowntimeByAddrGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the gossiper downtime by addr get params -func (o *GossiperDowntimeByAddrGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAddr adds the addr to the gossiper downtime by addr get params -func (o *GossiperDowntimeByAddrGetParams) WithAddr(addr string) *GossiperDowntimeByAddrGetParams { - o.SetAddr(addr) - return o -} - -// SetAddr adds the addr to the gossiper downtime by addr get params -func (o *GossiperDowntimeByAddrGetParams) SetAddr(addr string) { - o.Addr = addr -} - -// WriteToRequest writes these params to a swagger request -func (o *GossiperDowntimeByAddrGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param addr - if err := r.SetPathParam("addr", o.Addr); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_downtime_by_addr_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_downtime_by_addr_get_responses.go deleted file mode 100644 index 8274e4c61d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_downtime_by_addr_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// GossiperDowntimeByAddrGetReader is a Reader for the GossiperDowntimeByAddrGet structure. -type GossiperDowntimeByAddrGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GossiperDowntimeByAddrGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGossiperDowntimeByAddrGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGossiperDowntimeByAddrGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGossiperDowntimeByAddrGetOK creates a GossiperDowntimeByAddrGetOK with default headers values -func NewGossiperDowntimeByAddrGetOK() *GossiperDowntimeByAddrGetOK { - return &GossiperDowntimeByAddrGetOK{} -} - -/* -GossiperDowntimeByAddrGetOK handles this case with default header values. - -Success -*/ -type GossiperDowntimeByAddrGetOK struct { - Payload interface{} -} - -func (o *GossiperDowntimeByAddrGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *GossiperDowntimeByAddrGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGossiperDowntimeByAddrGetDefault creates a GossiperDowntimeByAddrGetDefault with default headers values -func NewGossiperDowntimeByAddrGetDefault(code int) *GossiperDowntimeByAddrGetDefault { - return &GossiperDowntimeByAddrGetDefault{ - _statusCode: code, - } -} - -/* -GossiperDowntimeByAddrGetDefault handles this case with default header values. - -internal server error -*/ -type GossiperDowntimeByAddrGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the gossiper downtime by addr get default response -func (o *GossiperDowntimeByAddrGetDefault) Code() int { - return o._statusCode -} - -func (o *GossiperDowntimeByAddrGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *GossiperDowntimeByAddrGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *GossiperDowntimeByAddrGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_endpoint_down_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_endpoint_down_get_parameters.go deleted file mode 100644 index f7a3d069d5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_endpoint_down_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGossiperEndpointDownGetParams creates a new GossiperEndpointDownGetParams object -// with the default values initialized. -func NewGossiperEndpointDownGetParams() *GossiperEndpointDownGetParams { - - return &GossiperEndpointDownGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGossiperEndpointDownGetParamsWithTimeout creates a new GossiperEndpointDownGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGossiperEndpointDownGetParamsWithTimeout(timeout time.Duration) *GossiperEndpointDownGetParams { - - return &GossiperEndpointDownGetParams{ - - timeout: timeout, - } -} - -// NewGossiperEndpointDownGetParamsWithContext creates a new GossiperEndpointDownGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewGossiperEndpointDownGetParamsWithContext(ctx context.Context) *GossiperEndpointDownGetParams { - - return &GossiperEndpointDownGetParams{ - - Context: ctx, - } -} - -// NewGossiperEndpointDownGetParamsWithHTTPClient creates a new GossiperEndpointDownGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGossiperEndpointDownGetParamsWithHTTPClient(client *http.Client) *GossiperEndpointDownGetParams { - - return &GossiperEndpointDownGetParams{ - HTTPClient: client, - } -} - -/* -GossiperEndpointDownGetParams contains all the parameters to send to the API endpoint -for the gossiper endpoint down get operation typically these are written to a http.Request -*/ -type GossiperEndpointDownGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the gossiper endpoint down get params -func (o *GossiperEndpointDownGetParams) WithTimeout(timeout time.Duration) *GossiperEndpointDownGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the gossiper endpoint down get params -func (o *GossiperEndpointDownGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the gossiper endpoint down get params -func (o *GossiperEndpointDownGetParams) WithContext(ctx context.Context) *GossiperEndpointDownGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the gossiper endpoint down get params -func (o *GossiperEndpointDownGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the gossiper endpoint down get params -func (o *GossiperEndpointDownGetParams) WithHTTPClient(client *http.Client) *GossiperEndpointDownGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the gossiper endpoint down get params -func (o *GossiperEndpointDownGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *GossiperEndpointDownGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_endpoint_down_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_endpoint_down_get_responses.go deleted file mode 100644 index 4b86c35f46..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_endpoint_down_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// GossiperEndpointDownGetReader is a Reader for the GossiperEndpointDownGet structure. -type GossiperEndpointDownGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GossiperEndpointDownGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGossiperEndpointDownGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGossiperEndpointDownGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGossiperEndpointDownGetOK creates a GossiperEndpointDownGetOK with default headers values -func NewGossiperEndpointDownGetOK() *GossiperEndpointDownGetOK { - return &GossiperEndpointDownGetOK{} -} - -/* -GossiperEndpointDownGetOK handles this case with default header values. - -Success -*/ -type GossiperEndpointDownGetOK struct { - Payload []string -} - -func (o *GossiperEndpointDownGetOK) GetPayload() []string { - return o.Payload -} - -func (o *GossiperEndpointDownGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGossiperEndpointDownGetDefault creates a GossiperEndpointDownGetDefault with default headers values -func NewGossiperEndpointDownGetDefault(code int) *GossiperEndpointDownGetDefault { - return &GossiperEndpointDownGetDefault{ - _statusCode: code, - } -} - -/* -GossiperEndpointDownGetDefault handles this case with default header values. - -internal server error -*/ -type GossiperEndpointDownGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the gossiper endpoint down get default response -func (o *GossiperEndpointDownGetDefault) Code() int { - return o._statusCode -} - -func (o *GossiperEndpointDownGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *GossiperEndpointDownGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *GossiperEndpointDownGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_endpoint_live_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_endpoint_live_get_parameters.go deleted file mode 100644 index 4b66665fe2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_endpoint_live_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGossiperEndpointLiveGetParams creates a new GossiperEndpointLiveGetParams object -// with the default values initialized. -func NewGossiperEndpointLiveGetParams() *GossiperEndpointLiveGetParams { - - return &GossiperEndpointLiveGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGossiperEndpointLiveGetParamsWithTimeout creates a new GossiperEndpointLiveGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGossiperEndpointLiveGetParamsWithTimeout(timeout time.Duration) *GossiperEndpointLiveGetParams { - - return &GossiperEndpointLiveGetParams{ - - timeout: timeout, - } -} - -// NewGossiperEndpointLiveGetParamsWithContext creates a new GossiperEndpointLiveGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewGossiperEndpointLiveGetParamsWithContext(ctx context.Context) *GossiperEndpointLiveGetParams { - - return &GossiperEndpointLiveGetParams{ - - Context: ctx, - } -} - -// NewGossiperEndpointLiveGetParamsWithHTTPClient creates a new GossiperEndpointLiveGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGossiperEndpointLiveGetParamsWithHTTPClient(client *http.Client) *GossiperEndpointLiveGetParams { - - return &GossiperEndpointLiveGetParams{ - HTTPClient: client, - } -} - -/* -GossiperEndpointLiveGetParams contains all the parameters to send to the API endpoint -for the gossiper endpoint live get operation typically these are written to a http.Request -*/ -type GossiperEndpointLiveGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the gossiper endpoint live get params -func (o *GossiperEndpointLiveGetParams) WithTimeout(timeout time.Duration) *GossiperEndpointLiveGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the gossiper endpoint live get params -func (o *GossiperEndpointLiveGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the gossiper endpoint live get params -func (o *GossiperEndpointLiveGetParams) WithContext(ctx context.Context) *GossiperEndpointLiveGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the gossiper endpoint live get params -func (o *GossiperEndpointLiveGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the gossiper endpoint live get params -func (o *GossiperEndpointLiveGetParams) WithHTTPClient(client *http.Client) *GossiperEndpointLiveGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the gossiper endpoint live get params -func (o *GossiperEndpointLiveGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *GossiperEndpointLiveGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_endpoint_live_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_endpoint_live_get_responses.go deleted file mode 100644 index d8cba3d279..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_endpoint_live_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// GossiperEndpointLiveGetReader is a Reader for the GossiperEndpointLiveGet structure. -type GossiperEndpointLiveGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GossiperEndpointLiveGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGossiperEndpointLiveGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGossiperEndpointLiveGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGossiperEndpointLiveGetOK creates a GossiperEndpointLiveGetOK with default headers values -func NewGossiperEndpointLiveGetOK() *GossiperEndpointLiveGetOK { - return &GossiperEndpointLiveGetOK{} -} - -/* -GossiperEndpointLiveGetOK handles this case with default header values. - -Success -*/ -type GossiperEndpointLiveGetOK struct { - Payload []string -} - -func (o *GossiperEndpointLiveGetOK) GetPayload() []string { - return o.Payload -} - -func (o *GossiperEndpointLiveGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGossiperEndpointLiveGetDefault creates a GossiperEndpointLiveGetDefault with default headers values -func NewGossiperEndpointLiveGetDefault(code int) *GossiperEndpointLiveGetDefault { - return &GossiperEndpointLiveGetDefault{ - _statusCode: code, - } -} - -/* -GossiperEndpointLiveGetDefault handles this case with default header values. - -internal server error -*/ -type GossiperEndpointLiveGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the gossiper endpoint live get default response -func (o *GossiperEndpointLiveGetDefault) Code() int { - return o._statusCode -} - -func (o *GossiperEndpointLiveGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *GossiperEndpointLiveGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *GossiperEndpointLiveGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_generation_number_by_addr_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_generation_number_by_addr_get_parameters.go deleted file mode 100644 index 7e8c6e7aba..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_generation_number_by_addr_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGossiperGenerationNumberByAddrGetParams creates a new GossiperGenerationNumberByAddrGetParams object -// with the default values initialized. -func NewGossiperGenerationNumberByAddrGetParams() *GossiperGenerationNumberByAddrGetParams { - var () - return &GossiperGenerationNumberByAddrGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGossiperGenerationNumberByAddrGetParamsWithTimeout creates a new GossiperGenerationNumberByAddrGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGossiperGenerationNumberByAddrGetParamsWithTimeout(timeout time.Duration) *GossiperGenerationNumberByAddrGetParams { - var () - return &GossiperGenerationNumberByAddrGetParams{ - - timeout: timeout, - } -} - -// NewGossiperGenerationNumberByAddrGetParamsWithContext creates a new GossiperGenerationNumberByAddrGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewGossiperGenerationNumberByAddrGetParamsWithContext(ctx context.Context) *GossiperGenerationNumberByAddrGetParams { - var () - return &GossiperGenerationNumberByAddrGetParams{ - - Context: ctx, - } -} - -// NewGossiperGenerationNumberByAddrGetParamsWithHTTPClient creates a new GossiperGenerationNumberByAddrGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGossiperGenerationNumberByAddrGetParamsWithHTTPClient(client *http.Client) *GossiperGenerationNumberByAddrGetParams { - var () - return &GossiperGenerationNumberByAddrGetParams{ - HTTPClient: client, - } -} - -/* -GossiperGenerationNumberByAddrGetParams contains all the parameters to send to the API endpoint -for the gossiper generation number by addr get operation typically these are written to a http.Request -*/ -type GossiperGenerationNumberByAddrGetParams struct { - - /*Addr - The endpoint address - - */ - Addr string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the gossiper generation number by addr get params -func (o *GossiperGenerationNumberByAddrGetParams) WithTimeout(timeout time.Duration) *GossiperGenerationNumberByAddrGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the gossiper generation number by addr get params -func (o *GossiperGenerationNumberByAddrGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the gossiper generation number by addr get params -func (o *GossiperGenerationNumberByAddrGetParams) WithContext(ctx context.Context) *GossiperGenerationNumberByAddrGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the gossiper generation number by addr get params -func (o *GossiperGenerationNumberByAddrGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the gossiper generation number by addr get params -func (o *GossiperGenerationNumberByAddrGetParams) WithHTTPClient(client *http.Client) *GossiperGenerationNumberByAddrGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the gossiper generation number by addr get params -func (o *GossiperGenerationNumberByAddrGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAddr adds the addr to the gossiper generation number by addr get params -func (o *GossiperGenerationNumberByAddrGetParams) WithAddr(addr string) *GossiperGenerationNumberByAddrGetParams { - o.SetAddr(addr) - return o -} - -// SetAddr adds the addr to the gossiper generation number by addr get params -func (o *GossiperGenerationNumberByAddrGetParams) SetAddr(addr string) { - o.Addr = addr -} - -// WriteToRequest writes these params to a swagger request -func (o *GossiperGenerationNumberByAddrGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param addr - if err := r.SetPathParam("addr", o.Addr); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_generation_number_by_addr_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_generation_number_by_addr_get_responses.go deleted file mode 100644 index 90420a7d79..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_generation_number_by_addr_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// GossiperGenerationNumberByAddrGetReader is a Reader for the GossiperGenerationNumberByAddrGet structure. -type GossiperGenerationNumberByAddrGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GossiperGenerationNumberByAddrGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGossiperGenerationNumberByAddrGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGossiperGenerationNumberByAddrGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGossiperGenerationNumberByAddrGetOK creates a GossiperGenerationNumberByAddrGetOK with default headers values -func NewGossiperGenerationNumberByAddrGetOK() *GossiperGenerationNumberByAddrGetOK { - return &GossiperGenerationNumberByAddrGetOK{} -} - -/* -GossiperGenerationNumberByAddrGetOK handles this case with default header values. - -Success -*/ -type GossiperGenerationNumberByAddrGetOK struct { - Payload int32 -} - -func (o *GossiperGenerationNumberByAddrGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *GossiperGenerationNumberByAddrGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGossiperGenerationNumberByAddrGetDefault creates a GossiperGenerationNumberByAddrGetDefault with default headers values -func NewGossiperGenerationNumberByAddrGetDefault(code int) *GossiperGenerationNumberByAddrGetDefault { - return &GossiperGenerationNumberByAddrGetDefault{ - _statusCode: code, - } -} - -/* -GossiperGenerationNumberByAddrGetDefault handles this case with default header values. - -internal server error -*/ -type GossiperGenerationNumberByAddrGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the gossiper generation number by addr get default response -func (o *GossiperGenerationNumberByAddrGetDefault) Code() int { - return o._statusCode -} - -func (o *GossiperGenerationNumberByAddrGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *GossiperGenerationNumberByAddrGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *GossiperGenerationNumberByAddrGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_heart_beat_version_by_addr_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_heart_beat_version_by_addr_get_parameters.go deleted file mode 100644 index a8b2c19c9a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_heart_beat_version_by_addr_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGossiperHeartBeatVersionByAddrGetParams creates a new GossiperHeartBeatVersionByAddrGetParams object -// with the default values initialized. -func NewGossiperHeartBeatVersionByAddrGetParams() *GossiperHeartBeatVersionByAddrGetParams { - var () - return &GossiperHeartBeatVersionByAddrGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewGossiperHeartBeatVersionByAddrGetParamsWithTimeout creates a new GossiperHeartBeatVersionByAddrGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewGossiperHeartBeatVersionByAddrGetParamsWithTimeout(timeout time.Duration) *GossiperHeartBeatVersionByAddrGetParams { - var () - return &GossiperHeartBeatVersionByAddrGetParams{ - - timeout: timeout, - } -} - -// NewGossiperHeartBeatVersionByAddrGetParamsWithContext creates a new GossiperHeartBeatVersionByAddrGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewGossiperHeartBeatVersionByAddrGetParamsWithContext(ctx context.Context) *GossiperHeartBeatVersionByAddrGetParams { - var () - return &GossiperHeartBeatVersionByAddrGetParams{ - - Context: ctx, - } -} - -// NewGossiperHeartBeatVersionByAddrGetParamsWithHTTPClient creates a new GossiperHeartBeatVersionByAddrGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewGossiperHeartBeatVersionByAddrGetParamsWithHTTPClient(client *http.Client) *GossiperHeartBeatVersionByAddrGetParams { - var () - return &GossiperHeartBeatVersionByAddrGetParams{ - HTTPClient: client, - } -} - -/* -GossiperHeartBeatVersionByAddrGetParams contains all the parameters to send to the API endpoint -for the gossiper heart beat version by addr get operation typically these are written to a http.Request -*/ -type GossiperHeartBeatVersionByAddrGetParams struct { - - /*Addr - The endpoint address - - */ - Addr string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the gossiper heart beat version by addr get params -func (o *GossiperHeartBeatVersionByAddrGetParams) WithTimeout(timeout time.Duration) *GossiperHeartBeatVersionByAddrGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the gossiper heart beat version by addr get params -func (o *GossiperHeartBeatVersionByAddrGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the gossiper heart beat version by addr get params -func (o *GossiperHeartBeatVersionByAddrGetParams) WithContext(ctx context.Context) *GossiperHeartBeatVersionByAddrGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the gossiper heart beat version by addr get params -func (o *GossiperHeartBeatVersionByAddrGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the gossiper heart beat version by addr get params -func (o *GossiperHeartBeatVersionByAddrGetParams) WithHTTPClient(client *http.Client) *GossiperHeartBeatVersionByAddrGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the gossiper heart beat version by addr get params -func (o *GossiperHeartBeatVersionByAddrGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAddr adds the addr to the gossiper heart beat version by addr get params -func (o *GossiperHeartBeatVersionByAddrGetParams) WithAddr(addr string) *GossiperHeartBeatVersionByAddrGetParams { - o.SetAddr(addr) - return o -} - -// SetAddr adds the addr to the gossiper heart beat version by addr get params -func (o *GossiperHeartBeatVersionByAddrGetParams) SetAddr(addr string) { - o.Addr = addr -} - -// WriteToRequest writes these params to a swagger request -func (o *GossiperHeartBeatVersionByAddrGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param addr - if err := r.SetPathParam("addr", o.Addr); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_heart_beat_version_by_addr_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_heart_beat_version_by_addr_get_responses.go deleted file mode 100644 index 4966b4b09d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/gossiper_heart_beat_version_by_addr_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// GossiperHeartBeatVersionByAddrGetReader is a Reader for the GossiperHeartBeatVersionByAddrGet structure. -type GossiperHeartBeatVersionByAddrGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GossiperHeartBeatVersionByAddrGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGossiperHeartBeatVersionByAddrGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewGossiperHeartBeatVersionByAddrGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewGossiperHeartBeatVersionByAddrGetOK creates a GossiperHeartBeatVersionByAddrGetOK with default headers values -func NewGossiperHeartBeatVersionByAddrGetOK() *GossiperHeartBeatVersionByAddrGetOK { - return &GossiperHeartBeatVersionByAddrGetOK{} -} - -/* -GossiperHeartBeatVersionByAddrGetOK handles this case with default header values. - -Success -*/ -type GossiperHeartBeatVersionByAddrGetOK struct { - Payload int32 -} - -func (o *GossiperHeartBeatVersionByAddrGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *GossiperHeartBeatVersionByAddrGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGossiperHeartBeatVersionByAddrGetDefault creates a GossiperHeartBeatVersionByAddrGetDefault with default headers values -func NewGossiperHeartBeatVersionByAddrGetDefault(code int) *GossiperHeartBeatVersionByAddrGetDefault { - return &GossiperHeartBeatVersionByAddrGetDefault{ - _statusCode: code, - } -} - -/* -GossiperHeartBeatVersionByAddrGetDefault handles this case with default header values. - -internal server error -*/ -type GossiperHeartBeatVersionByAddrGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the gossiper heart beat version by addr get default response -func (o *GossiperHeartBeatVersionByAddrGetDefault) Code() int { - return o._statusCode -} - -func (o *GossiperHeartBeatVersionByAddrGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *GossiperHeartBeatVersionByAddrGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *GossiperHeartBeatVersionByAddrGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_hints_delete_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_hints_delete_parameters.go deleted file mode 100644 index 7fa2f1a676..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_hints_delete_parameters.go +++ /dev/null @@ -1,147 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewHintedHandoffHintsDeleteParams creates a new HintedHandoffHintsDeleteParams object -// with the default values initialized. -func NewHintedHandoffHintsDeleteParams() *HintedHandoffHintsDeleteParams { - var () - return &HintedHandoffHintsDeleteParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewHintedHandoffHintsDeleteParamsWithTimeout creates a new HintedHandoffHintsDeleteParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewHintedHandoffHintsDeleteParamsWithTimeout(timeout time.Duration) *HintedHandoffHintsDeleteParams { - var () - return &HintedHandoffHintsDeleteParams{ - - timeout: timeout, - } -} - -// NewHintedHandoffHintsDeleteParamsWithContext creates a new HintedHandoffHintsDeleteParams object -// with the default values initialized, and the ability to set a context for a request -func NewHintedHandoffHintsDeleteParamsWithContext(ctx context.Context) *HintedHandoffHintsDeleteParams { - var () - return &HintedHandoffHintsDeleteParams{ - - Context: ctx, - } -} - -// NewHintedHandoffHintsDeleteParamsWithHTTPClient creates a new HintedHandoffHintsDeleteParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewHintedHandoffHintsDeleteParamsWithHTTPClient(client *http.Client) *HintedHandoffHintsDeleteParams { - var () - return &HintedHandoffHintsDeleteParams{ - HTTPClient: client, - } -} - -/* -HintedHandoffHintsDeleteParams contains all the parameters to send to the API endpoint -for the hinted handoff hints delete operation typically these are written to a http.Request -*/ -type HintedHandoffHintsDeleteParams struct { - - /*Host - Optional String rep. of endpoint address to delete hints for - - */ - Host *string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the hinted handoff hints delete params -func (o *HintedHandoffHintsDeleteParams) WithTimeout(timeout time.Duration) *HintedHandoffHintsDeleteParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the hinted handoff hints delete params -func (o *HintedHandoffHintsDeleteParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the hinted handoff hints delete params -func (o *HintedHandoffHintsDeleteParams) WithContext(ctx context.Context) *HintedHandoffHintsDeleteParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the hinted handoff hints delete params -func (o *HintedHandoffHintsDeleteParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the hinted handoff hints delete params -func (o *HintedHandoffHintsDeleteParams) WithHTTPClient(client *http.Client) *HintedHandoffHintsDeleteParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the hinted handoff hints delete params -func (o *HintedHandoffHintsDeleteParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithHost adds the host to the hinted handoff hints delete params -func (o *HintedHandoffHintsDeleteParams) WithHost(host *string) *HintedHandoffHintsDeleteParams { - o.SetHost(host) - return o -} - -// SetHost adds the host to the hinted handoff hints delete params -func (o *HintedHandoffHintsDeleteParams) SetHost(host *string) { - o.Host = host -} - -// WriteToRequest writes these params to a swagger request -func (o *HintedHandoffHintsDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Host != nil { - - // query param host - var qrHost string - if o.Host != nil { - qrHost = *o.Host - } - qHost := qrHost - if qHost != "" { - if err := r.SetQueryParam("host", qHost); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_hints_delete_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_hints_delete_responses.go deleted file mode 100644 index 020d75199b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_hints_delete_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// HintedHandoffHintsDeleteReader is a Reader for the HintedHandoffHintsDelete structure. -type HintedHandoffHintsDeleteReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *HintedHandoffHintsDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewHintedHandoffHintsDeleteOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewHintedHandoffHintsDeleteDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewHintedHandoffHintsDeleteOK creates a HintedHandoffHintsDeleteOK with default headers values -func NewHintedHandoffHintsDeleteOK() *HintedHandoffHintsDeleteOK { - return &HintedHandoffHintsDeleteOK{} -} - -/* -HintedHandoffHintsDeleteOK handles this case with default header values. - -Success -*/ -type HintedHandoffHintsDeleteOK struct { -} - -func (o *HintedHandoffHintsDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewHintedHandoffHintsDeleteDefault creates a HintedHandoffHintsDeleteDefault with default headers values -func NewHintedHandoffHintsDeleteDefault(code int) *HintedHandoffHintsDeleteDefault { - return &HintedHandoffHintsDeleteDefault{ - _statusCode: code, - } -} - -/* -HintedHandoffHintsDeleteDefault handles this case with default header values. - -internal server error -*/ -type HintedHandoffHintsDeleteDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the hinted handoff hints delete default response -func (o *HintedHandoffHintsDeleteDefault) Code() int { - return o._statusCode -} - -func (o *HintedHandoffHintsDeleteDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *HintedHandoffHintsDeleteDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *HintedHandoffHintsDeleteDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_hints_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_hints_get_parameters.go deleted file mode 100644 index e0e946ebae..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_hints_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewHintedHandoffHintsGetParams creates a new HintedHandoffHintsGetParams object -// with the default values initialized. -func NewHintedHandoffHintsGetParams() *HintedHandoffHintsGetParams { - - return &HintedHandoffHintsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewHintedHandoffHintsGetParamsWithTimeout creates a new HintedHandoffHintsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewHintedHandoffHintsGetParamsWithTimeout(timeout time.Duration) *HintedHandoffHintsGetParams { - - return &HintedHandoffHintsGetParams{ - - timeout: timeout, - } -} - -// NewHintedHandoffHintsGetParamsWithContext creates a new HintedHandoffHintsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewHintedHandoffHintsGetParamsWithContext(ctx context.Context) *HintedHandoffHintsGetParams { - - return &HintedHandoffHintsGetParams{ - - Context: ctx, - } -} - -// NewHintedHandoffHintsGetParamsWithHTTPClient creates a new HintedHandoffHintsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewHintedHandoffHintsGetParamsWithHTTPClient(client *http.Client) *HintedHandoffHintsGetParams { - - return &HintedHandoffHintsGetParams{ - HTTPClient: client, - } -} - -/* -HintedHandoffHintsGetParams contains all the parameters to send to the API endpoint -for the hinted handoff hints get operation typically these are written to a http.Request -*/ -type HintedHandoffHintsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the hinted handoff hints get params -func (o *HintedHandoffHintsGetParams) WithTimeout(timeout time.Duration) *HintedHandoffHintsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the hinted handoff hints get params -func (o *HintedHandoffHintsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the hinted handoff hints get params -func (o *HintedHandoffHintsGetParams) WithContext(ctx context.Context) *HintedHandoffHintsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the hinted handoff hints get params -func (o *HintedHandoffHintsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the hinted handoff hints get params -func (o *HintedHandoffHintsGetParams) WithHTTPClient(client *http.Client) *HintedHandoffHintsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the hinted handoff hints get params -func (o *HintedHandoffHintsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *HintedHandoffHintsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_hints_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_hints_get_responses.go deleted file mode 100644 index d823709e53..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_hints_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// HintedHandoffHintsGetReader is a Reader for the HintedHandoffHintsGet structure. -type HintedHandoffHintsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *HintedHandoffHintsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewHintedHandoffHintsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewHintedHandoffHintsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewHintedHandoffHintsGetOK creates a HintedHandoffHintsGetOK with default headers values -func NewHintedHandoffHintsGetOK() *HintedHandoffHintsGetOK { - return &HintedHandoffHintsGetOK{} -} - -/* -HintedHandoffHintsGetOK handles this case with default header values. - -Success -*/ -type HintedHandoffHintsGetOK struct { - Payload []string -} - -func (o *HintedHandoffHintsGetOK) GetPayload() []string { - return o.Payload -} - -func (o *HintedHandoffHintsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewHintedHandoffHintsGetDefault creates a HintedHandoffHintsGetDefault with default headers values -func NewHintedHandoffHintsGetDefault(code int) *HintedHandoffHintsGetDefault { - return &HintedHandoffHintsGetDefault{ - _statusCode: code, - } -} - -/* -HintedHandoffHintsGetDefault handles this case with default header values. - -internal server error -*/ -type HintedHandoffHintsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the hinted handoff hints get default response -func (o *HintedHandoffHintsGetDefault) Code() int { - return o._statusCode -} - -func (o *HintedHandoffHintsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *HintedHandoffHintsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *HintedHandoffHintsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_metrics_create_hint_by_addr_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_metrics_create_hint_by_addr_get_parameters.go deleted file mode 100644 index cbc3477990..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_metrics_create_hint_by_addr_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewHintedHandoffMetricsCreateHintByAddrGetParams creates a new HintedHandoffMetricsCreateHintByAddrGetParams object -// with the default values initialized. -func NewHintedHandoffMetricsCreateHintByAddrGetParams() *HintedHandoffMetricsCreateHintByAddrGetParams { - var () - return &HintedHandoffMetricsCreateHintByAddrGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewHintedHandoffMetricsCreateHintByAddrGetParamsWithTimeout creates a new HintedHandoffMetricsCreateHintByAddrGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewHintedHandoffMetricsCreateHintByAddrGetParamsWithTimeout(timeout time.Duration) *HintedHandoffMetricsCreateHintByAddrGetParams { - var () - return &HintedHandoffMetricsCreateHintByAddrGetParams{ - - timeout: timeout, - } -} - -// NewHintedHandoffMetricsCreateHintByAddrGetParamsWithContext creates a new HintedHandoffMetricsCreateHintByAddrGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewHintedHandoffMetricsCreateHintByAddrGetParamsWithContext(ctx context.Context) *HintedHandoffMetricsCreateHintByAddrGetParams { - var () - return &HintedHandoffMetricsCreateHintByAddrGetParams{ - - Context: ctx, - } -} - -// NewHintedHandoffMetricsCreateHintByAddrGetParamsWithHTTPClient creates a new HintedHandoffMetricsCreateHintByAddrGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewHintedHandoffMetricsCreateHintByAddrGetParamsWithHTTPClient(client *http.Client) *HintedHandoffMetricsCreateHintByAddrGetParams { - var () - return &HintedHandoffMetricsCreateHintByAddrGetParams{ - HTTPClient: client, - } -} - -/* -HintedHandoffMetricsCreateHintByAddrGetParams contains all the parameters to send to the API endpoint -for the hinted handoff metrics create hint by addr get operation typically these are written to a http.Request -*/ -type HintedHandoffMetricsCreateHintByAddrGetParams struct { - - /*Addr - The peer address - - */ - Addr string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the hinted handoff metrics create hint by addr get params -func (o *HintedHandoffMetricsCreateHintByAddrGetParams) WithTimeout(timeout time.Duration) *HintedHandoffMetricsCreateHintByAddrGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the hinted handoff metrics create hint by addr get params -func (o *HintedHandoffMetricsCreateHintByAddrGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the hinted handoff metrics create hint by addr get params -func (o *HintedHandoffMetricsCreateHintByAddrGetParams) WithContext(ctx context.Context) *HintedHandoffMetricsCreateHintByAddrGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the hinted handoff metrics create hint by addr get params -func (o *HintedHandoffMetricsCreateHintByAddrGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the hinted handoff metrics create hint by addr get params -func (o *HintedHandoffMetricsCreateHintByAddrGetParams) WithHTTPClient(client *http.Client) *HintedHandoffMetricsCreateHintByAddrGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the hinted handoff metrics create hint by addr get params -func (o *HintedHandoffMetricsCreateHintByAddrGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAddr adds the addr to the hinted handoff metrics create hint by addr get params -func (o *HintedHandoffMetricsCreateHintByAddrGetParams) WithAddr(addr string) *HintedHandoffMetricsCreateHintByAddrGetParams { - o.SetAddr(addr) - return o -} - -// SetAddr adds the addr to the hinted handoff metrics create hint by addr get params -func (o *HintedHandoffMetricsCreateHintByAddrGetParams) SetAddr(addr string) { - o.Addr = addr -} - -// WriteToRequest writes these params to a swagger request -func (o *HintedHandoffMetricsCreateHintByAddrGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param addr - if err := r.SetPathParam("addr", o.Addr); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_metrics_create_hint_by_addr_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_metrics_create_hint_by_addr_get_responses.go deleted file mode 100644 index 4a1a95d150..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_metrics_create_hint_by_addr_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// HintedHandoffMetricsCreateHintByAddrGetReader is a Reader for the HintedHandoffMetricsCreateHintByAddrGet structure. -type HintedHandoffMetricsCreateHintByAddrGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *HintedHandoffMetricsCreateHintByAddrGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewHintedHandoffMetricsCreateHintByAddrGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewHintedHandoffMetricsCreateHintByAddrGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewHintedHandoffMetricsCreateHintByAddrGetOK creates a HintedHandoffMetricsCreateHintByAddrGetOK with default headers values -func NewHintedHandoffMetricsCreateHintByAddrGetOK() *HintedHandoffMetricsCreateHintByAddrGetOK { - return &HintedHandoffMetricsCreateHintByAddrGetOK{} -} - -/* -HintedHandoffMetricsCreateHintByAddrGetOK handles this case with default header values. - -Success -*/ -type HintedHandoffMetricsCreateHintByAddrGetOK struct { - Payload int32 -} - -func (o *HintedHandoffMetricsCreateHintByAddrGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *HintedHandoffMetricsCreateHintByAddrGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewHintedHandoffMetricsCreateHintByAddrGetDefault creates a HintedHandoffMetricsCreateHintByAddrGetDefault with default headers values -func NewHintedHandoffMetricsCreateHintByAddrGetDefault(code int) *HintedHandoffMetricsCreateHintByAddrGetDefault { - return &HintedHandoffMetricsCreateHintByAddrGetDefault{ - _statusCode: code, - } -} - -/* -HintedHandoffMetricsCreateHintByAddrGetDefault handles this case with default header values. - -internal server error -*/ -type HintedHandoffMetricsCreateHintByAddrGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the hinted handoff metrics create hint by addr get default response -func (o *HintedHandoffMetricsCreateHintByAddrGetDefault) Code() int { - return o._statusCode -} - -func (o *HintedHandoffMetricsCreateHintByAddrGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *HintedHandoffMetricsCreateHintByAddrGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *HintedHandoffMetricsCreateHintByAddrGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_metrics_not_stored_hints_by_addr_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_metrics_not_stored_hints_by_addr_get_parameters.go deleted file mode 100644 index d18c0e820d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_metrics_not_stored_hints_by_addr_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewHintedHandoffMetricsNotStoredHintsByAddrGetParams creates a new HintedHandoffMetricsNotStoredHintsByAddrGetParams object -// with the default values initialized. -func NewHintedHandoffMetricsNotStoredHintsByAddrGetParams() *HintedHandoffMetricsNotStoredHintsByAddrGetParams { - var () - return &HintedHandoffMetricsNotStoredHintsByAddrGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewHintedHandoffMetricsNotStoredHintsByAddrGetParamsWithTimeout creates a new HintedHandoffMetricsNotStoredHintsByAddrGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewHintedHandoffMetricsNotStoredHintsByAddrGetParamsWithTimeout(timeout time.Duration) *HintedHandoffMetricsNotStoredHintsByAddrGetParams { - var () - return &HintedHandoffMetricsNotStoredHintsByAddrGetParams{ - - timeout: timeout, - } -} - -// NewHintedHandoffMetricsNotStoredHintsByAddrGetParamsWithContext creates a new HintedHandoffMetricsNotStoredHintsByAddrGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewHintedHandoffMetricsNotStoredHintsByAddrGetParamsWithContext(ctx context.Context) *HintedHandoffMetricsNotStoredHintsByAddrGetParams { - var () - return &HintedHandoffMetricsNotStoredHintsByAddrGetParams{ - - Context: ctx, - } -} - -// NewHintedHandoffMetricsNotStoredHintsByAddrGetParamsWithHTTPClient creates a new HintedHandoffMetricsNotStoredHintsByAddrGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewHintedHandoffMetricsNotStoredHintsByAddrGetParamsWithHTTPClient(client *http.Client) *HintedHandoffMetricsNotStoredHintsByAddrGetParams { - var () - return &HintedHandoffMetricsNotStoredHintsByAddrGetParams{ - HTTPClient: client, - } -} - -/* -HintedHandoffMetricsNotStoredHintsByAddrGetParams contains all the parameters to send to the API endpoint -for the hinted handoff metrics not stored hints by addr get operation typically these are written to a http.Request -*/ -type HintedHandoffMetricsNotStoredHintsByAddrGetParams struct { - - /*Addr - The peer address - - */ - Addr string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the hinted handoff metrics not stored hints by addr get params -func (o *HintedHandoffMetricsNotStoredHintsByAddrGetParams) WithTimeout(timeout time.Duration) *HintedHandoffMetricsNotStoredHintsByAddrGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the hinted handoff metrics not stored hints by addr get params -func (o *HintedHandoffMetricsNotStoredHintsByAddrGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the hinted handoff metrics not stored hints by addr get params -func (o *HintedHandoffMetricsNotStoredHintsByAddrGetParams) WithContext(ctx context.Context) *HintedHandoffMetricsNotStoredHintsByAddrGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the hinted handoff metrics not stored hints by addr get params -func (o *HintedHandoffMetricsNotStoredHintsByAddrGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the hinted handoff metrics not stored hints by addr get params -func (o *HintedHandoffMetricsNotStoredHintsByAddrGetParams) WithHTTPClient(client *http.Client) *HintedHandoffMetricsNotStoredHintsByAddrGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the hinted handoff metrics not stored hints by addr get params -func (o *HintedHandoffMetricsNotStoredHintsByAddrGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAddr adds the addr to the hinted handoff metrics not stored hints by addr get params -func (o *HintedHandoffMetricsNotStoredHintsByAddrGetParams) WithAddr(addr string) *HintedHandoffMetricsNotStoredHintsByAddrGetParams { - o.SetAddr(addr) - return o -} - -// SetAddr adds the addr to the hinted handoff metrics not stored hints by addr get params -func (o *HintedHandoffMetricsNotStoredHintsByAddrGetParams) SetAddr(addr string) { - o.Addr = addr -} - -// WriteToRequest writes these params to a swagger request -func (o *HintedHandoffMetricsNotStoredHintsByAddrGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param addr - if err := r.SetPathParam("addr", o.Addr); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_metrics_not_stored_hints_by_addr_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_metrics_not_stored_hints_by_addr_get_responses.go deleted file mode 100644 index 153dfebdb4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_metrics_not_stored_hints_by_addr_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// HintedHandoffMetricsNotStoredHintsByAddrGetReader is a Reader for the HintedHandoffMetricsNotStoredHintsByAddrGet structure. -type HintedHandoffMetricsNotStoredHintsByAddrGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *HintedHandoffMetricsNotStoredHintsByAddrGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewHintedHandoffMetricsNotStoredHintsByAddrGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewHintedHandoffMetricsNotStoredHintsByAddrGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewHintedHandoffMetricsNotStoredHintsByAddrGetOK creates a HintedHandoffMetricsNotStoredHintsByAddrGetOK with default headers values -func NewHintedHandoffMetricsNotStoredHintsByAddrGetOK() *HintedHandoffMetricsNotStoredHintsByAddrGetOK { - return &HintedHandoffMetricsNotStoredHintsByAddrGetOK{} -} - -/* -HintedHandoffMetricsNotStoredHintsByAddrGetOK handles this case with default header values. - -Success -*/ -type HintedHandoffMetricsNotStoredHintsByAddrGetOK struct { - Payload int32 -} - -func (o *HintedHandoffMetricsNotStoredHintsByAddrGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *HintedHandoffMetricsNotStoredHintsByAddrGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewHintedHandoffMetricsNotStoredHintsByAddrGetDefault creates a HintedHandoffMetricsNotStoredHintsByAddrGetDefault with default headers values -func NewHintedHandoffMetricsNotStoredHintsByAddrGetDefault(code int) *HintedHandoffMetricsNotStoredHintsByAddrGetDefault { - return &HintedHandoffMetricsNotStoredHintsByAddrGetDefault{ - _statusCode: code, - } -} - -/* -HintedHandoffMetricsNotStoredHintsByAddrGetDefault handles this case with default header values. - -internal server error -*/ -type HintedHandoffMetricsNotStoredHintsByAddrGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the hinted handoff metrics not stored hints by addr get default response -func (o *HintedHandoffMetricsNotStoredHintsByAddrGetDefault) Code() int { - return o._statusCode -} - -func (o *HintedHandoffMetricsNotStoredHintsByAddrGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *HintedHandoffMetricsNotStoredHintsByAddrGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *HintedHandoffMetricsNotStoredHintsByAddrGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_pause_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_pause_post_parameters.go deleted file mode 100644 index 51c6d796b9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_pause_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewHintedHandoffPausePostParams creates a new HintedHandoffPausePostParams object -// with the default values initialized. -func NewHintedHandoffPausePostParams() *HintedHandoffPausePostParams { - var () - return &HintedHandoffPausePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewHintedHandoffPausePostParamsWithTimeout creates a new HintedHandoffPausePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewHintedHandoffPausePostParamsWithTimeout(timeout time.Duration) *HintedHandoffPausePostParams { - var () - return &HintedHandoffPausePostParams{ - - timeout: timeout, - } -} - -// NewHintedHandoffPausePostParamsWithContext creates a new HintedHandoffPausePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewHintedHandoffPausePostParamsWithContext(ctx context.Context) *HintedHandoffPausePostParams { - var () - return &HintedHandoffPausePostParams{ - - Context: ctx, - } -} - -// NewHintedHandoffPausePostParamsWithHTTPClient creates a new HintedHandoffPausePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewHintedHandoffPausePostParamsWithHTTPClient(client *http.Client) *HintedHandoffPausePostParams { - var () - return &HintedHandoffPausePostParams{ - HTTPClient: client, - } -} - -/* -HintedHandoffPausePostParams contains all the parameters to send to the API endpoint -for the hinted handoff pause post operation typically these are written to a http.Request -*/ -type HintedHandoffPausePostParams struct { - - /*Pause - pause status - - */ - Pause bool - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the hinted handoff pause post params -func (o *HintedHandoffPausePostParams) WithTimeout(timeout time.Duration) *HintedHandoffPausePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the hinted handoff pause post params -func (o *HintedHandoffPausePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the hinted handoff pause post params -func (o *HintedHandoffPausePostParams) WithContext(ctx context.Context) *HintedHandoffPausePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the hinted handoff pause post params -func (o *HintedHandoffPausePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the hinted handoff pause post params -func (o *HintedHandoffPausePostParams) WithHTTPClient(client *http.Client) *HintedHandoffPausePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the hinted handoff pause post params -func (o *HintedHandoffPausePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithPause adds the pause to the hinted handoff pause post params -func (o *HintedHandoffPausePostParams) WithPause(pause bool) *HintedHandoffPausePostParams { - o.SetPause(pause) - return o -} - -// SetPause adds the pause to the hinted handoff pause post params -func (o *HintedHandoffPausePostParams) SetPause(pause bool) { - o.Pause = pause -} - -// WriteToRequest writes these params to a swagger request -func (o *HintedHandoffPausePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param pause - qrPause := o.Pause - qPause := swag.FormatBool(qrPause) - if qPause != "" { - if err := r.SetQueryParam("pause", qPause); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_pause_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_pause_post_responses.go deleted file mode 100644 index d6fc4a9acc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_pause_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// HintedHandoffPausePostReader is a Reader for the HintedHandoffPausePost structure. -type HintedHandoffPausePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *HintedHandoffPausePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewHintedHandoffPausePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewHintedHandoffPausePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewHintedHandoffPausePostOK creates a HintedHandoffPausePostOK with default headers values -func NewHintedHandoffPausePostOK() *HintedHandoffPausePostOK { - return &HintedHandoffPausePostOK{} -} - -/* -HintedHandoffPausePostOK handles this case with default header values. - -Success -*/ -type HintedHandoffPausePostOK struct { -} - -func (o *HintedHandoffPausePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewHintedHandoffPausePostDefault creates a HintedHandoffPausePostDefault with default headers values -func NewHintedHandoffPausePostDefault(code int) *HintedHandoffPausePostDefault { - return &HintedHandoffPausePostDefault{ - _statusCode: code, - } -} - -/* -HintedHandoffPausePostDefault handles this case with default header values. - -internal server error -*/ -type HintedHandoffPausePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the hinted handoff pause post default response -func (o *HintedHandoffPausePostDefault) Code() int { - return o._statusCode -} - -func (o *HintedHandoffPausePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *HintedHandoffPausePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *HintedHandoffPausePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_schedule_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_schedule_post_parameters.go deleted file mode 100644 index faf770ff55..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_schedule_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewHintedHandoffSchedulePostParams creates a new HintedHandoffSchedulePostParams object -// with the default values initialized. -func NewHintedHandoffSchedulePostParams() *HintedHandoffSchedulePostParams { - var () - return &HintedHandoffSchedulePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewHintedHandoffSchedulePostParamsWithTimeout creates a new HintedHandoffSchedulePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewHintedHandoffSchedulePostParamsWithTimeout(timeout time.Duration) *HintedHandoffSchedulePostParams { - var () - return &HintedHandoffSchedulePostParams{ - - timeout: timeout, - } -} - -// NewHintedHandoffSchedulePostParamsWithContext creates a new HintedHandoffSchedulePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewHintedHandoffSchedulePostParamsWithContext(ctx context.Context) *HintedHandoffSchedulePostParams { - var () - return &HintedHandoffSchedulePostParams{ - - Context: ctx, - } -} - -// NewHintedHandoffSchedulePostParamsWithHTTPClient creates a new HintedHandoffSchedulePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewHintedHandoffSchedulePostParamsWithHTTPClient(client *http.Client) *HintedHandoffSchedulePostParams { - var () - return &HintedHandoffSchedulePostParams{ - HTTPClient: client, - } -} - -/* -HintedHandoffSchedulePostParams contains all the parameters to send to the API endpoint -for the hinted handoff schedule post operation typically these are written to a http.Request -*/ -type HintedHandoffSchedulePostParams struct { - - /*Host - String rep. of endpoint address - - */ - Host string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the hinted handoff schedule post params -func (o *HintedHandoffSchedulePostParams) WithTimeout(timeout time.Duration) *HintedHandoffSchedulePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the hinted handoff schedule post params -func (o *HintedHandoffSchedulePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the hinted handoff schedule post params -func (o *HintedHandoffSchedulePostParams) WithContext(ctx context.Context) *HintedHandoffSchedulePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the hinted handoff schedule post params -func (o *HintedHandoffSchedulePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the hinted handoff schedule post params -func (o *HintedHandoffSchedulePostParams) WithHTTPClient(client *http.Client) *HintedHandoffSchedulePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the hinted handoff schedule post params -func (o *HintedHandoffSchedulePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithHost adds the host to the hinted handoff schedule post params -func (o *HintedHandoffSchedulePostParams) WithHost(host string) *HintedHandoffSchedulePostParams { - o.SetHost(host) - return o -} - -// SetHost adds the host to the hinted handoff schedule post params -func (o *HintedHandoffSchedulePostParams) SetHost(host string) { - o.Host = host -} - -// WriteToRequest writes these params to a swagger request -func (o *HintedHandoffSchedulePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param host - qrHost := o.Host - qHost := qrHost - if qHost != "" { - if err := r.SetQueryParam("host", qHost); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_schedule_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_schedule_post_responses.go deleted file mode 100644 index bf04e97d60..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/hinted_handoff_schedule_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// HintedHandoffSchedulePostReader is a Reader for the HintedHandoffSchedulePost structure. -type HintedHandoffSchedulePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *HintedHandoffSchedulePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewHintedHandoffSchedulePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewHintedHandoffSchedulePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewHintedHandoffSchedulePostOK creates a HintedHandoffSchedulePostOK with default headers values -func NewHintedHandoffSchedulePostOK() *HintedHandoffSchedulePostOK { - return &HintedHandoffSchedulePostOK{} -} - -/* -HintedHandoffSchedulePostOK handles this case with default header values. - -Success -*/ -type HintedHandoffSchedulePostOK struct { -} - -func (o *HintedHandoffSchedulePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewHintedHandoffSchedulePostDefault creates a HintedHandoffSchedulePostDefault with default headers values -func NewHintedHandoffSchedulePostDefault(code int) *HintedHandoffSchedulePostDefault { - return &HintedHandoffSchedulePostDefault{ - _statusCode: code, - } -} - -/* -HintedHandoffSchedulePostDefault handles this case with default header values. - -internal server error -*/ -type HintedHandoffSchedulePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the hinted handoff schedule post default response -func (o *HintedHandoffSchedulePostDefault) Code() int { - return o._statusCode -} - -func (o *HintedHandoffSchedulePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *HintedHandoffSchedulePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *HintedHandoffSchedulePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/lsa_compact_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/lsa_compact_post_parameters.go deleted file mode 100644 index 8388b51b96..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/lsa_compact_post_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewLsaCompactPostParams creates a new LsaCompactPostParams object -// with the default values initialized. -func NewLsaCompactPostParams() *LsaCompactPostParams { - - return &LsaCompactPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewLsaCompactPostParamsWithTimeout creates a new LsaCompactPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewLsaCompactPostParamsWithTimeout(timeout time.Duration) *LsaCompactPostParams { - - return &LsaCompactPostParams{ - - timeout: timeout, - } -} - -// NewLsaCompactPostParamsWithContext creates a new LsaCompactPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewLsaCompactPostParamsWithContext(ctx context.Context) *LsaCompactPostParams { - - return &LsaCompactPostParams{ - - Context: ctx, - } -} - -// NewLsaCompactPostParamsWithHTTPClient creates a new LsaCompactPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewLsaCompactPostParamsWithHTTPClient(client *http.Client) *LsaCompactPostParams { - - return &LsaCompactPostParams{ - HTTPClient: client, - } -} - -/* -LsaCompactPostParams contains all the parameters to send to the API endpoint -for the lsa compact post operation typically these are written to a http.Request -*/ -type LsaCompactPostParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the lsa compact post params -func (o *LsaCompactPostParams) WithTimeout(timeout time.Duration) *LsaCompactPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the lsa compact post params -func (o *LsaCompactPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the lsa compact post params -func (o *LsaCompactPostParams) WithContext(ctx context.Context) *LsaCompactPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the lsa compact post params -func (o *LsaCompactPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the lsa compact post params -func (o *LsaCompactPostParams) WithHTTPClient(client *http.Client) *LsaCompactPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the lsa compact post params -func (o *LsaCompactPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *LsaCompactPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/lsa_compact_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/lsa_compact_post_responses.go deleted file mode 100644 index 8b48d65bdc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/lsa_compact_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// LsaCompactPostReader is a Reader for the LsaCompactPost structure. -type LsaCompactPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *LsaCompactPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewLsaCompactPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewLsaCompactPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewLsaCompactPostOK creates a LsaCompactPostOK with default headers values -func NewLsaCompactPostOK() *LsaCompactPostOK { - return &LsaCompactPostOK{} -} - -/* -LsaCompactPostOK handles this case with default header values. - -Success -*/ -type LsaCompactPostOK struct { -} - -func (o *LsaCompactPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewLsaCompactPostDefault creates a LsaCompactPostDefault with default headers values -func NewLsaCompactPostDefault(code int) *LsaCompactPostDefault { - return &LsaCompactPostDefault{ - _statusCode: code, - } -} - -/* -LsaCompactPostDefault handles this case with default header values. - -internal server error -*/ -type LsaCompactPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the lsa compact post default response -func (o *LsaCompactPostDefault) Code() int { - return o._statusCode -} - -func (o *LsaCompactPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *LsaCompactPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *LsaCompactPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_dropped_by_ver_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_dropped_by_ver_get_parameters.go deleted file mode 100644 index 4b18dfb114..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_dropped_by_ver_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewMessagingServiceMessagesDroppedByVerGetParams creates a new MessagingServiceMessagesDroppedByVerGetParams object -// with the default values initialized. -func NewMessagingServiceMessagesDroppedByVerGetParams() *MessagingServiceMessagesDroppedByVerGetParams { - - return &MessagingServiceMessagesDroppedByVerGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewMessagingServiceMessagesDroppedByVerGetParamsWithTimeout creates a new MessagingServiceMessagesDroppedByVerGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewMessagingServiceMessagesDroppedByVerGetParamsWithTimeout(timeout time.Duration) *MessagingServiceMessagesDroppedByVerGetParams { - - return &MessagingServiceMessagesDroppedByVerGetParams{ - - timeout: timeout, - } -} - -// NewMessagingServiceMessagesDroppedByVerGetParamsWithContext creates a new MessagingServiceMessagesDroppedByVerGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewMessagingServiceMessagesDroppedByVerGetParamsWithContext(ctx context.Context) *MessagingServiceMessagesDroppedByVerGetParams { - - return &MessagingServiceMessagesDroppedByVerGetParams{ - - Context: ctx, - } -} - -// NewMessagingServiceMessagesDroppedByVerGetParamsWithHTTPClient creates a new MessagingServiceMessagesDroppedByVerGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewMessagingServiceMessagesDroppedByVerGetParamsWithHTTPClient(client *http.Client) *MessagingServiceMessagesDroppedByVerGetParams { - - return &MessagingServiceMessagesDroppedByVerGetParams{ - HTTPClient: client, - } -} - -/* -MessagingServiceMessagesDroppedByVerGetParams contains all the parameters to send to the API endpoint -for the messaging service messages dropped by ver get operation typically these are written to a http.Request -*/ -type MessagingServiceMessagesDroppedByVerGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the messaging service messages dropped by ver get params -func (o *MessagingServiceMessagesDroppedByVerGetParams) WithTimeout(timeout time.Duration) *MessagingServiceMessagesDroppedByVerGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the messaging service messages dropped by ver get params -func (o *MessagingServiceMessagesDroppedByVerGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the messaging service messages dropped by ver get params -func (o *MessagingServiceMessagesDroppedByVerGetParams) WithContext(ctx context.Context) *MessagingServiceMessagesDroppedByVerGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the messaging service messages dropped by ver get params -func (o *MessagingServiceMessagesDroppedByVerGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the messaging service messages dropped by ver get params -func (o *MessagingServiceMessagesDroppedByVerGetParams) WithHTTPClient(client *http.Client) *MessagingServiceMessagesDroppedByVerGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the messaging service messages dropped by ver get params -func (o *MessagingServiceMessagesDroppedByVerGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *MessagingServiceMessagesDroppedByVerGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_dropped_by_ver_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_dropped_by_ver_get_responses.go deleted file mode 100644 index 38b22c332b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_dropped_by_ver_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// MessagingServiceMessagesDroppedByVerGetReader is a Reader for the MessagingServiceMessagesDroppedByVerGet structure. -type MessagingServiceMessagesDroppedByVerGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *MessagingServiceMessagesDroppedByVerGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewMessagingServiceMessagesDroppedByVerGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewMessagingServiceMessagesDroppedByVerGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewMessagingServiceMessagesDroppedByVerGetOK creates a MessagingServiceMessagesDroppedByVerGetOK with default headers values -func NewMessagingServiceMessagesDroppedByVerGetOK() *MessagingServiceMessagesDroppedByVerGetOK { - return &MessagingServiceMessagesDroppedByVerGetOK{} -} - -/* -MessagingServiceMessagesDroppedByVerGetOK handles this case with default header values. - -Success -*/ -type MessagingServiceMessagesDroppedByVerGetOK struct { - Payload []*models.VerbCounter -} - -func (o *MessagingServiceMessagesDroppedByVerGetOK) GetPayload() []*models.VerbCounter { - return o.Payload -} - -func (o *MessagingServiceMessagesDroppedByVerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewMessagingServiceMessagesDroppedByVerGetDefault creates a MessagingServiceMessagesDroppedByVerGetDefault with default headers values -func NewMessagingServiceMessagesDroppedByVerGetDefault(code int) *MessagingServiceMessagesDroppedByVerGetDefault { - return &MessagingServiceMessagesDroppedByVerGetDefault{ - _statusCode: code, - } -} - -/* -MessagingServiceMessagesDroppedByVerGetDefault handles this case with default header values. - -internal server error -*/ -type MessagingServiceMessagesDroppedByVerGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the messaging service messages dropped by ver get default response -func (o *MessagingServiceMessagesDroppedByVerGetDefault) Code() int { - return o._statusCode -} - -func (o *MessagingServiceMessagesDroppedByVerGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *MessagingServiceMessagesDroppedByVerGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *MessagingServiceMessagesDroppedByVerGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_dropped_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_dropped_get_parameters.go deleted file mode 100644 index 4fe7283252..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_dropped_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewMessagingServiceMessagesDroppedGetParams creates a new MessagingServiceMessagesDroppedGetParams object -// with the default values initialized. -func NewMessagingServiceMessagesDroppedGetParams() *MessagingServiceMessagesDroppedGetParams { - - return &MessagingServiceMessagesDroppedGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewMessagingServiceMessagesDroppedGetParamsWithTimeout creates a new MessagingServiceMessagesDroppedGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewMessagingServiceMessagesDroppedGetParamsWithTimeout(timeout time.Duration) *MessagingServiceMessagesDroppedGetParams { - - return &MessagingServiceMessagesDroppedGetParams{ - - timeout: timeout, - } -} - -// NewMessagingServiceMessagesDroppedGetParamsWithContext creates a new MessagingServiceMessagesDroppedGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewMessagingServiceMessagesDroppedGetParamsWithContext(ctx context.Context) *MessagingServiceMessagesDroppedGetParams { - - return &MessagingServiceMessagesDroppedGetParams{ - - Context: ctx, - } -} - -// NewMessagingServiceMessagesDroppedGetParamsWithHTTPClient creates a new MessagingServiceMessagesDroppedGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewMessagingServiceMessagesDroppedGetParamsWithHTTPClient(client *http.Client) *MessagingServiceMessagesDroppedGetParams { - - return &MessagingServiceMessagesDroppedGetParams{ - HTTPClient: client, - } -} - -/* -MessagingServiceMessagesDroppedGetParams contains all the parameters to send to the API endpoint -for the messaging service messages dropped get operation typically these are written to a http.Request -*/ -type MessagingServiceMessagesDroppedGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the messaging service messages dropped get params -func (o *MessagingServiceMessagesDroppedGetParams) WithTimeout(timeout time.Duration) *MessagingServiceMessagesDroppedGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the messaging service messages dropped get params -func (o *MessagingServiceMessagesDroppedGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the messaging service messages dropped get params -func (o *MessagingServiceMessagesDroppedGetParams) WithContext(ctx context.Context) *MessagingServiceMessagesDroppedGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the messaging service messages dropped get params -func (o *MessagingServiceMessagesDroppedGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the messaging service messages dropped get params -func (o *MessagingServiceMessagesDroppedGetParams) WithHTTPClient(client *http.Client) *MessagingServiceMessagesDroppedGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the messaging service messages dropped get params -func (o *MessagingServiceMessagesDroppedGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *MessagingServiceMessagesDroppedGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_dropped_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_dropped_get_responses.go deleted file mode 100644 index 35f97b05dc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_dropped_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// MessagingServiceMessagesDroppedGetReader is a Reader for the MessagingServiceMessagesDroppedGet structure. -type MessagingServiceMessagesDroppedGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *MessagingServiceMessagesDroppedGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewMessagingServiceMessagesDroppedGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewMessagingServiceMessagesDroppedGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewMessagingServiceMessagesDroppedGetOK creates a MessagingServiceMessagesDroppedGetOK with default headers values -func NewMessagingServiceMessagesDroppedGetOK() *MessagingServiceMessagesDroppedGetOK { - return &MessagingServiceMessagesDroppedGetOK{} -} - -/* -MessagingServiceMessagesDroppedGetOK handles this case with default header values. - -Success -*/ -type MessagingServiceMessagesDroppedGetOK struct { - Payload []*models.MessageCounter -} - -func (o *MessagingServiceMessagesDroppedGetOK) GetPayload() []*models.MessageCounter { - return o.Payload -} - -func (o *MessagingServiceMessagesDroppedGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewMessagingServiceMessagesDroppedGetDefault creates a MessagingServiceMessagesDroppedGetDefault with default headers values -func NewMessagingServiceMessagesDroppedGetDefault(code int) *MessagingServiceMessagesDroppedGetDefault { - return &MessagingServiceMessagesDroppedGetDefault{ - _statusCode: code, - } -} - -/* -MessagingServiceMessagesDroppedGetDefault handles this case with default header values. - -internal server error -*/ -type MessagingServiceMessagesDroppedGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the messaging service messages dropped get default response -func (o *MessagingServiceMessagesDroppedGetDefault) Code() int { - return o._statusCode -} - -func (o *MessagingServiceMessagesDroppedGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *MessagingServiceMessagesDroppedGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *MessagingServiceMessagesDroppedGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_exception_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_exception_get_parameters.go deleted file mode 100644 index 5c59ac986e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_exception_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewMessagingServiceMessagesExceptionGetParams creates a new MessagingServiceMessagesExceptionGetParams object -// with the default values initialized. -func NewMessagingServiceMessagesExceptionGetParams() *MessagingServiceMessagesExceptionGetParams { - - return &MessagingServiceMessagesExceptionGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewMessagingServiceMessagesExceptionGetParamsWithTimeout creates a new MessagingServiceMessagesExceptionGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewMessagingServiceMessagesExceptionGetParamsWithTimeout(timeout time.Duration) *MessagingServiceMessagesExceptionGetParams { - - return &MessagingServiceMessagesExceptionGetParams{ - - timeout: timeout, - } -} - -// NewMessagingServiceMessagesExceptionGetParamsWithContext creates a new MessagingServiceMessagesExceptionGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewMessagingServiceMessagesExceptionGetParamsWithContext(ctx context.Context) *MessagingServiceMessagesExceptionGetParams { - - return &MessagingServiceMessagesExceptionGetParams{ - - Context: ctx, - } -} - -// NewMessagingServiceMessagesExceptionGetParamsWithHTTPClient creates a new MessagingServiceMessagesExceptionGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewMessagingServiceMessagesExceptionGetParamsWithHTTPClient(client *http.Client) *MessagingServiceMessagesExceptionGetParams { - - return &MessagingServiceMessagesExceptionGetParams{ - HTTPClient: client, - } -} - -/* -MessagingServiceMessagesExceptionGetParams contains all the parameters to send to the API endpoint -for the messaging service messages exception get operation typically these are written to a http.Request -*/ -type MessagingServiceMessagesExceptionGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the messaging service messages exception get params -func (o *MessagingServiceMessagesExceptionGetParams) WithTimeout(timeout time.Duration) *MessagingServiceMessagesExceptionGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the messaging service messages exception get params -func (o *MessagingServiceMessagesExceptionGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the messaging service messages exception get params -func (o *MessagingServiceMessagesExceptionGetParams) WithContext(ctx context.Context) *MessagingServiceMessagesExceptionGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the messaging service messages exception get params -func (o *MessagingServiceMessagesExceptionGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the messaging service messages exception get params -func (o *MessagingServiceMessagesExceptionGetParams) WithHTTPClient(client *http.Client) *MessagingServiceMessagesExceptionGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the messaging service messages exception get params -func (o *MessagingServiceMessagesExceptionGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *MessagingServiceMessagesExceptionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_exception_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_exception_get_responses.go deleted file mode 100644 index 3338be820b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_exception_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// MessagingServiceMessagesExceptionGetReader is a Reader for the MessagingServiceMessagesExceptionGet structure. -type MessagingServiceMessagesExceptionGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *MessagingServiceMessagesExceptionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewMessagingServiceMessagesExceptionGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewMessagingServiceMessagesExceptionGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewMessagingServiceMessagesExceptionGetOK creates a MessagingServiceMessagesExceptionGetOK with default headers values -func NewMessagingServiceMessagesExceptionGetOK() *MessagingServiceMessagesExceptionGetOK { - return &MessagingServiceMessagesExceptionGetOK{} -} - -/* -MessagingServiceMessagesExceptionGetOK handles this case with default header values. - -Success -*/ -type MessagingServiceMessagesExceptionGetOK struct { - Payload []*models.MessageCounter -} - -func (o *MessagingServiceMessagesExceptionGetOK) GetPayload() []*models.MessageCounter { - return o.Payload -} - -func (o *MessagingServiceMessagesExceptionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewMessagingServiceMessagesExceptionGetDefault creates a MessagingServiceMessagesExceptionGetDefault with default headers values -func NewMessagingServiceMessagesExceptionGetDefault(code int) *MessagingServiceMessagesExceptionGetDefault { - return &MessagingServiceMessagesExceptionGetDefault{ - _statusCode: code, - } -} - -/* -MessagingServiceMessagesExceptionGetDefault handles this case with default header values. - -internal server error -*/ -type MessagingServiceMessagesExceptionGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the messaging service messages exception get default response -func (o *MessagingServiceMessagesExceptionGetDefault) Code() int { - return o._statusCode -} - -func (o *MessagingServiceMessagesExceptionGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *MessagingServiceMessagesExceptionGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *MessagingServiceMessagesExceptionGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_pending_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_pending_get_parameters.go deleted file mode 100644 index 8607e73da2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_pending_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewMessagingServiceMessagesPendingGetParams creates a new MessagingServiceMessagesPendingGetParams object -// with the default values initialized. -func NewMessagingServiceMessagesPendingGetParams() *MessagingServiceMessagesPendingGetParams { - - return &MessagingServiceMessagesPendingGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewMessagingServiceMessagesPendingGetParamsWithTimeout creates a new MessagingServiceMessagesPendingGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewMessagingServiceMessagesPendingGetParamsWithTimeout(timeout time.Duration) *MessagingServiceMessagesPendingGetParams { - - return &MessagingServiceMessagesPendingGetParams{ - - timeout: timeout, - } -} - -// NewMessagingServiceMessagesPendingGetParamsWithContext creates a new MessagingServiceMessagesPendingGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewMessagingServiceMessagesPendingGetParamsWithContext(ctx context.Context) *MessagingServiceMessagesPendingGetParams { - - return &MessagingServiceMessagesPendingGetParams{ - - Context: ctx, - } -} - -// NewMessagingServiceMessagesPendingGetParamsWithHTTPClient creates a new MessagingServiceMessagesPendingGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewMessagingServiceMessagesPendingGetParamsWithHTTPClient(client *http.Client) *MessagingServiceMessagesPendingGetParams { - - return &MessagingServiceMessagesPendingGetParams{ - HTTPClient: client, - } -} - -/* -MessagingServiceMessagesPendingGetParams contains all the parameters to send to the API endpoint -for the messaging service messages pending get operation typically these are written to a http.Request -*/ -type MessagingServiceMessagesPendingGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the messaging service messages pending get params -func (o *MessagingServiceMessagesPendingGetParams) WithTimeout(timeout time.Duration) *MessagingServiceMessagesPendingGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the messaging service messages pending get params -func (o *MessagingServiceMessagesPendingGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the messaging service messages pending get params -func (o *MessagingServiceMessagesPendingGetParams) WithContext(ctx context.Context) *MessagingServiceMessagesPendingGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the messaging service messages pending get params -func (o *MessagingServiceMessagesPendingGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the messaging service messages pending get params -func (o *MessagingServiceMessagesPendingGetParams) WithHTTPClient(client *http.Client) *MessagingServiceMessagesPendingGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the messaging service messages pending get params -func (o *MessagingServiceMessagesPendingGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *MessagingServiceMessagesPendingGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_pending_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_pending_get_responses.go deleted file mode 100644 index cbcd5cae0d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_pending_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// MessagingServiceMessagesPendingGetReader is a Reader for the MessagingServiceMessagesPendingGet structure. -type MessagingServiceMessagesPendingGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *MessagingServiceMessagesPendingGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewMessagingServiceMessagesPendingGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewMessagingServiceMessagesPendingGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewMessagingServiceMessagesPendingGetOK creates a MessagingServiceMessagesPendingGetOK with default headers values -func NewMessagingServiceMessagesPendingGetOK() *MessagingServiceMessagesPendingGetOK { - return &MessagingServiceMessagesPendingGetOK{} -} - -/* -MessagingServiceMessagesPendingGetOK handles this case with default header values. - -Success -*/ -type MessagingServiceMessagesPendingGetOK struct { - Payload []*models.MessageCounter -} - -func (o *MessagingServiceMessagesPendingGetOK) GetPayload() []*models.MessageCounter { - return o.Payload -} - -func (o *MessagingServiceMessagesPendingGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewMessagingServiceMessagesPendingGetDefault creates a MessagingServiceMessagesPendingGetDefault with default headers values -func NewMessagingServiceMessagesPendingGetDefault(code int) *MessagingServiceMessagesPendingGetDefault { - return &MessagingServiceMessagesPendingGetDefault{ - _statusCode: code, - } -} - -/* -MessagingServiceMessagesPendingGetDefault handles this case with default header values. - -internal server error -*/ -type MessagingServiceMessagesPendingGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the messaging service messages pending get default response -func (o *MessagingServiceMessagesPendingGetDefault) Code() int { - return o._statusCode -} - -func (o *MessagingServiceMessagesPendingGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *MessagingServiceMessagesPendingGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *MessagingServiceMessagesPendingGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_replied_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_replied_get_parameters.go deleted file mode 100644 index 7212e47417..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_replied_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewMessagingServiceMessagesRepliedGetParams creates a new MessagingServiceMessagesRepliedGetParams object -// with the default values initialized. -func NewMessagingServiceMessagesRepliedGetParams() *MessagingServiceMessagesRepliedGetParams { - - return &MessagingServiceMessagesRepliedGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewMessagingServiceMessagesRepliedGetParamsWithTimeout creates a new MessagingServiceMessagesRepliedGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewMessagingServiceMessagesRepliedGetParamsWithTimeout(timeout time.Duration) *MessagingServiceMessagesRepliedGetParams { - - return &MessagingServiceMessagesRepliedGetParams{ - - timeout: timeout, - } -} - -// NewMessagingServiceMessagesRepliedGetParamsWithContext creates a new MessagingServiceMessagesRepliedGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewMessagingServiceMessagesRepliedGetParamsWithContext(ctx context.Context) *MessagingServiceMessagesRepliedGetParams { - - return &MessagingServiceMessagesRepliedGetParams{ - - Context: ctx, - } -} - -// NewMessagingServiceMessagesRepliedGetParamsWithHTTPClient creates a new MessagingServiceMessagesRepliedGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewMessagingServiceMessagesRepliedGetParamsWithHTTPClient(client *http.Client) *MessagingServiceMessagesRepliedGetParams { - - return &MessagingServiceMessagesRepliedGetParams{ - HTTPClient: client, - } -} - -/* -MessagingServiceMessagesRepliedGetParams contains all the parameters to send to the API endpoint -for the messaging service messages replied get operation typically these are written to a http.Request -*/ -type MessagingServiceMessagesRepliedGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the messaging service messages replied get params -func (o *MessagingServiceMessagesRepliedGetParams) WithTimeout(timeout time.Duration) *MessagingServiceMessagesRepliedGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the messaging service messages replied get params -func (o *MessagingServiceMessagesRepliedGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the messaging service messages replied get params -func (o *MessagingServiceMessagesRepliedGetParams) WithContext(ctx context.Context) *MessagingServiceMessagesRepliedGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the messaging service messages replied get params -func (o *MessagingServiceMessagesRepliedGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the messaging service messages replied get params -func (o *MessagingServiceMessagesRepliedGetParams) WithHTTPClient(client *http.Client) *MessagingServiceMessagesRepliedGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the messaging service messages replied get params -func (o *MessagingServiceMessagesRepliedGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *MessagingServiceMessagesRepliedGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_replied_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_replied_get_responses.go deleted file mode 100644 index b028987d9a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_replied_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// MessagingServiceMessagesRepliedGetReader is a Reader for the MessagingServiceMessagesRepliedGet structure. -type MessagingServiceMessagesRepliedGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *MessagingServiceMessagesRepliedGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewMessagingServiceMessagesRepliedGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewMessagingServiceMessagesRepliedGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewMessagingServiceMessagesRepliedGetOK creates a MessagingServiceMessagesRepliedGetOK with default headers values -func NewMessagingServiceMessagesRepliedGetOK() *MessagingServiceMessagesRepliedGetOK { - return &MessagingServiceMessagesRepliedGetOK{} -} - -/* -MessagingServiceMessagesRepliedGetOK handles this case with default header values. - -Success -*/ -type MessagingServiceMessagesRepliedGetOK struct { - Payload []*models.MessageCounter -} - -func (o *MessagingServiceMessagesRepliedGetOK) GetPayload() []*models.MessageCounter { - return o.Payload -} - -func (o *MessagingServiceMessagesRepliedGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewMessagingServiceMessagesRepliedGetDefault creates a MessagingServiceMessagesRepliedGetDefault with default headers values -func NewMessagingServiceMessagesRepliedGetDefault(code int) *MessagingServiceMessagesRepliedGetDefault { - return &MessagingServiceMessagesRepliedGetDefault{ - _statusCode: code, - } -} - -/* -MessagingServiceMessagesRepliedGetDefault handles this case with default header values. - -internal server error -*/ -type MessagingServiceMessagesRepliedGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the messaging service messages replied get default response -func (o *MessagingServiceMessagesRepliedGetDefault) Code() int { - return o._statusCode -} - -func (o *MessagingServiceMessagesRepliedGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *MessagingServiceMessagesRepliedGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *MessagingServiceMessagesRepliedGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_respond_completed_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_respond_completed_get_parameters.go deleted file mode 100644 index 9c0d4231b0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_respond_completed_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewMessagingServiceMessagesRespondCompletedGetParams creates a new MessagingServiceMessagesRespondCompletedGetParams object -// with the default values initialized. -func NewMessagingServiceMessagesRespondCompletedGetParams() *MessagingServiceMessagesRespondCompletedGetParams { - - return &MessagingServiceMessagesRespondCompletedGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewMessagingServiceMessagesRespondCompletedGetParamsWithTimeout creates a new MessagingServiceMessagesRespondCompletedGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewMessagingServiceMessagesRespondCompletedGetParamsWithTimeout(timeout time.Duration) *MessagingServiceMessagesRespondCompletedGetParams { - - return &MessagingServiceMessagesRespondCompletedGetParams{ - - timeout: timeout, - } -} - -// NewMessagingServiceMessagesRespondCompletedGetParamsWithContext creates a new MessagingServiceMessagesRespondCompletedGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewMessagingServiceMessagesRespondCompletedGetParamsWithContext(ctx context.Context) *MessagingServiceMessagesRespondCompletedGetParams { - - return &MessagingServiceMessagesRespondCompletedGetParams{ - - Context: ctx, - } -} - -// NewMessagingServiceMessagesRespondCompletedGetParamsWithHTTPClient creates a new MessagingServiceMessagesRespondCompletedGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewMessagingServiceMessagesRespondCompletedGetParamsWithHTTPClient(client *http.Client) *MessagingServiceMessagesRespondCompletedGetParams { - - return &MessagingServiceMessagesRespondCompletedGetParams{ - HTTPClient: client, - } -} - -/* -MessagingServiceMessagesRespondCompletedGetParams contains all the parameters to send to the API endpoint -for the messaging service messages respond completed get operation typically these are written to a http.Request -*/ -type MessagingServiceMessagesRespondCompletedGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the messaging service messages respond completed get params -func (o *MessagingServiceMessagesRespondCompletedGetParams) WithTimeout(timeout time.Duration) *MessagingServiceMessagesRespondCompletedGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the messaging service messages respond completed get params -func (o *MessagingServiceMessagesRespondCompletedGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the messaging service messages respond completed get params -func (o *MessagingServiceMessagesRespondCompletedGetParams) WithContext(ctx context.Context) *MessagingServiceMessagesRespondCompletedGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the messaging service messages respond completed get params -func (o *MessagingServiceMessagesRespondCompletedGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the messaging service messages respond completed get params -func (o *MessagingServiceMessagesRespondCompletedGetParams) WithHTTPClient(client *http.Client) *MessagingServiceMessagesRespondCompletedGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the messaging service messages respond completed get params -func (o *MessagingServiceMessagesRespondCompletedGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *MessagingServiceMessagesRespondCompletedGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_respond_completed_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_respond_completed_get_responses.go deleted file mode 100644 index 68f1374756..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_respond_completed_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// MessagingServiceMessagesRespondCompletedGetReader is a Reader for the MessagingServiceMessagesRespondCompletedGet structure. -type MessagingServiceMessagesRespondCompletedGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *MessagingServiceMessagesRespondCompletedGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewMessagingServiceMessagesRespondCompletedGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewMessagingServiceMessagesRespondCompletedGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewMessagingServiceMessagesRespondCompletedGetOK creates a MessagingServiceMessagesRespondCompletedGetOK with default headers values -func NewMessagingServiceMessagesRespondCompletedGetOK() *MessagingServiceMessagesRespondCompletedGetOK { - return &MessagingServiceMessagesRespondCompletedGetOK{} -} - -/* -MessagingServiceMessagesRespondCompletedGetOK handles this case with default header values. - -Success -*/ -type MessagingServiceMessagesRespondCompletedGetOK struct { - Payload []*models.MessageCounter -} - -func (o *MessagingServiceMessagesRespondCompletedGetOK) GetPayload() []*models.MessageCounter { - return o.Payload -} - -func (o *MessagingServiceMessagesRespondCompletedGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewMessagingServiceMessagesRespondCompletedGetDefault creates a MessagingServiceMessagesRespondCompletedGetDefault with default headers values -func NewMessagingServiceMessagesRespondCompletedGetDefault(code int) *MessagingServiceMessagesRespondCompletedGetDefault { - return &MessagingServiceMessagesRespondCompletedGetDefault{ - _statusCode: code, - } -} - -/* -MessagingServiceMessagesRespondCompletedGetDefault handles this case with default header values. - -internal server error -*/ -type MessagingServiceMessagesRespondCompletedGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the messaging service messages respond completed get default response -func (o *MessagingServiceMessagesRespondCompletedGetDefault) Code() int { - return o._statusCode -} - -func (o *MessagingServiceMessagesRespondCompletedGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *MessagingServiceMessagesRespondCompletedGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *MessagingServiceMessagesRespondCompletedGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_respond_pending_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_respond_pending_get_parameters.go deleted file mode 100644 index f8d8512484..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_respond_pending_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewMessagingServiceMessagesRespondPendingGetParams creates a new MessagingServiceMessagesRespondPendingGetParams object -// with the default values initialized. -func NewMessagingServiceMessagesRespondPendingGetParams() *MessagingServiceMessagesRespondPendingGetParams { - - return &MessagingServiceMessagesRespondPendingGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewMessagingServiceMessagesRespondPendingGetParamsWithTimeout creates a new MessagingServiceMessagesRespondPendingGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewMessagingServiceMessagesRespondPendingGetParamsWithTimeout(timeout time.Duration) *MessagingServiceMessagesRespondPendingGetParams { - - return &MessagingServiceMessagesRespondPendingGetParams{ - - timeout: timeout, - } -} - -// NewMessagingServiceMessagesRespondPendingGetParamsWithContext creates a new MessagingServiceMessagesRespondPendingGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewMessagingServiceMessagesRespondPendingGetParamsWithContext(ctx context.Context) *MessagingServiceMessagesRespondPendingGetParams { - - return &MessagingServiceMessagesRespondPendingGetParams{ - - Context: ctx, - } -} - -// NewMessagingServiceMessagesRespondPendingGetParamsWithHTTPClient creates a new MessagingServiceMessagesRespondPendingGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewMessagingServiceMessagesRespondPendingGetParamsWithHTTPClient(client *http.Client) *MessagingServiceMessagesRespondPendingGetParams { - - return &MessagingServiceMessagesRespondPendingGetParams{ - HTTPClient: client, - } -} - -/* -MessagingServiceMessagesRespondPendingGetParams contains all the parameters to send to the API endpoint -for the messaging service messages respond pending get operation typically these are written to a http.Request -*/ -type MessagingServiceMessagesRespondPendingGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the messaging service messages respond pending get params -func (o *MessagingServiceMessagesRespondPendingGetParams) WithTimeout(timeout time.Duration) *MessagingServiceMessagesRespondPendingGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the messaging service messages respond pending get params -func (o *MessagingServiceMessagesRespondPendingGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the messaging service messages respond pending get params -func (o *MessagingServiceMessagesRespondPendingGetParams) WithContext(ctx context.Context) *MessagingServiceMessagesRespondPendingGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the messaging service messages respond pending get params -func (o *MessagingServiceMessagesRespondPendingGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the messaging service messages respond pending get params -func (o *MessagingServiceMessagesRespondPendingGetParams) WithHTTPClient(client *http.Client) *MessagingServiceMessagesRespondPendingGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the messaging service messages respond pending get params -func (o *MessagingServiceMessagesRespondPendingGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *MessagingServiceMessagesRespondPendingGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_respond_pending_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_respond_pending_get_responses.go deleted file mode 100644 index 8ad1fcfc83..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_respond_pending_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// MessagingServiceMessagesRespondPendingGetReader is a Reader for the MessagingServiceMessagesRespondPendingGet structure. -type MessagingServiceMessagesRespondPendingGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *MessagingServiceMessagesRespondPendingGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewMessagingServiceMessagesRespondPendingGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewMessagingServiceMessagesRespondPendingGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewMessagingServiceMessagesRespondPendingGetOK creates a MessagingServiceMessagesRespondPendingGetOK with default headers values -func NewMessagingServiceMessagesRespondPendingGetOK() *MessagingServiceMessagesRespondPendingGetOK { - return &MessagingServiceMessagesRespondPendingGetOK{} -} - -/* -MessagingServiceMessagesRespondPendingGetOK handles this case with default header values. - -Success -*/ -type MessagingServiceMessagesRespondPendingGetOK struct { - Payload []*models.MessageCounter -} - -func (o *MessagingServiceMessagesRespondPendingGetOK) GetPayload() []*models.MessageCounter { - return o.Payload -} - -func (o *MessagingServiceMessagesRespondPendingGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewMessagingServiceMessagesRespondPendingGetDefault creates a MessagingServiceMessagesRespondPendingGetDefault with default headers values -func NewMessagingServiceMessagesRespondPendingGetDefault(code int) *MessagingServiceMessagesRespondPendingGetDefault { - return &MessagingServiceMessagesRespondPendingGetDefault{ - _statusCode: code, - } -} - -/* -MessagingServiceMessagesRespondPendingGetDefault handles this case with default header values. - -internal server error -*/ -type MessagingServiceMessagesRespondPendingGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the messaging service messages respond pending get default response -func (o *MessagingServiceMessagesRespondPendingGetDefault) Code() int { - return o._statusCode -} - -func (o *MessagingServiceMessagesRespondPendingGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *MessagingServiceMessagesRespondPendingGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *MessagingServiceMessagesRespondPendingGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_sent_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_sent_get_parameters.go deleted file mode 100644 index 7691e84b0c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_sent_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewMessagingServiceMessagesSentGetParams creates a new MessagingServiceMessagesSentGetParams object -// with the default values initialized. -func NewMessagingServiceMessagesSentGetParams() *MessagingServiceMessagesSentGetParams { - - return &MessagingServiceMessagesSentGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewMessagingServiceMessagesSentGetParamsWithTimeout creates a new MessagingServiceMessagesSentGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewMessagingServiceMessagesSentGetParamsWithTimeout(timeout time.Duration) *MessagingServiceMessagesSentGetParams { - - return &MessagingServiceMessagesSentGetParams{ - - timeout: timeout, - } -} - -// NewMessagingServiceMessagesSentGetParamsWithContext creates a new MessagingServiceMessagesSentGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewMessagingServiceMessagesSentGetParamsWithContext(ctx context.Context) *MessagingServiceMessagesSentGetParams { - - return &MessagingServiceMessagesSentGetParams{ - - Context: ctx, - } -} - -// NewMessagingServiceMessagesSentGetParamsWithHTTPClient creates a new MessagingServiceMessagesSentGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewMessagingServiceMessagesSentGetParamsWithHTTPClient(client *http.Client) *MessagingServiceMessagesSentGetParams { - - return &MessagingServiceMessagesSentGetParams{ - HTTPClient: client, - } -} - -/* -MessagingServiceMessagesSentGetParams contains all the parameters to send to the API endpoint -for the messaging service messages sent get operation typically these are written to a http.Request -*/ -type MessagingServiceMessagesSentGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the messaging service messages sent get params -func (o *MessagingServiceMessagesSentGetParams) WithTimeout(timeout time.Duration) *MessagingServiceMessagesSentGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the messaging service messages sent get params -func (o *MessagingServiceMessagesSentGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the messaging service messages sent get params -func (o *MessagingServiceMessagesSentGetParams) WithContext(ctx context.Context) *MessagingServiceMessagesSentGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the messaging service messages sent get params -func (o *MessagingServiceMessagesSentGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the messaging service messages sent get params -func (o *MessagingServiceMessagesSentGetParams) WithHTTPClient(client *http.Client) *MessagingServiceMessagesSentGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the messaging service messages sent get params -func (o *MessagingServiceMessagesSentGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *MessagingServiceMessagesSentGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_sent_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_sent_get_responses.go deleted file mode 100644 index bbaaa4807f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_sent_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// MessagingServiceMessagesSentGetReader is a Reader for the MessagingServiceMessagesSentGet structure. -type MessagingServiceMessagesSentGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *MessagingServiceMessagesSentGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewMessagingServiceMessagesSentGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewMessagingServiceMessagesSentGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewMessagingServiceMessagesSentGetOK creates a MessagingServiceMessagesSentGetOK with default headers values -func NewMessagingServiceMessagesSentGetOK() *MessagingServiceMessagesSentGetOK { - return &MessagingServiceMessagesSentGetOK{} -} - -/* -MessagingServiceMessagesSentGetOK handles this case with default header values. - -Success -*/ -type MessagingServiceMessagesSentGetOK struct { - Payload []*models.MessageCounter -} - -func (o *MessagingServiceMessagesSentGetOK) GetPayload() []*models.MessageCounter { - return o.Payload -} - -func (o *MessagingServiceMessagesSentGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewMessagingServiceMessagesSentGetDefault creates a MessagingServiceMessagesSentGetDefault with default headers values -func NewMessagingServiceMessagesSentGetDefault(code int) *MessagingServiceMessagesSentGetDefault { - return &MessagingServiceMessagesSentGetDefault{ - _statusCode: code, - } -} - -/* -MessagingServiceMessagesSentGetDefault handles this case with default header values. - -internal server error -*/ -type MessagingServiceMessagesSentGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the messaging service messages sent get default response -func (o *MessagingServiceMessagesSentGetDefault) Code() int { - return o._statusCode -} - -func (o *MessagingServiceMessagesSentGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *MessagingServiceMessagesSentGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *MessagingServiceMessagesSentGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_timeout_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_timeout_get_parameters.go deleted file mode 100644 index 031ec2aa81..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_timeout_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewMessagingServiceMessagesTimeoutGetParams creates a new MessagingServiceMessagesTimeoutGetParams object -// with the default values initialized. -func NewMessagingServiceMessagesTimeoutGetParams() *MessagingServiceMessagesTimeoutGetParams { - - return &MessagingServiceMessagesTimeoutGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewMessagingServiceMessagesTimeoutGetParamsWithTimeout creates a new MessagingServiceMessagesTimeoutGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewMessagingServiceMessagesTimeoutGetParamsWithTimeout(timeout time.Duration) *MessagingServiceMessagesTimeoutGetParams { - - return &MessagingServiceMessagesTimeoutGetParams{ - - timeout: timeout, - } -} - -// NewMessagingServiceMessagesTimeoutGetParamsWithContext creates a new MessagingServiceMessagesTimeoutGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewMessagingServiceMessagesTimeoutGetParamsWithContext(ctx context.Context) *MessagingServiceMessagesTimeoutGetParams { - - return &MessagingServiceMessagesTimeoutGetParams{ - - Context: ctx, - } -} - -// NewMessagingServiceMessagesTimeoutGetParamsWithHTTPClient creates a new MessagingServiceMessagesTimeoutGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewMessagingServiceMessagesTimeoutGetParamsWithHTTPClient(client *http.Client) *MessagingServiceMessagesTimeoutGetParams { - - return &MessagingServiceMessagesTimeoutGetParams{ - HTTPClient: client, - } -} - -/* -MessagingServiceMessagesTimeoutGetParams contains all the parameters to send to the API endpoint -for the messaging service messages timeout get operation typically these are written to a http.Request -*/ -type MessagingServiceMessagesTimeoutGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the messaging service messages timeout get params -func (o *MessagingServiceMessagesTimeoutGetParams) WithTimeout(timeout time.Duration) *MessagingServiceMessagesTimeoutGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the messaging service messages timeout get params -func (o *MessagingServiceMessagesTimeoutGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the messaging service messages timeout get params -func (o *MessagingServiceMessagesTimeoutGetParams) WithContext(ctx context.Context) *MessagingServiceMessagesTimeoutGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the messaging service messages timeout get params -func (o *MessagingServiceMessagesTimeoutGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the messaging service messages timeout get params -func (o *MessagingServiceMessagesTimeoutGetParams) WithHTTPClient(client *http.Client) *MessagingServiceMessagesTimeoutGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the messaging service messages timeout get params -func (o *MessagingServiceMessagesTimeoutGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *MessagingServiceMessagesTimeoutGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_timeout_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_timeout_get_responses.go deleted file mode 100644 index df6b542640..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_messages_timeout_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// MessagingServiceMessagesTimeoutGetReader is a Reader for the MessagingServiceMessagesTimeoutGet structure. -type MessagingServiceMessagesTimeoutGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *MessagingServiceMessagesTimeoutGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewMessagingServiceMessagesTimeoutGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewMessagingServiceMessagesTimeoutGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewMessagingServiceMessagesTimeoutGetOK creates a MessagingServiceMessagesTimeoutGetOK with default headers values -func NewMessagingServiceMessagesTimeoutGetOK() *MessagingServiceMessagesTimeoutGetOK { - return &MessagingServiceMessagesTimeoutGetOK{} -} - -/* -MessagingServiceMessagesTimeoutGetOK handles this case with default header values. - -Success -*/ -type MessagingServiceMessagesTimeoutGetOK struct { - Payload []*models.MessageCounter -} - -func (o *MessagingServiceMessagesTimeoutGetOK) GetPayload() []*models.MessageCounter { - return o.Payload -} - -func (o *MessagingServiceMessagesTimeoutGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewMessagingServiceMessagesTimeoutGetDefault creates a MessagingServiceMessagesTimeoutGetDefault with default headers values -func NewMessagingServiceMessagesTimeoutGetDefault(code int) *MessagingServiceMessagesTimeoutGetDefault { - return &MessagingServiceMessagesTimeoutGetDefault{ - _statusCode: code, - } -} - -/* -MessagingServiceMessagesTimeoutGetDefault handles this case with default header values. - -internal server error -*/ -type MessagingServiceMessagesTimeoutGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the messaging service messages timeout get default response -func (o *MessagingServiceMessagesTimeoutGetDefault) Code() int { - return o._statusCode -} - -func (o *MessagingServiceMessagesTimeoutGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *MessagingServiceMessagesTimeoutGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *MessagingServiceMessagesTimeoutGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_version_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_version_get_parameters.go deleted file mode 100644 index 1da5af9551..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_version_get_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewMessagingServiceVersionGetParams creates a new MessagingServiceVersionGetParams object -// with the default values initialized. -func NewMessagingServiceVersionGetParams() *MessagingServiceVersionGetParams { - var () - return &MessagingServiceVersionGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewMessagingServiceVersionGetParamsWithTimeout creates a new MessagingServiceVersionGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewMessagingServiceVersionGetParamsWithTimeout(timeout time.Duration) *MessagingServiceVersionGetParams { - var () - return &MessagingServiceVersionGetParams{ - - timeout: timeout, - } -} - -// NewMessagingServiceVersionGetParamsWithContext creates a new MessagingServiceVersionGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewMessagingServiceVersionGetParamsWithContext(ctx context.Context) *MessagingServiceVersionGetParams { - var () - return &MessagingServiceVersionGetParams{ - - Context: ctx, - } -} - -// NewMessagingServiceVersionGetParamsWithHTTPClient creates a new MessagingServiceVersionGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewMessagingServiceVersionGetParamsWithHTTPClient(client *http.Client) *MessagingServiceVersionGetParams { - var () - return &MessagingServiceVersionGetParams{ - HTTPClient: client, - } -} - -/* -MessagingServiceVersionGetParams contains all the parameters to send to the API endpoint -for the messaging service version get operation typically these are written to a http.Request -*/ -type MessagingServiceVersionGetParams struct { - - /*Addr - Address - - */ - Addr string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the messaging service version get params -func (o *MessagingServiceVersionGetParams) WithTimeout(timeout time.Duration) *MessagingServiceVersionGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the messaging service version get params -func (o *MessagingServiceVersionGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the messaging service version get params -func (o *MessagingServiceVersionGetParams) WithContext(ctx context.Context) *MessagingServiceVersionGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the messaging service version get params -func (o *MessagingServiceVersionGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the messaging service version get params -func (o *MessagingServiceVersionGetParams) WithHTTPClient(client *http.Client) *MessagingServiceVersionGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the messaging service version get params -func (o *MessagingServiceVersionGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAddr adds the addr to the messaging service version get params -func (o *MessagingServiceVersionGetParams) WithAddr(addr string) *MessagingServiceVersionGetParams { - o.SetAddr(addr) - return o -} - -// SetAddr adds the addr to the messaging service version get params -func (o *MessagingServiceVersionGetParams) SetAddr(addr string) { - o.Addr = addr -} - -// WriteToRequest writes these params to a swagger request -func (o *MessagingServiceVersionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param addr - qrAddr := o.Addr - qAddr := qrAddr - if qAddr != "" { - if err := r.SetQueryParam("addr", qAddr); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_version_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_version_get_responses.go deleted file mode 100644 index 5cb4d30789..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/messaging_service_version_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// MessagingServiceVersionGetReader is a Reader for the MessagingServiceVersionGet structure. -type MessagingServiceVersionGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *MessagingServiceVersionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewMessagingServiceVersionGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewMessagingServiceVersionGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewMessagingServiceVersionGetOK creates a MessagingServiceVersionGetOK with default headers values -func NewMessagingServiceVersionGetOK() *MessagingServiceVersionGetOK { - return &MessagingServiceVersionGetOK{} -} - -/* -MessagingServiceVersionGetOK handles this case with default header values. - -Success -*/ -type MessagingServiceVersionGetOK struct { - Payload int32 -} - -func (o *MessagingServiceVersionGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *MessagingServiceVersionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewMessagingServiceVersionGetDefault creates a MessagingServiceVersionGetDefault with default headers values -func NewMessagingServiceVersionGetDefault(code int) *MessagingServiceVersionGetDefault { - return &MessagingServiceVersionGetDefault{ - _statusCode: code, - } -} - -/* -MessagingServiceVersionGetDefault handles this case with default header values. - -internal server error -*/ -type MessagingServiceVersionGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the messaging service version get default response -func (o *MessagingServiceVersionGetDefault) Code() int { - return o._statusCode -} - -func (o *MessagingServiceVersionGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *MessagingServiceVersionGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *MessagingServiceVersionGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/operations_client.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/operations_client.go deleted file mode 100644 index db351411a8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/operations_client.go +++ /dev/null @@ -1,15268 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// New creates a new operations API client. -func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { - return &Client{transport: transport, formats: formats} -} - -/* -Client for operations API -*/ -type Client struct { - transport runtime.ClientTransport - formats strfmt.Registry -} - -// ClientService is the interface for Client methods -type ClientService interface { - CacheServiceCounterCacheCapacityPost(params *CacheServiceCounterCacheCapacityPostParams) (*CacheServiceCounterCacheCapacityPostOK, error) - - CacheServiceCounterCacheKeysToSaveGet(params *CacheServiceCounterCacheKeysToSaveGetParams) (*CacheServiceCounterCacheKeysToSaveGetOK, error) - - CacheServiceCounterCacheKeysToSavePost(params *CacheServiceCounterCacheKeysToSavePostParams) (*CacheServiceCounterCacheKeysToSavePostOK, error) - - CacheServiceCounterCacheSavePeriodGet(params *CacheServiceCounterCacheSavePeriodGetParams) (*CacheServiceCounterCacheSavePeriodGetOK, error) - - CacheServiceCounterCacheSavePeriodPost(params *CacheServiceCounterCacheSavePeriodPostParams) (*CacheServiceCounterCacheSavePeriodPostOK, error) - - CacheServiceInvalidateCounterCachePost(params *CacheServiceInvalidateCounterCachePostParams) (*CacheServiceInvalidateCounterCachePostOK, error) - - CacheServiceInvalidateKeyCachePost(params *CacheServiceInvalidateKeyCachePostParams) (*CacheServiceInvalidateKeyCachePostOK, error) - - CacheServiceKeyCacheCapacityPost(params *CacheServiceKeyCacheCapacityPostParams) (*CacheServiceKeyCacheCapacityPostOK, error) - - CacheServiceKeyCacheKeysToSaveGet(params *CacheServiceKeyCacheKeysToSaveGetParams) (*CacheServiceKeyCacheKeysToSaveGetOK, error) - - CacheServiceKeyCacheKeysToSavePost(params *CacheServiceKeyCacheKeysToSavePostParams) (*CacheServiceKeyCacheKeysToSavePostOK, error) - - CacheServiceKeyCacheSavePeriodGet(params *CacheServiceKeyCacheSavePeriodGetParams) (*CacheServiceKeyCacheSavePeriodGetOK, error) - - CacheServiceKeyCacheSavePeriodPost(params *CacheServiceKeyCacheSavePeriodPostParams) (*CacheServiceKeyCacheSavePeriodPostOK, error) - - CacheServiceMetricsCounterCapacityGet(params *CacheServiceMetricsCounterCapacityGetParams) (*CacheServiceMetricsCounterCapacityGetOK, error) - - CacheServiceMetricsCounterEntriesGet(params *CacheServiceMetricsCounterEntriesGetParams) (*CacheServiceMetricsCounterEntriesGetOK, error) - - CacheServiceMetricsCounterHitRateGet(params *CacheServiceMetricsCounterHitRateGetParams) (*CacheServiceMetricsCounterHitRateGetOK, error) - - CacheServiceMetricsCounterHitsGet(params *CacheServiceMetricsCounterHitsGetParams) (*CacheServiceMetricsCounterHitsGetOK, error) - - CacheServiceMetricsCounterHitsMovingAvrageGet(params *CacheServiceMetricsCounterHitsMovingAvrageGetParams) (*CacheServiceMetricsCounterHitsMovingAvrageGetOK, error) - - CacheServiceMetricsCounterRequestsGet(params *CacheServiceMetricsCounterRequestsGetParams) (*CacheServiceMetricsCounterRequestsGetOK, error) - - CacheServiceMetricsCounterRequestsMovingAvrageGet(params *CacheServiceMetricsCounterRequestsMovingAvrageGetParams) (*CacheServiceMetricsCounterRequestsMovingAvrageGetOK, error) - - CacheServiceMetricsCounterSizeGet(params *CacheServiceMetricsCounterSizeGetParams) (*CacheServiceMetricsCounterSizeGetOK, error) - - CacheServiceMetricsKeyCapacityGet(params *CacheServiceMetricsKeyCapacityGetParams) (*CacheServiceMetricsKeyCapacityGetOK, error) - - CacheServiceMetricsKeyEntriesGet(params *CacheServiceMetricsKeyEntriesGetParams) (*CacheServiceMetricsKeyEntriesGetOK, error) - - CacheServiceMetricsKeyHitRateGet(params *CacheServiceMetricsKeyHitRateGetParams) (*CacheServiceMetricsKeyHitRateGetOK, error) - - CacheServiceMetricsKeyHitsGet(params *CacheServiceMetricsKeyHitsGetParams) (*CacheServiceMetricsKeyHitsGetOK, error) - - CacheServiceMetricsKeyHitsMovingAvrageGet(params *CacheServiceMetricsKeyHitsMovingAvrageGetParams) (*CacheServiceMetricsKeyHitsMovingAvrageGetOK, error) - - CacheServiceMetricsKeyRequestsGet(params *CacheServiceMetricsKeyRequestsGetParams) (*CacheServiceMetricsKeyRequestsGetOK, error) - - CacheServiceMetricsKeyRequestsMovingAvrageGet(params *CacheServiceMetricsKeyRequestsMovingAvrageGetParams) (*CacheServiceMetricsKeyRequestsMovingAvrageGetOK, error) - - CacheServiceMetricsKeySizeGet(params *CacheServiceMetricsKeySizeGetParams) (*CacheServiceMetricsKeySizeGetOK, error) - - CacheServiceMetricsRowCapacityGet(params *CacheServiceMetricsRowCapacityGetParams) (*CacheServiceMetricsRowCapacityGetOK, error) - - CacheServiceMetricsRowEntriesGet(params *CacheServiceMetricsRowEntriesGetParams) (*CacheServiceMetricsRowEntriesGetOK, error) - - CacheServiceMetricsRowHitRateGet(params *CacheServiceMetricsRowHitRateGetParams) (*CacheServiceMetricsRowHitRateGetOK, error) - - CacheServiceMetricsRowHitsGet(params *CacheServiceMetricsRowHitsGetParams) (*CacheServiceMetricsRowHitsGetOK, error) - - CacheServiceMetricsRowHitsMovingAvrageGet(params *CacheServiceMetricsRowHitsMovingAvrageGetParams) (*CacheServiceMetricsRowHitsMovingAvrageGetOK, error) - - CacheServiceMetricsRowRequestsGet(params *CacheServiceMetricsRowRequestsGetParams) (*CacheServiceMetricsRowRequestsGetOK, error) - - CacheServiceMetricsRowRequestsMovingAvrageGet(params *CacheServiceMetricsRowRequestsMovingAvrageGetParams) (*CacheServiceMetricsRowRequestsMovingAvrageGetOK, error) - - CacheServiceMetricsRowSizeGet(params *CacheServiceMetricsRowSizeGetParams) (*CacheServiceMetricsRowSizeGetOK, error) - - CacheServiceRowCacheCapacityPost(params *CacheServiceRowCacheCapacityPostParams) (*CacheServiceRowCacheCapacityPostOK, error) - - CacheServiceRowCacheKeysToSaveGet(params *CacheServiceRowCacheKeysToSaveGetParams) (*CacheServiceRowCacheKeysToSaveGetOK, error) - - CacheServiceRowCacheKeysToSavePost(params *CacheServiceRowCacheKeysToSavePostParams) (*CacheServiceRowCacheKeysToSavePostOK, error) - - CacheServiceRowCacheSavePeriodGet(params *CacheServiceRowCacheSavePeriodGetParams) (*CacheServiceRowCacheSavePeriodGetOK, error) - - CacheServiceRowCacheSavePeriodPost(params *CacheServiceRowCacheSavePeriodPostParams) (*CacheServiceRowCacheSavePeriodPostOK, error) - - CacheServiceSaveCachesPost(params *CacheServiceSaveCachesPostParams) (*CacheServiceSaveCachesPostOK, error) - - CollectdByPluginidGet(params *CollectdByPluginidGetParams) (*CollectdByPluginidGetOK, error) - - CollectdByPluginidPost(params *CollectdByPluginidPostParams) (*CollectdByPluginidPostOK, error) - - CollectdGet(params *CollectdGetParams) (*CollectdGetOK, error) - - CollectdPost(params *CollectdPostParams) (*CollectdPostOK, error) - - ColumnFamilyAutocompactionByNameDelete(params *ColumnFamilyAutocompactionByNameDeleteParams) (*ColumnFamilyAutocompactionByNameDeleteOK, error) - - ColumnFamilyAutocompactionByNameGet(params *ColumnFamilyAutocompactionByNameGetParams) (*ColumnFamilyAutocompactionByNameGetOK, error) - - ColumnFamilyAutocompactionByNamePost(params *ColumnFamilyAutocompactionByNamePostParams) (*ColumnFamilyAutocompactionByNamePostOK, error) - - ColumnFamilyBuiltIndexesByNameGet(params *ColumnFamilyBuiltIndexesByNameGetParams) (*ColumnFamilyBuiltIndexesByNameGetOK, error) - - ColumnFamilyCompactionByNamePost(params *ColumnFamilyCompactionByNamePostParams) (*ColumnFamilyCompactionByNamePostOK, error) - - ColumnFamilyCompactionStrategyByNameGet(params *ColumnFamilyCompactionStrategyByNameGetParams) (*ColumnFamilyCompactionStrategyByNameGetOK, error) - - ColumnFamilyCompactionStrategyByNamePost(params *ColumnFamilyCompactionStrategyByNamePostParams) (*ColumnFamilyCompactionStrategyByNamePostOK, error) - - ColumnFamilyCompressionParametersByNameGet(params *ColumnFamilyCompressionParametersByNameGetParams) (*ColumnFamilyCompressionParametersByNameGetOK, error) - - ColumnFamilyCompressionParametersByNamePost(params *ColumnFamilyCompressionParametersByNamePostParams) (*ColumnFamilyCompressionParametersByNamePostOK, error) - - ColumnFamilyCrcCheckChanceByNamePost(params *ColumnFamilyCrcCheckChanceByNamePostParams) (*ColumnFamilyCrcCheckChanceByNamePostOK, error) - - ColumnFamilyDroppableRatioByNameGet(params *ColumnFamilyDroppableRatioByNameGetParams) (*ColumnFamilyDroppableRatioByNameGetOK, error) - - ColumnFamilyEstimateKeysByNameGet(params *ColumnFamilyEstimateKeysByNameGetParams) (*ColumnFamilyEstimateKeysByNameGetOK, error) - - ColumnFamilyGet(params *ColumnFamilyGetParams) (*ColumnFamilyGetOK, error) - - ColumnFamilyLoadSstableByNamePost(params *ColumnFamilyLoadSstableByNamePostParams) (*ColumnFamilyLoadSstableByNamePostOK, error) - - ColumnFamilyMajorCompactionByNamePost(params *ColumnFamilyMajorCompactionByNamePostParams) (*ColumnFamilyMajorCompactionByNamePostOK, error) - - ColumnFamilyMaximumCompactionByNameGet(params *ColumnFamilyMaximumCompactionByNameGetParams) (*ColumnFamilyMaximumCompactionByNameGetOK, error) - - ColumnFamilyMaximumCompactionByNamePost(params *ColumnFamilyMaximumCompactionByNamePostParams) (*ColumnFamilyMaximumCompactionByNamePostOK, error) - - ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGet(params *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams) (*ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetOK, error) - - ColumnFamilyMetricsAllMemtablesLiveDataSizeGet(params *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams) (*ColumnFamilyMetricsAllMemtablesLiveDataSizeGetOK, error) - - ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGet(params *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams) (*ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetOK, error) - - ColumnFamilyMetricsAllMemtablesOffHeapSizeGet(params *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams) (*ColumnFamilyMetricsAllMemtablesOffHeapSizeGetOK, error) - - ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGet(params *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams) (*ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetOK, error) - - ColumnFamilyMetricsAllMemtablesOnHeapSizeGet(params *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams) (*ColumnFamilyMetricsAllMemtablesOnHeapSizeGetOK, error) - - ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGet(params *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams) (*ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetOK, error) - - ColumnFamilyMetricsBloomFilterDiskSpaceUsedGet(params *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams) (*ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetOK, error) - - ColumnFamilyMetricsBloomFilterFalsePositivesByNameGet(params *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams) (*ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetOK, error) - - ColumnFamilyMetricsBloomFilterFalsePositivesGet(params *ColumnFamilyMetricsBloomFilterFalsePositivesGetParams) (*ColumnFamilyMetricsBloomFilterFalsePositivesGetOK, error) - - ColumnFamilyMetricsBloomFilterFalseRatioByNameGet(params *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams) (*ColumnFamilyMetricsBloomFilterFalseRatioByNameGetOK, error) - - ColumnFamilyMetricsBloomFilterFalseRatioGet(params *ColumnFamilyMetricsBloomFilterFalseRatioGetParams) (*ColumnFamilyMetricsBloomFilterFalseRatioGetOK, error) - - ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGet(params *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams) (*ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetOK, error) - - ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGet(params *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams) (*ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetOK, error) - - ColumnFamilyMetricsCasCommitByNameGet(params *ColumnFamilyMetricsCasCommitByNameGetParams) (*ColumnFamilyMetricsCasCommitByNameGetOK, error) - - ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGet(params *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams) (*ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetOK, error) - - ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGet(params *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams) (*ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetOK, error) - - ColumnFamilyMetricsCasPrepareByNameGet(params *ColumnFamilyMetricsCasPrepareByNameGetParams) (*ColumnFamilyMetricsCasPrepareByNameGetOK, error) - - ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGet(params *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams) (*ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetOK, error) - - ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGet(params *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams) (*ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetOK, error) - - ColumnFamilyMetricsCasProposeByNameGet(params *ColumnFamilyMetricsCasProposeByNameGetParams) (*ColumnFamilyMetricsCasProposeByNameGetOK, error) - - ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGet(params *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams) (*ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetOK, error) - - ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGet(params *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams) (*ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetOK, error) - - ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGet(params *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams) (*ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetOK, error) - - ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGet(params *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams) (*ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetOK, error) - - ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGet(params *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams) (*ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetOK, error) - - ColumnFamilyMetricsCompressionRatioByNameGet(params *ColumnFamilyMetricsCompressionRatioByNameGetParams) (*ColumnFamilyMetricsCompressionRatioByNameGetOK, error) - - ColumnFamilyMetricsCompressionRatioGet(params *ColumnFamilyMetricsCompressionRatioGetParams) (*ColumnFamilyMetricsCompressionRatioGetOK, error) - - ColumnFamilyMetricsCoordinatorReadGet(params *ColumnFamilyMetricsCoordinatorReadGetParams) (*ColumnFamilyMetricsCoordinatorReadGetOK, error) - - ColumnFamilyMetricsCoordinatorScanGet(params *ColumnFamilyMetricsCoordinatorScanGetParams) (*ColumnFamilyMetricsCoordinatorScanGetOK, error) - - ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGet(params *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams) (*ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetOK, error) - - ColumnFamilyMetricsEstimatedRowCountByNameGet(params *ColumnFamilyMetricsEstimatedRowCountByNameGetParams) (*ColumnFamilyMetricsEstimatedRowCountByNameGetOK, error) - - ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGet(params *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams) (*ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetOK, error) - - ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGet(params *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams) (*ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetOK, error) - - ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGet(params *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams) (*ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetOK, error) - - ColumnFamilyMetricsKeyCacheHitRateByNameGet(params *ColumnFamilyMetricsKeyCacheHitRateByNameGetParams) (*ColumnFamilyMetricsKeyCacheHitRateByNameGetOK, error) - - ColumnFamilyMetricsLiveDiskSpaceUsedByNameGet(params *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams) (*ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetOK, error) - - ColumnFamilyMetricsLiveDiskSpaceUsedGet(params *ColumnFamilyMetricsLiveDiskSpaceUsedGetParams) (*ColumnFamilyMetricsLiveDiskSpaceUsedGetOK, error) - - ColumnFamilyMetricsLiveScannedHistogramByNameGet(params *ColumnFamilyMetricsLiveScannedHistogramByNameGetParams) (*ColumnFamilyMetricsLiveScannedHistogramByNameGetOK, error) - - ColumnFamilyMetricsLiveSsTableCountByNameGet(params *ColumnFamilyMetricsLiveSsTableCountByNameGetParams) (*ColumnFamilyMetricsLiveSsTableCountByNameGetOK, error) - - ColumnFamilyMetricsLiveSsTableCountGet(params *ColumnFamilyMetricsLiveSsTableCountGetParams) (*ColumnFamilyMetricsLiveSsTableCountGetOK, error) - - ColumnFamilyMetricsMaxRowSizeByNameGet(params *ColumnFamilyMetricsMaxRowSizeByNameGetParams) (*ColumnFamilyMetricsMaxRowSizeByNameGetOK, error) - - ColumnFamilyMetricsMaxRowSizeGet(params *ColumnFamilyMetricsMaxRowSizeGetParams) (*ColumnFamilyMetricsMaxRowSizeGetOK, error) - - ColumnFamilyMetricsMeanRowSizeByNameGet(params *ColumnFamilyMetricsMeanRowSizeByNameGetParams) (*ColumnFamilyMetricsMeanRowSizeByNameGetOK, error) - - ColumnFamilyMetricsMeanRowSizeGet(params *ColumnFamilyMetricsMeanRowSizeGetParams) (*ColumnFamilyMetricsMeanRowSizeGetOK, error) - - ColumnFamilyMetricsMemtableColumnsCountByNameGet(params *ColumnFamilyMetricsMemtableColumnsCountByNameGetParams) (*ColumnFamilyMetricsMemtableColumnsCountByNameGetOK, error) - - ColumnFamilyMetricsMemtableColumnsCountGet(params *ColumnFamilyMetricsMemtableColumnsCountGetParams) (*ColumnFamilyMetricsMemtableColumnsCountGetOK, error) - - ColumnFamilyMetricsMemtableLiveDataSizeByNameGet(params *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams) (*ColumnFamilyMetricsMemtableLiveDataSizeByNameGetOK, error) - - ColumnFamilyMetricsMemtableLiveDataSizeGet(params *ColumnFamilyMetricsMemtableLiveDataSizeGetParams) (*ColumnFamilyMetricsMemtableLiveDataSizeGetOK, error) - - ColumnFamilyMetricsMemtableOffHeapSizeByNameGet(params *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams) (*ColumnFamilyMetricsMemtableOffHeapSizeByNameGetOK, error) - - ColumnFamilyMetricsMemtableOffHeapSizeGet(params *ColumnFamilyMetricsMemtableOffHeapSizeGetParams) (*ColumnFamilyMetricsMemtableOffHeapSizeGetOK, error) - - ColumnFamilyMetricsMemtableOnHeapSizeByNameGet(params *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams) (*ColumnFamilyMetricsMemtableOnHeapSizeByNameGetOK, error) - - ColumnFamilyMetricsMemtableOnHeapSizeGet(params *ColumnFamilyMetricsMemtableOnHeapSizeGetParams) (*ColumnFamilyMetricsMemtableOnHeapSizeGetOK, error) - - ColumnFamilyMetricsMemtableSwitchCountByNameGet(params *ColumnFamilyMetricsMemtableSwitchCountByNameGetParams) (*ColumnFamilyMetricsMemtableSwitchCountByNameGetOK, error) - - ColumnFamilyMetricsMemtableSwitchCountGet(params *ColumnFamilyMetricsMemtableSwitchCountGetParams) (*ColumnFamilyMetricsMemtableSwitchCountGetOK, error) - - ColumnFamilyMetricsMinRowSizeByNameGet(params *ColumnFamilyMetricsMinRowSizeByNameGetParams) (*ColumnFamilyMetricsMinRowSizeByNameGetOK, error) - - ColumnFamilyMetricsMinRowSizeGet(params *ColumnFamilyMetricsMinRowSizeGetParams) (*ColumnFamilyMetricsMinRowSizeGetOK, error) - - ColumnFamilyMetricsPendingCompactionsByNameGet(params *ColumnFamilyMetricsPendingCompactionsByNameGetParams) (*ColumnFamilyMetricsPendingCompactionsByNameGetOK, error) - - ColumnFamilyMetricsPendingCompactionsGet(params *ColumnFamilyMetricsPendingCompactionsGetParams) (*ColumnFamilyMetricsPendingCompactionsGetOK, error) - - ColumnFamilyMetricsPendingFlushesByNameGet(params *ColumnFamilyMetricsPendingFlushesByNameGetParams) (*ColumnFamilyMetricsPendingFlushesByNameGetOK, error) - - ColumnFamilyMetricsPendingFlushesGet(params *ColumnFamilyMetricsPendingFlushesGetParams) (*ColumnFamilyMetricsPendingFlushesGetOK, error) - - ColumnFamilyMetricsRangeLatencyByNameGet(params *ColumnFamilyMetricsRangeLatencyByNameGetParams) (*ColumnFamilyMetricsRangeLatencyByNameGetOK, error) - - ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGet(params *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams) (*ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetOK, error) - - ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGet(params *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams) (*ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetOK, error) - - ColumnFamilyMetricsRangeLatencyGet(params *ColumnFamilyMetricsRangeLatencyGetParams) (*ColumnFamilyMetricsRangeLatencyGetOK, error) - - ColumnFamilyMetricsReadByNameGet(params *ColumnFamilyMetricsReadByNameGetParams) (*ColumnFamilyMetricsReadByNameGetOK, error) - - ColumnFamilyMetricsReadGet(params *ColumnFamilyMetricsReadGetParams) (*ColumnFamilyMetricsReadGetOK, error) - - ColumnFamilyMetricsReadLatencyByNameGet(params *ColumnFamilyMetricsReadLatencyByNameGetParams) (*ColumnFamilyMetricsReadLatencyByNameGetOK, error) - - ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGet(params *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams) (*ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetOK, error) - - ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGet(params *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams) (*ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetOK, error) - - ColumnFamilyMetricsReadLatencyGet(params *ColumnFamilyMetricsReadLatencyGetParams) (*ColumnFamilyMetricsReadLatencyGetOK, error) - - ColumnFamilyMetricsReadLatencyHistogramByNameGet(params *ColumnFamilyMetricsReadLatencyHistogramByNameGetParams) (*ColumnFamilyMetricsReadLatencyHistogramByNameGetOK, error) - - ColumnFamilyMetricsReadLatencyHistogramGet(params *ColumnFamilyMetricsReadLatencyHistogramGetParams) (*ColumnFamilyMetricsReadLatencyHistogramGetOK, error) - - ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGet(params *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams) (*ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetOK, error) - - ColumnFamilyMetricsReadLatencyMovingAverageHistogramGet(params *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams) (*ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetOK, error) - - ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGet(params *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams) (*ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetOK, error) - - ColumnFamilyMetricsRecentBloomFilterFalsePositivesGet(params *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams) (*ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetOK, error) - - ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGet(params *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams) (*ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetOK, error) - - ColumnFamilyMetricsRecentBloomFilterFalseRatioGet(params *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams) (*ColumnFamilyMetricsRecentBloomFilterFalseRatioGetOK, error) - - ColumnFamilyMetricsRowCacheHitByNameGet(params *ColumnFamilyMetricsRowCacheHitByNameGetParams) (*ColumnFamilyMetricsRowCacheHitByNameGetOK, error) - - ColumnFamilyMetricsRowCacheHitGet(params *ColumnFamilyMetricsRowCacheHitGetParams) (*ColumnFamilyMetricsRowCacheHitGetOK, error) - - ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGet(params *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams) (*ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetOK, error) - - ColumnFamilyMetricsRowCacheHitOutOfRangeGet(params *ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams) (*ColumnFamilyMetricsRowCacheHitOutOfRangeGetOK, error) - - ColumnFamilyMetricsRowCacheMissByNameGet(params *ColumnFamilyMetricsRowCacheMissByNameGetParams) (*ColumnFamilyMetricsRowCacheMissByNameGetOK, error) - - ColumnFamilyMetricsRowCacheMissGet(params *ColumnFamilyMetricsRowCacheMissGetParams) (*ColumnFamilyMetricsRowCacheMissGetOK, error) - - ColumnFamilyMetricsSnapshotsSizeByNameGet(params *ColumnFamilyMetricsSnapshotsSizeByNameGetParams) (*ColumnFamilyMetricsSnapshotsSizeByNameGetOK, error) - - ColumnFamilyMetricsSpeculativeRetriesByNameGet(params *ColumnFamilyMetricsSpeculativeRetriesByNameGetParams) (*ColumnFamilyMetricsSpeculativeRetriesByNameGetOK, error) - - ColumnFamilyMetricsSpeculativeRetriesGet(params *ColumnFamilyMetricsSpeculativeRetriesGetParams) (*ColumnFamilyMetricsSpeculativeRetriesGetOK, error) - - ColumnFamilyMetricsSstablesPerReadHistogramByNameGet(params *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams) (*ColumnFamilyMetricsSstablesPerReadHistogramByNameGetOK, error) - - ColumnFamilyMetricsTombstoneScannedHistogramByNameGet(params *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams) (*ColumnFamilyMetricsTombstoneScannedHistogramByNameGetOK, error) - - ColumnFamilyMetricsTotalDiskSpaceUsedByNameGet(params *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams) (*ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetOK, error) - - ColumnFamilyMetricsTotalDiskSpaceUsedGet(params *ColumnFamilyMetricsTotalDiskSpaceUsedGetParams) (*ColumnFamilyMetricsTotalDiskSpaceUsedGetOK, error) - - ColumnFamilyMetricsTrueSnapshotsSizeGet(params *ColumnFamilyMetricsTrueSnapshotsSizeGetParams) (*ColumnFamilyMetricsTrueSnapshotsSizeGetOK, error) - - ColumnFamilyMetricsWaitingOnFreeMemtableGet(params *ColumnFamilyMetricsWaitingOnFreeMemtableGetParams) (*ColumnFamilyMetricsWaitingOnFreeMemtableGetOK, error) - - ColumnFamilyMetricsWriteByNameGet(params *ColumnFamilyMetricsWriteByNameGetParams) (*ColumnFamilyMetricsWriteByNameGetOK, error) - - ColumnFamilyMetricsWriteGet(params *ColumnFamilyMetricsWriteGetParams) (*ColumnFamilyMetricsWriteGetOK, error) - - ColumnFamilyMetricsWriteLatencyByNameGet(params *ColumnFamilyMetricsWriteLatencyByNameGetParams) (*ColumnFamilyMetricsWriteLatencyByNameGetOK, error) - - ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGet(params *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams) (*ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetOK, error) - - ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGet(params *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams) (*ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetOK, error) - - ColumnFamilyMetricsWriteLatencyGet(params *ColumnFamilyMetricsWriteLatencyGetParams) (*ColumnFamilyMetricsWriteLatencyGetOK, error) - - ColumnFamilyMetricsWriteLatencyHistogramByNameGet(params *ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams) (*ColumnFamilyMetricsWriteLatencyHistogramByNameGetOK, error) - - ColumnFamilyMetricsWriteLatencyHistogramGet(params *ColumnFamilyMetricsWriteLatencyHistogramGetParams) (*ColumnFamilyMetricsWriteLatencyHistogramGetOK, error) - - ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGet(params *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams) (*ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetOK, error) - - ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGet(params *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams) (*ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetOK, error) - - ColumnFamilyMinimumCompactionByNameGet(params *ColumnFamilyMinimumCompactionByNameGetParams) (*ColumnFamilyMinimumCompactionByNameGetOK, error) - - ColumnFamilyMinimumCompactionByNamePost(params *ColumnFamilyMinimumCompactionByNamePostParams) (*ColumnFamilyMinimumCompactionByNamePostOK, error) - - ColumnFamilyNameGet(params *ColumnFamilyNameGetParams) (*ColumnFamilyNameGetOK, error) - - ColumnFamilyNameKeyspaceGet(params *ColumnFamilyNameKeyspaceGetParams) (*ColumnFamilyNameKeyspaceGetOK, error) - - ColumnFamilySstablesByKeyByNameGet(params *ColumnFamilySstablesByKeyByNameGetParams) (*ColumnFamilySstablesByKeyByNameGetOK, error) - - ColumnFamilySstablesPerLevelByNameGet(params *ColumnFamilySstablesPerLevelByNameGetParams) (*ColumnFamilySstablesPerLevelByNameGetOK, error) - - ColumnFamilySstablesUnleveledByNameGet(params *ColumnFamilySstablesUnleveledByNameGetParams) (*ColumnFamilySstablesUnleveledByNameGetOK, error) - - CommitLogMetricsWaitingOnCommitGet(params *CommitLogMetricsWaitingOnCommitGetParams) (*CommitLogMetricsWaitingOnCommitGetOK, error) - - CommitLogMetricsWaitingOnSegmentAllocationGet(params *CommitLogMetricsWaitingOnSegmentAllocationGetParams) (*CommitLogMetricsWaitingOnSegmentAllocationGetOK, error) - - CommitlogMetricsCompletedTasksGet(params *CommitlogMetricsCompletedTasksGetParams) (*CommitlogMetricsCompletedTasksGetOK, error) - - CommitlogMetricsPendingTasksGet(params *CommitlogMetricsPendingTasksGetParams) (*CommitlogMetricsPendingTasksGetOK, error) - - CommitlogMetricsTotalCommitLogSizeGet(params *CommitlogMetricsTotalCommitLogSizeGetParams) (*CommitlogMetricsTotalCommitLogSizeGetOK, error) - - CommitlogRecoverByPathPost(params *CommitlogRecoverByPathPostParams) (*CommitlogRecoverByPathPostOK, error) - - CommitlogSegmentsActiveGet(params *CommitlogSegmentsActiveGetParams) (*CommitlogSegmentsActiveGetOK, error) - - CommitlogSegmentsArchivingGet(params *CommitlogSegmentsArchivingGetParams) (*CommitlogSegmentsArchivingGetOK, error) - - CompactionManagerCompactionHistoryGet(params *CompactionManagerCompactionHistoryGetParams) (*CompactionManagerCompactionHistoryGetOK, error) - - CompactionManagerCompactionInfoGet(params *CompactionManagerCompactionInfoGetParams) (*CompactionManagerCompactionInfoGetOK, error) - - CompactionManagerCompactionsGet(params *CompactionManagerCompactionsGetParams) (*CompactionManagerCompactionsGetOK, error) - - CompactionManagerForceUserDefinedCompactionPost(params *CompactionManagerForceUserDefinedCompactionPostParams) (*CompactionManagerForceUserDefinedCompactionPostOK, error) - - CompactionManagerMetricsBytesCompactedGet(params *CompactionManagerMetricsBytesCompactedGetParams) (*CompactionManagerMetricsBytesCompactedGetOK, error) - - CompactionManagerMetricsCompletedTasksGet(params *CompactionManagerMetricsCompletedTasksGetParams) (*CompactionManagerMetricsCompletedTasksGetOK, error) - - CompactionManagerMetricsPendingTasksGet(params *CompactionManagerMetricsPendingTasksGetParams) (*CompactionManagerMetricsPendingTasksGetOK, error) - - CompactionManagerMetricsTotalCompactionsCompletedGet(params *CompactionManagerMetricsTotalCompactionsCompletedGetParams) (*CompactionManagerMetricsTotalCompactionsCompletedGetOK, error) - - CompactionManagerStopCompactionPost(params *CompactionManagerStopCompactionPostParams) (*CompactionManagerStopCompactionPostOK, error) - - FailureDetectorCountEndpointDownGet(params *FailureDetectorCountEndpointDownGetParams) (*FailureDetectorCountEndpointDownGetOK, error) - - FailureDetectorCountEndpointUpGet(params *FailureDetectorCountEndpointUpGetParams) (*FailureDetectorCountEndpointUpGetOK, error) - - FailureDetectorEndpointPhiValuesGet(params *FailureDetectorEndpointPhiValuesGetParams) (*FailureDetectorEndpointPhiValuesGetOK, error) - - FailureDetectorEndpointsGet(params *FailureDetectorEndpointsGetParams) (*FailureDetectorEndpointsGetOK, error) - - FailureDetectorEndpointsStatesByAddrGet(params *FailureDetectorEndpointsStatesByAddrGetParams) (*FailureDetectorEndpointsStatesByAddrGetOK, error) - - FailureDetectorPhiGet(params *FailureDetectorPhiGetParams) (*FailureDetectorPhiGetOK, error) - - FailureDetectorPhiPost(params *FailureDetectorPhiPostParams) (*FailureDetectorPhiPostOK, error) - - FailureDetectorSimpleStatesGet(params *FailureDetectorSimpleStatesGetParams) (*FailureDetectorSimpleStatesGetOK, error) - - GossiperAssassinateByAddrPost(params *GossiperAssassinateByAddrPostParams) (*GossiperAssassinateByAddrPostOK, error) - - GossiperDowntimeByAddrGet(params *GossiperDowntimeByAddrGetParams) (*GossiperDowntimeByAddrGetOK, error) - - GossiperEndpointDownGet(params *GossiperEndpointDownGetParams) (*GossiperEndpointDownGetOK, error) - - GossiperEndpointLiveGet(params *GossiperEndpointLiveGetParams) (*GossiperEndpointLiveGetOK, error) - - GossiperGenerationNumberByAddrGet(params *GossiperGenerationNumberByAddrGetParams) (*GossiperGenerationNumberByAddrGetOK, error) - - GossiperHeartBeatVersionByAddrGet(params *GossiperHeartBeatVersionByAddrGetParams) (*GossiperHeartBeatVersionByAddrGetOK, error) - - HintedHandoffHintsDelete(params *HintedHandoffHintsDeleteParams) (*HintedHandoffHintsDeleteOK, error) - - HintedHandoffHintsGet(params *HintedHandoffHintsGetParams) (*HintedHandoffHintsGetOK, error) - - HintedHandoffMetricsCreateHintByAddrGet(params *HintedHandoffMetricsCreateHintByAddrGetParams) (*HintedHandoffMetricsCreateHintByAddrGetOK, error) - - HintedHandoffMetricsNotStoredHintsByAddrGet(params *HintedHandoffMetricsNotStoredHintsByAddrGetParams) (*HintedHandoffMetricsNotStoredHintsByAddrGetOK, error) - - HintedHandoffPausePost(params *HintedHandoffPausePostParams) (*HintedHandoffPausePostOK, error) - - HintedHandoffSchedulePost(params *HintedHandoffSchedulePostParams) (*HintedHandoffSchedulePostOK, error) - - LsaCompactPost(params *LsaCompactPostParams) (*LsaCompactPostOK, error) - - MessagingServiceMessagesDroppedByVerGet(params *MessagingServiceMessagesDroppedByVerGetParams) (*MessagingServiceMessagesDroppedByVerGetOK, error) - - MessagingServiceMessagesDroppedGet(params *MessagingServiceMessagesDroppedGetParams) (*MessagingServiceMessagesDroppedGetOK, error) - - MessagingServiceMessagesExceptionGet(params *MessagingServiceMessagesExceptionGetParams) (*MessagingServiceMessagesExceptionGetOK, error) - - MessagingServiceMessagesPendingGet(params *MessagingServiceMessagesPendingGetParams) (*MessagingServiceMessagesPendingGetOK, error) - - MessagingServiceMessagesRepliedGet(params *MessagingServiceMessagesRepliedGetParams) (*MessagingServiceMessagesRepliedGetOK, error) - - MessagingServiceMessagesRespondCompletedGet(params *MessagingServiceMessagesRespondCompletedGetParams) (*MessagingServiceMessagesRespondCompletedGetOK, error) - - MessagingServiceMessagesRespondPendingGet(params *MessagingServiceMessagesRespondPendingGetParams) (*MessagingServiceMessagesRespondPendingGetOK, error) - - MessagingServiceMessagesSentGet(params *MessagingServiceMessagesSentGetParams) (*MessagingServiceMessagesSentGetOK, error) - - MessagingServiceMessagesTimeoutGet(params *MessagingServiceMessagesTimeoutGetParams) (*MessagingServiceMessagesTimeoutGetOK, error) - - MessagingServiceVersionGet(params *MessagingServiceVersionGetParams) (*MessagingServiceVersionGetOK, error) - - RaftReadBarrierPost(params *RaftReadBarrierPostParams) (*RaftReadBarrierPostOK, error) - - SnitchDatacenterGet(params *SnitchDatacenterGetParams) (*SnitchDatacenterGetOK, error) - - SnitchNameGet(params *SnitchNameGetParams) (*SnitchNameGetOK, error) - - SnitchRackGet(params *SnitchRackGetParams) (*SnitchRackGetOK, error) - - StorageProxyCasContentionTimeoutGet(params *StorageProxyCasContentionTimeoutGetParams) (*StorageProxyCasContentionTimeoutGetOK, error) - - StorageProxyCasContentionTimeoutPost(params *StorageProxyCasContentionTimeoutPostParams) (*StorageProxyCasContentionTimeoutPostOK, error) - - StorageProxyCounterWriteRPCTimeoutGet(params *StorageProxyCounterWriteRPCTimeoutGetParams) (*StorageProxyCounterWriteRPCTimeoutGetOK, error) - - StorageProxyCounterWriteRPCTimeoutPost(params *StorageProxyCounterWriteRPCTimeoutPostParams) (*StorageProxyCounterWriteRPCTimeoutPostOK, error) - - StorageProxyHintedHandoffEnabledByDcGet(params *StorageProxyHintedHandoffEnabledByDcGetParams) (*StorageProxyHintedHandoffEnabledByDcGetOK, error) - - StorageProxyHintedHandoffEnabledByDcPost(params *StorageProxyHintedHandoffEnabledByDcPostParams) (*StorageProxyHintedHandoffEnabledByDcPostOK, error) - - StorageProxyHintedHandoffEnabledGet(params *StorageProxyHintedHandoffEnabledGetParams) (*StorageProxyHintedHandoffEnabledGetOK, error) - - StorageProxyHintedHandoffEnabledPost(params *StorageProxyHintedHandoffEnabledPostParams) (*StorageProxyHintedHandoffEnabledPostOK, error) - - StorageProxyHintsInProgressGet(params *StorageProxyHintsInProgressGetParams) (*StorageProxyHintsInProgressGetOK, error) - - StorageProxyMaxHintWindowGet(params *StorageProxyMaxHintWindowGetParams) (*StorageProxyMaxHintWindowGetOK, error) - - StorageProxyMaxHintWindowPost(params *StorageProxyMaxHintWindowPostParams) (*StorageProxyMaxHintWindowPostOK, error) - - StorageProxyMaxHintsInProgressGet(params *StorageProxyMaxHintsInProgressGetParams) (*StorageProxyMaxHintsInProgressGetOK, error) - - StorageProxyMaxHintsInProgressPost(params *StorageProxyMaxHintsInProgressPostParams) (*StorageProxyMaxHintsInProgressPostOK, error) - - StorageProxyMetricsCasReadConditionNotMetGet(params *StorageProxyMetricsCasReadConditionNotMetGetParams) (*StorageProxyMetricsCasReadConditionNotMetGetOK, error) - - StorageProxyMetricsCasReadContentionGet(params *StorageProxyMetricsCasReadContentionGetParams) (*StorageProxyMetricsCasReadContentionGetOK, error) - - StorageProxyMetricsCasReadTimeoutsGet(params *StorageProxyMetricsCasReadTimeoutsGetParams) (*StorageProxyMetricsCasReadTimeoutsGetOK, error) - - StorageProxyMetricsCasReadUnavailablesGet(params *StorageProxyMetricsCasReadUnavailablesGetParams) (*StorageProxyMetricsCasReadUnavailablesGetOK, error) - - StorageProxyMetricsCasReadUnfinishedCommitGet(params *StorageProxyMetricsCasReadUnfinishedCommitGetParams) (*StorageProxyMetricsCasReadUnfinishedCommitGetOK, error) - - StorageProxyMetricsCasWriteConditionNotMetGet(params *StorageProxyMetricsCasWriteConditionNotMetGetParams) (*StorageProxyMetricsCasWriteConditionNotMetGetOK, error) - - StorageProxyMetricsCasWriteContentionGet(params *StorageProxyMetricsCasWriteContentionGetParams) (*StorageProxyMetricsCasWriteContentionGetOK, error) - - StorageProxyMetricsCasWriteTimeoutsGet(params *StorageProxyMetricsCasWriteTimeoutsGetParams) (*StorageProxyMetricsCasWriteTimeoutsGetOK, error) - - StorageProxyMetricsCasWriteUnavailablesGet(params *StorageProxyMetricsCasWriteUnavailablesGetParams) (*StorageProxyMetricsCasWriteUnavailablesGetOK, error) - - StorageProxyMetricsCasWriteUnfinishedCommitGet(params *StorageProxyMetricsCasWriteUnfinishedCommitGetParams) (*StorageProxyMetricsCasWriteUnfinishedCommitGetOK, error) - - StorageProxyMetricsRangeEstimatedHistogramGet(params *StorageProxyMetricsRangeEstimatedHistogramGetParams) (*StorageProxyMetricsRangeEstimatedHistogramGetOK, error) - - StorageProxyMetricsRangeGet(params *StorageProxyMetricsRangeGetParams) (*StorageProxyMetricsRangeGetOK, error) - - StorageProxyMetricsRangeHistogramGet(params *StorageProxyMetricsRangeHistogramGetParams) (*StorageProxyMetricsRangeHistogramGetOK, error) - - StorageProxyMetricsRangeMovingAverageHistogramGet(params *StorageProxyMetricsRangeMovingAverageHistogramGetParams) (*StorageProxyMetricsRangeMovingAverageHistogramGetOK, error) - - StorageProxyMetricsRangeTimeoutsGet(params *StorageProxyMetricsRangeTimeoutsGetParams) (*StorageProxyMetricsRangeTimeoutsGetOK, error) - - StorageProxyMetricsRangeTimeoutsRatesGet(params *StorageProxyMetricsRangeTimeoutsRatesGetParams) (*StorageProxyMetricsRangeTimeoutsRatesGetOK, error) - - StorageProxyMetricsRangeUnavailablesGet(params *StorageProxyMetricsRangeUnavailablesGetParams) (*StorageProxyMetricsRangeUnavailablesGetOK, error) - - StorageProxyMetricsRangeUnavailablesRatesGet(params *StorageProxyMetricsRangeUnavailablesRatesGetParams) (*StorageProxyMetricsRangeUnavailablesRatesGetOK, error) - - StorageProxyMetricsReadEstimatedHistogramGet(params *StorageProxyMetricsReadEstimatedHistogramGetParams) (*StorageProxyMetricsReadEstimatedHistogramGetOK, error) - - StorageProxyMetricsReadGet(params *StorageProxyMetricsReadGetParams) (*StorageProxyMetricsReadGetOK, error) - - StorageProxyMetricsReadHistogramGet(params *StorageProxyMetricsReadHistogramGetParams) (*StorageProxyMetricsReadHistogramGetOK, error) - - StorageProxyMetricsReadMovingAverageHistogramGet(params *StorageProxyMetricsReadMovingAverageHistogramGetParams) (*StorageProxyMetricsReadMovingAverageHistogramGetOK, error) - - StorageProxyMetricsReadTimeoutsGet(params *StorageProxyMetricsReadTimeoutsGetParams) (*StorageProxyMetricsReadTimeoutsGetOK, error) - - StorageProxyMetricsReadTimeoutsRatesGet(params *StorageProxyMetricsReadTimeoutsRatesGetParams) (*StorageProxyMetricsReadTimeoutsRatesGetOK, error) - - StorageProxyMetricsReadUnavailablesGet(params *StorageProxyMetricsReadUnavailablesGetParams) (*StorageProxyMetricsReadUnavailablesGetOK, error) - - StorageProxyMetricsReadUnavailablesRatesGet(params *StorageProxyMetricsReadUnavailablesRatesGetParams) (*StorageProxyMetricsReadUnavailablesRatesGetOK, error) - - StorageProxyMetricsWriteEstimatedHistogramGet(params *StorageProxyMetricsWriteEstimatedHistogramGetParams) (*StorageProxyMetricsWriteEstimatedHistogramGetOK, error) - - StorageProxyMetricsWriteGet(params *StorageProxyMetricsWriteGetParams) (*StorageProxyMetricsWriteGetOK, error) - - StorageProxyMetricsWriteHistogramGet(params *StorageProxyMetricsWriteHistogramGetParams) (*StorageProxyMetricsWriteHistogramGetOK, error) - - StorageProxyMetricsWriteMovingAverageHistogramGet(params *StorageProxyMetricsWriteMovingAverageHistogramGetParams) (*StorageProxyMetricsWriteMovingAverageHistogramGetOK, error) - - StorageProxyMetricsWriteTimeoutsGet(params *StorageProxyMetricsWriteTimeoutsGetParams) (*StorageProxyMetricsWriteTimeoutsGetOK, error) - - StorageProxyMetricsWriteTimeoutsRatesGet(params *StorageProxyMetricsWriteTimeoutsRatesGetParams) (*StorageProxyMetricsWriteTimeoutsRatesGetOK, error) - - StorageProxyMetricsWriteUnavailablesGet(params *StorageProxyMetricsWriteUnavailablesGetParams) (*StorageProxyMetricsWriteUnavailablesGetOK, error) - - StorageProxyMetricsWriteUnavailablesRatesGet(params *StorageProxyMetricsWriteUnavailablesRatesGetParams) (*StorageProxyMetricsWriteUnavailablesRatesGetOK, error) - - StorageProxyRangeRPCTimeoutGet(params *StorageProxyRangeRPCTimeoutGetParams) (*StorageProxyRangeRPCTimeoutGetOK, error) - - StorageProxyRangeRPCTimeoutPost(params *StorageProxyRangeRPCTimeoutPostParams) (*StorageProxyRangeRPCTimeoutPostOK, error) - - StorageProxyReadRepairAttemptedGet(params *StorageProxyReadRepairAttemptedGetParams) (*StorageProxyReadRepairAttemptedGetOK, error) - - StorageProxyReadRepairRepairedBackgroundGet(params *StorageProxyReadRepairRepairedBackgroundGetParams) (*StorageProxyReadRepairRepairedBackgroundGetOK, error) - - StorageProxyReadRepairRepairedBlockingGet(params *StorageProxyReadRepairRepairedBlockingGetParams) (*StorageProxyReadRepairRepairedBlockingGetOK, error) - - StorageProxyReadRPCTimeoutGet(params *StorageProxyReadRPCTimeoutGetParams) (*StorageProxyReadRPCTimeoutGetOK, error) - - StorageProxyReadRPCTimeoutPost(params *StorageProxyReadRPCTimeoutPostParams) (*StorageProxyReadRPCTimeoutPostOK, error) - - StorageProxyReloadTriggerClassesPost(params *StorageProxyReloadTriggerClassesPostParams) (*StorageProxyReloadTriggerClassesPostOK, error) - - StorageProxyRPCTimeoutGet(params *StorageProxyRPCTimeoutGetParams) (*StorageProxyRPCTimeoutGetOK, error) - - StorageProxyRPCTimeoutPost(params *StorageProxyRPCTimeoutPostParams) (*StorageProxyRPCTimeoutPostOK, error) - - StorageProxySchemaVersionsGet(params *StorageProxySchemaVersionsGetParams) (*StorageProxySchemaVersionsGetOK, error) - - StorageProxyTotalHintsGet(params *StorageProxyTotalHintsGetParams) (*StorageProxyTotalHintsGetOK, error) - - StorageProxyTruncateRPCTimeoutGet(params *StorageProxyTruncateRPCTimeoutGetParams) (*StorageProxyTruncateRPCTimeoutGetOK, error) - - StorageProxyTruncateRPCTimeoutPost(params *StorageProxyTruncateRPCTimeoutPostParams) (*StorageProxyTruncateRPCTimeoutPostOK, error) - - StorageProxyWriteRPCTimeoutGet(params *StorageProxyWriteRPCTimeoutGetParams) (*StorageProxyWriteRPCTimeoutGetOK, error) - - StorageProxyWriteRPCTimeoutPost(params *StorageProxyWriteRPCTimeoutPostParams) (*StorageProxyWriteRPCTimeoutPostOK, error) - - StorageServiceActiveRepairGet(params *StorageServiceActiveRepairGetParams) (*StorageServiceActiveRepairGetOK, error) - - StorageServiceAutoCompactionByKeyspaceDelete(params *StorageServiceAutoCompactionByKeyspaceDeleteParams) (*StorageServiceAutoCompactionByKeyspaceDeleteOK, error) - - StorageServiceAutoCompactionByKeyspacePost(params *StorageServiceAutoCompactionByKeyspacePostParams) (*StorageServiceAutoCompactionByKeyspacePostOK, error) - - StorageServiceBackupPost(params *StorageServiceBackupPostParams) (*StorageServiceBackupPostOK, error) - - StorageServiceBatchSizeFailureThresholdGet(params *StorageServiceBatchSizeFailureThresholdGetParams) (*StorageServiceBatchSizeFailureThresholdGetOK, error) - - StorageServiceBatchSizeFailureThresholdPost(params *StorageServiceBatchSizeFailureThresholdPostParams) (*StorageServiceBatchSizeFailureThresholdPostOK, error) - - StorageServiceBulkLoadAsyncByPathGet(params *StorageServiceBulkLoadAsyncByPathGetParams) (*StorageServiceBulkLoadAsyncByPathGetOK, error) - - StorageServiceBulkLoadByPathPost(params *StorageServiceBulkLoadByPathPostParams) (*StorageServiceBulkLoadByPathPostOK, error) - - StorageServiceClusterNameGet(params *StorageServiceClusterNameGetParams) (*StorageServiceClusterNameGetOK, error) - - StorageServiceCommitlogGet(params *StorageServiceCommitlogGetParams) (*StorageServiceCommitlogGetOK, error) - - StorageServiceCompactionThroughputGet(params *StorageServiceCompactionThroughputGetParams) (*StorageServiceCompactionThroughputGetOK, error) - - StorageServiceCompactionThroughputPost(params *StorageServiceCompactionThroughputPostParams) (*StorageServiceCompactionThroughputPostOK, error) - - StorageServiceDataFileLocationsGet(params *StorageServiceDataFileLocationsGetParams) (*StorageServiceDataFileLocationsGetOK, error) - - StorageServiceDecommissionPost(params *StorageServiceDecommissionPostParams) (*StorageServiceDecommissionPostOK, error) - - StorageServiceDeliverHintsPost(params *StorageServiceDeliverHintsPostParams) (*StorageServiceDeliverHintsPostOK, error) - - StorageServiceDescribeRingByKeyspaceGet(params *StorageServiceDescribeRingByKeyspaceGetParams) (*StorageServiceDescribeRingByKeyspaceGetOK, error) - - StorageServiceDrainGet(params *StorageServiceDrainGetParams) (*StorageServiceDrainGetOK, error) - - StorageServiceDrainPost(params *StorageServiceDrainPostParams) (*StorageServiceDrainPostOK, error) - - StorageServiceForceRemoveCompletionPost(params *StorageServiceForceRemoveCompletionPostParams) (*StorageServiceForceRemoveCompletionPostOK, error) - - StorageServiceForceTerminatePost(params *StorageServiceForceTerminatePostParams) (*StorageServiceForceTerminatePostOK, error) - - StorageServiceForceTerminateRepairPost(params *StorageServiceForceTerminateRepairPostParams) (*StorageServiceForceTerminateRepairPostOK, error) - - StorageServiceGenerationNumberGet(params *StorageServiceGenerationNumberGetParams) (*StorageServiceGenerationNumberGetOK, error) - - StorageServiceGossipingDelete(params *StorageServiceGossipingDeleteParams) (*StorageServiceGossipingDeleteOK, error) - - StorageServiceGossipingGet(params *StorageServiceGossipingGetParams) (*StorageServiceGossipingGetOK, error) - - StorageServiceGossipingPost(params *StorageServiceGossipingPostParams) (*StorageServiceGossipingPostOK, error) - - StorageServiceHintedHandoffPost(params *StorageServiceHintedHandoffPostParams) (*StorageServiceHintedHandoffPostOK, error) - - StorageServiceHostIDGet(params *StorageServiceHostIDGetParams) (*StorageServiceHostIDGetOK, error) - - StorageServiceHostidLocalGet(params *StorageServiceHostidLocalGetParams) (*StorageServiceHostidLocalGetOK, error) - - StorageServiceIncrementalBackupsGet(params *StorageServiceIncrementalBackupsGetParams) (*StorageServiceIncrementalBackupsGetOK, error) - - StorageServiceIncrementalBackupsPost(params *StorageServiceIncrementalBackupsPostParams) (*StorageServiceIncrementalBackupsPostOK, error) - - StorageServiceIsInitializedGet(params *StorageServiceIsInitializedGetParams) (*StorageServiceIsInitializedGetOK, error) - - StorageServiceIsStartingGet(params *StorageServiceIsStartingGetParams) (*StorageServiceIsStartingGetOK, error) - - StorageServiceJoinRingGet(params *StorageServiceJoinRingGetParams) (*StorageServiceJoinRingGetOK, error) - - StorageServiceJoinRingPost(params *StorageServiceJoinRingPostParams) (*StorageServiceJoinRingPostOK, error) - - StorageServiceKeyspaceCleanupByKeyspacePost(params *StorageServiceKeyspaceCleanupByKeyspacePostParams) (*StorageServiceKeyspaceCleanupByKeyspacePostOK, error) - - StorageServiceKeyspaceCompactionByKeyspacePost(params *StorageServiceKeyspaceCompactionByKeyspacePostParams) (*StorageServiceKeyspaceCompactionByKeyspacePostOK, error) - - StorageServiceKeyspaceFlushByKeyspacePost(params *StorageServiceKeyspaceFlushByKeyspacePostParams) (*StorageServiceKeyspaceFlushByKeyspacePostOK, error) - - StorageServiceKeyspaceScrubByKeyspaceGet(params *StorageServiceKeyspaceScrubByKeyspaceGetParams) (*StorageServiceKeyspaceScrubByKeyspaceGetOK, error) - - StorageServiceKeyspaceUpgradeSstablesByKeyspaceGet(params *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams) (*StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetOK, error) - - StorageServiceKeyspacesGet(params *StorageServiceKeyspacesGetParams) (*StorageServiceKeyspacesGetOK, error) - - StorageServiceLoadGet(params *StorageServiceLoadGetParams) (*StorageServiceLoadGetOK, error) - - StorageServiceLoadMapGet(params *StorageServiceLoadMapGetParams) (*StorageServiceLoadMapGetOK, error) - - StorageServiceLoggingLevelGet(params *StorageServiceLoggingLevelGetParams) (*StorageServiceLoggingLevelGetOK, error) - - StorageServiceLoggingLevelPost(params *StorageServiceLoggingLevelPostParams) (*StorageServiceLoggingLevelPostOK, error) - - StorageServiceMetricsExceptionsGet(params *StorageServiceMetricsExceptionsGetParams) (*StorageServiceMetricsExceptionsGetOK, error) - - StorageServiceMetricsHintsInProgressGet(params *StorageServiceMetricsHintsInProgressGetParams) (*StorageServiceMetricsHintsInProgressGetOK, error) - - StorageServiceMetricsLoadGet(params *StorageServiceMetricsLoadGetParams) (*StorageServiceMetricsLoadGetOK, error) - - StorageServiceMetricsTotalHintsGet(params *StorageServiceMetricsTotalHintsGetParams) (*StorageServiceMetricsTotalHintsGetOK, error) - - StorageServiceMovePost(params *StorageServiceMovePostParams) (*StorageServiceMovePostOK, error) - - StorageServiceNativeTransportDelete(params *StorageServiceNativeTransportDeleteParams) (*StorageServiceNativeTransportDeleteOK, error) - - StorageServiceNativeTransportGet(params *StorageServiceNativeTransportGetParams) (*StorageServiceNativeTransportGetOK, error) - - StorageServiceNativeTransportPost(params *StorageServiceNativeTransportPostParams) (*StorageServiceNativeTransportPostOK, error) - - StorageServiceNaturalEndpointsByKeyspaceGet(params *StorageServiceNaturalEndpointsByKeyspaceGetParams) (*StorageServiceNaturalEndpointsByKeyspaceGetOK, error) - - StorageServiceNodesJoiningGet(params *StorageServiceNodesJoiningGetParams) (*StorageServiceNodesJoiningGetOK, error) - - StorageServiceNodesLeavingGet(params *StorageServiceNodesLeavingGetParams) (*StorageServiceNodesLeavingGetOK, error) - - StorageServiceNodesMovingGet(params *StorageServiceNodesMovingGetParams) (*StorageServiceNodesMovingGetOK, error) - - StorageServiceOperationModeGet(params *StorageServiceOperationModeGetParams) (*StorageServiceOperationModeGetOK, error) - - StorageServiceOwnershipByKeyspaceGet(params *StorageServiceOwnershipByKeyspaceGetParams) (*StorageServiceOwnershipByKeyspaceGetOK, error) - - StorageServiceOwnershipGet(params *StorageServiceOwnershipGetParams) (*StorageServiceOwnershipGetOK, error) - - StorageServicePartitionerNameGet(params *StorageServicePartitionerNameGetParams) (*StorageServicePartitionerNameGetOK, error) - - StorageServicePendingRangeByKeyspaceGet(params *StorageServicePendingRangeByKeyspaceGetParams) (*StorageServicePendingRangeByKeyspaceGetOK, error) - - StorageServiceRangeToEndpointMapByKeyspaceGet(params *StorageServiceRangeToEndpointMapByKeyspaceGetParams) (*StorageServiceRangeToEndpointMapByKeyspaceGetOK, error) - - StorageServiceRebuildPost(params *StorageServiceRebuildPostParams) (*StorageServiceRebuildPostOK, error) - - StorageServiceReleaseVersionGet(params *StorageServiceReleaseVersionGetParams) (*StorageServiceReleaseVersionGetOK, error) - - StorageServiceRelocalSchemaPost(params *StorageServiceRelocalSchemaPostParams) (*StorageServiceRelocalSchemaPostOK, error) - - StorageServiceRemovalStatusGet(params *StorageServiceRemovalStatusGetParams) (*StorageServiceRemovalStatusGetOK, error) - - StorageServiceRemoveNodePost(params *StorageServiceRemoveNodePostParams) (*StorageServiceRemoveNodePostOK, error) - - StorageServiceRepairAsyncByKeyspaceGet(params *StorageServiceRepairAsyncByKeyspaceGetParams) (*StorageServiceRepairAsyncByKeyspaceGetOK, error) - - StorageServiceRepairAsyncByKeyspacePost(params *StorageServiceRepairAsyncByKeyspacePostParams) (*StorageServiceRepairAsyncByKeyspacePostOK, error) - - StorageServiceRepairStatus(params *StorageServiceRepairStatusParams) (*StorageServiceRepairStatusOK, error) - - StorageServiceRescheduleFailedDeletionsPost(params *StorageServiceRescheduleFailedDeletionsPostParams) (*StorageServiceRescheduleFailedDeletionsPostOK, error) - - StorageServiceRestorePost(params *StorageServiceRestorePostParams) (*StorageServiceRestorePostOK, error) - - StorageServiceRPCServerDelete(params *StorageServiceRPCServerDeleteParams) (*StorageServiceRPCServerDeleteOK, error) - - StorageServiceRPCServerGet(params *StorageServiceRPCServerGetParams) (*StorageServiceRPCServerGetOK, error) - - StorageServiceRPCServerPost(params *StorageServiceRPCServerPostParams) (*StorageServiceRPCServerPostOK, error) - - StorageServiceSampleKeyRangeGet(params *StorageServiceSampleKeyRangeGetParams) (*StorageServiceSampleKeyRangeGetOK, error) - - StorageServiceSavedCachesLocationGet(params *StorageServiceSavedCachesLocationGetParams) (*StorageServiceSavedCachesLocationGetOK, error) - - StorageServiceSchemaVersionGet(params *StorageServiceSchemaVersionGetParams) (*StorageServiceSchemaVersionGetOK, error) - - StorageServiceScyllaReleaseVersionGet(params *StorageServiceScyllaReleaseVersionGetParams) (*StorageServiceScyllaReleaseVersionGetOK, error) - - StorageServiceSlowQueryGet(params *StorageServiceSlowQueryGetParams) (*StorageServiceSlowQueryGetOK, error) - - StorageServiceSlowQueryPost(params *StorageServiceSlowQueryPostParams) (*StorageServiceSlowQueryPostOK, error) - - StorageServiceSnapshotsDelete(params *StorageServiceSnapshotsDeleteParams) (*StorageServiceSnapshotsDeleteOK, error) - - StorageServiceSnapshotsGet(params *StorageServiceSnapshotsGetParams) (*StorageServiceSnapshotsGetOK, error) - - StorageServiceSnapshotsPost(params *StorageServiceSnapshotsPostParams) (*StorageServiceSnapshotsPostOK, error) - - StorageServiceSnapshotsSizeTrueGet(params *StorageServiceSnapshotsSizeTrueGetParams) (*StorageServiceSnapshotsSizeTrueGetOK, error) - - StorageServiceSstablesByKeyspacePost(params *StorageServiceSstablesByKeyspacePostParams) (*StorageServiceSstablesByKeyspacePostOK, error) - - StorageServiceStopDaemonPost(params *StorageServiceStopDaemonPostParams) (*StorageServiceStopDaemonPostOK, error) - - StorageServiceStreamThroughputGet(params *StorageServiceStreamThroughputGetParams) (*StorageServiceStreamThroughputGetOK, error) - - StorageServiceStreamThroughputPost(params *StorageServiceStreamThroughputPostParams) (*StorageServiceStreamThroughputPostOK, error) - - StorageServiceTabletsBalancingPost(params *StorageServiceTabletsBalancingPostParams) (*StorageServiceTabletsBalancingPostOK, error) - - StorageServiceTabletsRepairPost(params *StorageServiceTabletsRepairPostParams) (*StorageServiceTabletsRepairPostOK, error) - - StorageServiceTokensByEndpointGet(params *StorageServiceTokensByEndpointGetParams) (*StorageServiceTokensByEndpointGetOK, error) - - StorageServiceTokensEndpointGet(params *StorageServiceTokensEndpointGetParams) (*StorageServiceTokensEndpointGetOK, error) - - StorageServiceTokensGet(params *StorageServiceTokensGetParams) (*StorageServiceTokensGetOK, error) - - StorageServiceTombstoneFailureThresholdGet(params *StorageServiceTombstoneFailureThresholdGetParams) (*StorageServiceTombstoneFailureThresholdGetOK, error) - - StorageServiceTombstoneFailureThresholdPost(params *StorageServiceTombstoneFailureThresholdPostParams) (*StorageServiceTombstoneFailureThresholdPostOK, error) - - StorageServiceTombstoneWarnThresholdGet(params *StorageServiceTombstoneWarnThresholdGetParams) (*StorageServiceTombstoneWarnThresholdGetOK, error) - - StorageServiceTombstoneWarnThresholdPost(params *StorageServiceTombstoneWarnThresholdPostParams) (*StorageServiceTombstoneWarnThresholdPostOK, error) - - StorageServiceTraceProbabilityGet(params *StorageServiceTraceProbabilityGetParams) (*StorageServiceTraceProbabilityGetOK, error) - - StorageServiceTraceProbabilityPost(params *StorageServiceTraceProbabilityPostParams) (*StorageServiceTraceProbabilityPostOK, error) - - StorageServiceTruncateByKeyspacePost(params *StorageServiceTruncateByKeyspacePostParams) (*StorageServiceTruncateByKeyspacePostOK, error) - - StorageServiceUpdateSnitchPost(params *StorageServiceUpdateSnitchPostParams) (*StorageServiceUpdateSnitchPostOK, error) - - StorageServiceViewBuildStatusesByKeyspaceAndViewGet(params *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams) (*StorageServiceViewBuildStatusesByKeyspaceAndViewGetOK, error) - - StreamManagerGet(params *StreamManagerGetParams) (*StreamManagerGetOK, error) - - StreamManagerMetricsIncomingByPeerGet(params *StreamManagerMetricsIncomingByPeerGetParams) (*StreamManagerMetricsIncomingByPeerGetOK, error) - - StreamManagerMetricsIncomingGet(params *StreamManagerMetricsIncomingGetParams) (*StreamManagerMetricsIncomingGetOK, error) - - StreamManagerMetricsOutboundGet(params *StreamManagerMetricsOutboundGetParams) (*StreamManagerMetricsOutboundGetOK, error) - - StreamManagerMetricsOutgoingByPeerGet(params *StreamManagerMetricsOutgoingByPeerGetParams) (*StreamManagerMetricsOutgoingByPeerGetOK, error) - - StreamManagerMetricsOutgoingGet(params *StreamManagerMetricsOutgoingGetParams) (*StreamManagerMetricsOutgoingGetOK, error) - - SystemLoggerByNameGet(params *SystemLoggerByNameGetParams) (*SystemLoggerByNameGetOK, error) - - SystemLoggerByNamePost(params *SystemLoggerByNamePostParams) (*SystemLoggerByNamePostOK, error) - - SystemLoggerGet(params *SystemLoggerGetParams) (*SystemLoggerGetOK, error) - - SystemLoggerPost(params *SystemLoggerPostParams) (*SystemLoggerPostOK, error) - - TaskManagerAbortTaskTaskIDPost(params *TaskManagerAbortTaskTaskIDPostParams) (*TaskManagerAbortTaskTaskIDPostOK, error) - - TaskManagerListModuleTasksModuleGet(params *TaskManagerListModuleTasksModuleGetParams) (*TaskManagerListModuleTasksModuleGetOK, error) - - TaskManagerListModulesGet(params *TaskManagerListModulesGetParams) (*TaskManagerListModulesGetOK, error) - - TaskManagerTaskStatusRecursiveTaskIDGet(params *TaskManagerTaskStatusRecursiveTaskIDGetParams) (*TaskManagerTaskStatusRecursiveTaskIDGetOK, error) - - TaskManagerTaskStatusTaskIDGet(params *TaskManagerTaskStatusTaskIDGetParams) (*TaskManagerTaskStatusTaskIDGetOK, error) - - TaskManagerTTLGet(params *TaskManagerTTLGetParams) (*TaskManagerTTLGetOK, error) - - TaskManagerTTLPost(params *TaskManagerTTLPostParams) (*TaskManagerTTLPostOK, error) - - TaskManagerUserTTLGet(params *TaskManagerUserTTLGetParams) (*TaskManagerUserTTLGetOK, error) - - TaskManagerUserTTLPost(params *TaskManagerUserTTLPostParams) (*TaskManagerUserTTLPostOK, error) - - TaskManagerWaitTaskTaskIDGet(params *TaskManagerWaitTaskTaskIDGetParams) (*TaskManagerWaitTaskTaskIDGetOK, error) - - SetTransport(transport runtime.ClientTransport) -} - -/* -CacheServiceCounterCacheCapacityPost sets counter cache capacity in mb - -set counter cache capacity in mb -*/ -func (a *Client) CacheServiceCounterCacheCapacityPost(params *CacheServiceCounterCacheCapacityPostParams) (*CacheServiceCounterCacheCapacityPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceCounterCacheCapacityPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceCounterCacheCapacityPost", - Method: "POST", - PathPattern: "/cache_service/counter_cache_capacity", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceCounterCacheCapacityPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceCounterCacheCapacityPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceCounterCacheCapacityPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceCounterCacheKeysToSaveGet gets counter cache keys to save - -get counter cache keys to save -*/ -func (a *Client) CacheServiceCounterCacheKeysToSaveGet(params *CacheServiceCounterCacheKeysToSaveGetParams) (*CacheServiceCounterCacheKeysToSaveGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceCounterCacheKeysToSaveGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceCounterCacheKeysToSaveGet", - Method: "GET", - PathPattern: "/cache_service/counter_cache_keys_to_save", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceCounterCacheKeysToSaveGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceCounterCacheKeysToSaveGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceCounterCacheKeysToSaveGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceCounterCacheKeysToSavePost sets counter cache keys to save - -set counter cache keys to save -*/ -func (a *Client) CacheServiceCounterCacheKeysToSavePost(params *CacheServiceCounterCacheKeysToSavePostParams) (*CacheServiceCounterCacheKeysToSavePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceCounterCacheKeysToSavePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceCounterCacheKeysToSavePost", - Method: "POST", - PathPattern: "/cache_service/counter_cache_keys_to_save", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceCounterCacheKeysToSavePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceCounterCacheKeysToSavePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceCounterCacheKeysToSavePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceCounterCacheSavePeriodGet gets counter cache save period in seconds - -get counter cache save period in seconds -*/ -func (a *Client) CacheServiceCounterCacheSavePeriodGet(params *CacheServiceCounterCacheSavePeriodGetParams) (*CacheServiceCounterCacheSavePeriodGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceCounterCacheSavePeriodGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceCounterCacheSavePeriodGet", - Method: "GET", - PathPattern: "/cache_service/counter_cache_save_period", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceCounterCacheSavePeriodGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceCounterCacheSavePeriodGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceCounterCacheSavePeriodGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceCounterCacheSavePeriodPost sets counter cache save period in seconds - -set counter cache save period in seconds -*/ -func (a *Client) CacheServiceCounterCacheSavePeriodPost(params *CacheServiceCounterCacheSavePeriodPostParams) (*CacheServiceCounterCacheSavePeriodPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceCounterCacheSavePeriodPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceCounterCacheSavePeriodPost", - Method: "POST", - PathPattern: "/cache_service/counter_cache_save_period", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceCounterCacheSavePeriodPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceCounterCacheSavePeriodPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceCounterCacheSavePeriodPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceInvalidateCounterCachePost invalidates counter cache - -invalidate counter cache -*/ -func (a *Client) CacheServiceInvalidateCounterCachePost(params *CacheServiceInvalidateCounterCachePostParams) (*CacheServiceInvalidateCounterCachePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceInvalidateCounterCachePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceInvalidateCounterCachePost", - Method: "POST", - PathPattern: "/cache_service/invalidate_counter_cache", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceInvalidateCounterCachePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceInvalidateCounterCachePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceInvalidateCounterCachePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceInvalidateKeyCachePost invalidates key cache - -invalidate the key cache; for use after invalidating row cache -*/ -func (a *Client) CacheServiceInvalidateKeyCachePost(params *CacheServiceInvalidateKeyCachePostParams) (*CacheServiceInvalidateKeyCachePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceInvalidateKeyCachePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceInvalidateKeyCachePost", - Method: "POST", - PathPattern: "/cache_service/invalidate_key_cache", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceInvalidateKeyCachePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceInvalidateKeyCachePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceInvalidateKeyCachePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceKeyCacheCapacityPost sets key cache capacity in mb - -set key cache capacity in mb -*/ -func (a *Client) CacheServiceKeyCacheCapacityPost(params *CacheServiceKeyCacheCapacityPostParams) (*CacheServiceKeyCacheCapacityPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceKeyCacheCapacityPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceKeyCacheCapacityPost", - Method: "POST", - PathPattern: "/cache_service/key_cache_capacity", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceKeyCacheCapacityPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceKeyCacheCapacityPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceKeyCacheCapacityPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceKeyCacheKeysToSaveGet gets key cache keys to save - -get key cache keys to save -*/ -func (a *Client) CacheServiceKeyCacheKeysToSaveGet(params *CacheServiceKeyCacheKeysToSaveGetParams) (*CacheServiceKeyCacheKeysToSaveGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceKeyCacheKeysToSaveGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceKeyCacheKeysToSaveGet", - Method: "GET", - PathPattern: "/cache_service/key_cache_keys_to_save", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceKeyCacheKeysToSaveGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceKeyCacheKeysToSaveGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceKeyCacheKeysToSaveGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceKeyCacheKeysToSavePost sets key cache keys to save - -set key cache keys to save -*/ -func (a *Client) CacheServiceKeyCacheKeysToSavePost(params *CacheServiceKeyCacheKeysToSavePostParams) (*CacheServiceKeyCacheKeysToSavePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceKeyCacheKeysToSavePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceKeyCacheKeysToSavePost", - Method: "POST", - PathPattern: "/cache_service/key_cache_keys_to_save", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceKeyCacheKeysToSavePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceKeyCacheKeysToSavePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceKeyCacheKeysToSavePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceKeyCacheSavePeriodGet gets key cache save period in seconds - -get key cache save period in seconds -*/ -func (a *Client) CacheServiceKeyCacheSavePeriodGet(params *CacheServiceKeyCacheSavePeriodGetParams) (*CacheServiceKeyCacheSavePeriodGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceKeyCacheSavePeriodGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceKeyCacheSavePeriodGet", - Method: "GET", - PathPattern: "/cache_service/key_cache_save_period", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceKeyCacheSavePeriodGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceKeyCacheSavePeriodGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceKeyCacheSavePeriodGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceKeyCacheSavePeriodPost sets key cache save period in seconds - -set key cache save period in seconds -*/ -func (a *Client) CacheServiceKeyCacheSavePeriodPost(params *CacheServiceKeyCacheSavePeriodPostParams) (*CacheServiceKeyCacheSavePeriodPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceKeyCacheSavePeriodPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceKeyCacheSavePeriodPost", - Method: "POST", - PathPattern: "/cache_service/key_cache_save_period", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceKeyCacheSavePeriodPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceKeyCacheSavePeriodPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceKeyCacheSavePeriodPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsCounterCapacityGet gets counter capacity - -Get counter capacity -*/ -func (a *Client) CacheServiceMetricsCounterCapacityGet(params *CacheServiceMetricsCounterCapacityGetParams) (*CacheServiceMetricsCounterCapacityGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsCounterCapacityGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsCounterCapacityGet", - Method: "GET", - PathPattern: "/cache_service/metrics/counter/capacity", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsCounterCapacityGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsCounterCapacityGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsCounterCapacityGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsCounterEntriesGet gets counter entries - -Get counter entries -*/ -func (a *Client) CacheServiceMetricsCounterEntriesGet(params *CacheServiceMetricsCounterEntriesGetParams) (*CacheServiceMetricsCounterEntriesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsCounterEntriesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsCounterEntriesGet", - Method: "GET", - PathPattern: "/cache_service/metrics/counter/entries", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsCounterEntriesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsCounterEntriesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsCounterEntriesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsCounterHitRateGet gets counter hit rate - -Get counter hit rate -*/ -func (a *Client) CacheServiceMetricsCounterHitRateGet(params *CacheServiceMetricsCounterHitRateGetParams) (*CacheServiceMetricsCounterHitRateGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsCounterHitRateGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsCounterHitRateGet", - Method: "GET", - PathPattern: "/cache_service/metrics/counter/hit_rate", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsCounterHitRateGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsCounterHitRateGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsCounterHitRateGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsCounterHitsGet gets counter hits - -Get counter hits -*/ -func (a *Client) CacheServiceMetricsCounterHitsGet(params *CacheServiceMetricsCounterHitsGetParams) (*CacheServiceMetricsCounterHitsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsCounterHitsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsCounterHitsGet", - Method: "GET", - PathPattern: "/cache_service/metrics/counter/hits", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsCounterHitsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsCounterHitsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsCounterHitsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsCounterHitsMovingAvrageGet gets counter hits moving avrage - -Get counter hits moving avrage -*/ -func (a *Client) CacheServiceMetricsCounterHitsMovingAvrageGet(params *CacheServiceMetricsCounterHitsMovingAvrageGetParams) (*CacheServiceMetricsCounterHitsMovingAvrageGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsCounterHitsMovingAvrageGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsCounterHitsMovingAvrageGet", - Method: "GET", - PathPattern: "/cache_service/metrics/counter/hits_moving_avrage", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsCounterHitsMovingAvrageGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsCounterHitsMovingAvrageGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsCounterHitsMovingAvrageGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsCounterRequestsGet gets counter requests - -Get counter requests -*/ -func (a *Client) CacheServiceMetricsCounterRequestsGet(params *CacheServiceMetricsCounterRequestsGetParams) (*CacheServiceMetricsCounterRequestsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsCounterRequestsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsCounterRequestsGet", - Method: "GET", - PathPattern: "/cache_service/metrics/counter/requests", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsCounterRequestsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsCounterRequestsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsCounterRequestsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsCounterRequestsMovingAvrageGet gets counter requests moving avrage - -Get counter requests moving avrage -*/ -func (a *Client) CacheServiceMetricsCounterRequestsMovingAvrageGet(params *CacheServiceMetricsCounterRequestsMovingAvrageGetParams) (*CacheServiceMetricsCounterRequestsMovingAvrageGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsCounterRequestsMovingAvrageGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsCounterRequestsMovingAvrageGet", - Method: "GET", - PathPattern: "/cache_service/metrics/counter/requests_moving_avrage", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsCounterRequestsMovingAvrageGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsCounterRequestsMovingAvrageGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsCounterRequestsMovingAvrageGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsCounterSizeGet gets counter size - -Get counter cache waited size -*/ -func (a *Client) CacheServiceMetricsCounterSizeGet(params *CacheServiceMetricsCounterSizeGetParams) (*CacheServiceMetricsCounterSizeGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsCounterSizeGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsCounterSizeGet", - Method: "GET", - PathPattern: "/cache_service/metrics/counter/size", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsCounterSizeGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsCounterSizeGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsCounterSizeGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsKeyCapacityGet gets key capacity - -Get key capacity -*/ -func (a *Client) CacheServiceMetricsKeyCapacityGet(params *CacheServiceMetricsKeyCapacityGetParams) (*CacheServiceMetricsKeyCapacityGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsKeyCapacityGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsKeyCapacityGet", - Method: "GET", - PathPattern: "/cache_service/metrics/key/capacity", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsKeyCapacityGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsKeyCapacityGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsKeyCapacityGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsKeyEntriesGet gets key entries - -Get key entries -*/ -func (a *Client) CacheServiceMetricsKeyEntriesGet(params *CacheServiceMetricsKeyEntriesGetParams) (*CacheServiceMetricsKeyEntriesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsKeyEntriesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsKeyEntriesGet", - Method: "GET", - PathPattern: "/cache_service/metrics/key/entries", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsKeyEntriesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsKeyEntriesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsKeyEntriesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsKeyHitRateGet gets key hit rate - -Get key hit rate -*/ -func (a *Client) CacheServiceMetricsKeyHitRateGet(params *CacheServiceMetricsKeyHitRateGetParams) (*CacheServiceMetricsKeyHitRateGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsKeyHitRateGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsKeyHitRateGet", - Method: "GET", - PathPattern: "/cache_service/metrics/key/hit_rate", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsKeyHitRateGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsKeyHitRateGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsKeyHitRateGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsKeyHitsGet gets key hits - -Get key hits -*/ -func (a *Client) CacheServiceMetricsKeyHitsGet(params *CacheServiceMetricsKeyHitsGetParams) (*CacheServiceMetricsKeyHitsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsKeyHitsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsKeyHitsGet", - Method: "GET", - PathPattern: "/cache_service/metrics/key/hits", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsKeyHitsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsKeyHitsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsKeyHitsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsKeyHitsMovingAvrageGet gets key hits moving avrage - -Get key hits moving avrage -*/ -func (a *Client) CacheServiceMetricsKeyHitsMovingAvrageGet(params *CacheServiceMetricsKeyHitsMovingAvrageGetParams) (*CacheServiceMetricsKeyHitsMovingAvrageGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsKeyHitsMovingAvrageGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsKeyHitsMovingAvrageGet", - Method: "GET", - PathPattern: "/cache_service/metrics/key/hits_moving_avrage", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsKeyHitsMovingAvrageGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsKeyHitsMovingAvrageGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsKeyHitsMovingAvrageGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsKeyRequestsGet gets key requests - -Get key requests -*/ -func (a *Client) CacheServiceMetricsKeyRequestsGet(params *CacheServiceMetricsKeyRequestsGetParams) (*CacheServiceMetricsKeyRequestsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsKeyRequestsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsKeyRequestsGet", - Method: "GET", - PathPattern: "/cache_service/metrics/key/requests", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsKeyRequestsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsKeyRequestsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsKeyRequestsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsKeyRequestsMovingAvrageGet gets key requests moving avrage - -Get key requests moving avrage -*/ -func (a *Client) CacheServiceMetricsKeyRequestsMovingAvrageGet(params *CacheServiceMetricsKeyRequestsMovingAvrageGetParams) (*CacheServiceMetricsKeyRequestsMovingAvrageGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsKeyRequestsMovingAvrageGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsKeyRequestsMovingAvrageGet", - Method: "GET", - PathPattern: "/cache_service/metrics/key/requests_moving_avrage", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsKeyRequestsMovingAvrageGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsKeyRequestsMovingAvrageGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsKeyRequestsMovingAvrageGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsKeySizeGet gets key size - -Get key cache waited size -*/ -func (a *Client) CacheServiceMetricsKeySizeGet(params *CacheServiceMetricsKeySizeGetParams) (*CacheServiceMetricsKeySizeGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsKeySizeGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsKeySizeGet", - Method: "GET", - PathPattern: "/cache_service/metrics/key/size", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsKeySizeGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsKeySizeGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsKeySizeGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsRowCapacityGet gets row capacity - -Get row capacity -*/ -func (a *Client) CacheServiceMetricsRowCapacityGet(params *CacheServiceMetricsRowCapacityGetParams) (*CacheServiceMetricsRowCapacityGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsRowCapacityGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsRowCapacityGet", - Method: "GET", - PathPattern: "/cache_service/metrics/row/capacity", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsRowCapacityGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsRowCapacityGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsRowCapacityGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsRowEntriesGet gets row entries - -Get row entries -*/ -func (a *Client) CacheServiceMetricsRowEntriesGet(params *CacheServiceMetricsRowEntriesGetParams) (*CacheServiceMetricsRowEntriesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsRowEntriesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsRowEntriesGet", - Method: "GET", - PathPattern: "/cache_service/metrics/row/entries", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsRowEntriesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsRowEntriesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsRowEntriesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsRowHitRateGet gets row hit rate - -Get row hit rate -*/ -func (a *Client) CacheServiceMetricsRowHitRateGet(params *CacheServiceMetricsRowHitRateGetParams) (*CacheServiceMetricsRowHitRateGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsRowHitRateGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsRowHitRateGet", - Method: "GET", - PathPattern: "/cache_service/metrics/row/hit_rate", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsRowHitRateGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsRowHitRateGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsRowHitRateGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsRowHitsGet gets row hits - -Get row hits -*/ -func (a *Client) CacheServiceMetricsRowHitsGet(params *CacheServiceMetricsRowHitsGetParams) (*CacheServiceMetricsRowHitsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsRowHitsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsRowHitsGet", - Method: "GET", - PathPattern: "/cache_service/metrics/row/hits", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsRowHitsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsRowHitsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsRowHitsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsRowHitsMovingAvrageGet gets row hits moving avrage - -Get row hits moving avrage -*/ -func (a *Client) CacheServiceMetricsRowHitsMovingAvrageGet(params *CacheServiceMetricsRowHitsMovingAvrageGetParams) (*CacheServiceMetricsRowHitsMovingAvrageGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsRowHitsMovingAvrageGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsRowHitsMovingAvrageGet", - Method: "GET", - PathPattern: "/cache_service/metrics/row/hits_moving_avrage", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsRowHitsMovingAvrageGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsRowHitsMovingAvrageGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsRowHitsMovingAvrageGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsRowRequestsGet gets row requests - -Get row requests -*/ -func (a *Client) CacheServiceMetricsRowRequestsGet(params *CacheServiceMetricsRowRequestsGetParams) (*CacheServiceMetricsRowRequestsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsRowRequestsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsRowRequestsGet", - Method: "GET", - PathPattern: "/cache_service/metrics/row/requests", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsRowRequestsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsRowRequestsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsRowRequestsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsRowRequestsMovingAvrageGet gets row requests moving avrage - -Get row requests moving avrage -*/ -func (a *Client) CacheServiceMetricsRowRequestsMovingAvrageGet(params *CacheServiceMetricsRowRequestsMovingAvrageGetParams) (*CacheServiceMetricsRowRequestsMovingAvrageGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsRowRequestsMovingAvrageGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsRowRequestsMovingAvrageGet", - Method: "GET", - PathPattern: "/cache_service/metrics/row/requests_moving_avrage", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsRowRequestsMovingAvrageGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsRowRequestsMovingAvrageGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsRowRequestsMovingAvrageGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceMetricsRowSizeGet gets row size - -Get row cache waited size -*/ -func (a *Client) CacheServiceMetricsRowSizeGet(params *CacheServiceMetricsRowSizeGetParams) (*CacheServiceMetricsRowSizeGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceMetricsRowSizeGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceMetricsRowSizeGet", - Method: "GET", - PathPattern: "/cache_service/metrics/row/size", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceMetricsRowSizeGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceMetricsRowSizeGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceMetricsRowSizeGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceRowCacheCapacityPost sets row cache capacity in mb - -set row cache capacity in mb -*/ -func (a *Client) CacheServiceRowCacheCapacityPost(params *CacheServiceRowCacheCapacityPostParams) (*CacheServiceRowCacheCapacityPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceRowCacheCapacityPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceRowCacheCapacityPost", - Method: "POST", - PathPattern: "/cache_service/row_cache_capacity", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceRowCacheCapacityPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceRowCacheCapacityPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceRowCacheCapacityPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceRowCacheKeysToSaveGet gets row cache keys to save - -get row cache keys to save -*/ -func (a *Client) CacheServiceRowCacheKeysToSaveGet(params *CacheServiceRowCacheKeysToSaveGetParams) (*CacheServiceRowCacheKeysToSaveGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceRowCacheKeysToSaveGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceRowCacheKeysToSaveGet", - Method: "GET", - PathPattern: "/cache_service/row_cache_keys_to_save", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceRowCacheKeysToSaveGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceRowCacheKeysToSaveGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceRowCacheKeysToSaveGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceRowCacheKeysToSavePost sets row cache keys to save - -set row cache keys to save -*/ -func (a *Client) CacheServiceRowCacheKeysToSavePost(params *CacheServiceRowCacheKeysToSavePostParams) (*CacheServiceRowCacheKeysToSavePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceRowCacheKeysToSavePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceRowCacheKeysToSavePost", - Method: "POST", - PathPattern: "/cache_service/row_cache_keys_to_save", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceRowCacheKeysToSavePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceRowCacheKeysToSavePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceRowCacheKeysToSavePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceRowCacheSavePeriodGet gets row cache save period in seconds - -get row cache save period in seconds -*/ -func (a *Client) CacheServiceRowCacheSavePeriodGet(params *CacheServiceRowCacheSavePeriodGetParams) (*CacheServiceRowCacheSavePeriodGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceRowCacheSavePeriodGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceRowCacheSavePeriodGet", - Method: "GET", - PathPattern: "/cache_service/row_cache_save_period", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceRowCacheSavePeriodGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceRowCacheSavePeriodGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceRowCacheSavePeriodGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceRowCacheSavePeriodPost sets row cache save period in seconds - -set row cache save period in seconds -*/ -func (a *Client) CacheServiceRowCacheSavePeriodPost(params *CacheServiceRowCacheSavePeriodPostParams) (*CacheServiceRowCacheSavePeriodPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceRowCacheSavePeriodPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceRowCacheSavePeriodPost", - Method: "POST", - PathPattern: "/cache_service/row_cache_save_period", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceRowCacheSavePeriodPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceRowCacheSavePeriodPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceRowCacheSavePeriodPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CacheServiceSaveCachesPost saves caches - -save row and key caches -*/ -func (a *Client) CacheServiceSaveCachesPost(params *CacheServiceSaveCachesPostParams) (*CacheServiceSaveCachesPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCacheServiceSaveCachesPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CacheServiceSaveCachesPost", - Method: "POST", - PathPattern: "/cache_service/save_caches", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CacheServiceSaveCachesPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CacheServiceSaveCachesPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CacheServiceSaveCachesPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CollectdByPluginidGet gets collectd - -Get a collectd value -*/ -func (a *Client) CollectdByPluginidGet(params *CollectdByPluginidGetParams) (*CollectdByPluginidGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCollectdByPluginidGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CollectdByPluginidGet", - Method: "GET", - PathPattern: "/collectd/{pluginid}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CollectdByPluginidGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CollectdByPluginidGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CollectdByPluginidGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CollectdByPluginidPost enables collectd - -Start reporting on one or more collectd metric -*/ -func (a *Client) CollectdByPluginidPost(params *CollectdByPluginidPostParams) (*CollectdByPluginidPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCollectdByPluginidPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CollectdByPluginidPost", - Method: "POST", - PathPattern: "/collectd/{pluginid}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CollectdByPluginidPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CollectdByPluginidPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CollectdByPluginidPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CollectdGet gets collectd items - -Get a list of all collectd metrics and their status -*/ -func (a *Client) CollectdGet(params *CollectdGetParams) (*CollectdGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCollectdGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CollectdGet", - Method: "GET", - PathPattern: "/collectd/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CollectdGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CollectdGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CollectdGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CollectdPost enables all collectd - -Enable or disable all collectd metrics -*/ -func (a *Client) CollectdPost(params *CollectdPostParams) (*CollectdPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCollectdPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CollectdPost", - Method: "POST", - PathPattern: "/collectd/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CollectdPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CollectdPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CollectdPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyAutocompactionByNameDelete disables auto compaction - -Disable table auto compaction -*/ -func (a *Client) ColumnFamilyAutocompactionByNameDelete(params *ColumnFamilyAutocompactionByNameDeleteParams) (*ColumnFamilyAutocompactionByNameDeleteOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyAutocompactionByNameDeleteParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyAutocompactionByNameDelete", - Method: "DELETE", - PathPattern: "/column_family/autocompaction/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyAutocompactionByNameDeleteReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyAutocompactionByNameDeleteOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyAutocompactionByNameDeleteDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyAutocompactionByNameGet is auto compaction enabled - -check if the auto_compaction property is enabled for a given table -*/ -func (a *Client) ColumnFamilyAutocompactionByNameGet(params *ColumnFamilyAutocompactionByNameGetParams) (*ColumnFamilyAutocompactionByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyAutocompactionByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyAutocompactionByNameGet", - Method: "GET", - PathPattern: "/column_family/autocompaction/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyAutocompactionByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyAutocompactionByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyAutocompactionByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyAutocompactionByNamePost enables auto compaction - -Enable table auto compaction -*/ -func (a *Client) ColumnFamilyAutocompactionByNamePost(params *ColumnFamilyAutocompactionByNamePostParams) (*ColumnFamilyAutocompactionByNamePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyAutocompactionByNamePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyAutocompactionByNamePost", - Method: "POST", - PathPattern: "/column_family/autocompaction/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyAutocompactionByNamePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyAutocompactionByNamePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyAutocompactionByNamePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyBuiltIndexesByNameGet gets built indexes - -Returns a list of the names of the built column indexes for current store -*/ -func (a *Client) ColumnFamilyBuiltIndexesByNameGet(params *ColumnFamilyBuiltIndexesByNameGetParams) (*ColumnFamilyBuiltIndexesByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyBuiltIndexesByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyBuiltIndexesByNameGet", - Method: "GET", - PathPattern: "/column_family/built_indexes/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyBuiltIndexesByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyBuiltIndexesByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyBuiltIndexesByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyCompactionByNamePost sets compaction threshold - -Sets the minumum and maximum number of sstables in queue before compaction kicks off -*/ -func (a *Client) ColumnFamilyCompactionByNamePost(params *ColumnFamilyCompactionByNamePostParams) (*ColumnFamilyCompactionByNamePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyCompactionByNamePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyCompactionByNamePost", - Method: "POST", - PathPattern: "/column_family/compaction/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyCompactionByNamePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyCompactionByNamePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyCompactionByNamePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyCompactionStrategyByNameGet gets compaction strategy class - -Gets the compaction strategy class name -*/ -func (a *Client) ColumnFamilyCompactionStrategyByNameGet(params *ColumnFamilyCompactionStrategyByNameGetParams) (*ColumnFamilyCompactionStrategyByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyCompactionStrategyByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyCompactionStrategyByNameGet", - Method: "GET", - PathPattern: "/column_family/compaction_strategy/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyCompactionStrategyByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyCompactionStrategyByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyCompactionStrategyByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyCompactionStrategyByNamePost sets compaction strategy class - -Sets the compaction strategy by class name -*/ -func (a *Client) ColumnFamilyCompactionStrategyByNamePost(params *ColumnFamilyCompactionStrategyByNamePostParams) (*ColumnFamilyCompactionStrategyByNamePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyCompactionStrategyByNamePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyCompactionStrategyByNamePost", - Method: "POST", - PathPattern: "/column_family/compaction_strategy/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyCompactionStrategyByNamePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyCompactionStrategyByNamePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyCompactionStrategyByNamePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyCompressionParametersByNameGet gets compression parameters - -get the compression parameters -*/ -func (a *Client) ColumnFamilyCompressionParametersByNameGet(params *ColumnFamilyCompressionParametersByNameGetParams) (*ColumnFamilyCompressionParametersByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyCompressionParametersByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyCompressionParametersByNameGet", - Method: "GET", - PathPattern: "/column_family/compression_parameters/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyCompressionParametersByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyCompressionParametersByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyCompressionParametersByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyCompressionParametersByNamePost sets compression parameters - -Sets the compression parameters -*/ -func (a *Client) ColumnFamilyCompressionParametersByNamePost(params *ColumnFamilyCompressionParametersByNamePostParams) (*ColumnFamilyCompressionParametersByNamePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyCompressionParametersByNamePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyCompressionParametersByNamePost", - Method: "POST", - PathPattern: "/column_family/compression_parameters/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyCompressionParametersByNamePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyCompressionParametersByNamePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyCompressionParametersByNamePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyCrcCheckChanceByNamePost sets crc check chance - -Set new crc check chance -*/ -func (a *Client) ColumnFamilyCrcCheckChanceByNamePost(params *ColumnFamilyCrcCheckChanceByNamePostParams) (*ColumnFamilyCrcCheckChanceByNamePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyCrcCheckChanceByNamePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyCrcCheckChanceByNamePost", - Method: "POST", - PathPattern: "/column_family/crc_check_chance/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyCrcCheckChanceByNamePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyCrcCheckChanceByNamePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyCrcCheckChanceByNamePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyDroppableRatioByNameGet gets droppable tombstone ratio - -Get the ratio of droppable tombstones to real columns (and non-droppable tombstones) -*/ -func (a *Client) ColumnFamilyDroppableRatioByNameGet(params *ColumnFamilyDroppableRatioByNameGetParams) (*ColumnFamilyDroppableRatioByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyDroppableRatioByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyDroppableRatioByNameGet", - Method: "GET", - PathPattern: "/column_family/droppable_ratio/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyDroppableRatioByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyDroppableRatioByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyDroppableRatioByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyEstimateKeysByNameGet estimates keys - -Get the estimate keys -*/ -func (a *Client) ColumnFamilyEstimateKeysByNameGet(params *ColumnFamilyEstimateKeysByNameGetParams) (*ColumnFamilyEstimateKeysByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyEstimateKeysByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyEstimateKeysByNameGet", - Method: "GET", - PathPattern: "/column_family/estimate_keys/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyEstimateKeysByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyEstimateKeysByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyEstimateKeysByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyGet gets column family - -Get a list of all column family info -*/ -func (a *Client) ColumnFamilyGet(params *ColumnFamilyGetParams) (*ColumnFamilyGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyGet", - Method: "GET", - PathPattern: "/column_family/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyLoadSstableByNamePost loads new sstables - -Scan through Keyspace/ColumnFamily's data directory determine which SSTables should be loaded and load them -*/ -func (a *Client) ColumnFamilyLoadSstableByNamePost(params *ColumnFamilyLoadSstableByNamePostParams) (*ColumnFamilyLoadSstableByNamePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyLoadSstableByNamePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyLoadSstableByNamePost", - Method: "POST", - PathPattern: "/column_family/load/sstable/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyLoadSstableByNamePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyLoadSstableByNamePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyLoadSstableByNamePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMajorCompactionByNamePost forces major compaction - -Force a major compaction of this column family -*/ -func (a *Client) ColumnFamilyMajorCompactionByNamePost(params *ColumnFamilyMajorCompactionByNamePostParams) (*ColumnFamilyMajorCompactionByNamePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMajorCompactionByNamePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMajorCompactionByNamePost", - Method: "POST", - PathPattern: "/column_family/major_compaction/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMajorCompactionByNamePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMajorCompactionByNamePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMajorCompactionByNamePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMaximumCompactionByNameGet gets maximum compaction threshold - -get the maximum number of sstables in queue before compaction kicks off -*/ -func (a *Client) ColumnFamilyMaximumCompactionByNameGet(params *ColumnFamilyMaximumCompactionByNameGetParams) (*ColumnFamilyMaximumCompactionByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMaximumCompactionByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMaximumCompactionByNameGet", - Method: "GET", - PathPattern: "/column_family/maximum_compaction/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMaximumCompactionByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMaximumCompactionByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMaximumCompactionByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMaximumCompactionByNamePost sets maximum compaction threshold - -Sets the maximum number of sstables in queue before compaction kicks off -*/ -func (a *Client) ColumnFamilyMaximumCompactionByNamePost(params *ColumnFamilyMaximumCompactionByNamePostParams) (*ColumnFamilyMaximumCompactionByNamePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMaximumCompactionByNamePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMaximumCompactionByNamePost", - Method: "POST", - PathPattern: "/column_family/maximum_compaction/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMaximumCompactionByNamePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMaximumCompactionByNamePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMaximumCompactionByNamePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGet gets cf all memtables live data size - -Get all of the column family active and not memtables live data size -*/ -func (a *Client) ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGet(params *ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams) (*ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/all_memtables_live_data_size/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsAllMemtablesLiveDataSizeByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsAllMemtablesLiveDataSizeGet gets all cf all memtables live data size - -Get all memtables active and not of all column family live data size -*/ -func (a *Client) ColumnFamilyMetricsAllMemtablesLiveDataSizeGet(params *ColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams) (*ColumnFamilyMetricsAllMemtablesLiveDataSizeGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsAllMemtablesLiveDataSizeGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsAllMemtablesLiveDataSizeGet", - Method: "GET", - PathPattern: "/column_family/metrics/all_memtables_live_data_size", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsAllMemtablesLiveDataSizeGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsAllMemtablesLiveDataSizeGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsAllMemtablesLiveDataSizeGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGet gets cf all memtables off heap size - -Get all of the column family active and not memtables off heap size -*/ -func (a *Client) ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGet(params *ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams) (*ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/all_memtables_off_heap_size/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsAllMemtablesOffHeapSizeByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsAllMemtablesOffHeapSizeGet gets all cf all memtables off heap size - -Get all memtables active and not of all column family off heap size -*/ -func (a *Client) ColumnFamilyMetricsAllMemtablesOffHeapSizeGet(params *ColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams) (*ColumnFamilyMetricsAllMemtablesOffHeapSizeGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsAllMemtablesOffHeapSizeGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsAllMemtablesOffHeapSizeGet", - Method: "GET", - PathPattern: "/column_family/metrics/all_memtables_off_heap_size", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsAllMemtablesOffHeapSizeGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsAllMemtablesOffHeapSizeGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsAllMemtablesOffHeapSizeGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGet gets cf all memtables on heap size - -Get all of the column family active and not memtables on heap size -*/ -func (a *Client) ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGet(params *ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams) (*ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/all_memtables_on_heap_size/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsAllMemtablesOnHeapSizeByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsAllMemtablesOnHeapSizeGet gets all cf all memtables on heap size - -Get all memtables active and not of all column family on heap size -*/ -func (a *Client) ColumnFamilyMetricsAllMemtablesOnHeapSizeGet(params *ColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams) (*ColumnFamilyMetricsAllMemtablesOnHeapSizeGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsAllMemtablesOnHeapSizeGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsAllMemtablesOnHeapSizeGet", - Method: "GET", - PathPattern: "/column_family/metrics/all_memtables_on_heap_size", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsAllMemtablesOnHeapSizeGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsAllMemtablesOnHeapSizeGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsAllMemtablesOnHeapSizeGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGet gets bloom filter disk space used - -Get bloom filter disk space used -*/ -func (a *Client) ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGet(params *ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams) (*ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/bloom_filter_disk_space_used/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsBloomFilterDiskSpaceUsedByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsBloomFilterDiskSpaceUsedGet gets all bloom filter disk space used - -Get all bloom filter disk space used -*/ -func (a *Client) ColumnFamilyMetricsBloomFilterDiskSpaceUsedGet(params *ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams) (*ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsBloomFilterDiskSpaceUsedGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsBloomFilterDiskSpaceUsedGet", - Method: "GET", - PathPattern: "/column_family/metrics/bloom_filter_disk_space_used", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsBloomFilterDiskSpaceUsedGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsBloomFilterFalsePositivesByNameGet gets bloom filter false positives - -Get bloom filter false positives -*/ -func (a *Client) ColumnFamilyMetricsBloomFilterFalsePositivesByNameGet(params *ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams) (*ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsBloomFilterFalsePositivesByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsBloomFilterFalsePositivesByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/bloom_filter_false_positives/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsBloomFilterFalsePositivesByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsBloomFilterFalsePositivesGet gets all bloom filter false positives - -Get all bloom filter false positives -*/ -func (a *Client) ColumnFamilyMetricsBloomFilterFalsePositivesGet(params *ColumnFamilyMetricsBloomFilterFalsePositivesGetParams) (*ColumnFamilyMetricsBloomFilterFalsePositivesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsBloomFilterFalsePositivesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsBloomFilterFalsePositivesGet", - Method: "GET", - PathPattern: "/column_family/metrics/bloom_filter_false_positives", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsBloomFilterFalsePositivesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsBloomFilterFalsePositivesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsBloomFilterFalsePositivesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsBloomFilterFalseRatioByNameGet gets bloom filter false ratio - -Get bloom filter false ratio -*/ -func (a *Client) ColumnFamilyMetricsBloomFilterFalseRatioByNameGet(params *ColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams) (*ColumnFamilyMetricsBloomFilterFalseRatioByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsBloomFilterFalseRatioByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsBloomFilterFalseRatioByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/bloom_filter_false_ratio/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsBloomFilterFalseRatioByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsBloomFilterFalseRatioByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsBloomFilterFalseRatioByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsBloomFilterFalseRatioGet gets all bloom filter false ratio - -Get all bloom filter false ratio -*/ -func (a *Client) ColumnFamilyMetricsBloomFilterFalseRatioGet(params *ColumnFamilyMetricsBloomFilterFalseRatioGetParams) (*ColumnFamilyMetricsBloomFilterFalseRatioGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsBloomFilterFalseRatioGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsBloomFilterFalseRatioGet", - Method: "GET", - PathPattern: "/column_family/metrics/bloom_filter_false_ratio", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsBloomFilterFalseRatioGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsBloomFilterFalseRatioGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsBloomFilterFalseRatioGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGet gets bloom filter off heap memory used - -Get bloom filter off heap memory used -*/ -func (a *Client) ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGet(params *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams) (*ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/bloom_filter_off_heap_memory_used/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGet gets all bloom filter off heap memory used - -Get all bloom filter off heap memory used -*/ -func (a *Client) ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGet(params *ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams) (*ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGet", - Method: "GET", - PathPattern: "/column_family/metrics/bloom_filter_off_heap_memory_used", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsBloomFilterOffHeapMemoryUsedGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsCasCommitByNameGet gets cas commit - -Get cas commit -*/ -func (a *Client) ColumnFamilyMetricsCasCommitByNameGet(params *ColumnFamilyMetricsCasCommitByNameGetParams) (*ColumnFamilyMetricsCasCommitByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsCasCommitByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsCasCommitByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/cas_commit/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsCasCommitByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsCasCommitByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsCasCommitByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGet gets cas commit estimated histogram - -Get cas commit -*/ -func (a *Client) ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGet(params *ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams) (*ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/cas_commit/estimated_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsCasCommitEstimatedHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGet gets cas commit estimated recent histogram - -Get cas commit -*/ -func (a *Client) ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGet(params *ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams) (*ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/cas_commit/estimated_recent_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsCasCommitEstimatedRecentHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsCasPrepareByNameGet gets cas prepare - -Get cas prepare -*/ -func (a *Client) ColumnFamilyMetricsCasPrepareByNameGet(params *ColumnFamilyMetricsCasPrepareByNameGetParams) (*ColumnFamilyMetricsCasPrepareByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsCasPrepareByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsCasPrepareByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/cas_prepare/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsCasPrepareByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsCasPrepareByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsCasPrepareByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGet gets cas prepare estimated histogram - -Get cas prepare -*/ -func (a *Client) ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGet(params *ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams) (*ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/cas_prepare/estimated_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsCasPrepareEstimatedHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGet gets cas prepare estimated recent histogram - -Get cas prepare -*/ -func (a *Client) ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGet(params *ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams) (*ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/cas_prepare/estimated_recent_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsCasPrepareEstimatedRecentHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsCasProposeByNameGet gets cas propose - -Get cas propose -*/ -func (a *Client) ColumnFamilyMetricsCasProposeByNameGet(params *ColumnFamilyMetricsCasProposeByNameGetParams) (*ColumnFamilyMetricsCasProposeByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsCasProposeByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsCasProposeByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/cas_propose/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsCasProposeByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsCasProposeByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsCasProposeByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGet gets cas propose estimated histogram - -Get cas propose -*/ -func (a *Client) ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGet(params *ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams) (*ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/cas_propose/estimated_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsCasProposeEstimatedHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGet gets cas propose estimated recent histogram - -Get cas propose -*/ -func (a *Client) ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGet(params *ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams) (*ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/cas_propose/estimated_recent_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsCasProposeEstimatedRecentHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGet gets col update time delta histogram - -Get col update time delta histogram -*/ -func (a *Client) ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGet(params *ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams) (*ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/col_update_time_delta_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsColUpdateTimeDeltaHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGet gets compression metadata off heap memory used - -Get compression metadata off heap memory used -*/ -func (a *Client) ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGet(params *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams) (*ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/compression_metadata_off_heap_memory_used/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGet gets all compression metadata off heap memory used - -Get all compression metadata off heap memory used -*/ -func (a *Client) ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGet(params *ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams) (*ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGet", - Method: "GET", - PathPattern: "/column_family/metrics/compression_metadata_off_heap_memory_used", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsCompressionMetadataOffHeapMemoryUsedGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsCompressionRatioByNameGet gets compression ratio - -Get compression ratio -*/ -func (a *Client) ColumnFamilyMetricsCompressionRatioByNameGet(params *ColumnFamilyMetricsCompressionRatioByNameGetParams) (*ColumnFamilyMetricsCompressionRatioByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsCompressionRatioByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsCompressionRatioByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/compression_ratio/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsCompressionRatioByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsCompressionRatioByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsCompressionRatioByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsCompressionRatioGet gets all compression ratio - -Get all compression ratio -*/ -func (a *Client) ColumnFamilyMetricsCompressionRatioGet(params *ColumnFamilyMetricsCompressionRatioGetParams) (*ColumnFamilyMetricsCompressionRatioGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsCompressionRatioGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsCompressionRatioGet", - Method: "GET", - PathPattern: "/column_family/metrics/compression_ratio", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsCompressionRatioGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsCompressionRatioGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsCompressionRatioGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsCoordinatorReadGet gets coordinator read latency - -Get coordinator read latency -*/ -func (a *Client) ColumnFamilyMetricsCoordinatorReadGet(params *ColumnFamilyMetricsCoordinatorReadGetParams) (*ColumnFamilyMetricsCoordinatorReadGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsCoordinatorReadGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsCoordinatorReadGet", - Method: "GET", - PathPattern: "/column_family/metrics/coordinator/read", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsCoordinatorReadGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsCoordinatorReadGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsCoordinatorReadGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsCoordinatorScanGet gets coordinator scan latency - -Get coordinator scan latency -*/ -func (a *Client) ColumnFamilyMetricsCoordinatorScanGet(params *ColumnFamilyMetricsCoordinatorScanGetParams) (*ColumnFamilyMetricsCoordinatorScanGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsCoordinatorScanGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsCoordinatorScanGet", - Method: "GET", - PathPattern: "/column_family/metrics/coordinator/scan", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsCoordinatorScanGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsCoordinatorScanGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsCoordinatorScanGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGet gets estimated column count histogram - -Get estimated column count histogram -*/ -func (a *Client) ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGet(params *ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams) (*ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/estimated_column_count_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsEstimatedColumnCountHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsEstimatedRowCountByNameGet gets estimated row count - -Get estimated row count -*/ -func (a *Client) ColumnFamilyMetricsEstimatedRowCountByNameGet(params *ColumnFamilyMetricsEstimatedRowCountByNameGetParams) (*ColumnFamilyMetricsEstimatedRowCountByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsEstimatedRowCountByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsEstimatedRowCountByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/estimated_row_count/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsEstimatedRowCountByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsEstimatedRowCountByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsEstimatedRowCountByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGet gets estimated row size histogram - -Get estimated row size histogram -*/ -func (a *Client) ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGet(params *ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams) (*ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/estimated_row_size_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsEstimatedRowSizeHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGet gets index summary off heap memory used - -Get index summary off heap memory used -*/ -func (a *Client) ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGet(params *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams) (*ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/index_summary_off_heap_memory_used/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGet gets all index summary off heap memory used - -Get all index summary off heap memory used -*/ -func (a *Client) ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGet(params *ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams) (*ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGet", - Method: "GET", - PathPattern: "/column_family/metrics/index_summary_off_heap_memory_used", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsIndexSummaryOffHeapMemoryUsedGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsKeyCacheHitRateByNameGet gets key cache hit rate - -Get key cache hit rate -*/ -func (a *Client) ColumnFamilyMetricsKeyCacheHitRateByNameGet(params *ColumnFamilyMetricsKeyCacheHitRateByNameGetParams) (*ColumnFamilyMetricsKeyCacheHitRateByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsKeyCacheHitRateByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsKeyCacheHitRateByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/key_cache_hit_rate/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsKeyCacheHitRateByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsKeyCacheHitRateByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsKeyCacheHitRateByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsLiveDiskSpaceUsedByNameGet gets live disk space used - -Get live disk space used -*/ -func (a *Client) ColumnFamilyMetricsLiveDiskSpaceUsedByNameGet(params *ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams) (*ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsLiveDiskSpaceUsedByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsLiveDiskSpaceUsedByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/live_disk_space_used/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsLiveDiskSpaceUsedByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsLiveDiskSpaceUsedGet gets all live disk space used - -Get all live disk space used -*/ -func (a *Client) ColumnFamilyMetricsLiveDiskSpaceUsedGet(params *ColumnFamilyMetricsLiveDiskSpaceUsedGetParams) (*ColumnFamilyMetricsLiveDiskSpaceUsedGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsLiveDiskSpaceUsedGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsLiveDiskSpaceUsedGet", - Method: "GET", - PathPattern: "/column_family/metrics/live_disk_space_used", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsLiveDiskSpaceUsedGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsLiveDiskSpaceUsedGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsLiveDiskSpaceUsedGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsLiveScannedHistogramByNameGet gets live scanned histogram - -Get live scanned histogram -*/ -func (a *Client) ColumnFamilyMetricsLiveScannedHistogramByNameGet(params *ColumnFamilyMetricsLiveScannedHistogramByNameGetParams) (*ColumnFamilyMetricsLiveScannedHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsLiveScannedHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsLiveScannedHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/live_scanned_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsLiveScannedHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsLiveScannedHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsLiveScannedHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsLiveSsTableCountByNameGet gets live ss table count - -Get live ss table count -*/ -func (a *Client) ColumnFamilyMetricsLiveSsTableCountByNameGet(params *ColumnFamilyMetricsLiveSsTableCountByNameGetParams) (*ColumnFamilyMetricsLiveSsTableCountByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsLiveSsTableCountByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsLiveSsTableCountByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/live_ss_table_count/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsLiveSsTableCountByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsLiveSsTableCountByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsLiveSsTableCountByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsLiveSsTableCountGet gets all live ss table count - -Get all live ss table count -*/ -func (a *Client) ColumnFamilyMetricsLiveSsTableCountGet(params *ColumnFamilyMetricsLiveSsTableCountGetParams) (*ColumnFamilyMetricsLiveSsTableCountGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsLiveSsTableCountGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsLiveSsTableCountGet", - Method: "GET", - PathPattern: "/column_family/metrics/live_ss_table_count", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsLiveSsTableCountGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsLiveSsTableCountGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsLiveSsTableCountGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsMaxRowSizeByNameGet gets max row size - -Get max row size -*/ -func (a *Client) ColumnFamilyMetricsMaxRowSizeByNameGet(params *ColumnFamilyMetricsMaxRowSizeByNameGetParams) (*ColumnFamilyMetricsMaxRowSizeByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsMaxRowSizeByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsMaxRowSizeByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/max_row_size/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsMaxRowSizeByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsMaxRowSizeByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsMaxRowSizeByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsMaxRowSizeGet gets all max row size - -Get all max row size -*/ -func (a *Client) ColumnFamilyMetricsMaxRowSizeGet(params *ColumnFamilyMetricsMaxRowSizeGetParams) (*ColumnFamilyMetricsMaxRowSizeGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsMaxRowSizeGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsMaxRowSizeGet", - Method: "GET", - PathPattern: "/column_family/metrics/max_row_size", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsMaxRowSizeGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsMaxRowSizeGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsMaxRowSizeGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsMeanRowSizeByNameGet gets mean row size - -Get mean row size -*/ -func (a *Client) ColumnFamilyMetricsMeanRowSizeByNameGet(params *ColumnFamilyMetricsMeanRowSizeByNameGetParams) (*ColumnFamilyMetricsMeanRowSizeByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsMeanRowSizeByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsMeanRowSizeByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/mean_row_size/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsMeanRowSizeByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsMeanRowSizeByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsMeanRowSizeByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsMeanRowSizeGet gets all mean row size - -Get all mean row size -*/ -func (a *Client) ColumnFamilyMetricsMeanRowSizeGet(params *ColumnFamilyMetricsMeanRowSizeGetParams) (*ColumnFamilyMetricsMeanRowSizeGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsMeanRowSizeGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsMeanRowSizeGet", - Method: "GET", - PathPattern: "/column_family/metrics/mean_row_size", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsMeanRowSizeGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsMeanRowSizeGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsMeanRowSizeGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsMemtableColumnsCountByNameGet gets memtable columns count - -get memtable columns count -*/ -func (a *Client) ColumnFamilyMetricsMemtableColumnsCountByNameGet(params *ColumnFamilyMetricsMemtableColumnsCountByNameGetParams) (*ColumnFamilyMetricsMemtableColumnsCountByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsMemtableColumnsCountByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsMemtableColumnsCountByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/memtable_columns_count/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsMemtableColumnsCountByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsMemtableColumnsCountByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsMemtableColumnsCountByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsMemtableColumnsCountGet gets all memtable columns count - -get all memtable columns count -*/ -func (a *Client) ColumnFamilyMetricsMemtableColumnsCountGet(params *ColumnFamilyMetricsMemtableColumnsCountGetParams) (*ColumnFamilyMetricsMemtableColumnsCountGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsMemtableColumnsCountGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsMemtableColumnsCountGet", - Method: "GET", - PathPattern: "/column_family/metrics/memtable_columns_count/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsMemtableColumnsCountGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsMemtableColumnsCountGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsMemtableColumnsCountGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsMemtableLiveDataSizeByNameGet gets memtable live data size - -Get the column family active memtable live data size -*/ -func (a *Client) ColumnFamilyMetricsMemtableLiveDataSizeByNameGet(params *ColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams) (*ColumnFamilyMetricsMemtableLiveDataSizeByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsMemtableLiveDataSizeByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsMemtableLiveDataSizeByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/memtable_live_data_size/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsMemtableLiveDataSizeByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsMemtableLiveDataSizeByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsMemtableLiveDataSizeByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsMemtableLiveDataSizeGet gets all memtable live data size - -Get all active memtable of all column family live data size -*/ -func (a *Client) ColumnFamilyMetricsMemtableLiveDataSizeGet(params *ColumnFamilyMetricsMemtableLiveDataSizeGetParams) (*ColumnFamilyMetricsMemtableLiveDataSizeGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsMemtableLiveDataSizeGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsMemtableLiveDataSizeGet", - Method: "GET", - PathPattern: "/column_family/metrics/memtable_live_data_size", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsMemtableLiveDataSizeGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsMemtableLiveDataSizeGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsMemtableLiveDataSizeGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsMemtableOffHeapSizeByNameGet gets memtable off heap size - -Get the column family active memtable off heap size -*/ -func (a *Client) ColumnFamilyMetricsMemtableOffHeapSizeByNameGet(params *ColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams) (*ColumnFamilyMetricsMemtableOffHeapSizeByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsMemtableOffHeapSizeByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsMemtableOffHeapSizeByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/memtable_off_heap_size/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsMemtableOffHeapSizeByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsMemtableOffHeapSizeByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsMemtableOffHeapSizeByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsMemtableOffHeapSizeGet gets all memtable off heap size - -Get all active memtable of all column family off heap size -*/ -func (a *Client) ColumnFamilyMetricsMemtableOffHeapSizeGet(params *ColumnFamilyMetricsMemtableOffHeapSizeGetParams) (*ColumnFamilyMetricsMemtableOffHeapSizeGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsMemtableOffHeapSizeGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsMemtableOffHeapSizeGet", - Method: "GET", - PathPattern: "/column_family/metrics/memtable_off_heap_size", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsMemtableOffHeapSizeGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsMemtableOffHeapSizeGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsMemtableOffHeapSizeGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsMemtableOnHeapSizeByNameGet gets memtable on heap size - -Get the column family active memtable on heap size -*/ -func (a *Client) ColumnFamilyMetricsMemtableOnHeapSizeByNameGet(params *ColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams) (*ColumnFamilyMetricsMemtableOnHeapSizeByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsMemtableOnHeapSizeByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsMemtableOnHeapSizeByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/memtable_on_heap_size/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsMemtableOnHeapSizeByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsMemtableOnHeapSizeByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsMemtableOnHeapSizeByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsMemtableOnHeapSizeGet gets all memtable on heap size - -Get all active memtable of all column family on heap size -*/ -func (a *Client) ColumnFamilyMetricsMemtableOnHeapSizeGet(params *ColumnFamilyMetricsMemtableOnHeapSizeGetParams) (*ColumnFamilyMetricsMemtableOnHeapSizeGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsMemtableOnHeapSizeGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsMemtableOnHeapSizeGet", - Method: "GET", - PathPattern: "/column_family/metrics/memtable_on_heap_size", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsMemtableOnHeapSizeGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsMemtableOnHeapSizeGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsMemtableOnHeapSizeGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsMemtableSwitchCountByNameGet gets memtable switch count - -Get memtable switch count -*/ -func (a *Client) ColumnFamilyMetricsMemtableSwitchCountByNameGet(params *ColumnFamilyMetricsMemtableSwitchCountByNameGetParams) (*ColumnFamilyMetricsMemtableSwitchCountByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsMemtableSwitchCountByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsMemtableSwitchCountByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/memtable_switch_count/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsMemtableSwitchCountByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsMemtableSwitchCountByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsMemtableSwitchCountByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsMemtableSwitchCountGet gets all memtable switch count - -Get all memtable switch count -*/ -func (a *Client) ColumnFamilyMetricsMemtableSwitchCountGet(params *ColumnFamilyMetricsMemtableSwitchCountGetParams) (*ColumnFamilyMetricsMemtableSwitchCountGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsMemtableSwitchCountGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsMemtableSwitchCountGet", - Method: "GET", - PathPattern: "/column_family/metrics/memtable_switch_count", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsMemtableSwitchCountGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsMemtableSwitchCountGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsMemtableSwitchCountGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsMinRowSizeByNameGet gets min row size - -Get min row size -*/ -func (a *Client) ColumnFamilyMetricsMinRowSizeByNameGet(params *ColumnFamilyMetricsMinRowSizeByNameGetParams) (*ColumnFamilyMetricsMinRowSizeByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsMinRowSizeByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsMinRowSizeByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/min_row_size/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsMinRowSizeByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsMinRowSizeByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsMinRowSizeByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsMinRowSizeGet gets all min row size - -Get all min row size -*/ -func (a *Client) ColumnFamilyMetricsMinRowSizeGet(params *ColumnFamilyMetricsMinRowSizeGetParams) (*ColumnFamilyMetricsMinRowSizeGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsMinRowSizeGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsMinRowSizeGet", - Method: "GET", - PathPattern: "/column_family/metrics/min_row_size", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsMinRowSizeGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsMinRowSizeGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsMinRowSizeGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsPendingCompactionsByNameGet gets pending compactions - -Get pending compactions -*/ -func (a *Client) ColumnFamilyMetricsPendingCompactionsByNameGet(params *ColumnFamilyMetricsPendingCompactionsByNameGetParams) (*ColumnFamilyMetricsPendingCompactionsByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsPendingCompactionsByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsPendingCompactionsByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/pending_compactions/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsPendingCompactionsByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsPendingCompactionsByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsPendingCompactionsByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsPendingCompactionsGet gets all pending compactions - -Get all pending compactions -*/ -func (a *Client) ColumnFamilyMetricsPendingCompactionsGet(params *ColumnFamilyMetricsPendingCompactionsGetParams) (*ColumnFamilyMetricsPendingCompactionsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsPendingCompactionsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsPendingCompactionsGet", - Method: "GET", - PathPattern: "/column_family/metrics/pending_compactions", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsPendingCompactionsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsPendingCompactionsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsPendingCompactionsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsPendingFlushesByNameGet gets pending flushes - -Get pending flushes -*/ -func (a *Client) ColumnFamilyMetricsPendingFlushesByNameGet(params *ColumnFamilyMetricsPendingFlushesByNameGetParams) (*ColumnFamilyMetricsPendingFlushesByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsPendingFlushesByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsPendingFlushesByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/pending_flushes/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsPendingFlushesByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsPendingFlushesByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsPendingFlushesByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsPendingFlushesGet gets all pending flushes - -Get all pending flushes -*/ -func (a *Client) ColumnFamilyMetricsPendingFlushesGet(params *ColumnFamilyMetricsPendingFlushesGetParams) (*ColumnFamilyMetricsPendingFlushesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsPendingFlushesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsPendingFlushesGet", - Method: "GET", - PathPattern: "/column_family/metrics/pending_flushes", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsPendingFlushesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsPendingFlushesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsPendingFlushesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsRangeLatencyByNameGet gets range latency - -Get range latency -*/ -func (a *Client) ColumnFamilyMetricsRangeLatencyByNameGet(params *ColumnFamilyMetricsRangeLatencyByNameGetParams) (*ColumnFamilyMetricsRangeLatencyByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsRangeLatencyByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsRangeLatencyByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/range_latency/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsRangeLatencyByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsRangeLatencyByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsRangeLatencyByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGet gets range latency estimated histogram - -Get range latency -*/ -func (a *Client) ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGet(params *ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams) (*ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/range_latency/estimated_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsRangeLatencyEstimatedHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGet gets range latency estimated recent histogram - -Get range latency -*/ -func (a *Client) ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGet(params *ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams) (*ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/range_latency/estimated_recent_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsRangeLatencyEstimatedRecentHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsRangeLatencyGet gets all range latency - -Get all range latency -*/ -func (a *Client) ColumnFamilyMetricsRangeLatencyGet(params *ColumnFamilyMetricsRangeLatencyGetParams) (*ColumnFamilyMetricsRangeLatencyGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsRangeLatencyGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsRangeLatencyGet", - Method: "GET", - PathPattern: "/column_family/metrics/range_latency", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsRangeLatencyGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsRangeLatencyGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsRangeLatencyGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsReadByNameGet gets read - -Get number of reads -*/ -func (a *Client) ColumnFamilyMetricsReadByNameGet(params *ColumnFamilyMetricsReadByNameGetParams) (*ColumnFamilyMetricsReadByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsReadByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsReadByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/read/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsReadByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsReadByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsReadByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsReadGet gets all read - -Get number of reads from all column family, per shard -*/ -func (a *Client) ColumnFamilyMetricsReadGet(params *ColumnFamilyMetricsReadGetParams) (*ColumnFamilyMetricsReadGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsReadGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsReadGet", - Method: "GET", - PathPattern: "/column_family/metrics/read/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsReadGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsReadGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsReadGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsReadLatencyByNameGet gets read latency - -Get read latency -*/ -func (a *Client) ColumnFamilyMetricsReadLatencyByNameGet(params *ColumnFamilyMetricsReadLatencyByNameGetParams) (*ColumnFamilyMetricsReadLatencyByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsReadLatencyByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsReadLatencyByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/read_latency/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsReadLatencyByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsReadLatencyByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsReadLatencyByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGet gets read latency estimated histogram - -Get read latency -*/ -func (a *Client) ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGet(params *ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams) (*ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/read_latency/estimated_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsReadLatencyEstimatedHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGet gets read latency estimated recent histogram - -Get read latency -*/ -func (a *Client) ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGet(params *ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams) (*ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/read_latency/estimated_recent_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsReadLatencyEstimatedRecentHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsReadLatencyGet gets all read latency - -Get all read latency -*/ -func (a *Client) ColumnFamilyMetricsReadLatencyGet(params *ColumnFamilyMetricsReadLatencyGetParams) (*ColumnFamilyMetricsReadLatencyGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsReadLatencyGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsReadLatencyGet", - Method: "GET", - PathPattern: "/column_family/metrics/read_latency", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsReadLatencyGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsReadLatencyGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsReadLatencyGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsReadLatencyHistogramByNameGet gets read latency histogram depricated - -Get read latency histogram -*/ -func (a *Client) ColumnFamilyMetricsReadLatencyHistogramByNameGet(params *ColumnFamilyMetricsReadLatencyHistogramByNameGetParams) (*ColumnFamilyMetricsReadLatencyHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsReadLatencyHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsReadLatencyHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/read_latency/histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsReadLatencyHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsReadLatencyHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsReadLatencyHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsReadLatencyHistogramGet gets all read latency histogram depricated - -Get read latency histogram from all column family -*/ -func (a *Client) ColumnFamilyMetricsReadLatencyHistogramGet(params *ColumnFamilyMetricsReadLatencyHistogramGetParams) (*ColumnFamilyMetricsReadLatencyHistogramGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsReadLatencyHistogramGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsReadLatencyHistogramGet", - Method: "GET", - PathPattern: "/column_family/metrics/read_latency/histogram/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsReadLatencyHistogramGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsReadLatencyHistogramGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsReadLatencyHistogramGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGet gets read latency histogram - -Get read latency moving avrage histogram -*/ -func (a *Client) ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGet(params *ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams) (*ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/read_latency/moving_average_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsReadLatencyMovingAverageHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsReadLatencyMovingAverageHistogramGet gets all read latency histogram - -Get read latency moving avrage histogram from all column family -*/ -func (a *Client) ColumnFamilyMetricsReadLatencyMovingAverageHistogramGet(params *ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams) (*ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsReadLatencyMovingAverageHistogramGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsReadLatencyMovingAverageHistogramGet", - Method: "GET", - PathPattern: "/column_family/metrics/read_latency/moving_average_histogram/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsReadLatencyMovingAverageHistogramGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGet gets recent bloom filter false positives - -Get recent bloom filter false positives -*/ -func (a *Client) ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGet(params *ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams) (*ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/recent_bloom_filter_false_positives/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsRecentBloomFilterFalsePositivesByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsRecentBloomFilterFalsePositivesGet gets all recent bloom filter false positives - -Get all recent bloom filter false positives -*/ -func (a *Client) ColumnFamilyMetricsRecentBloomFilterFalsePositivesGet(params *ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams) (*ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsRecentBloomFilterFalsePositivesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsRecentBloomFilterFalsePositivesGet", - Method: "GET", - PathPattern: "/column_family/metrics/recent_bloom_filter_false_positives", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsRecentBloomFilterFalsePositivesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGet gets recent bloom filter false ratio - -Get recent bloom filter false ratio -*/ -func (a *Client) ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGet(params *ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams) (*ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/recent_bloom_filter_false_ratio/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsRecentBloomFilterFalseRatioByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsRecentBloomFilterFalseRatioGet gets all recent bloom filter false ratio - -Get all recent bloom filter false ratio -*/ -func (a *Client) ColumnFamilyMetricsRecentBloomFilterFalseRatioGet(params *ColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams) (*ColumnFamilyMetricsRecentBloomFilterFalseRatioGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsRecentBloomFilterFalseRatioGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsRecentBloomFilterFalseRatioGet", - Method: "GET", - PathPattern: "/column_family/metrics/recent_bloom_filter_false_ratio", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsRecentBloomFilterFalseRatioGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsRecentBloomFilterFalseRatioGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsRecentBloomFilterFalseRatioGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsRowCacheHitByNameGet gets row cache hit - -Get row cache hit -*/ -func (a *Client) ColumnFamilyMetricsRowCacheHitByNameGet(params *ColumnFamilyMetricsRowCacheHitByNameGetParams) (*ColumnFamilyMetricsRowCacheHitByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsRowCacheHitByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsRowCacheHitByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/row_cache_hit/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsRowCacheHitByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsRowCacheHitByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsRowCacheHitByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsRowCacheHitGet gets all row cache hit - -Get all row cache hit -*/ -func (a *Client) ColumnFamilyMetricsRowCacheHitGet(params *ColumnFamilyMetricsRowCacheHitGetParams) (*ColumnFamilyMetricsRowCacheHitGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsRowCacheHitGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsRowCacheHitGet", - Method: "GET", - PathPattern: "/column_family/metrics/row_cache_hit", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsRowCacheHitGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsRowCacheHitGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsRowCacheHitGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGet gets row cache hit out of range - -Get row cache hit out of range -*/ -func (a *Client) ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGet(params *ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams) (*ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/row_cache_hit_out_of_range/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsRowCacheHitOutOfRangeByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsRowCacheHitOutOfRangeGet gets all row cache hit out of range - -Get all row cache hit out of range -*/ -func (a *Client) ColumnFamilyMetricsRowCacheHitOutOfRangeGet(params *ColumnFamilyMetricsRowCacheHitOutOfRangeGetParams) (*ColumnFamilyMetricsRowCacheHitOutOfRangeGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsRowCacheHitOutOfRangeGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsRowCacheHitOutOfRangeGet", - Method: "GET", - PathPattern: "/column_family/metrics/row_cache_hit_out_of_range", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsRowCacheHitOutOfRangeGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsRowCacheHitOutOfRangeGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsRowCacheHitOutOfRangeGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsRowCacheMissByNameGet gets row cache miss - -Get row cache miss -*/ -func (a *Client) ColumnFamilyMetricsRowCacheMissByNameGet(params *ColumnFamilyMetricsRowCacheMissByNameGetParams) (*ColumnFamilyMetricsRowCacheMissByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsRowCacheMissByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsRowCacheMissByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/row_cache_miss/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsRowCacheMissByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsRowCacheMissByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsRowCacheMissByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsRowCacheMissGet gets all row cache miss - -Get all row cache miss -*/ -func (a *Client) ColumnFamilyMetricsRowCacheMissGet(params *ColumnFamilyMetricsRowCacheMissGetParams) (*ColumnFamilyMetricsRowCacheMissGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsRowCacheMissGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsRowCacheMissGet", - Method: "GET", - PathPattern: "/column_family/metrics/row_cache_miss", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsRowCacheMissGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsRowCacheMissGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsRowCacheMissGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsSnapshotsSizeByNameGet gets true snapshots size - -Get true snapshots size -*/ -func (a *Client) ColumnFamilyMetricsSnapshotsSizeByNameGet(params *ColumnFamilyMetricsSnapshotsSizeByNameGetParams) (*ColumnFamilyMetricsSnapshotsSizeByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsSnapshotsSizeByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsSnapshotsSizeByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/snapshots_size/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsSnapshotsSizeByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsSnapshotsSizeByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsSnapshotsSizeByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsSpeculativeRetriesByNameGet gets speculative retries - -Get speculative retries -*/ -func (a *Client) ColumnFamilyMetricsSpeculativeRetriesByNameGet(params *ColumnFamilyMetricsSpeculativeRetriesByNameGetParams) (*ColumnFamilyMetricsSpeculativeRetriesByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsSpeculativeRetriesByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsSpeculativeRetriesByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/speculative_retries/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsSpeculativeRetriesByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsSpeculativeRetriesByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsSpeculativeRetriesByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsSpeculativeRetriesGet gets all speculative retries - -Get all speculative retries -*/ -func (a *Client) ColumnFamilyMetricsSpeculativeRetriesGet(params *ColumnFamilyMetricsSpeculativeRetriesGetParams) (*ColumnFamilyMetricsSpeculativeRetriesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsSpeculativeRetriesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsSpeculativeRetriesGet", - Method: "GET", - PathPattern: "/column_family/metrics/speculative_retries", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsSpeculativeRetriesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsSpeculativeRetriesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsSpeculativeRetriesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsSstablesPerReadHistogramByNameGet gets sstables per read histogram - -Get sstables per read histogram -*/ -func (a *Client) ColumnFamilyMetricsSstablesPerReadHistogramByNameGet(params *ColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams) (*ColumnFamilyMetricsSstablesPerReadHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsSstablesPerReadHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsSstablesPerReadHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/sstables_per_read_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsSstablesPerReadHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsSstablesPerReadHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsSstablesPerReadHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsTombstoneScannedHistogramByNameGet gets tombstone scanned histogram - -Get tombstone scanned histogram -*/ -func (a *Client) ColumnFamilyMetricsTombstoneScannedHistogramByNameGet(params *ColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams) (*ColumnFamilyMetricsTombstoneScannedHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsTombstoneScannedHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsTombstoneScannedHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/tombstone_scanned_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsTombstoneScannedHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsTombstoneScannedHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsTombstoneScannedHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsTotalDiskSpaceUsedByNameGet gets total disk space used - -Get total disk space used -*/ -func (a *Client) ColumnFamilyMetricsTotalDiskSpaceUsedByNameGet(params *ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams) (*ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsTotalDiskSpaceUsedByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsTotalDiskSpaceUsedByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/total_disk_space_used/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsTotalDiskSpaceUsedByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsTotalDiskSpaceUsedGet gets all total disk space used - -Get all total disk space used -*/ -func (a *Client) ColumnFamilyMetricsTotalDiskSpaceUsedGet(params *ColumnFamilyMetricsTotalDiskSpaceUsedGetParams) (*ColumnFamilyMetricsTotalDiskSpaceUsedGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsTotalDiskSpaceUsedGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsTotalDiskSpaceUsedGet", - Method: "GET", - PathPattern: "/column_family/metrics/total_disk_space_used", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsTotalDiskSpaceUsedGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsTotalDiskSpaceUsedGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsTotalDiskSpaceUsedGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsTrueSnapshotsSizeGet gets all true snapshots size - -Get all true snapshots size -*/ -func (a *Client) ColumnFamilyMetricsTrueSnapshotsSizeGet(params *ColumnFamilyMetricsTrueSnapshotsSizeGetParams) (*ColumnFamilyMetricsTrueSnapshotsSizeGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsTrueSnapshotsSizeGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsTrueSnapshotsSizeGet", - Method: "GET", - PathPattern: "/column_family/metrics/true_snapshots_size", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsTrueSnapshotsSizeGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsTrueSnapshotsSizeGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsTrueSnapshotsSizeGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsWaitingOnFreeMemtableGet gets waiting on free memtable space - -Get waiting on free memtable space -*/ -func (a *Client) ColumnFamilyMetricsWaitingOnFreeMemtableGet(params *ColumnFamilyMetricsWaitingOnFreeMemtableGetParams) (*ColumnFamilyMetricsWaitingOnFreeMemtableGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsWaitingOnFreeMemtableGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsWaitingOnFreeMemtableGet", - Method: "GET", - PathPattern: "/column_family/metrics/waiting_on_free_memtable", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsWaitingOnFreeMemtableGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsWaitingOnFreeMemtableGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsWaitingOnFreeMemtableGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsWriteByNameGet gets write - -Get number of writes -*/ -func (a *Client) ColumnFamilyMetricsWriteByNameGet(params *ColumnFamilyMetricsWriteByNameGetParams) (*ColumnFamilyMetricsWriteByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsWriteByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsWriteByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/write/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsWriteByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsWriteByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsWriteByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsWriteGet gets all write - -Get number of writes from all column family, per shard -*/ -func (a *Client) ColumnFamilyMetricsWriteGet(params *ColumnFamilyMetricsWriteGetParams) (*ColumnFamilyMetricsWriteGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsWriteGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsWriteGet", - Method: "GET", - PathPattern: "/column_family/metrics/write/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsWriteGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsWriteGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsWriteGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsWriteLatencyByNameGet gets write latency - -Get write latency -*/ -func (a *Client) ColumnFamilyMetricsWriteLatencyByNameGet(params *ColumnFamilyMetricsWriteLatencyByNameGetParams) (*ColumnFamilyMetricsWriteLatencyByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsWriteLatencyByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsWriteLatencyByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/write_latency/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsWriteLatencyByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsWriteLatencyByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsWriteLatencyByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGet gets write latency estimated histogram - -Get write latency -*/ -func (a *Client) ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGet(params *ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams) (*ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/write_latency/estimated_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsWriteLatencyEstimatedHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGet gets write latency estimated recent histogram - -Get write latency -*/ -func (a *Client) ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGet(params *ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams) (*ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/write_latency/estimated_recent_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsWriteLatencyEstimatedRecentHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsWriteLatencyGet gets all write latency - -Get all write latency -*/ -func (a *Client) ColumnFamilyMetricsWriteLatencyGet(params *ColumnFamilyMetricsWriteLatencyGetParams) (*ColumnFamilyMetricsWriteLatencyGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsWriteLatencyGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsWriteLatencyGet", - Method: "GET", - PathPattern: "/column_family/metrics/write_latency", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsWriteLatencyGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsWriteLatencyGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsWriteLatencyGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsWriteLatencyHistogramByNameGet gets write latency histogram depricated - -Get write latency histogram -*/ -func (a *Client) ColumnFamilyMetricsWriteLatencyHistogramByNameGet(params *ColumnFamilyMetricsWriteLatencyHistogramByNameGetParams) (*ColumnFamilyMetricsWriteLatencyHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsWriteLatencyHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsWriteLatencyHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/write_latency/histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsWriteLatencyHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsWriteLatencyHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsWriteLatencyHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsWriteLatencyHistogramGet gets all write latency histogram depricated - -Get write latency histogram of all column family -*/ -func (a *Client) ColumnFamilyMetricsWriteLatencyHistogramGet(params *ColumnFamilyMetricsWriteLatencyHistogramGetParams) (*ColumnFamilyMetricsWriteLatencyHistogramGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsWriteLatencyHistogramGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsWriteLatencyHistogramGet", - Method: "GET", - PathPattern: "/column_family/metrics/write_latency/histogram/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsWriteLatencyHistogramGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsWriteLatencyHistogramGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsWriteLatencyHistogramGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGet gets write latency histogram - -Get write latency moving average histogram -*/ -func (a *Client) ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGet(params *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams) (*ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGet", - Method: "GET", - PathPattern: "/column_family/metrics/write_latency/moving_average_histogram/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsWriteLatencyMovingAverageHistogramByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGet gets all write latency histogram - -Get write latency moving average histogram of all column family -*/ -func (a *Client) ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGet(params *ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams) (*ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGet", - Method: "GET", - PathPattern: "/column_family/metrics/write_latency/moving_average_histogram/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMetricsWriteLatencyMovingAverageHistogramGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMinimumCompactionByNameGet gets minimum compaction threshold - -get the minimum number of sstables in queue before compaction kicks off -*/ -func (a *Client) ColumnFamilyMinimumCompactionByNameGet(params *ColumnFamilyMinimumCompactionByNameGetParams) (*ColumnFamilyMinimumCompactionByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMinimumCompactionByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMinimumCompactionByNameGet", - Method: "GET", - PathPattern: "/column_family/minimum_compaction/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMinimumCompactionByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMinimumCompactionByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMinimumCompactionByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyMinimumCompactionByNamePost sets minimum compaction threshold - -Sets the minimum number of sstables in queue before compaction kicks off -*/ -func (a *Client) ColumnFamilyMinimumCompactionByNamePost(params *ColumnFamilyMinimumCompactionByNamePostParams) (*ColumnFamilyMinimumCompactionByNamePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyMinimumCompactionByNamePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyMinimumCompactionByNamePost", - Method: "POST", - PathPattern: "/column_family/minimum_compaction/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyMinimumCompactionByNamePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyMinimumCompactionByNamePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyMinimumCompactionByNamePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyNameGet gets column family name - -Get a list of all column family names -*/ -func (a *Client) ColumnFamilyNameGet(params *ColumnFamilyNameGetParams) (*ColumnFamilyNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyNameGet", - Method: "GET", - PathPattern: "/column_family/name", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilyNameKeyspaceGet gets column family name keyspace - -Get a list of the key space names -*/ -func (a *Client) ColumnFamilyNameKeyspaceGet(params *ColumnFamilyNameKeyspaceGetParams) (*ColumnFamilyNameKeyspaceGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilyNameKeyspaceGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilyNameKeyspaceGet", - Method: "GET", - PathPattern: "/column_family/name/keyspace", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilyNameKeyspaceGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilyNameKeyspaceGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilyNameKeyspaceGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilySstablesByKeyByNameGet gets sstables for key - -Returns a list of sstable filenames that contain the given partition key on this node -*/ -func (a *Client) ColumnFamilySstablesByKeyByNameGet(params *ColumnFamilySstablesByKeyByNameGetParams) (*ColumnFamilySstablesByKeyByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilySstablesByKeyByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilySstablesByKeyByNameGet", - Method: "GET", - PathPattern: "/column_family/sstables/by_key/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilySstablesByKeyByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilySstablesByKeyByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilySstablesByKeyByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilySstablesPerLevelByNameGet gets sstable count per level - -sstable count for each level. empty unless leveled compaction is used -*/ -func (a *Client) ColumnFamilySstablesPerLevelByNameGet(params *ColumnFamilySstablesPerLevelByNameGetParams) (*ColumnFamilySstablesPerLevelByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilySstablesPerLevelByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilySstablesPerLevelByNameGet", - Method: "GET", - PathPattern: "/column_family/sstables/per_level/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilySstablesPerLevelByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilySstablesPerLevelByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilySstablesPerLevelByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -ColumnFamilySstablesUnleveledByNameGet gets unleveled sstables - -the number of SSTables in L0. Always return 0 if Leveled compaction is not enabled. -*/ -func (a *Client) ColumnFamilySstablesUnleveledByNameGet(params *ColumnFamilySstablesUnleveledByNameGetParams) (*ColumnFamilySstablesUnleveledByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewColumnFamilySstablesUnleveledByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "ColumnFamilySstablesUnleveledByNameGet", - Method: "GET", - PathPattern: "/column_family/sstables/unleveled/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &ColumnFamilySstablesUnleveledByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*ColumnFamilySstablesUnleveledByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*ColumnFamilySstablesUnleveledByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CommitLogMetricsWaitingOnCommitGet gets waiting on commit - -Get waiting on commit -*/ -func (a *Client) CommitLogMetricsWaitingOnCommitGet(params *CommitLogMetricsWaitingOnCommitGetParams) (*CommitLogMetricsWaitingOnCommitGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCommitLogMetricsWaitingOnCommitGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CommitLogMetricsWaitingOnCommitGet", - Method: "GET", - PathPattern: "/commit_log/metrics/waiting_on_commit", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CommitLogMetricsWaitingOnCommitGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CommitLogMetricsWaitingOnCommitGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CommitLogMetricsWaitingOnCommitGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CommitLogMetricsWaitingOnSegmentAllocationGet gets waiting on segment allocation - -Get waiting on segment allocation -*/ -func (a *Client) CommitLogMetricsWaitingOnSegmentAllocationGet(params *CommitLogMetricsWaitingOnSegmentAllocationGetParams) (*CommitLogMetricsWaitingOnSegmentAllocationGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCommitLogMetricsWaitingOnSegmentAllocationGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CommitLogMetricsWaitingOnSegmentAllocationGet", - Method: "GET", - PathPattern: "/commit_log/metrics/waiting_on_segment_allocation", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CommitLogMetricsWaitingOnSegmentAllocationGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CommitLogMetricsWaitingOnSegmentAllocationGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CommitLogMetricsWaitingOnSegmentAllocationGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CommitlogMetricsCompletedTasksGet gets completed tasks - -Get completed tasks -*/ -func (a *Client) CommitlogMetricsCompletedTasksGet(params *CommitlogMetricsCompletedTasksGetParams) (*CommitlogMetricsCompletedTasksGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCommitlogMetricsCompletedTasksGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CommitlogMetricsCompletedTasksGet", - Method: "GET", - PathPattern: "/commitlog/metrics/completed_tasks", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CommitlogMetricsCompletedTasksGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CommitlogMetricsCompletedTasksGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CommitlogMetricsCompletedTasksGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CommitlogMetricsPendingTasksGet gets pending tasks - -Get pending tasks -*/ -func (a *Client) CommitlogMetricsPendingTasksGet(params *CommitlogMetricsPendingTasksGetParams) (*CommitlogMetricsPendingTasksGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCommitlogMetricsPendingTasksGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CommitlogMetricsPendingTasksGet", - Method: "GET", - PathPattern: "/commitlog/metrics/pending_tasks", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CommitlogMetricsPendingTasksGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CommitlogMetricsPendingTasksGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CommitlogMetricsPendingTasksGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CommitlogMetricsTotalCommitLogSizeGet gets total commit log size - -Get total commit log size -*/ -func (a *Client) CommitlogMetricsTotalCommitLogSizeGet(params *CommitlogMetricsTotalCommitLogSizeGetParams) (*CommitlogMetricsTotalCommitLogSizeGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCommitlogMetricsTotalCommitLogSizeGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CommitlogMetricsTotalCommitLogSizeGet", - Method: "GET", - PathPattern: "/commitlog/metrics/total_commit_log_size", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CommitlogMetricsTotalCommitLogSizeGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CommitlogMetricsTotalCommitLogSizeGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CommitlogMetricsTotalCommitLogSizeGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CommitlogRecoverByPathPost commitlogs recover - -Recover a single file -*/ -func (a *Client) CommitlogRecoverByPathPost(params *CommitlogRecoverByPathPostParams) (*CommitlogRecoverByPathPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCommitlogRecoverByPathPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CommitlogRecoverByPathPost", - Method: "POST", - PathPattern: "/commitlog/recover/{path}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CommitlogRecoverByPathPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CommitlogRecoverByPathPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CommitlogRecoverByPathPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CommitlogSegmentsActiveGet gets active segment names - -file names (not full paths) of active commit log segments (segments containing unflushed data) -*/ -func (a *Client) CommitlogSegmentsActiveGet(params *CommitlogSegmentsActiveGetParams) (*CommitlogSegmentsActiveGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCommitlogSegmentsActiveGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CommitlogSegmentsActiveGet", - Method: "GET", - PathPattern: "/commitlog/segments/active", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CommitlogSegmentsActiveGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CommitlogSegmentsActiveGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CommitlogSegmentsActiveGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CommitlogSegmentsArchivingGet gets archiving segment names - -Returns files which are pending for archival attempt. Does NOT include failed archive attempts -*/ -func (a *Client) CommitlogSegmentsArchivingGet(params *CommitlogSegmentsArchivingGetParams) (*CommitlogSegmentsArchivingGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCommitlogSegmentsArchivingGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CommitlogSegmentsArchivingGet", - Method: "GET", - PathPattern: "/commitlog/segments/archiving", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CommitlogSegmentsArchivingGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CommitlogSegmentsArchivingGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CommitlogSegmentsArchivingGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CompactionManagerCompactionHistoryGet gets compaction history - -get List of the compaction history -*/ -func (a *Client) CompactionManagerCompactionHistoryGet(params *CompactionManagerCompactionHistoryGetParams) (*CompactionManagerCompactionHistoryGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCompactionManagerCompactionHistoryGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CompactionManagerCompactionHistoryGet", - Method: "GET", - PathPattern: "/compaction_manager/compaction_history", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CompactionManagerCompactionHistoryGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CompactionManagerCompactionHistoryGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CompactionManagerCompactionHistoryGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CompactionManagerCompactionInfoGet gets compaction info - -get a list of all active compaction info -*/ -func (a *Client) CompactionManagerCompactionInfoGet(params *CompactionManagerCompactionInfoGetParams) (*CompactionManagerCompactionInfoGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCompactionManagerCompactionInfoGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CompactionManagerCompactionInfoGet", - Method: "GET", - PathPattern: "/compaction_manager/compaction_info", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CompactionManagerCompactionInfoGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CompactionManagerCompactionInfoGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CompactionManagerCompactionInfoGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CompactionManagerCompactionsGet gets compactions - -get List of running compactions -*/ -func (a *Client) CompactionManagerCompactionsGet(params *CompactionManagerCompactionsGetParams) (*CompactionManagerCompactionsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCompactionManagerCompactionsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CompactionManagerCompactionsGet", - Method: "GET", - PathPattern: "/compaction_manager/compactions", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CompactionManagerCompactionsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CompactionManagerCompactionsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CompactionManagerCompactionsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CompactionManagerForceUserDefinedCompactionPost forces user defined compaction - -Triggers the compaction of user specified sstables. You can specify files from various keyspaces and columnfamilies. If you do so, user defined compaction is performed several times to the groups of files in the same keyspace/columnfamily. must contain keyspace and columnfamily name in path(for 2.1+) or file name itself. -*/ -func (a *Client) CompactionManagerForceUserDefinedCompactionPost(params *CompactionManagerForceUserDefinedCompactionPostParams) (*CompactionManagerForceUserDefinedCompactionPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCompactionManagerForceUserDefinedCompactionPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CompactionManagerForceUserDefinedCompactionPost", - Method: "POST", - PathPattern: "/compaction_manager/force_user_defined_compaction", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CompactionManagerForceUserDefinedCompactionPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CompactionManagerForceUserDefinedCompactionPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CompactionManagerForceUserDefinedCompactionPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CompactionManagerMetricsBytesCompactedGet gets bytes compacted - -Get bytes compacted -*/ -func (a *Client) CompactionManagerMetricsBytesCompactedGet(params *CompactionManagerMetricsBytesCompactedGetParams) (*CompactionManagerMetricsBytesCompactedGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCompactionManagerMetricsBytesCompactedGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CompactionManagerMetricsBytesCompactedGet", - Method: "GET", - PathPattern: "/compaction_manager/metrics/bytes_compacted", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CompactionManagerMetricsBytesCompactedGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CompactionManagerMetricsBytesCompactedGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CompactionManagerMetricsBytesCompactedGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CompactionManagerMetricsCompletedTasksGet gets completed tasks1 - -Get completed tasks -*/ -func (a *Client) CompactionManagerMetricsCompletedTasksGet(params *CompactionManagerMetricsCompletedTasksGetParams) (*CompactionManagerMetricsCompletedTasksGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCompactionManagerMetricsCompletedTasksGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CompactionManagerMetricsCompletedTasksGet", - Method: "GET", - PathPattern: "/compaction_manager/metrics/completed_tasks", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CompactionManagerMetricsCompletedTasksGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CompactionManagerMetricsCompletedTasksGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CompactionManagerMetricsCompletedTasksGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CompactionManagerMetricsPendingTasksGet gets pending tasks1 - -Get pending tasks -*/ -func (a *Client) CompactionManagerMetricsPendingTasksGet(params *CompactionManagerMetricsPendingTasksGetParams) (*CompactionManagerMetricsPendingTasksGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCompactionManagerMetricsPendingTasksGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CompactionManagerMetricsPendingTasksGet", - Method: "GET", - PathPattern: "/compaction_manager/metrics/pending_tasks", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CompactionManagerMetricsPendingTasksGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CompactionManagerMetricsPendingTasksGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CompactionManagerMetricsPendingTasksGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CompactionManagerMetricsTotalCompactionsCompletedGet gets total compactions completed - -Get total compactions completed -*/ -func (a *Client) CompactionManagerMetricsTotalCompactionsCompletedGet(params *CompactionManagerMetricsTotalCompactionsCompletedGetParams) (*CompactionManagerMetricsTotalCompactionsCompletedGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCompactionManagerMetricsTotalCompactionsCompletedGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CompactionManagerMetricsTotalCompactionsCompletedGet", - Method: "GET", - PathPattern: "/compaction_manager/metrics/total_compactions_completed", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CompactionManagerMetricsTotalCompactionsCompletedGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CompactionManagerMetricsTotalCompactionsCompletedGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CompactionManagerMetricsTotalCompactionsCompletedGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -CompactionManagerStopCompactionPost stops compaction - -Stop all running compaction-like tasks having the provided type -*/ -func (a *Client) CompactionManagerStopCompactionPost(params *CompactionManagerStopCompactionPostParams) (*CompactionManagerStopCompactionPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewCompactionManagerStopCompactionPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "CompactionManagerStopCompactionPost", - Method: "POST", - PathPattern: "/compaction_manager/stop_compaction", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &CompactionManagerStopCompactionPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*CompactionManagerStopCompactionPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*CompactionManagerStopCompactionPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FailureDetectorCountEndpointDownGet gets down endpoint count - -Get count down endpoint -*/ -func (a *Client) FailureDetectorCountEndpointDownGet(params *FailureDetectorCountEndpointDownGetParams) (*FailureDetectorCountEndpointDownGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFailureDetectorCountEndpointDownGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "FailureDetectorCountEndpointDownGet", - Method: "GET", - PathPattern: "/failure_detector/count/endpoint/down", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FailureDetectorCountEndpointDownGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FailureDetectorCountEndpointDownGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FailureDetectorCountEndpointDownGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FailureDetectorCountEndpointUpGet gets up endpoint count - -Get count up endpoint -*/ -func (a *Client) FailureDetectorCountEndpointUpGet(params *FailureDetectorCountEndpointUpGetParams) (*FailureDetectorCountEndpointUpGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFailureDetectorCountEndpointUpGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "FailureDetectorCountEndpointUpGet", - Method: "GET", - PathPattern: "/failure_detector/count/endpoint/up", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FailureDetectorCountEndpointUpGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FailureDetectorCountEndpointUpGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FailureDetectorCountEndpointUpGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FailureDetectorEndpointPhiValuesGet gets endpoint phi values - -Get end point phi values -*/ -func (a *Client) FailureDetectorEndpointPhiValuesGet(params *FailureDetectorEndpointPhiValuesGetParams) (*FailureDetectorEndpointPhiValuesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFailureDetectorEndpointPhiValuesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "FailureDetectorEndpointPhiValuesGet", - Method: "GET", - PathPattern: "/failure_detector/endpoint_phi_values", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FailureDetectorEndpointPhiValuesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FailureDetectorEndpointPhiValuesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FailureDetectorEndpointPhiValuesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FailureDetectorEndpointsGet gets all endpoint states - -Get all endpoint states -*/ -func (a *Client) FailureDetectorEndpointsGet(params *FailureDetectorEndpointsGetParams) (*FailureDetectorEndpointsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFailureDetectorEndpointsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "FailureDetectorEndpointsGet", - Method: "GET", - PathPattern: "/failure_detector/endpoints/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FailureDetectorEndpointsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FailureDetectorEndpointsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FailureDetectorEndpointsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FailureDetectorEndpointsStatesByAddrGet gets endpoint state - -Get endpoint states -*/ -func (a *Client) FailureDetectorEndpointsStatesByAddrGet(params *FailureDetectorEndpointsStatesByAddrGetParams) (*FailureDetectorEndpointsStatesByAddrGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFailureDetectorEndpointsStatesByAddrGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "FailureDetectorEndpointsStatesByAddrGet", - Method: "GET", - PathPattern: "/failure_detector/endpoints/states/{addr}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FailureDetectorEndpointsStatesByAddrGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FailureDetectorEndpointsStatesByAddrGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FailureDetectorEndpointsStatesByAddrGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FailureDetectorPhiGet gets phi convict threshold - -Get the phi convict threshold -*/ -func (a *Client) FailureDetectorPhiGet(params *FailureDetectorPhiGetParams) (*FailureDetectorPhiGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFailureDetectorPhiGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "FailureDetectorPhiGet", - Method: "GET", - PathPattern: "/failure_detector/phi", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FailureDetectorPhiGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FailureDetectorPhiGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FailureDetectorPhiGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FailureDetectorPhiPost sets phi convict threshold - -Set the phi convict threshold -*/ -func (a *Client) FailureDetectorPhiPost(params *FailureDetectorPhiPostParams) (*FailureDetectorPhiPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFailureDetectorPhiPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "FailureDetectorPhiPost", - Method: "POST", - PathPattern: "/failure_detector/phi", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FailureDetectorPhiPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FailureDetectorPhiPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FailureDetectorPhiPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FailureDetectorSimpleStatesGet gets simple states - -Get simple_states -*/ -func (a *Client) FailureDetectorSimpleStatesGet(params *FailureDetectorSimpleStatesGetParams) (*FailureDetectorSimpleStatesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFailureDetectorSimpleStatesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "FailureDetectorSimpleStatesGet", - Method: "GET", - PathPattern: "/failure_detector/simple_states", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FailureDetectorSimpleStatesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FailureDetectorSimpleStatesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FailureDetectorSimpleStatesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GossiperAssassinateByAddrPost assassinates endpoint - -Assassinate an end point -*/ -func (a *Client) GossiperAssassinateByAddrPost(params *GossiperAssassinateByAddrPostParams) (*GossiperAssassinateByAddrPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGossiperAssassinateByAddrPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GossiperAssassinateByAddrPost", - Method: "POST", - PathPattern: "/gossiper/assassinate/{addr}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GossiperAssassinateByAddrPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GossiperAssassinateByAddrPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GossiperAssassinateByAddrPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GossiperDowntimeByAddrGet gets endpoint downtime - -Get the downtime of an end point -*/ -func (a *Client) GossiperDowntimeByAddrGet(params *GossiperDowntimeByAddrGetParams) (*GossiperDowntimeByAddrGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGossiperDowntimeByAddrGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GossiperDowntimeByAddrGet", - Method: "GET", - PathPattern: "/gossiper/downtime/{addr}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GossiperDowntimeByAddrGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GossiperDowntimeByAddrGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GossiperDowntimeByAddrGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GossiperEndpointDownGet gets down endpoint - -Get the addreses of the down endpoints -*/ -func (a *Client) GossiperEndpointDownGet(params *GossiperEndpointDownGetParams) (*GossiperEndpointDownGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGossiperEndpointDownGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GossiperEndpointDownGet", - Method: "GET", - PathPattern: "/gossiper/endpoint/down/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GossiperEndpointDownGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GossiperEndpointDownGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GossiperEndpointDownGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GossiperEndpointLiveGet gets live endpoint - -Get the addreses of live endpoints -*/ -func (a *Client) GossiperEndpointLiveGet(params *GossiperEndpointLiveGetParams) (*GossiperEndpointLiveGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGossiperEndpointLiveGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GossiperEndpointLiveGet", - Method: "GET", - PathPattern: "/gossiper/endpoint/live/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GossiperEndpointLiveGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GossiperEndpointLiveGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GossiperEndpointLiveGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GossiperGenerationNumberByAddrGet gets current generation number - -Returns files which are pending for archival attempt. Does NOT include failed archive attempts -*/ -func (a *Client) GossiperGenerationNumberByAddrGet(params *GossiperGenerationNumberByAddrGetParams) (*GossiperGenerationNumberByAddrGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGossiperGenerationNumberByAddrGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GossiperGenerationNumberByAddrGet", - Method: "GET", - PathPattern: "/gossiper/generation_number/{addr}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GossiperGenerationNumberByAddrGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GossiperGenerationNumberByAddrGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GossiperGenerationNumberByAddrGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -GossiperHeartBeatVersionByAddrGet gets current heart beat version - -Get heart beat version for a node -*/ -func (a *Client) GossiperHeartBeatVersionByAddrGet(params *GossiperHeartBeatVersionByAddrGetParams) (*GossiperHeartBeatVersionByAddrGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGossiperHeartBeatVersionByAddrGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "GossiperHeartBeatVersionByAddrGet", - Method: "GET", - PathPattern: "/gossiper/heart_beat_version/{addr}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GossiperHeartBeatVersionByAddrGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*GossiperHeartBeatVersionByAddrGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*GossiperHeartBeatVersionByAddrGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -HintedHandoffHintsDelete truncates all hints - -Truncate all the hints -*/ -func (a *Client) HintedHandoffHintsDelete(params *HintedHandoffHintsDeleteParams) (*HintedHandoffHintsDeleteOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewHintedHandoffHintsDeleteParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "HintedHandoffHintsDelete", - Method: "DELETE", - PathPattern: "/hinted_handoff/hints", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &HintedHandoffHintsDeleteReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*HintedHandoffHintsDeleteOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*HintedHandoffHintsDeleteDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -HintedHandoffHintsGet lists endpoints pending hints - -List all the endpoints that this node has hints for. -*/ -func (a *Client) HintedHandoffHintsGet(params *HintedHandoffHintsGetParams) (*HintedHandoffHintsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewHintedHandoffHintsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "HintedHandoffHintsGet", - Method: "GET", - PathPattern: "/hinted_handoff/hints", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &HintedHandoffHintsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*HintedHandoffHintsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*HintedHandoffHintsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -HintedHandoffMetricsCreateHintByAddrGet gets create hint count - -Get create hint count -*/ -func (a *Client) HintedHandoffMetricsCreateHintByAddrGet(params *HintedHandoffMetricsCreateHintByAddrGetParams) (*HintedHandoffMetricsCreateHintByAddrGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewHintedHandoffMetricsCreateHintByAddrGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "HintedHandoffMetricsCreateHintByAddrGet", - Method: "GET", - PathPattern: "/hinted_handoff/metrics/create_hint/{addr}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &HintedHandoffMetricsCreateHintByAddrGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*HintedHandoffMetricsCreateHintByAddrGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*HintedHandoffMetricsCreateHintByAddrGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -HintedHandoffMetricsNotStoredHintsByAddrGet gets not stored hints count - -Get not stored hints count -*/ -func (a *Client) HintedHandoffMetricsNotStoredHintsByAddrGet(params *HintedHandoffMetricsNotStoredHintsByAddrGetParams) (*HintedHandoffMetricsNotStoredHintsByAddrGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewHintedHandoffMetricsNotStoredHintsByAddrGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "HintedHandoffMetricsNotStoredHintsByAddrGet", - Method: "GET", - PathPattern: "/hinted_handoff/metrics/not_stored_hints/{addr}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &HintedHandoffMetricsNotStoredHintsByAddrGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*HintedHandoffMetricsNotStoredHintsByAddrGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*HintedHandoffMetricsNotStoredHintsByAddrGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -HintedHandoffPausePost pauses hints delivery - -pause hints delivery -*/ -func (a *Client) HintedHandoffPausePost(params *HintedHandoffPausePostParams) (*HintedHandoffPausePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewHintedHandoffPausePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "HintedHandoffPausePost", - Method: "POST", - PathPattern: "/hinted_handoff/pause", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &HintedHandoffPausePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*HintedHandoffPausePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*HintedHandoffPausePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -HintedHandoffSchedulePost schedules hint delivery - -force hint delivery to an endpoint -*/ -func (a *Client) HintedHandoffSchedulePost(params *HintedHandoffSchedulePostParams) (*HintedHandoffSchedulePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewHintedHandoffSchedulePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "HintedHandoffSchedulePost", - Method: "POST", - PathPattern: "/hinted_handoff/schedule", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &HintedHandoffSchedulePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*HintedHandoffSchedulePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*HintedHandoffSchedulePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -LsaCompactPost lsas compact - -Force compaction of all regions -*/ -func (a *Client) LsaCompactPost(params *LsaCompactPostParams) (*LsaCompactPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewLsaCompactPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "LsaCompactPost", - Method: "POST", - PathPattern: "/lsa/compact", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &LsaCompactPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*LsaCompactPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*LsaCompactPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -MessagingServiceMessagesDroppedByVerGet gets dropped messages by ver - -Get the number of dropped messages per verb -*/ -func (a *Client) MessagingServiceMessagesDroppedByVerGet(params *MessagingServiceMessagesDroppedByVerGetParams) (*MessagingServiceMessagesDroppedByVerGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewMessagingServiceMessagesDroppedByVerGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "MessagingServiceMessagesDroppedByVerGet", - Method: "GET", - PathPattern: "/messaging_service/messages/dropped_by_ver", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &MessagingServiceMessagesDroppedByVerGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*MessagingServiceMessagesDroppedByVerGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*MessagingServiceMessagesDroppedByVerGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -MessagingServiceMessagesDroppedGet gets dropped messages - -Get the number of messages that were dropped before sending -*/ -func (a *Client) MessagingServiceMessagesDroppedGet(params *MessagingServiceMessagesDroppedGetParams) (*MessagingServiceMessagesDroppedGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewMessagingServiceMessagesDroppedGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "MessagingServiceMessagesDroppedGet", - Method: "GET", - PathPattern: "/messaging_service/messages/dropped", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &MessagingServiceMessagesDroppedGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*MessagingServiceMessagesDroppedGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*MessagingServiceMessagesDroppedGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -MessagingServiceMessagesExceptionGet gets exception messages - -Get the number of messages return with an exception -*/ -func (a *Client) MessagingServiceMessagesExceptionGet(params *MessagingServiceMessagesExceptionGetParams) (*MessagingServiceMessagesExceptionGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewMessagingServiceMessagesExceptionGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "MessagingServiceMessagesExceptionGet", - Method: "GET", - PathPattern: "/messaging_service/messages/exception", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &MessagingServiceMessagesExceptionGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*MessagingServiceMessagesExceptionGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*MessagingServiceMessagesExceptionGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -MessagingServiceMessagesPendingGet gets pending messages - -Get the number of pending messages -*/ -func (a *Client) MessagingServiceMessagesPendingGet(params *MessagingServiceMessagesPendingGetParams) (*MessagingServiceMessagesPendingGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewMessagingServiceMessagesPendingGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "MessagingServiceMessagesPendingGet", - Method: "GET", - PathPattern: "/messaging_service/messages/pending", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &MessagingServiceMessagesPendingGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*MessagingServiceMessagesPendingGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*MessagingServiceMessagesPendingGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -MessagingServiceMessagesRepliedGet gets completed messages - -Get the number of replied messages -*/ -func (a *Client) MessagingServiceMessagesRepliedGet(params *MessagingServiceMessagesRepliedGetParams) (*MessagingServiceMessagesRepliedGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewMessagingServiceMessagesRepliedGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "MessagingServiceMessagesRepliedGet", - Method: "GET", - PathPattern: "/messaging_service/messages/replied", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &MessagingServiceMessagesRepliedGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*MessagingServiceMessagesRepliedGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*MessagingServiceMessagesRepliedGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -MessagingServiceMessagesRespondCompletedGet gets respond completed messages - -Get the number of completed respond messages -*/ -func (a *Client) MessagingServiceMessagesRespondCompletedGet(params *MessagingServiceMessagesRespondCompletedGetParams) (*MessagingServiceMessagesRespondCompletedGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewMessagingServiceMessagesRespondCompletedGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "MessagingServiceMessagesRespondCompletedGet", - Method: "GET", - PathPattern: "/messaging_service/messages/respond_completed", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &MessagingServiceMessagesRespondCompletedGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*MessagingServiceMessagesRespondCompletedGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*MessagingServiceMessagesRespondCompletedGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -MessagingServiceMessagesRespondPendingGet gets respond pending messages - -Get the number of messages waiting for respond -*/ -func (a *Client) MessagingServiceMessagesRespondPendingGet(params *MessagingServiceMessagesRespondPendingGetParams) (*MessagingServiceMessagesRespondPendingGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewMessagingServiceMessagesRespondPendingGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "MessagingServiceMessagesRespondPendingGet", - Method: "GET", - PathPattern: "/messaging_service/messages/respond_pending", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &MessagingServiceMessagesRespondPendingGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*MessagingServiceMessagesRespondPendingGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*MessagingServiceMessagesRespondPendingGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -MessagingServiceMessagesSentGet gets sent messages - -Get the number of sent messages -*/ -func (a *Client) MessagingServiceMessagesSentGet(params *MessagingServiceMessagesSentGetParams) (*MessagingServiceMessagesSentGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewMessagingServiceMessagesSentGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "MessagingServiceMessagesSentGet", - Method: "GET", - PathPattern: "/messaging_service/messages/sent", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &MessagingServiceMessagesSentGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*MessagingServiceMessagesSentGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*MessagingServiceMessagesSentGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -MessagingServiceMessagesTimeoutGet gets timeout messages - -Get the number of timeout messages -*/ -func (a *Client) MessagingServiceMessagesTimeoutGet(params *MessagingServiceMessagesTimeoutGetParams) (*MessagingServiceMessagesTimeoutGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewMessagingServiceMessagesTimeoutGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "MessagingServiceMessagesTimeoutGet", - Method: "GET", - PathPattern: "/messaging_service/messages/timeout", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &MessagingServiceMessagesTimeoutGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*MessagingServiceMessagesTimeoutGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*MessagingServiceMessagesTimeoutGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -MessagingServiceVersionGet gets version - -Get the version number -*/ -func (a *Client) MessagingServiceVersionGet(params *MessagingServiceVersionGetParams) (*MessagingServiceVersionGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewMessagingServiceVersionGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "MessagingServiceVersionGet", - Method: "GET", - PathPattern: "/messaging_service/version", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &MessagingServiceVersionGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*MessagingServiceVersionGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*MessagingServiceVersionGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -RaftReadBarrierPost reads barrier - -Triggers read barrier for the given Raft group to wait for previously committed commands in this group to be applied locally. For example, can be used on group 0 to wait for the node to obtain latest schema changes. -*/ -func (a *Client) RaftReadBarrierPost(params *RaftReadBarrierPostParams) (*RaftReadBarrierPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewRaftReadBarrierPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "RaftReadBarrierPost", - Method: "POST", - PathPattern: "/raft/read_barrier", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &RaftReadBarrierPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*RaftReadBarrierPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*RaftReadBarrierPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -SnitchDatacenterGet gets datacenter - -Provides the Datacenter name depending on the respective snitch used, given the hostname/ip -*/ -func (a *Client) SnitchDatacenterGet(params *SnitchDatacenterGetParams) (*SnitchDatacenterGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewSnitchDatacenterGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "SnitchDatacenterGet", - Method: "GET", - PathPattern: "/snitch/datacenter", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &SnitchDatacenterGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*SnitchDatacenterGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*SnitchDatacenterGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -SnitchNameGet gets snitch name - -Provides the snitch name of the cluster -*/ -func (a *Client) SnitchNameGet(params *SnitchNameGetParams) (*SnitchNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewSnitchNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "SnitchNameGet", - Method: "GET", - PathPattern: "/snitch/name", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &SnitchNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*SnitchNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*SnitchNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -SnitchRackGet gets rack - -Provides the Rack name depending on the respective snitch used, given the host name/ip -*/ -func (a *Client) SnitchRackGet(params *SnitchRackGetParams) (*SnitchRackGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewSnitchRackGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "SnitchRackGet", - Method: "GET", - PathPattern: "/snitch/rack", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &SnitchRackGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*SnitchRackGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*SnitchRackGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyCasContentionTimeoutGet gets cas contention timeout - -Get CAS contention timeout in seconds -*/ -func (a *Client) StorageProxyCasContentionTimeoutGet(params *StorageProxyCasContentionTimeoutGetParams) (*StorageProxyCasContentionTimeoutGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyCasContentionTimeoutGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyCasContentionTimeoutGet", - Method: "GET", - PathPattern: "/storage_proxy/cas_contention_timeout", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyCasContentionTimeoutGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyCasContentionTimeoutGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyCasContentionTimeoutGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyCasContentionTimeoutPost sets cas contention timeout - -Set CAS contention timeout -*/ -func (a *Client) StorageProxyCasContentionTimeoutPost(params *StorageProxyCasContentionTimeoutPostParams) (*StorageProxyCasContentionTimeoutPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyCasContentionTimeoutPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyCasContentionTimeoutPost", - Method: "POST", - PathPattern: "/storage_proxy/cas_contention_timeout", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyCasContentionTimeoutPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyCasContentionTimeoutPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyCasContentionTimeoutPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyCounterWriteRPCTimeoutGet gets counter write rpc timeout - -Get counter write rpc timeout in seconds -*/ -func (a *Client) StorageProxyCounterWriteRPCTimeoutGet(params *StorageProxyCounterWriteRPCTimeoutGetParams) (*StorageProxyCounterWriteRPCTimeoutGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyCounterWriteRPCTimeoutGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyCounterWriteRpcTimeoutGet", - Method: "GET", - PathPattern: "/storage_proxy/counter_write_rpc_timeout", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyCounterWriteRPCTimeoutGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyCounterWriteRPCTimeoutGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyCounterWriteRPCTimeoutGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyCounterWriteRPCTimeoutPost sets counter write rpc timeout - -Set counter write rpc timeout -*/ -func (a *Client) StorageProxyCounterWriteRPCTimeoutPost(params *StorageProxyCounterWriteRPCTimeoutPostParams) (*StorageProxyCounterWriteRPCTimeoutPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyCounterWriteRPCTimeoutPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyCounterWriteRpcTimeoutPost", - Method: "POST", - PathPattern: "/storage_proxy/counter_write_rpc_timeout", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyCounterWriteRPCTimeoutPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyCounterWriteRPCTimeoutPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyCounterWriteRPCTimeoutPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyHintedHandoffEnabledByDcGet gets hinted handoff enabled by dc - -Get the hinted handoff enabled by dc -*/ -func (a *Client) StorageProxyHintedHandoffEnabledByDcGet(params *StorageProxyHintedHandoffEnabledByDcGetParams) (*StorageProxyHintedHandoffEnabledByDcGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyHintedHandoffEnabledByDcGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyHintedHandoffEnabledByDcGet", - Method: "GET", - PathPattern: "/storage_proxy/hinted_handoff_enabled_by_dc", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyHintedHandoffEnabledByDcGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyHintedHandoffEnabledByDcGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyHintedHandoffEnabledByDcGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyHintedHandoffEnabledByDcPost sets hinted handoff enabled by dc list - -Set the hinted handoff enabled by dc -*/ -func (a *Client) StorageProxyHintedHandoffEnabledByDcPost(params *StorageProxyHintedHandoffEnabledByDcPostParams) (*StorageProxyHintedHandoffEnabledByDcPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyHintedHandoffEnabledByDcPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyHintedHandoffEnabledByDcPost", - Method: "POST", - PathPattern: "/storage_proxy/hinted_handoff_enabled_by_dc", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyHintedHandoffEnabledByDcPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyHintedHandoffEnabledByDcPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyHintedHandoffEnabledByDcPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyHintedHandoffEnabledGet gets hinted handoff enabled - -Return true if hinted handoff enabled -*/ -func (a *Client) StorageProxyHintedHandoffEnabledGet(params *StorageProxyHintedHandoffEnabledGetParams) (*StorageProxyHintedHandoffEnabledGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyHintedHandoffEnabledGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyHintedHandoffEnabledGet", - Method: "GET", - PathPattern: "/storage_proxy/hinted_handoff_enabled", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyHintedHandoffEnabledGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyHintedHandoffEnabledGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyHintedHandoffEnabledGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyHintedHandoffEnabledPost sets hinted handoff enabled - -Set hinted handoff status -*/ -func (a *Client) StorageProxyHintedHandoffEnabledPost(params *StorageProxyHintedHandoffEnabledPostParams) (*StorageProxyHintedHandoffEnabledPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyHintedHandoffEnabledPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyHintedHandoffEnabledPost", - Method: "POST", - PathPattern: "/storage_proxy/hinted_handoff_enabled", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyHintedHandoffEnabledPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyHintedHandoffEnabledPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyHintedHandoffEnabledPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyHintsInProgressGet gets hints in progress - -get hints in progress -*/ -func (a *Client) StorageProxyHintsInProgressGet(params *StorageProxyHintsInProgressGetParams) (*StorageProxyHintsInProgressGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyHintsInProgressGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyHintsInProgressGet", - Method: "GET", - PathPattern: "/storage_proxy/hints_in_progress", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyHintsInProgressGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyHintsInProgressGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyHintsInProgressGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMaxHintWindowGet gets max hint window - -Get the max hint window -*/ -func (a *Client) StorageProxyMaxHintWindowGet(params *StorageProxyMaxHintWindowGetParams) (*StorageProxyMaxHintWindowGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMaxHintWindowGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMaxHintWindowGet", - Method: "GET", - PathPattern: "/storage_proxy/max_hint_window", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMaxHintWindowGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMaxHintWindowGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMaxHintWindowGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMaxHintWindowPost sets max hint window - -Set the max hint window -*/ -func (a *Client) StorageProxyMaxHintWindowPost(params *StorageProxyMaxHintWindowPostParams) (*StorageProxyMaxHintWindowPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMaxHintWindowPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMaxHintWindowPost", - Method: "POST", - PathPattern: "/storage_proxy/max_hint_window", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMaxHintWindowPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMaxHintWindowPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMaxHintWindowPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMaxHintsInProgressGet gets max hints in progress - -Get max hints in progress -*/ -func (a *Client) StorageProxyMaxHintsInProgressGet(params *StorageProxyMaxHintsInProgressGetParams) (*StorageProxyMaxHintsInProgressGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMaxHintsInProgressGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMaxHintsInProgressGet", - Method: "GET", - PathPattern: "/storage_proxy/max_hints_in_progress", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMaxHintsInProgressGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMaxHintsInProgressGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMaxHintsInProgressGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMaxHintsInProgressPost sets max hints in progress - -Set max hints in progress -*/ -func (a *Client) StorageProxyMaxHintsInProgressPost(params *StorageProxyMaxHintsInProgressPostParams) (*StorageProxyMaxHintsInProgressPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMaxHintsInProgressPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMaxHintsInProgressPost", - Method: "POST", - PathPattern: "/storage_proxy/max_hints_in_progress", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMaxHintsInProgressPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMaxHintsInProgressPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMaxHintsInProgressPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsCasReadConditionNotMetGet gets cas read metrics condition not met - -Get cas read metrics -*/ -func (a *Client) StorageProxyMetricsCasReadConditionNotMetGet(params *StorageProxyMetricsCasReadConditionNotMetGetParams) (*StorageProxyMetricsCasReadConditionNotMetGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsCasReadConditionNotMetGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsCasReadConditionNotMetGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/cas_read/condition_not_met", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsCasReadConditionNotMetGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsCasReadConditionNotMetGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsCasReadConditionNotMetGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsCasReadContentionGet gets cas read metrics contention - -Get cas read metrics -*/ -func (a *Client) StorageProxyMetricsCasReadContentionGet(params *StorageProxyMetricsCasReadContentionGetParams) (*StorageProxyMetricsCasReadContentionGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsCasReadContentionGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsCasReadContentionGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/cas_read/contention", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsCasReadContentionGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsCasReadContentionGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsCasReadContentionGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsCasReadTimeoutsGet gets cas read timeouts - -Get CAS read timeout -*/ -func (a *Client) StorageProxyMetricsCasReadTimeoutsGet(params *StorageProxyMetricsCasReadTimeoutsGetParams) (*StorageProxyMetricsCasReadTimeoutsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsCasReadTimeoutsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsCasReadTimeoutsGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/cas_read/timeouts", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsCasReadTimeoutsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsCasReadTimeoutsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsCasReadTimeoutsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsCasReadUnavailablesGet gets cas read unavailables - -Get CAS read unavailables -*/ -func (a *Client) StorageProxyMetricsCasReadUnavailablesGet(params *StorageProxyMetricsCasReadUnavailablesGetParams) (*StorageProxyMetricsCasReadUnavailablesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsCasReadUnavailablesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsCasReadUnavailablesGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/cas_read/unavailables", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsCasReadUnavailablesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsCasReadUnavailablesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsCasReadUnavailablesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsCasReadUnfinishedCommitGet gets cas read metrics unfinished commit - -Get cas read metrics -*/ -func (a *Client) StorageProxyMetricsCasReadUnfinishedCommitGet(params *StorageProxyMetricsCasReadUnfinishedCommitGetParams) (*StorageProxyMetricsCasReadUnfinishedCommitGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsCasReadUnfinishedCommitGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsCasReadUnfinishedCommitGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/cas_read/unfinished_commit", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsCasReadUnfinishedCommitGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsCasReadUnfinishedCommitGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsCasReadUnfinishedCommitGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsCasWriteConditionNotMetGet gets cas write metrics condition not met - -Get cas write metrics -*/ -func (a *Client) StorageProxyMetricsCasWriteConditionNotMetGet(params *StorageProxyMetricsCasWriteConditionNotMetGetParams) (*StorageProxyMetricsCasWriteConditionNotMetGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsCasWriteConditionNotMetGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsCasWriteConditionNotMetGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/cas_write/condition_not_met", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsCasWriteConditionNotMetGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsCasWriteConditionNotMetGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsCasWriteConditionNotMetGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsCasWriteContentionGet gets cas write metrics contention - -Get cas write metrics -*/ -func (a *Client) StorageProxyMetricsCasWriteContentionGet(params *StorageProxyMetricsCasWriteContentionGetParams) (*StorageProxyMetricsCasWriteContentionGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsCasWriteContentionGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsCasWriteContentionGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/cas_write/contention", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsCasWriteContentionGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsCasWriteContentionGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsCasWriteContentionGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsCasWriteTimeoutsGet gets cas write timeouts - -Get CAS write timeout -*/ -func (a *Client) StorageProxyMetricsCasWriteTimeoutsGet(params *StorageProxyMetricsCasWriteTimeoutsGetParams) (*StorageProxyMetricsCasWriteTimeoutsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsCasWriteTimeoutsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsCasWriteTimeoutsGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/cas_write/timeouts", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsCasWriteTimeoutsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsCasWriteTimeoutsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsCasWriteTimeoutsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsCasWriteUnavailablesGet gets cas write unavailables - -Get CAS write unavailables -*/ -func (a *Client) StorageProxyMetricsCasWriteUnavailablesGet(params *StorageProxyMetricsCasWriteUnavailablesGetParams) (*StorageProxyMetricsCasWriteUnavailablesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsCasWriteUnavailablesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsCasWriteUnavailablesGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/cas_write/unavailables", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsCasWriteUnavailablesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsCasWriteUnavailablesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsCasWriteUnavailablesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsCasWriteUnfinishedCommitGet gets cas write metrics unfinished commit - -Get cas write metrics -*/ -func (a *Client) StorageProxyMetricsCasWriteUnfinishedCommitGet(params *StorageProxyMetricsCasWriteUnfinishedCommitGetParams) (*StorageProxyMetricsCasWriteUnfinishedCommitGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsCasWriteUnfinishedCommitGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsCasWriteUnfinishedCommitGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/cas_write/unfinished_commit", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsCasWriteUnfinishedCommitGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsCasWriteUnfinishedCommitGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsCasWriteUnfinishedCommitGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsRangeEstimatedHistogramGet gets range estimated histogram - -Get range estimated latency -*/ -func (a *Client) StorageProxyMetricsRangeEstimatedHistogramGet(params *StorageProxyMetricsRangeEstimatedHistogramGetParams) (*StorageProxyMetricsRangeEstimatedHistogramGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsRangeEstimatedHistogramGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsRangeEstimatedHistogramGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/range/estimated_histogram/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsRangeEstimatedHistogramGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsRangeEstimatedHistogramGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsRangeEstimatedHistogramGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsRangeGet gets range latency - -Get range latency -*/ -func (a *Client) StorageProxyMetricsRangeGet(params *StorageProxyMetricsRangeGetParams) (*StorageProxyMetricsRangeGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsRangeGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsRangeGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/range", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsRangeGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsRangeGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsRangeGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsRangeHistogramGet gets range metrics latency histogram depricated - -Get range metrics -*/ -func (a *Client) StorageProxyMetricsRangeHistogramGet(params *StorageProxyMetricsRangeHistogramGetParams) (*StorageProxyMetricsRangeHistogramGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsRangeHistogramGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsRangeHistogramGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/range/histogram", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsRangeHistogramGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsRangeHistogramGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsRangeHistogramGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsRangeMovingAverageHistogramGet gets range metrics latency histogram - -Get range metrics rate and histogram -*/ -func (a *Client) StorageProxyMetricsRangeMovingAverageHistogramGet(params *StorageProxyMetricsRangeMovingAverageHistogramGetParams) (*StorageProxyMetricsRangeMovingAverageHistogramGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsRangeMovingAverageHistogramGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsRangeMovingAverageHistogramGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/range/moving_average_histogram", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsRangeMovingAverageHistogramGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsRangeMovingAverageHistogramGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsRangeMovingAverageHistogramGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsRangeTimeoutsGet gets range metrics timeouts - -Get range metrics -*/ -func (a *Client) StorageProxyMetricsRangeTimeoutsGet(params *StorageProxyMetricsRangeTimeoutsGetParams) (*StorageProxyMetricsRangeTimeoutsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsRangeTimeoutsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsRangeTimeoutsGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/range/timeouts", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsRangeTimeoutsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsRangeTimeoutsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsRangeTimeoutsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsRangeTimeoutsRatesGet gets range metrics timeouts rates - -Get range metrics rates -*/ -func (a *Client) StorageProxyMetricsRangeTimeoutsRatesGet(params *StorageProxyMetricsRangeTimeoutsRatesGetParams) (*StorageProxyMetricsRangeTimeoutsRatesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsRangeTimeoutsRatesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsRangeTimeoutsRatesGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/range/timeouts_rates", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsRangeTimeoutsRatesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsRangeTimeoutsRatesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsRangeTimeoutsRatesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsRangeUnavailablesGet gets range metrics unavailables - -Get range metrics -*/ -func (a *Client) StorageProxyMetricsRangeUnavailablesGet(params *StorageProxyMetricsRangeUnavailablesGetParams) (*StorageProxyMetricsRangeUnavailablesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsRangeUnavailablesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsRangeUnavailablesGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/range/unavailables", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsRangeUnavailablesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsRangeUnavailablesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsRangeUnavailablesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsRangeUnavailablesRatesGet gets range metrics unavailables rates - -Get range metrics rates -*/ -func (a *Client) StorageProxyMetricsRangeUnavailablesRatesGet(params *StorageProxyMetricsRangeUnavailablesRatesGetParams) (*StorageProxyMetricsRangeUnavailablesRatesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsRangeUnavailablesRatesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsRangeUnavailablesRatesGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/range/unavailables_rates", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsRangeUnavailablesRatesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsRangeUnavailablesRatesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsRangeUnavailablesRatesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsReadEstimatedHistogramGet gets read estimated histogram - -Get read estimated latency -*/ -func (a *Client) StorageProxyMetricsReadEstimatedHistogramGet(params *StorageProxyMetricsReadEstimatedHistogramGetParams) (*StorageProxyMetricsReadEstimatedHistogramGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsReadEstimatedHistogramGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsReadEstimatedHistogramGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/read/estimated_histogram/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsReadEstimatedHistogramGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsReadEstimatedHistogramGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsReadEstimatedHistogramGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsReadGet gets read latency - -Get read latency -*/ -func (a *Client) StorageProxyMetricsReadGet(params *StorageProxyMetricsReadGetParams) (*StorageProxyMetricsReadGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsReadGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsReadGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/read", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsReadGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsReadGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsReadGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsReadHistogramGet gets read metrics latency histogram depricated - -Get read metrics -*/ -func (a *Client) StorageProxyMetricsReadHistogramGet(params *StorageProxyMetricsReadHistogramGetParams) (*StorageProxyMetricsReadHistogramGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsReadHistogramGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsReadHistogramGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/read/histogram", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsReadHistogramGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsReadHistogramGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsReadHistogramGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsReadMovingAverageHistogramGet gets read metrics latency histogram - -Get read metrics -*/ -func (a *Client) StorageProxyMetricsReadMovingAverageHistogramGet(params *StorageProxyMetricsReadMovingAverageHistogramGetParams) (*StorageProxyMetricsReadMovingAverageHistogramGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsReadMovingAverageHistogramGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsReadMovingAverageHistogramGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/read/moving_average_histogram", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsReadMovingAverageHistogramGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsReadMovingAverageHistogramGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsReadMovingAverageHistogramGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsReadTimeoutsGet gets read metrics timeouts - -Get read metrics -*/ -func (a *Client) StorageProxyMetricsReadTimeoutsGet(params *StorageProxyMetricsReadTimeoutsGetParams) (*StorageProxyMetricsReadTimeoutsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsReadTimeoutsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsReadTimeoutsGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/read/timeouts", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsReadTimeoutsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsReadTimeoutsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsReadTimeoutsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsReadTimeoutsRatesGet gets read metrics timeouts rates - -Get read metrics rates -*/ -func (a *Client) StorageProxyMetricsReadTimeoutsRatesGet(params *StorageProxyMetricsReadTimeoutsRatesGetParams) (*StorageProxyMetricsReadTimeoutsRatesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsReadTimeoutsRatesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsReadTimeoutsRatesGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/read/timeouts_rates", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsReadTimeoutsRatesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsReadTimeoutsRatesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsReadTimeoutsRatesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsReadUnavailablesGet gets read metrics unavailables - -Get read metrics -*/ -func (a *Client) StorageProxyMetricsReadUnavailablesGet(params *StorageProxyMetricsReadUnavailablesGetParams) (*StorageProxyMetricsReadUnavailablesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsReadUnavailablesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsReadUnavailablesGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/read/unavailables", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsReadUnavailablesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsReadUnavailablesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsReadUnavailablesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsReadUnavailablesRatesGet gets read metrics unavailables rates - -Get read metrics rates -*/ -func (a *Client) StorageProxyMetricsReadUnavailablesRatesGet(params *StorageProxyMetricsReadUnavailablesRatesGetParams) (*StorageProxyMetricsReadUnavailablesRatesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsReadUnavailablesRatesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsReadUnavailablesRatesGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/read/unavailables_rates", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsReadUnavailablesRatesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsReadUnavailablesRatesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsReadUnavailablesRatesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsWriteEstimatedHistogramGet gets write estimated histogram - -Get write estimated latency -*/ -func (a *Client) StorageProxyMetricsWriteEstimatedHistogramGet(params *StorageProxyMetricsWriteEstimatedHistogramGetParams) (*StorageProxyMetricsWriteEstimatedHistogramGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsWriteEstimatedHistogramGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsWriteEstimatedHistogramGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/write/estimated_histogram/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsWriteEstimatedHistogramGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsWriteEstimatedHistogramGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsWriteEstimatedHistogramGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsWriteGet gets write latency - -Get write latency -*/ -func (a *Client) StorageProxyMetricsWriteGet(params *StorageProxyMetricsWriteGetParams) (*StorageProxyMetricsWriteGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsWriteGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsWriteGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/write", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsWriteGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsWriteGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsWriteGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsWriteHistogramGet gets write metrics latency histogram depricated - -Get write metrics -*/ -func (a *Client) StorageProxyMetricsWriteHistogramGet(params *StorageProxyMetricsWriteHistogramGetParams) (*StorageProxyMetricsWriteHistogramGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsWriteHistogramGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsWriteHistogramGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/write/histogram", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsWriteHistogramGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsWriteHistogramGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsWriteHistogramGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsWriteMovingAverageHistogramGet gets write metrics latency histogram - -Get write metrics -*/ -func (a *Client) StorageProxyMetricsWriteMovingAverageHistogramGet(params *StorageProxyMetricsWriteMovingAverageHistogramGetParams) (*StorageProxyMetricsWriteMovingAverageHistogramGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsWriteMovingAverageHistogramGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsWriteMovingAverageHistogramGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/write/moving_average_histogram", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsWriteMovingAverageHistogramGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsWriteMovingAverageHistogramGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsWriteMovingAverageHistogramGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsWriteTimeoutsGet gets write metrics timeouts - -Get write metrics -*/ -func (a *Client) StorageProxyMetricsWriteTimeoutsGet(params *StorageProxyMetricsWriteTimeoutsGetParams) (*StorageProxyMetricsWriteTimeoutsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsWriteTimeoutsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsWriteTimeoutsGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/write/timeouts", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsWriteTimeoutsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsWriteTimeoutsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsWriteTimeoutsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsWriteTimeoutsRatesGet gets write metrics timeouts rates - -Get write metrics rates -*/ -func (a *Client) StorageProxyMetricsWriteTimeoutsRatesGet(params *StorageProxyMetricsWriteTimeoutsRatesGetParams) (*StorageProxyMetricsWriteTimeoutsRatesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsWriteTimeoutsRatesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsWriteTimeoutsRatesGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/write/timeouts_rates", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsWriteTimeoutsRatesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsWriteTimeoutsRatesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsWriteTimeoutsRatesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsWriteUnavailablesGet gets write metrics unavailables - -Get write metrics -*/ -func (a *Client) StorageProxyMetricsWriteUnavailablesGet(params *StorageProxyMetricsWriteUnavailablesGetParams) (*StorageProxyMetricsWriteUnavailablesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsWriteUnavailablesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsWriteUnavailablesGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/write/unavailables", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsWriteUnavailablesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsWriteUnavailablesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsWriteUnavailablesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyMetricsWriteUnavailablesRatesGet gets write metrics unavailables rates - -Get write metrics rates -*/ -func (a *Client) StorageProxyMetricsWriteUnavailablesRatesGet(params *StorageProxyMetricsWriteUnavailablesRatesGetParams) (*StorageProxyMetricsWriteUnavailablesRatesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyMetricsWriteUnavailablesRatesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyMetricsWriteUnavailablesRatesGet", - Method: "GET", - PathPattern: "/storage_proxy/metrics/write/unavailables_rates", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyMetricsWriteUnavailablesRatesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyMetricsWriteUnavailablesRatesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyMetricsWriteUnavailablesRatesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyRangeRPCTimeoutGet gets range rpc timeout - -Get range rpc timeout in seconds -*/ -func (a *Client) StorageProxyRangeRPCTimeoutGet(params *StorageProxyRangeRPCTimeoutGetParams) (*StorageProxyRangeRPCTimeoutGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyRangeRPCTimeoutGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyRangeRpcTimeoutGet", - Method: "GET", - PathPattern: "/storage_proxy/range_rpc_timeout", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyRangeRPCTimeoutGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyRangeRPCTimeoutGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyRangeRPCTimeoutGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyRangeRPCTimeoutPost sets range rpc timeout - -Set range rpc timeout -*/ -func (a *Client) StorageProxyRangeRPCTimeoutPost(params *StorageProxyRangeRPCTimeoutPostParams) (*StorageProxyRangeRPCTimeoutPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyRangeRPCTimeoutPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyRangeRpcTimeoutPost", - Method: "POST", - PathPattern: "/storage_proxy/range_rpc_timeout", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyRangeRPCTimeoutPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyRangeRPCTimeoutPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyRangeRPCTimeoutPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyReadRepairAttemptedGet gets read repair attempted - -Get read repair attempted -*/ -func (a *Client) StorageProxyReadRepairAttemptedGet(params *StorageProxyReadRepairAttemptedGetParams) (*StorageProxyReadRepairAttemptedGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyReadRepairAttemptedGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyReadRepairAttemptedGet", - Method: "GET", - PathPattern: "/storage_proxy/read_repair_attempted", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyReadRepairAttemptedGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyReadRepairAttemptedGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyReadRepairAttemptedGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyReadRepairRepairedBackgroundGet gets read repair repaired background - -Get read repair repaired background -*/ -func (a *Client) StorageProxyReadRepairRepairedBackgroundGet(params *StorageProxyReadRepairRepairedBackgroundGetParams) (*StorageProxyReadRepairRepairedBackgroundGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyReadRepairRepairedBackgroundGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyReadRepairRepairedBackgroundGet", - Method: "GET", - PathPattern: "/storage_proxy/read_repair_repaired_background", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyReadRepairRepairedBackgroundGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyReadRepairRepairedBackgroundGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyReadRepairRepairedBackgroundGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyReadRepairRepairedBlockingGet gets read repair repaired blocking - -Get read repair repaired blocking -*/ -func (a *Client) StorageProxyReadRepairRepairedBlockingGet(params *StorageProxyReadRepairRepairedBlockingGetParams) (*StorageProxyReadRepairRepairedBlockingGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyReadRepairRepairedBlockingGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyReadRepairRepairedBlockingGet", - Method: "GET", - PathPattern: "/storage_proxy/read_repair_repaired_blocking", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyReadRepairRepairedBlockingGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyReadRepairRepairedBlockingGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyReadRepairRepairedBlockingGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyReadRPCTimeoutGet gets read rpc timeout - -Get the read RPC timeout in seconds -*/ -func (a *Client) StorageProxyReadRPCTimeoutGet(params *StorageProxyReadRPCTimeoutGetParams) (*StorageProxyReadRPCTimeoutGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyReadRPCTimeoutGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyReadRpcTimeoutGet", - Method: "GET", - PathPattern: "/storage_proxy/read_rpc_timeout", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyReadRPCTimeoutGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyReadRPCTimeoutGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyReadRPCTimeoutGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyReadRPCTimeoutPost sets read rpc timeout - -Set the read RPC timeout -*/ -func (a *Client) StorageProxyReadRPCTimeoutPost(params *StorageProxyReadRPCTimeoutPostParams) (*StorageProxyReadRPCTimeoutPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyReadRPCTimeoutPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyReadRpcTimeoutPost", - Method: "POST", - PathPattern: "/storage_proxy/read_rpc_timeout", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyReadRPCTimeoutPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyReadRPCTimeoutPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyReadRPCTimeoutPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyReloadTriggerClassesPost reloads trigger classes - -Reload trigger classes -*/ -func (a *Client) StorageProxyReloadTriggerClassesPost(params *StorageProxyReloadTriggerClassesPostParams) (*StorageProxyReloadTriggerClassesPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyReloadTriggerClassesPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyReloadTriggerClassesPost", - Method: "POST", - PathPattern: "/storage_proxy/reload_trigger_classes", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyReloadTriggerClassesPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyReloadTriggerClassesPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyReloadTriggerClassesPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyRPCTimeoutGet gets rpc timeout - -Get the RPC timeout in seconds -*/ -func (a *Client) StorageProxyRPCTimeoutGet(params *StorageProxyRPCTimeoutGetParams) (*StorageProxyRPCTimeoutGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyRPCTimeoutGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyRpcTimeoutGet", - Method: "GET", - PathPattern: "/storage_proxy/rpc_timeout", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyRPCTimeoutGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyRPCTimeoutGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyRPCTimeoutGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyRPCTimeoutPost sets rpc timeout - -Set the RPC timeout -*/ -func (a *Client) StorageProxyRPCTimeoutPost(params *StorageProxyRPCTimeoutPostParams) (*StorageProxyRPCTimeoutPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyRPCTimeoutPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyRpcTimeoutPost", - Method: "POST", - PathPattern: "/storage_proxy/rpc_timeout", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyRPCTimeoutPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyRPCTimeoutPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyRPCTimeoutPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxySchemaVersionsGet gets schema versions - -Get a map of the schema versions -*/ -func (a *Client) StorageProxySchemaVersionsGet(params *StorageProxySchemaVersionsGetParams) (*StorageProxySchemaVersionsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxySchemaVersionsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxySchemaVersionsGet", - Method: "GET", - PathPattern: "/storage_proxy/schema_versions", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxySchemaVersionsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxySchemaVersionsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxySchemaVersionsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyTotalHintsGet gets total hints - -Get total hints -*/ -func (a *Client) StorageProxyTotalHintsGet(params *StorageProxyTotalHintsGetParams) (*StorageProxyTotalHintsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyTotalHintsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyTotalHintsGet", - Method: "GET", - PathPattern: "/storage_proxy/total_hints", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyTotalHintsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyTotalHintsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyTotalHintsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyTruncateRPCTimeoutGet gets truncate rpc timeout - -Get truncate rpc timeout in seconds -*/ -func (a *Client) StorageProxyTruncateRPCTimeoutGet(params *StorageProxyTruncateRPCTimeoutGetParams) (*StorageProxyTruncateRPCTimeoutGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyTruncateRPCTimeoutGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyTruncateRpcTimeoutGet", - Method: "GET", - PathPattern: "/storage_proxy/truncate_rpc_timeout", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyTruncateRPCTimeoutGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyTruncateRPCTimeoutGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyTruncateRPCTimeoutGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyTruncateRPCTimeoutPost sets truncate rpc timeout - -Set truncate rpc timeout -*/ -func (a *Client) StorageProxyTruncateRPCTimeoutPost(params *StorageProxyTruncateRPCTimeoutPostParams) (*StorageProxyTruncateRPCTimeoutPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyTruncateRPCTimeoutPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyTruncateRpcTimeoutPost", - Method: "POST", - PathPattern: "/storage_proxy/truncate_rpc_timeout", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyTruncateRPCTimeoutPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyTruncateRPCTimeoutPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyTruncateRPCTimeoutPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyWriteRPCTimeoutGet gets write rpc timeout - -Get the write RPC timeout in seconds -*/ -func (a *Client) StorageProxyWriteRPCTimeoutGet(params *StorageProxyWriteRPCTimeoutGetParams) (*StorageProxyWriteRPCTimeoutGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyWriteRPCTimeoutGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyWriteRpcTimeoutGet", - Method: "GET", - PathPattern: "/storage_proxy/write_rpc_timeout", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyWriteRPCTimeoutGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyWriteRPCTimeoutGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyWriteRPCTimeoutGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageProxyWriteRPCTimeoutPost sets write rpc timeout - -Set the write RPC timeout -*/ -func (a *Client) StorageProxyWriteRPCTimeoutPost(params *StorageProxyWriteRPCTimeoutPostParams) (*StorageProxyWriteRPCTimeoutPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageProxyWriteRPCTimeoutPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageProxyWriteRpcTimeoutPost", - Method: "POST", - PathPattern: "/storage_proxy/write_rpc_timeout", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageProxyWriteRPCTimeoutPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageProxyWriteRPCTimeoutPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageProxyWriteRPCTimeoutPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceActiveRepairGet gets active repair async - -Return an array with the ids of the currently active repairs -*/ -func (a *Client) StorageServiceActiveRepairGet(params *StorageServiceActiveRepairGetParams) (*StorageServiceActiveRepairGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceActiveRepairGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceActiveRepairGet", - Method: "GET", - PathPattern: "/storage_service/active_repair/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceActiveRepairGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceActiveRepairGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceActiveRepairGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceAutoCompactionByKeyspaceDelete disables auto compaction - -Disable auto compaction -*/ -func (a *Client) StorageServiceAutoCompactionByKeyspaceDelete(params *StorageServiceAutoCompactionByKeyspaceDeleteParams) (*StorageServiceAutoCompactionByKeyspaceDeleteOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceAutoCompactionByKeyspaceDeleteParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceAutoCompactionByKeyspaceDelete", - Method: "DELETE", - PathPattern: "/storage_service/auto_compaction/{keyspace}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceAutoCompactionByKeyspaceDeleteReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceAutoCompactionByKeyspaceDeleteOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceAutoCompactionByKeyspaceDeleteDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceAutoCompactionByKeyspacePost enables auto compaction - -Enable auto compaction -*/ -func (a *Client) StorageServiceAutoCompactionByKeyspacePost(params *StorageServiceAutoCompactionByKeyspacePostParams) (*StorageServiceAutoCompactionByKeyspacePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceAutoCompactionByKeyspacePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceAutoCompactionByKeyspacePost", - Method: "POST", - PathPattern: "/storage_service/auto_compaction/{keyspace}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceAutoCompactionByKeyspacePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceAutoCompactionByKeyspacePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceAutoCompactionByKeyspacePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceBackupPost starts backup - -Starts copying SSTables from a specified keyspace to a designated bucket in object storage -*/ -func (a *Client) StorageServiceBackupPost(params *StorageServiceBackupPostParams) (*StorageServiceBackupPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceBackupPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceBackupPost", - Method: "POST", - PathPattern: "/storage_service/backup", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceBackupPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceBackupPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceBackupPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceBatchSizeFailureThresholdGet gets batch size failure threshold - -Returns the threshold for rejecting queries due to a large batch size -*/ -func (a *Client) StorageServiceBatchSizeFailureThresholdGet(params *StorageServiceBatchSizeFailureThresholdGetParams) (*StorageServiceBatchSizeFailureThresholdGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceBatchSizeFailureThresholdGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceBatchSizeFailureThresholdGet", - Method: "GET", - PathPattern: "/storage_service/batch_size_failure_threshold", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceBatchSizeFailureThresholdGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceBatchSizeFailureThresholdGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceBatchSizeFailureThresholdGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceBatchSizeFailureThresholdPost sets batch size failure threshold - -Sets the threshold for rejecting queries due to a large batch size -*/ -func (a *Client) StorageServiceBatchSizeFailureThresholdPost(params *StorageServiceBatchSizeFailureThresholdPostParams) (*StorageServiceBatchSizeFailureThresholdPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceBatchSizeFailureThresholdPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceBatchSizeFailureThresholdPost", - Method: "POST", - PathPattern: "/storage_service/batch_size_failure_threshold", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceBatchSizeFailureThresholdPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceBatchSizeFailureThresholdPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceBatchSizeFailureThresholdPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceBulkLoadAsyncByPathGet bulks load async - -Starts a bulk load asynchronously and returns the String representation of the planID for the new streaming session. -*/ -func (a *Client) StorageServiceBulkLoadAsyncByPathGet(params *StorageServiceBulkLoadAsyncByPathGetParams) (*StorageServiceBulkLoadAsyncByPathGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceBulkLoadAsyncByPathGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceBulkLoadAsyncByPathGet", - Method: "GET", - PathPattern: "/storage_service/bulk_load_async/{path}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceBulkLoadAsyncByPathGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceBulkLoadAsyncByPathGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceBulkLoadAsyncByPathGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceBulkLoadByPathPost bulks load - -Starts a bulk load and blocks until it completes -*/ -func (a *Client) StorageServiceBulkLoadByPathPost(params *StorageServiceBulkLoadByPathPostParams) (*StorageServiceBulkLoadByPathPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceBulkLoadByPathPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceBulkLoadByPathPost", - Method: "POST", - PathPattern: "/storage_service/bulk_load/{path}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceBulkLoadByPathPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceBulkLoadByPathPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceBulkLoadByPathPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceClusterNameGet gets cluster name - -Returns the name of the cluster -*/ -func (a *Client) StorageServiceClusterNameGet(params *StorageServiceClusterNameGetParams) (*StorageServiceClusterNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceClusterNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceClusterNameGet", - Method: "GET", - PathPattern: "/storage_service/cluster_name", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceClusterNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceClusterNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceClusterNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceCommitlogGet gets commitlog - -Returns the location of the commit log files -*/ -func (a *Client) StorageServiceCommitlogGet(params *StorageServiceCommitlogGetParams) (*StorageServiceCommitlogGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceCommitlogGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceCommitlogGet", - Method: "GET", - PathPattern: "/storage_service/commitlog", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceCommitlogGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceCommitlogGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceCommitlogGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceCompactionThroughputGet gets compaction throughput mb per sec - -get compaction throughput mb per sec -*/ -func (a *Client) StorageServiceCompactionThroughputGet(params *StorageServiceCompactionThroughputGetParams) (*StorageServiceCompactionThroughputGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceCompactionThroughputGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceCompactionThroughputGet", - Method: "GET", - PathPattern: "/storage_service/compaction_throughput", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceCompactionThroughputGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceCompactionThroughputGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceCompactionThroughputGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceCompactionThroughputPost sets compaction throughput mb per sec - -Set compaction throughput mb per sec -*/ -func (a *Client) StorageServiceCompactionThroughputPost(params *StorageServiceCompactionThroughputPostParams) (*StorageServiceCompactionThroughputPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceCompactionThroughputPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceCompactionThroughputPost", - Method: "POST", - PathPattern: "/storage_service/compaction_throughput", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceCompactionThroughputPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceCompactionThroughputPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceCompactionThroughputPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceDataFileLocationsGet gets all data file locations - -Get the list of all data file locations from conf -*/ -func (a *Client) StorageServiceDataFileLocationsGet(params *StorageServiceDataFileLocationsGetParams) (*StorageServiceDataFileLocationsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceDataFileLocationsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceDataFileLocationsGet", - Method: "GET", - PathPattern: "/storage_service/data_file/locations", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceDataFileLocationsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceDataFileLocationsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceDataFileLocationsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceDecommissionPost decommissions - -transfer this node's data to other machines and remove it from service. -*/ -func (a *Client) StorageServiceDecommissionPost(params *StorageServiceDecommissionPostParams) (*StorageServiceDecommissionPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceDecommissionPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceDecommissionPost", - Method: "POST", - PathPattern: "/storage_service/decommission", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceDecommissionPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceDecommissionPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceDecommissionPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceDeliverHintsPost delivers hints -*/ -func (a *Client) StorageServiceDeliverHintsPost(params *StorageServiceDeliverHintsPostParams) (*StorageServiceDeliverHintsPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceDeliverHintsPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceDeliverHintsPost", - Method: "POST", - PathPattern: "/storage_service/deliver_hints", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceDeliverHintsPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceDeliverHintsPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceDeliverHintsPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceDescribeRingByKeyspaceGet describes ring - -The TokenRange for a given keyspace -*/ -func (a *Client) StorageServiceDescribeRingByKeyspaceGet(params *StorageServiceDescribeRingByKeyspaceGetParams) (*StorageServiceDescribeRingByKeyspaceGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceDescribeRingByKeyspaceGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceDescribeRingByKeyspaceGet", - Method: "GET", - PathPattern: "/storage_service/describe_ring/{keyspace}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceDescribeRingByKeyspaceGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceDescribeRingByKeyspaceGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceDescribeRingByKeyspaceGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceDrainGet gets drain progress - -Get the progress of a drain operation -*/ -func (a *Client) StorageServiceDrainGet(params *StorageServiceDrainGetParams) (*StorageServiceDrainGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceDrainGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceDrainGet", - Method: "GET", - PathPattern: "/storage_service/drain", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceDrainGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceDrainGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceDrainGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceDrainPost drains - -makes node unavailable for writes, flushes memtables and replays commitlog -*/ -func (a *Client) StorageServiceDrainPost(params *StorageServiceDrainPostParams) (*StorageServiceDrainPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceDrainPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceDrainPost", - Method: "POST", - PathPattern: "/storage_service/drain", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceDrainPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceDrainPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceDrainPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceForceRemoveCompletionPost forces remove completion - -Force a remove operation to finish. -*/ -func (a *Client) StorageServiceForceRemoveCompletionPost(params *StorageServiceForceRemoveCompletionPostParams) (*StorageServiceForceRemoveCompletionPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceForceRemoveCompletionPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceForceRemoveCompletionPost", - Method: "POST", - PathPattern: "/storage_service/force_remove_completion", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceForceRemoveCompletionPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceForceRemoveCompletionPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceForceRemoveCompletionPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceForceTerminatePost forces terminate all repair sessions - -Force terminate all repair sessions -*/ -func (a *Client) StorageServiceForceTerminatePost(params *StorageServiceForceTerminatePostParams) (*StorageServiceForceTerminatePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceForceTerminatePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceForceTerminatePost", - Method: "POST", - PathPattern: "/storage_service/force_terminate", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceForceTerminatePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceForceTerminatePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceForceTerminatePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceForceTerminateRepairPost forces terminate all repair sessions new - -Force terminate all repair sessions -*/ -func (a *Client) StorageServiceForceTerminateRepairPost(params *StorageServiceForceTerminateRepairPostParams) (*StorageServiceForceTerminateRepairPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceForceTerminateRepairPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceForceTerminateRepairPost", - Method: "POST", - PathPattern: "/storage_service/force_terminate_repair", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceForceTerminateRepairPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceForceTerminateRepairPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceForceTerminateRepairPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceGenerationNumberGet gets current generation number - -Return the generation value for this node. -*/ -func (a *Client) StorageServiceGenerationNumberGet(params *StorageServiceGenerationNumberGetParams) (*StorageServiceGenerationNumberGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceGenerationNumberGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceGenerationNumberGet", - Method: "GET", - PathPattern: "/storage_service/generation_number", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceGenerationNumberGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceGenerationNumberGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceGenerationNumberGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceGossipingDelete stops gossiping - -allows a user to forcibly 'kill' a sick node -*/ -func (a *Client) StorageServiceGossipingDelete(params *StorageServiceGossipingDeleteParams) (*StorageServiceGossipingDeleteOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceGossipingDeleteParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceGossipingDelete", - Method: "DELETE", - PathPattern: "/storage_service/gossiping", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceGossipingDeleteReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceGossipingDeleteOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceGossipingDeleteDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceGossipingGet is gossip running - -allows a user to see whether gossip is running or not -*/ -func (a *Client) StorageServiceGossipingGet(params *StorageServiceGossipingGetParams) (*StorageServiceGossipingGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceGossipingGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceGossipingGet", - Method: "GET", - PathPattern: "/storage_service/gossiping", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceGossipingGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceGossipingGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceGossipingGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceGossipingPost starts gossiping - -allows a user to recover a forcibly 'killed' node -*/ -func (a *Client) StorageServiceGossipingPost(params *StorageServiceGossipingPostParams) (*StorageServiceGossipingPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceGossipingPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceGossipingPost", - Method: "POST", - PathPattern: "/storage_service/gossiping", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceGossipingPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceGossipingPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceGossipingPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceHintedHandoffPost sets hinted handoff throttle in kb - -Sets the hinted handoff throttle in kb per second, per delivery thread -*/ -func (a *Client) StorageServiceHintedHandoffPost(params *StorageServiceHintedHandoffPostParams) (*StorageServiceHintedHandoffPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceHintedHandoffPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceHintedHandoffPost", - Method: "POST", - PathPattern: "/storage_service/hinted_handoff", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceHintedHandoffPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceHintedHandoffPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceHintedHandoffPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceHostIDGet gets host id map - -Retrieve the mapping of endpoint to host ID -*/ -func (a *Client) StorageServiceHostIDGet(params *StorageServiceHostIDGetParams) (*StorageServiceHostIDGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceHostIDGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceHostIdGet", - Method: "GET", - PathPattern: "/storage_service/host_id", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceHostIDGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceHostIDGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceHostIDGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceHostidLocalGet locals hostid - -Returns the local host id -*/ -func (a *Client) StorageServiceHostidLocalGet(params *StorageServiceHostidLocalGetParams) (*StorageServiceHostidLocalGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceHostidLocalGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceHostidLocalGet", - Method: "GET", - PathPattern: "/storage_service/hostid/local", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceHostidLocalGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceHostidLocalGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceHostidLocalGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceIncrementalBackupsGet is incremental backups enabled - -Check if incremental backup is enabled -*/ -func (a *Client) StorageServiceIncrementalBackupsGet(params *StorageServiceIncrementalBackupsGetParams) (*StorageServiceIncrementalBackupsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceIncrementalBackupsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceIncrementalBackupsGet", - Method: "GET", - PathPattern: "/storage_service/incremental_backups", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceIncrementalBackupsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceIncrementalBackupsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceIncrementalBackupsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceIncrementalBackupsPost sets incremental backups enabled -*/ -func (a *Client) StorageServiceIncrementalBackupsPost(params *StorageServiceIncrementalBackupsPostParams) (*StorageServiceIncrementalBackupsPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceIncrementalBackupsPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceIncrementalBackupsPost", - Method: "POST", - PathPattern: "/storage_service/incremental_backups", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceIncrementalBackupsPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceIncrementalBackupsPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceIncrementalBackupsPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceIsInitializedGet is initialized - -Determine if gossip is enable -*/ -func (a *Client) StorageServiceIsInitializedGet(params *StorageServiceIsInitializedGetParams) (*StorageServiceIsInitializedGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceIsInitializedGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceIsInitializedGet", - Method: "GET", - PathPattern: "/storage_service/is_initialized", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceIsInitializedGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceIsInitializedGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceIsInitializedGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceIsStartingGet is starting - -Returns whether the storage service is starting or not -*/ -func (a *Client) StorageServiceIsStartingGet(params *StorageServiceIsStartingGetParams) (*StorageServiceIsStartingGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceIsStartingGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceIsStartingGet", - Method: "GET", - PathPattern: "/storage_service/is_starting", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceIsStartingGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceIsStartingGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceIsStartingGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceJoinRingGet is joined -*/ -func (a *Client) StorageServiceJoinRingGet(params *StorageServiceJoinRingGetParams) (*StorageServiceJoinRingGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceJoinRingGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceJoinRingGet", - Method: "GET", - PathPattern: "/storage_service/join_ring", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceJoinRingGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceJoinRingGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceJoinRingGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceJoinRingPost joins ring - -Allows a node that have been started without joining the ring to join it -*/ -func (a *Client) StorageServiceJoinRingPost(params *StorageServiceJoinRingPostParams) (*StorageServiceJoinRingPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceJoinRingPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceJoinRingPost", - Method: "POST", - PathPattern: "/storage_service/join_ring", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceJoinRingPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceJoinRingPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceJoinRingPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceKeyspaceCleanupByKeyspacePost forces keyspace cleanup - -Trigger a cleanup of keys on a single keyspace -*/ -func (a *Client) StorageServiceKeyspaceCleanupByKeyspacePost(params *StorageServiceKeyspaceCleanupByKeyspacePostParams) (*StorageServiceKeyspaceCleanupByKeyspacePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceKeyspaceCleanupByKeyspacePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceKeyspaceCleanupByKeyspacePost", - Method: "POST", - PathPattern: "/storage_service/keyspace_cleanup/{keyspace}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceKeyspaceCleanupByKeyspacePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceKeyspaceCleanupByKeyspacePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceKeyspaceCleanupByKeyspacePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceKeyspaceCompactionByKeyspacePost forces keyspace compaction - -Forces major compaction of a single keyspace -*/ -func (a *Client) StorageServiceKeyspaceCompactionByKeyspacePost(params *StorageServiceKeyspaceCompactionByKeyspacePostParams) (*StorageServiceKeyspaceCompactionByKeyspacePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceKeyspaceCompactionByKeyspacePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceKeyspaceCompactionByKeyspacePost", - Method: "POST", - PathPattern: "/storage_service/keyspace_compaction/{keyspace}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceKeyspaceCompactionByKeyspacePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceKeyspaceCompactionByKeyspacePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceKeyspaceCompactionByKeyspacePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceKeyspaceFlushByKeyspacePost forces keyspace flush - -Flush all memtables for the given column families, or all columnfamilies for the given keyspace if none are explicitly listed. -*/ -func (a *Client) StorageServiceKeyspaceFlushByKeyspacePost(params *StorageServiceKeyspaceFlushByKeyspacePostParams) (*StorageServiceKeyspaceFlushByKeyspacePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceKeyspaceFlushByKeyspacePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceKeyspaceFlushByKeyspacePost", - Method: "POST", - PathPattern: "/storage_service/keyspace_flush/{keyspace}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceKeyspaceFlushByKeyspacePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceKeyspaceFlushByKeyspacePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceKeyspaceFlushByKeyspacePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceKeyspaceScrubByKeyspaceGet scrubs - -Scrub (deserialize + reserialize at the latest version, skipping bad rows if any) the given keyspace. If columnFamilies array is empty, all CFs are scrubbed. Scrubbed CFs will be snapshotted first, if disableSnapshot is false -*/ -func (a *Client) StorageServiceKeyspaceScrubByKeyspaceGet(params *StorageServiceKeyspaceScrubByKeyspaceGetParams) (*StorageServiceKeyspaceScrubByKeyspaceGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceKeyspaceScrubByKeyspaceGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceKeyspaceScrubByKeyspaceGet", - Method: "GET", - PathPattern: "/storage_service/keyspace_scrub/{keyspace}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceKeyspaceScrubByKeyspaceGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceKeyspaceScrubByKeyspaceGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceKeyspaceScrubByKeyspaceGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceKeyspaceUpgradeSstablesByKeyspaceGet upgrades sstables - -Rewrite all sstables to the latest version. Unlike scrub, it doesn't skip bad rows and do not snapshot sstables first. -*/ -func (a *Client) StorageServiceKeyspaceUpgradeSstablesByKeyspaceGet(params *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams) (*StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceKeyspaceUpgradeSstablesByKeyspaceGet", - Method: "GET", - PathPattern: "/storage_service/keyspace_upgrade_sstables/{keyspace}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceKeyspacesGet gets keyspaces - -Get the keyspaces -*/ -func (a *Client) StorageServiceKeyspacesGet(params *StorageServiceKeyspacesGetParams) (*StorageServiceKeyspacesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceKeyspacesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceKeyspacesGet", - Method: "GET", - PathPattern: "/storage_service/keyspaces", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceKeyspacesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceKeyspacesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceKeyspacesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceLoadGet gets load - -get load value -*/ -func (a *Client) StorageServiceLoadGet(params *StorageServiceLoadGetParams) (*StorageServiceLoadGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceLoadGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceLoadGet", - Method: "GET", - PathPattern: "/storage_service/load", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceLoadGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceLoadGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceLoadGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceLoadMapGet gets load map - -load value. Keys are IP addresses -*/ -func (a *Client) StorageServiceLoadMapGet(params *StorageServiceLoadMapGetParams) (*StorageServiceLoadMapGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceLoadMapGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceLoadMapGet", - Method: "GET", - PathPattern: "/storage_service/load_map", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceLoadMapGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceLoadMapGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceLoadMapGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceLoggingLevelGet gets logging levels - -get the runtime logging levels -*/ -func (a *Client) StorageServiceLoggingLevelGet(params *StorageServiceLoggingLevelGetParams) (*StorageServiceLoggingLevelGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceLoggingLevelGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceLoggingLevelGet", - Method: "GET", - PathPattern: "/storage_service/logging_level", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceLoggingLevelGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceLoggingLevelGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceLoggingLevelGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceLoggingLevelPost sets logging level - -set the logging level at runtime

If both classQualifer and level are empty/null, it will reload the configuration to reset.
If classQualifer is not empty but level is empty/null, it will set the level to null for the defined classQualifer
If level cannot be parsed, then the level will be defaulted to DEBUG

The logback configuration should have < jmxConfigurator /> set -*/ -func (a *Client) StorageServiceLoggingLevelPost(params *StorageServiceLoggingLevelPostParams) (*StorageServiceLoggingLevelPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceLoggingLevelPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceLoggingLevelPost", - Method: "POST", - PathPattern: "/storage_service/logging_level", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceLoggingLevelPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceLoggingLevelPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceLoggingLevelPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceMetricsExceptionsGet gets exceptions - -Get exceptions -*/ -func (a *Client) StorageServiceMetricsExceptionsGet(params *StorageServiceMetricsExceptionsGetParams) (*StorageServiceMetricsExceptionsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceMetricsExceptionsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceMetricsExceptionsGet", - Method: "GET", - PathPattern: "/storage_service/metrics/exceptions", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceMetricsExceptionsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceMetricsExceptionsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceMetricsExceptionsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceMetricsHintsInProgressGet gets total hints in progress - -Get total hints in progress -*/ -func (a *Client) StorageServiceMetricsHintsInProgressGet(params *StorageServiceMetricsHintsInProgressGetParams) (*StorageServiceMetricsHintsInProgressGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceMetricsHintsInProgressGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceMetricsHintsInProgressGet", - Method: "GET", - PathPattern: "/storage_service/metrics/hints_in_progress", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceMetricsHintsInProgressGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceMetricsHintsInProgressGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceMetricsHintsInProgressGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceMetricsLoadGet gets metrics load - -Get load -*/ -func (a *Client) StorageServiceMetricsLoadGet(params *StorageServiceMetricsLoadGetParams) (*StorageServiceMetricsLoadGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceMetricsLoadGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceMetricsLoadGet", - Method: "GET", - PathPattern: "/storage_service/metrics/load", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceMetricsLoadGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceMetricsLoadGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceMetricsLoadGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceMetricsTotalHintsGet gets total hints1 - -Get total hints -*/ -func (a *Client) StorageServiceMetricsTotalHintsGet(params *StorageServiceMetricsTotalHintsGetParams) (*StorageServiceMetricsTotalHintsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceMetricsTotalHintsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceMetricsTotalHintsGet", - Method: "GET", - PathPattern: "/storage_service/metrics/total_hints", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceMetricsTotalHintsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceMetricsTotalHintsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceMetricsTotalHintsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceMovePost moves - -This node will unload its data onto its neighbors, and bootstrap to the new token. -*/ -func (a *Client) StorageServiceMovePost(params *StorageServiceMovePostParams) (*StorageServiceMovePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceMovePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceMovePost", - Method: "POST", - PathPattern: "/storage_service/move", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceMovePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceMovePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceMovePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceNativeTransportDelete stops native transport - -Stop native transport -*/ -func (a *Client) StorageServiceNativeTransportDelete(params *StorageServiceNativeTransportDeleteParams) (*StorageServiceNativeTransportDeleteOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceNativeTransportDeleteParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceNativeTransportDelete", - Method: "DELETE", - PathPattern: "/storage_service/native_transport", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceNativeTransportDeleteReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceNativeTransportDeleteOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceNativeTransportDeleteDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceNativeTransportGet is native transport running - -Is native transport running -*/ -func (a *Client) StorageServiceNativeTransportGet(params *StorageServiceNativeTransportGetParams) (*StorageServiceNativeTransportGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceNativeTransportGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceNativeTransportGet", - Method: "GET", - PathPattern: "/storage_service/native_transport", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceNativeTransportGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceNativeTransportGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceNativeTransportGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceNativeTransportPost starts native transport - -Start native transport -*/ -func (a *Client) StorageServiceNativeTransportPost(params *StorageServiceNativeTransportPostParams) (*StorageServiceNativeTransportPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceNativeTransportPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceNativeTransportPost", - Method: "POST", - PathPattern: "/storage_service/native_transport", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceNativeTransportPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceNativeTransportPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceNativeTransportPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceNaturalEndpointsByKeyspaceGet gets natural endpoints - -This method returns the N endpoints that are responsible for storing the specified key i.e for replication. the endpoint responsible for this key -*/ -func (a *Client) StorageServiceNaturalEndpointsByKeyspaceGet(params *StorageServiceNaturalEndpointsByKeyspaceGetParams) (*StorageServiceNaturalEndpointsByKeyspaceGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceNaturalEndpointsByKeyspaceGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceNaturalEndpointsByKeyspaceGet", - Method: "GET", - PathPattern: "/storage_service/natural_endpoints/{keyspace}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceNaturalEndpointsByKeyspaceGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceNaturalEndpointsByKeyspaceGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceNaturalEndpointsByKeyspaceGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceNodesJoiningGet gets joining nodes - -Retrieve the list of nodes currently bootstrapping into the ring -*/ -func (a *Client) StorageServiceNodesJoiningGet(params *StorageServiceNodesJoiningGetParams) (*StorageServiceNodesJoiningGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceNodesJoiningGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceNodesJoiningGet", - Method: "GET", - PathPattern: "/storage_service/nodes/joining", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceNodesJoiningGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceNodesJoiningGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceNodesJoiningGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceNodesLeavingGet gets leaving nodes - -Retrieve the list of nodes currently leaving the ring -*/ -func (a *Client) StorageServiceNodesLeavingGet(params *StorageServiceNodesLeavingGetParams) (*StorageServiceNodesLeavingGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceNodesLeavingGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceNodesLeavingGet", - Method: "GET", - PathPattern: "/storage_service/nodes/leaving", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceNodesLeavingGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceNodesLeavingGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceNodesLeavingGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceNodesMovingGet gets moving nodes - -Retrieve the list of nodes currently moving in the ring -*/ -func (a *Client) StorageServiceNodesMovingGet(params *StorageServiceNodesMovingGetParams) (*StorageServiceNodesMovingGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceNodesMovingGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceNodesMovingGet", - Method: "GET", - PathPattern: "/storage_service/nodes/moving", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceNodesMovingGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceNodesMovingGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceNodesMovingGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceOperationModeGet gets operation mode - -Get the operational mode (leaving, joining, normal, decommissioned, client) -*/ -func (a *Client) StorageServiceOperationModeGet(params *StorageServiceOperationModeGetParams) (*StorageServiceOperationModeGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceOperationModeGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceOperationModeGet", - Method: "GET", - PathPattern: "/storage_service/operation_mode", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceOperationModeGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceOperationModeGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceOperationModeGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceOwnershipByKeyspaceGet gets effective ownership - -Effective ownership is % of the data each node owns given the keyspace -*/ -func (a *Client) StorageServiceOwnershipByKeyspaceGet(params *StorageServiceOwnershipByKeyspaceGetParams) (*StorageServiceOwnershipByKeyspaceGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceOwnershipByKeyspaceGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceOwnershipByKeyspaceGet", - Method: "GET", - PathPattern: "/storage_service/ownership/{keyspace}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceOwnershipByKeyspaceGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceOwnershipByKeyspaceGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceOwnershipByKeyspaceGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceOwnershipGet gets ownership - -The mapping from token -> % of cluster owned by that token -*/ -func (a *Client) StorageServiceOwnershipGet(params *StorageServiceOwnershipGetParams) (*StorageServiceOwnershipGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceOwnershipGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceOwnershipGet", - Method: "GET", - PathPattern: "/storage_service/ownership/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceOwnershipGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceOwnershipGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceOwnershipGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServicePartitionerNameGet gets partitioner name - -Returns the cluster partitioner -*/ -func (a *Client) StorageServicePartitionerNameGet(params *StorageServicePartitionerNameGetParams) (*StorageServicePartitionerNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServicePartitionerNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServicePartitionerNameGet", - Method: "GET", - PathPattern: "/storage_service/partitioner_name", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServicePartitionerNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServicePartitionerNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServicePartitionerNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServicePendingRangeByKeyspaceGet gets pending range to endpoint map - -Retrieve a map of pending ranges to endpoints that describe the ring topology -*/ -func (a *Client) StorageServicePendingRangeByKeyspaceGet(params *StorageServicePendingRangeByKeyspaceGetParams) (*StorageServicePendingRangeByKeyspaceGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServicePendingRangeByKeyspaceGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServicePendingRangeByKeyspaceGet", - Method: "GET", - PathPattern: "/storage_service/pending_range/{keyspace}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServicePendingRangeByKeyspaceGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServicePendingRangeByKeyspaceGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServicePendingRangeByKeyspaceGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceRangeToEndpointMapByKeyspaceGet gets range to endpoint map - -Retrieve a map of range to end points that describe the ring topology of a Cassandra cluster. -*/ -func (a *Client) StorageServiceRangeToEndpointMapByKeyspaceGet(params *StorageServiceRangeToEndpointMapByKeyspaceGetParams) (*StorageServiceRangeToEndpointMapByKeyspaceGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceRangeToEndpointMapByKeyspaceGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceRangeToEndpointMapByKeyspaceGet", - Method: "GET", - PathPattern: "/storage_service/range_to_endpoint_map/{keyspace}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceRangeToEndpointMapByKeyspaceGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceRangeToEndpointMapByKeyspaceGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceRangeToEndpointMapByKeyspaceGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceRebuildPost rebuilds - -Initiate a process of streaming data for which we are responsible from other nodes. It is similar to bootstrap except meant to be used on a node which is already in the cluster (typically containing no data) as an alternative to running repair. -*/ -func (a *Client) StorageServiceRebuildPost(params *StorageServiceRebuildPostParams) (*StorageServiceRebuildPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceRebuildPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceRebuildPost", - Method: "POST", - PathPattern: "/storage_service/rebuild", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceRebuildPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceRebuildPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceRebuildPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceReleaseVersionGet gets release version - -Fetch a string representation of the Cassandra version. -*/ -func (a *Client) StorageServiceReleaseVersionGet(params *StorageServiceReleaseVersionGetParams) (*StorageServiceReleaseVersionGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceReleaseVersionGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceReleaseVersionGet", - Method: "GET", - PathPattern: "/storage_service/release_version", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceReleaseVersionGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceReleaseVersionGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceReleaseVersionGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceRelocalSchemaPost resets local schema - -Reset local schema -*/ -func (a *Client) StorageServiceRelocalSchemaPost(params *StorageServiceRelocalSchemaPostParams) (*StorageServiceRelocalSchemaPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceRelocalSchemaPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceRelocalSchemaPost", - Method: "POST", - PathPattern: "/storage_service/relocal_schema", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceRelocalSchemaPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceRelocalSchemaPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceRelocalSchemaPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceRemovalStatusGet gets removal status - -Get the status of a token removal. -*/ -func (a *Client) StorageServiceRemovalStatusGet(params *StorageServiceRemovalStatusGetParams) (*StorageServiceRemovalStatusGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceRemovalStatusGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceRemovalStatusGet", - Method: "GET", - PathPattern: "/storage_service/removal_status", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceRemovalStatusGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceRemovalStatusGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceRemovalStatusGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceRemoveNodePost removes node - -Removes token (and all data associated with enpoint that had it) from the ring -*/ -func (a *Client) StorageServiceRemoveNodePost(params *StorageServiceRemoveNodePostParams) (*StorageServiceRemoveNodePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceRemoveNodePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceRemoveNodePost", - Method: "POST", - PathPattern: "/storage_service/remove_node", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceRemoveNodePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceRemoveNodePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceRemoveNodePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceRepairAsyncByKeyspaceGet repairs async status - -Track already running repair progress -*/ -func (a *Client) StorageServiceRepairAsyncByKeyspaceGet(params *StorageServiceRepairAsyncByKeyspaceGetParams) (*StorageServiceRepairAsyncByKeyspaceGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceRepairAsyncByKeyspaceGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceRepairAsyncByKeyspaceGet", - Method: "GET", - PathPattern: "/storage_service/repair_async/{keyspace}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceRepairAsyncByKeyspaceGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceRepairAsyncByKeyspaceGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceRepairAsyncByKeyspaceGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceRepairAsyncByKeyspacePost repairs async - -Invoke repair asynchronously. You can track repair progress by using the get supplying id -*/ -func (a *Client) StorageServiceRepairAsyncByKeyspacePost(params *StorageServiceRepairAsyncByKeyspacePostParams) (*StorageServiceRepairAsyncByKeyspacePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceRepairAsyncByKeyspacePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceRepairAsyncByKeyspacePost", - Method: "POST", - PathPattern: "/storage_service/repair_async/{keyspace}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceRepairAsyncByKeyspacePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceRepairAsyncByKeyspacePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceRepairAsyncByKeyspacePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceRepairStatus storages service repair status - -Query the repair status and return when the repair is finished or timeout -*/ -func (a *Client) StorageServiceRepairStatus(params *StorageServiceRepairStatusParams) (*StorageServiceRepairStatusOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceRepairStatusParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceRepairStatus", - Method: "GET", - PathPattern: "/storage_service/repair_status", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceRepairStatusReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceRepairStatusOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceRepairStatusDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceRescheduleFailedDeletionsPost reschedules failed deletions - -Reschedule failed deletions -*/ -func (a *Client) StorageServiceRescheduleFailedDeletionsPost(params *StorageServiceRescheduleFailedDeletionsPostParams) (*StorageServiceRescheduleFailedDeletionsPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceRescheduleFailedDeletionsPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceRescheduleFailedDeletionsPost", - Method: "POST", - PathPattern: "/storage_service/reschedule_failed_deletions", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceRescheduleFailedDeletionsPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceRescheduleFailedDeletionsPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceRescheduleFailedDeletionsPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceRestorePost starts restore - -Starts copying SSTables from a designated bucket in object storage to a specified keyspace -*/ -func (a *Client) StorageServiceRestorePost(params *StorageServiceRestorePostParams) (*StorageServiceRestorePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceRestorePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceRestorePost", - Method: "POST", - PathPattern: "/storage_service/restore", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceRestorePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceRestorePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceRestorePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceRPCServerDelete stops rpc server - -Allows a user to disable thrift -*/ -func (a *Client) StorageServiceRPCServerDelete(params *StorageServiceRPCServerDeleteParams) (*StorageServiceRPCServerDeleteOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceRPCServerDeleteParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceRpcServerDelete", - Method: "DELETE", - PathPattern: "/storage_service/rpc_server", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceRPCServerDeleteReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceRPCServerDeleteOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceRPCServerDeleteDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceRPCServerGet is rpc server running - -Determine if thrift is running -*/ -func (a *Client) StorageServiceRPCServerGet(params *StorageServiceRPCServerGetParams) (*StorageServiceRPCServerGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceRPCServerGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceRpcServerGet", - Method: "GET", - PathPattern: "/storage_service/rpc_server", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceRPCServerGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceRPCServerGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceRPCServerGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceRPCServerPost starts rpc server - -allows a user to reenable thrift -*/ -func (a *Client) StorageServiceRPCServerPost(params *StorageServiceRPCServerPostParams) (*StorageServiceRPCServerPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceRPCServerPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceRpcServerPost", - Method: "POST", - PathPattern: "/storage_service/rpc_server", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceRPCServerPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceRPCServerPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceRPCServerPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceSampleKeyRangeGet samples key range - -Return a List of Tokens representing a sample of keys across all ColumnFamilyStores. -*/ -func (a *Client) StorageServiceSampleKeyRangeGet(params *StorageServiceSampleKeyRangeGetParams) (*StorageServiceSampleKeyRangeGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceSampleKeyRangeGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceSampleKeyRangeGet", - Method: "GET", - PathPattern: "/storage_service/sample_key_range", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceSampleKeyRangeGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceSampleKeyRangeGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceSampleKeyRangeGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceSavedCachesLocationGet gets saved caches location - -Get location of the saved caches dir -*/ -func (a *Client) StorageServiceSavedCachesLocationGet(params *StorageServiceSavedCachesLocationGetParams) (*StorageServiceSavedCachesLocationGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceSavedCachesLocationGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceSavedCachesLocationGet", - Method: "GET", - PathPattern: "/storage_service/saved_caches/location", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceSavedCachesLocationGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceSavedCachesLocationGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceSavedCachesLocationGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceSchemaVersionGet gets schema version - -Fetch a string representation of the current Schema version. -*/ -func (a *Client) StorageServiceSchemaVersionGet(params *StorageServiceSchemaVersionGetParams) (*StorageServiceSchemaVersionGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceSchemaVersionGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceSchemaVersionGet", - Method: "GET", - PathPattern: "/storage_service/schema_version", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceSchemaVersionGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceSchemaVersionGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceSchemaVersionGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceScyllaReleaseVersionGet gets scylla release version - -Fetch a string representation of the Scylla version. -*/ -func (a *Client) StorageServiceScyllaReleaseVersionGet(params *StorageServiceScyllaReleaseVersionGetParams) (*StorageServiceScyllaReleaseVersionGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceScyllaReleaseVersionGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceScyllaReleaseVersionGet", - Method: "GET", - PathPattern: "/storage_service/scylla_release_version", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceScyllaReleaseVersionGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceScyllaReleaseVersionGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceScyllaReleaseVersionGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceSlowQueryGet gets slow query info - -Returns the slow query record configuration. -*/ -func (a *Client) StorageServiceSlowQueryGet(params *StorageServiceSlowQueryGetParams) (*StorageServiceSlowQueryGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceSlowQueryGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceSlowQueryGet", - Method: "GET", - PathPattern: "/storage_service/slow_query", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceSlowQueryGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceSlowQueryGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceSlowQueryGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceSlowQueryPost sets slow query - -Set slow query parameter -*/ -func (a *Client) StorageServiceSlowQueryPost(params *StorageServiceSlowQueryPostParams) (*StorageServiceSlowQueryPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceSlowQueryPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceSlowQueryPost", - Method: "POST", - PathPattern: "/storage_service/slow_query", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceSlowQueryPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceSlowQueryPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceSlowQueryPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceSnapshotsDelete dels snapshot - -Remove the snapshot with the given name from the given keyspaces. If no tag is specified all snapshots will be removed -*/ -func (a *Client) StorageServiceSnapshotsDelete(params *StorageServiceSnapshotsDeleteParams) (*StorageServiceSnapshotsDeleteOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceSnapshotsDeleteParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceSnapshotsDelete", - Method: "DELETE", - PathPattern: "/storage_service/snapshots", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceSnapshotsDeleteReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceSnapshotsDeleteOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceSnapshotsDeleteDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceSnapshotsGet gets snapshot details - -Get the details of all the snapshot -*/ -func (a *Client) StorageServiceSnapshotsGet(params *StorageServiceSnapshotsGetParams) (*StorageServiceSnapshotsGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceSnapshotsGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceSnapshotsGet", - Method: "GET", - PathPattern: "/storage_service/snapshots", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceSnapshotsGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceSnapshotsGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceSnapshotsGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceSnapshotsPost takes snapshot - -Takes the snapshot for the given keyspaces. A snapshot name must be specified. -*/ -func (a *Client) StorageServiceSnapshotsPost(params *StorageServiceSnapshotsPostParams) (*StorageServiceSnapshotsPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceSnapshotsPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceSnapshotsPost", - Method: "POST", - PathPattern: "/storage_service/snapshots", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceSnapshotsPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceSnapshotsPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceSnapshotsPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceSnapshotsSizeTrueGet trues snapshots size - -Get the true size taken by all snapshots across all keyspaces. -*/ -func (a *Client) StorageServiceSnapshotsSizeTrueGet(params *StorageServiceSnapshotsSizeTrueGetParams) (*StorageServiceSnapshotsSizeTrueGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceSnapshotsSizeTrueGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceSnapshotsSizeTrueGet", - Method: "GET", - PathPattern: "/storage_service/snapshots/size/true", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceSnapshotsSizeTrueGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceSnapshotsSizeTrueGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceSnapshotsSizeTrueGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceSstablesByKeyspacePost loads new ss tables - -Load new SSTables to the given keyspace/columnFamily -*/ -func (a *Client) StorageServiceSstablesByKeyspacePost(params *StorageServiceSstablesByKeyspacePostParams) (*StorageServiceSstablesByKeyspacePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceSstablesByKeyspacePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceSstablesByKeyspacePost", - Method: "POST", - PathPattern: "/storage_service/sstables/{keyspace}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceSstablesByKeyspacePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceSstablesByKeyspacePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceSstablesByKeyspacePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceStopDaemonPost stops daemon - -allows a user to forcibly completely stop cassandra -*/ -func (a *Client) StorageServiceStopDaemonPost(params *StorageServiceStopDaemonPostParams) (*StorageServiceStopDaemonPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceStopDaemonPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceStopDaemonPost", - Method: "POST", - PathPattern: "/storage_service/stop_daemon", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceStopDaemonPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceStopDaemonPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceStopDaemonPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceStreamThroughputGet gets stream throughput mb per sec - -Get stream throughput mb per sec -*/ -func (a *Client) StorageServiceStreamThroughputGet(params *StorageServiceStreamThroughputGetParams) (*StorageServiceStreamThroughputGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceStreamThroughputGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceStreamThroughputGet", - Method: "GET", - PathPattern: "/storage_service/stream_throughput", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceStreamThroughputGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceStreamThroughputGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceStreamThroughputGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceStreamThroughputPost sets stream throughput mb per sec - -set stream throughput mb per sec -*/ -func (a *Client) StorageServiceStreamThroughputPost(params *StorageServiceStreamThroughputPostParams) (*StorageServiceStreamThroughputPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceStreamThroughputPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceStreamThroughputPost", - Method: "POST", - PathPattern: "/storage_service/stream_throughput", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceStreamThroughputPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceStreamThroughputPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceStreamThroughputPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceTabletsBalancingPost tablets balancing enable - -Controls tablet load-balancing -*/ -func (a *Client) StorageServiceTabletsBalancingPost(params *StorageServiceTabletsBalancingPostParams) (*StorageServiceTabletsBalancingPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceTabletsBalancingPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceTabletsBalancingPost", - Method: "POST", - PathPattern: "/storage_service/tablets/balancing", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceTabletsBalancingPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceTabletsBalancingPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceTabletsBalancingPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceTabletsRepairPost tablets repair - -Repair a tablet -*/ -func (a *Client) StorageServiceTabletsRepairPost(params *StorageServiceTabletsRepairPostParams) (*StorageServiceTabletsRepairPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceTabletsRepairPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceTabletsRepairPost", - Method: "POST", - PathPattern: "/storage_service/tablets/repair", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceTabletsRepairPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceTabletsRepairPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceTabletsRepairPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceTokensByEndpointGet gets node tokens - -Returns a list of the tokens for or a specified node -*/ -func (a *Client) StorageServiceTokensByEndpointGet(params *StorageServiceTokensByEndpointGetParams) (*StorageServiceTokensByEndpointGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceTokensByEndpointGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceTokensByEndpointGet", - Method: "GET", - PathPattern: "/storage_service/tokens/{endpoint}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceTokensByEndpointGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceTokensByEndpointGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceTokensByEndpointGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceTokensEndpointGet gets token endpoint - -Returns a list of the tokens endpoint mapping -*/ -func (a *Client) StorageServiceTokensEndpointGet(params *StorageServiceTokensEndpointGetParams) (*StorageServiceTokensEndpointGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceTokensEndpointGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceTokensEndpointGet", - Method: "GET", - PathPattern: "/storage_service/tokens_endpoint", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceTokensEndpointGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceTokensEndpointGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceTokensEndpointGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceTokensGet gets tokens - -Returns a list of the tokens for this node -*/ -func (a *Client) StorageServiceTokensGet(params *StorageServiceTokensGetParams) (*StorageServiceTokensGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceTokensGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceTokensGet", - Method: "GET", - PathPattern: "/storage_service/tokens", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceTokensGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceTokensGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceTokensGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceTombstoneFailureThresholdGet gets tombstone failure threshold -*/ -func (a *Client) StorageServiceTombstoneFailureThresholdGet(params *StorageServiceTombstoneFailureThresholdGetParams) (*StorageServiceTombstoneFailureThresholdGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceTombstoneFailureThresholdGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceTombstoneFailureThresholdGet", - Method: "GET", - PathPattern: "/storage_service/tombstone_failure_threshold", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceTombstoneFailureThresholdGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceTombstoneFailureThresholdGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceTombstoneFailureThresholdGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceTombstoneFailureThresholdPost sets tombstone failure threshold -*/ -func (a *Client) StorageServiceTombstoneFailureThresholdPost(params *StorageServiceTombstoneFailureThresholdPostParams) (*StorageServiceTombstoneFailureThresholdPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceTombstoneFailureThresholdPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceTombstoneFailureThresholdPost", - Method: "POST", - PathPattern: "/storage_service/tombstone_failure_threshold", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceTombstoneFailureThresholdPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceTombstoneFailureThresholdPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceTombstoneFailureThresholdPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceTombstoneWarnThresholdGet gets tombstone warn threshold - -Returns the threshold for warning of queries with many tombstones -*/ -func (a *Client) StorageServiceTombstoneWarnThresholdGet(params *StorageServiceTombstoneWarnThresholdGetParams) (*StorageServiceTombstoneWarnThresholdGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceTombstoneWarnThresholdGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceTombstoneWarnThresholdGet", - Method: "GET", - PathPattern: "/storage_service/tombstone_warn_threshold", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceTombstoneWarnThresholdGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceTombstoneWarnThresholdGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceTombstoneWarnThresholdGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceTombstoneWarnThresholdPost sets tombstone warn threshold - -Sets the threshold for warning queries with many tombstones -*/ -func (a *Client) StorageServiceTombstoneWarnThresholdPost(params *StorageServiceTombstoneWarnThresholdPostParams) (*StorageServiceTombstoneWarnThresholdPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceTombstoneWarnThresholdPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceTombstoneWarnThresholdPost", - Method: "POST", - PathPattern: "/storage_service/tombstone_warn_threshold", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceTombstoneWarnThresholdPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceTombstoneWarnThresholdPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceTombstoneWarnThresholdPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceTraceProbabilityGet gets trace probability - -Returns the configured tracing probability. -*/ -func (a *Client) StorageServiceTraceProbabilityGet(params *StorageServiceTraceProbabilityGetParams) (*StorageServiceTraceProbabilityGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceTraceProbabilityGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceTraceProbabilityGet", - Method: "GET", - PathPattern: "/storage_service/trace_probability", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceTraceProbabilityGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceTraceProbabilityGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceTraceProbabilityGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceTraceProbabilityPost sets trace probability - -Enables/Disables tracing for the whole system. Only thrift requests can start tracing currently -*/ -func (a *Client) StorageServiceTraceProbabilityPost(params *StorageServiceTraceProbabilityPostParams) (*StorageServiceTraceProbabilityPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceTraceProbabilityPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceTraceProbabilityPost", - Method: "POST", - PathPattern: "/storage_service/trace_probability", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceTraceProbabilityPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceTraceProbabilityPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceTraceProbabilityPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceTruncateByKeyspacePost truncates - -Truncates (deletes) the given columnFamily from the provided keyspace. Calling truncate results in actual deletion of all data in the cluster under the given columnFamily and it will fail unless all hosts are up. All data in the given column family will be deleted, but its definition will not be affected. -*/ -func (a *Client) StorageServiceTruncateByKeyspacePost(params *StorageServiceTruncateByKeyspacePostParams) (*StorageServiceTruncateByKeyspacePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceTruncateByKeyspacePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceTruncateByKeyspacePost", - Method: "POST", - PathPattern: "/storage_service/truncate/{keyspace}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceTruncateByKeyspacePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceTruncateByKeyspacePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceTruncateByKeyspacePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceUpdateSnitchPost updates snitch - -Change endpointsnitch class and dynamic-ness (and dynamic attributes) at runtime -*/ -func (a *Client) StorageServiceUpdateSnitchPost(params *StorageServiceUpdateSnitchPostParams) (*StorageServiceUpdateSnitchPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceUpdateSnitchPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceUpdateSnitchPost", - Method: "POST", - PathPattern: "/storage_service/update_snitch", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceUpdateSnitchPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceUpdateSnitchPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceUpdateSnitchPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StorageServiceViewBuildStatusesByKeyspaceAndViewGet views build statuses - -Gets the progress of a materialized view build -*/ -func (a *Client) StorageServiceViewBuildStatusesByKeyspaceAndViewGet(params *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams) (*StorageServiceViewBuildStatusesByKeyspaceAndViewGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStorageServiceViewBuildStatusesByKeyspaceAndViewGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StorageServiceViewBuildStatusesByKeyspaceAndViewGet", - Method: "GET", - PathPattern: "/storage_service/view_build_statuses/{keyspace}/{view}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StorageServiceViewBuildStatusesByKeyspaceAndViewGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StorageServiceViewBuildStatusesByKeyspaceAndViewGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StorageServiceViewBuildStatusesByKeyspaceAndViewGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StreamManagerGet gets current streams - -Returns the current state of all ongoing streams. -*/ -func (a *Client) StreamManagerGet(params *StreamManagerGetParams) (*StreamManagerGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStreamManagerGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StreamManagerGet", - Method: "GET", - PathPattern: "/stream_manager/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StreamManagerGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StreamManagerGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StreamManagerGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StreamManagerMetricsIncomingByPeerGet gets total incoming bytes - -Get total incoming bytes -*/ -func (a *Client) StreamManagerMetricsIncomingByPeerGet(params *StreamManagerMetricsIncomingByPeerGetParams) (*StreamManagerMetricsIncomingByPeerGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStreamManagerMetricsIncomingByPeerGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StreamManagerMetricsIncomingByPeerGet", - Method: "GET", - PathPattern: "/stream_manager/metrics/incoming/{peer}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StreamManagerMetricsIncomingByPeerGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StreamManagerMetricsIncomingByPeerGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StreamManagerMetricsIncomingByPeerGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StreamManagerMetricsIncomingGet gets all total incoming bytes - -Get all total incoming bytes -*/ -func (a *Client) StreamManagerMetricsIncomingGet(params *StreamManagerMetricsIncomingGetParams) (*StreamManagerMetricsIncomingGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStreamManagerMetricsIncomingGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StreamManagerMetricsIncomingGet", - Method: "GET", - PathPattern: "/stream_manager/metrics/incoming", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StreamManagerMetricsIncomingGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StreamManagerMetricsIncomingGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StreamManagerMetricsIncomingGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StreamManagerMetricsOutboundGet gets all active streams outbound - -Get number of active outbound streams -*/ -func (a *Client) StreamManagerMetricsOutboundGet(params *StreamManagerMetricsOutboundGetParams) (*StreamManagerMetricsOutboundGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStreamManagerMetricsOutboundGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StreamManagerMetricsOutboundGet", - Method: "GET", - PathPattern: "/stream_manager/metrics/outbound", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StreamManagerMetricsOutboundGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StreamManagerMetricsOutboundGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StreamManagerMetricsOutboundGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StreamManagerMetricsOutgoingByPeerGet gets total outgoing bytes - -Get total outgoing bytes -*/ -func (a *Client) StreamManagerMetricsOutgoingByPeerGet(params *StreamManagerMetricsOutgoingByPeerGetParams) (*StreamManagerMetricsOutgoingByPeerGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStreamManagerMetricsOutgoingByPeerGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StreamManagerMetricsOutgoingByPeerGet", - Method: "GET", - PathPattern: "/stream_manager/metrics/outgoing/{peer}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StreamManagerMetricsOutgoingByPeerGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StreamManagerMetricsOutgoingByPeerGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StreamManagerMetricsOutgoingByPeerGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -StreamManagerMetricsOutgoingGet gets all total outgoing bytes - -Get all total outgoing bytes -*/ -func (a *Client) StreamManagerMetricsOutgoingGet(params *StreamManagerMetricsOutgoingGetParams) (*StreamManagerMetricsOutgoingGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewStreamManagerMetricsOutgoingGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "StreamManagerMetricsOutgoingGet", - Method: "GET", - PathPattern: "/stream_manager/metrics/outgoing", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &StreamManagerMetricsOutgoingGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*StreamManagerMetricsOutgoingGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*StreamManagerMetricsOutgoingGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -SystemLoggerByNameGet gets logger level - -Get logger level -*/ -func (a *Client) SystemLoggerByNameGet(params *SystemLoggerByNameGetParams) (*SystemLoggerByNameGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewSystemLoggerByNameGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "SystemLoggerByNameGet", - Method: "GET", - PathPattern: "/system/logger/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &SystemLoggerByNameGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*SystemLoggerByNameGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*SystemLoggerByNameGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -SystemLoggerByNamePost sets logger level - -Set logger level -*/ -func (a *Client) SystemLoggerByNamePost(params *SystemLoggerByNamePostParams) (*SystemLoggerByNamePostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewSystemLoggerByNamePostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "SystemLoggerByNamePost", - Method: "POST", - PathPattern: "/system/logger/{name}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &SystemLoggerByNamePostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*SystemLoggerByNamePostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*SystemLoggerByNamePostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -SystemLoggerGet gets all logger names - -Get all logger names -*/ -func (a *Client) SystemLoggerGet(params *SystemLoggerGetParams) (*SystemLoggerGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewSystemLoggerGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "SystemLoggerGet", - Method: "GET", - PathPattern: "/system/logger", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &SystemLoggerGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*SystemLoggerGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*SystemLoggerGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -SystemLoggerPost sets all logger level - -Set all logger level -*/ -func (a *Client) SystemLoggerPost(params *SystemLoggerPostParams) (*SystemLoggerPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewSystemLoggerPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "SystemLoggerPost", - Method: "POST", - PathPattern: "/system/logger", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &SystemLoggerPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*SystemLoggerPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*SystemLoggerPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -TaskManagerAbortTaskTaskIDPost aborts task - -Abort running task and its descendants -*/ -func (a *Client) TaskManagerAbortTaskTaskIDPost(params *TaskManagerAbortTaskTaskIDPostParams) (*TaskManagerAbortTaskTaskIDPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewTaskManagerAbortTaskTaskIDPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "TaskManagerAbortTaskTaskIdPost", - Method: "POST", - PathPattern: "/task_manager/abort_task/{task_id}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &TaskManagerAbortTaskTaskIDPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*TaskManagerAbortTaskTaskIDPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*TaskManagerAbortTaskTaskIDPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -TaskManagerListModuleTasksModuleGet gets tasks - -Get a list of tasks -*/ -func (a *Client) TaskManagerListModuleTasksModuleGet(params *TaskManagerListModuleTasksModuleGetParams) (*TaskManagerListModuleTasksModuleGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewTaskManagerListModuleTasksModuleGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "TaskManagerListModuleTasksModuleGet", - Method: "GET", - PathPattern: "/task_manager/list_module_tasks/{module}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &TaskManagerListModuleTasksModuleGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*TaskManagerListModuleTasksModuleGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*TaskManagerListModuleTasksModuleGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -TaskManagerListModulesGet gets modules - -Get all modules names -*/ -func (a *Client) TaskManagerListModulesGet(params *TaskManagerListModulesGetParams) (*TaskManagerListModulesGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewTaskManagerListModulesGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "TaskManagerListModulesGet", - Method: "GET", - PathPattern: "/task_manager/list_modules", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &TaskManagerListModulesGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*TaskManagerListModulesGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*TaskManagerListModulesGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -TaskManagerTaskStatusRecursiveTaskIDGet gets task status recursively - -Get statuses of the task and all its descendants -*/ -func (a *Client) TaskManagerTaskStatusRecursiveTaskIDGet(params *TaskManagerTaskStatusRecursiveTaskIDGetParams) (*TaskManagerTaskStatusRecursiveTaskIDGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewTaskManagerTaskStatusRecursiveTaskIDGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "TaskManagerTaskStatusRecursiveTaskIdGet", - Method: "GET", - PathPattern: "/task_manager/task_status_recursive/{task_id}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &TaskManagerTaskStatusRecursiveTaskIDGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*TaskManagerTaskStatusRecursiveTaskIDGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*TaskManagerTaskStatusRecursiveTaskIDGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -TaskManagerTaskStatusTaskIDGet gets task status - -Get task status -*/ -func (a *Client) TaskManagerTaskStatusTaskIDGet(params *TaskManagerTaskStatusTaskIDGetParams) (*TaskManagerTaskStatusTaskIDGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewTaskManagerTaskStatusTaskIDGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "TaskManagerTaskStatusTaskIdGet", - Method: "GET", - PathPattern: "/task_manager/task_status/{task_id}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &TaskManagerTaskStatusTaskIDGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*TaskManagerTaskStatusTaskIDGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*TaskManagerTaskStatusTaskIDGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -TaskManagerTTLGet gets ttl - -Get current ttl value -*/ -func (a *Client) TaskManagerTTLGet(params *TaskManagerTTLGetParams) (*TaskManagerTTLGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewTaskManagerTTLGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "TaskManagerTtlGet", - Method: "GET", - PathPattern: "/task_manager/ttl", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &TaskManagerTTLGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*TaskManagerTTLGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*TaskManagerTTLGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -TaskManagerTTLPost gets and update ttl - -Set ttl in seconds and get last value -*/ -func (a *Client) TaskManagerTTLPost(params *TaskManagerTTLPostParams) (*TaskManagerTTLPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewTaskManagerTTLPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "TaskManagerTtlPost", - Method: "POST", - PathPattern: "/task_manager/ttl", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &TaskManagerTTLPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*TaskManagerTTLPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*TaskManagerTTLPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -TaskManagerUserTTLGet gets user ttl - -Get current user task ttl value -*/ -func (a *Client) TaskManagerUserTTLGet(params *TaskManagerUserTTLGetParams) (*TaskManagerUserTTLGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewTaskManagerUserTTLGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "TaskManagerUserTtlGet", - Method: "GET", - PathPattern: "/task_manager/user_ttl", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &TaskManagerUserTTLGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*TaskManagerUserTTLGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*TaskManagerUserTTLGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -TaskManagerUserTTLPost gets and update user ttl - -Set user task ttl in seconds and get last value -*/ -func (a *Client) TaskManagerUserTTLPost(params *TaskManagerUserTTLPostParams) (*TaskManagerUserTTLPostOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewTaskManagerUserTTLPostParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "TaskManagerUserTtlPost", - Method: "POST", - PathPattern: "/task_manager/user_ttl", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &TaskManagerUserTTLPostReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*TaskManagerUserTTLPostOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*TaskManagerUserTTLPostDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -TaskManagerWaitTaskTaskIDGet waits task - -Wait for a task to complete -*/ -func (a *Client) TaskManagerWaitTaskTaskIDGet(params *TaskManagerWaitTaskTaskIDGetParams) (*TaskManagerWaitTaskTaskIDGetOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewTaskManagerWaitTaskTaskIDGetParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "TaskManagerWaitTaskTaskIdGet", - Method: "GET", - PathPattern: "/task_manager/wait_task/{task_id}", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &TaskManagerWaitTaskTaskIDGetReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*TaskManagerWaitTaskTaskIDGetOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*TaskManagerWaitTaskTaskIDGetDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -// SetTransport changes the transport on the client -func (a *Client) SetTransport(transport runtime.ClientTransport) { - a.transport = transport -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/raft_read_barrier_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/raft_read_barrier_post_parameters.go deleted file mode 100644 index a6204e93ae..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/raft_read_barrier_post_parameters.go +++ /dev/null @@ -1,180 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewRaftReadBarrierPostParams creates a new RaftReadBarrierPostParams object -// with the default values initialized. -func NewRaftReadBarrierPostParams() *RaftReadBarrierPostParams { - var () - return &RaftReadBarrierPostParams{ - - requestTimeout: cr.DefaultTimeout, - } -} - -// NewRaftReadBarrierPostParamsWithTimeout creates a new RaftReadBarrierPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewRaftReadBarrierPostParamsWithTimeout(timeout time.Duration) *RaftReadBarrierPostParams { - var () - return &RaftReadBarrierPostParams{ - - requestTimeout: timeout, - } -} - -// NewRaftReadBarrierPostParamsWithContext creates a new RaftReadBarrierPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewRaftReadBarrierPostParamsWithContext(ctx context.Context) *RaftReadBarrierPostParams { - var () - return &RaftReadBarrierPostParams{ - - Context: ctx, - } -} - -// NewRaftReadBarrierPostParamsWithHTTPClient creates a new RaftReadBarrierPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewRaftReadBarrierPostParamsWithHTTPClient(client *http.Client) *RaftReadBarrierPostParams { - var () - return &RaftReadBarrierPostParams{ - HTTPClient: client, - } -} - -/* -RaftReadBarrierPostParams contains all the parameters to send to the API endpoint -for the raft read barrier post operation typically these are written to a http.Request -*/ -type RaftReadBarrierPostParams struct { - - /*GroupID - The ID of the group. When absent, group0 is used. - - */ - GroupID *string - /*Timeout - Timeout in seconds after which the endpoint returns a failure. If not provided, 60s is used. - - */ - Timeout *int64 - - requestTimeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithRequestTimeout adds the timeout to the raft read barrier post params -func (o *RaftReadBarrierPostParams) WithRequestTimeout(timeout time.Duration) *RaftReadBarrierPostParams { - o.SetRequestTimeout(timeout) - return o -} - -// SetRequestTimeout adds the timeout to the raft read barrier post params -func (o *RaftReadBarrierPostParams) SetRequestTimeout(timeout time.Duration) { - o.requestTimeout = timeout -} - -// WithContext adds the context to the raft read barrier post params -func (o *RaftReadBarrierPostParams) WithContext(ctx context.Context) *RaftReadBarrierPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the raft read barrier post params -func (o *RaftReadBarrierPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the raft read barrier post params -func (o *RaftReadBarrierPostParams) WithHTTPClient(client *http.Client) *RaftReadBarrierPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the raft read barrier post params -func (o *RaftReadBarrierPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithGroupID adds the groupID to the raft read barrier post params -func (o *RaftReadBarrierPostParams) WithGroupID(groupID *string) *RaftReadBarrierPostParams { - o.SetGroupID(groupID) - return o -} - -// SetGroupID adds the groupId to the raft read barrier post params -func (o *RaftReadBarrierPostParams) SetGroupID(groupID *string) { - o.GroupID = groupID -} - -// WithTimeout adds the timeout to the raft read barrier post params -func (o *RaftReadBarrierPostParams) WithTimeout(timeout *int64) *RaftReadBarrierPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the raft read barrier post params -func (o *RaftReadBarrierPostParams) SetTimeout(timeout *int64) { - o.Timeout = timeout -} - -// WriteToRequest writes these params to a swagger request -func (o *RaftReadBarrierPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.requestTimeout); err != nil { - return err - } - var res []error - - if o.GroupID != nil { - - // query param group_id - var qrGroupID string - if o.GroupID != nil { - qrGroupID = *o.GroupID - } - qGroupID := qrGroupID - if qGroupID != "" { - if err := r.SetQueryParam("group_id", qGroupID); err != nil { - return err - } - } - - } - - if o.Timeout != nil { - - // query param timeout - var qrTimeout int64 - if o.Timeout != nil { - qrTimeout = *o.Timeout - } - qTimeout := swag.FormatInt64(qrTimeout) - if qTimeout != "" { - if err := r.SetQueryParam("timeout", qTimeout); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/raft_read_barrier_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/raft_read_barrier_post_responses.go deleted file mode 100644 index 3fb1b9e3fb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/raft_read_barrier_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// RaftReadBarrierPostReader is a Reader for the RaftReadBarrierPost structure. -type RaftReadBarrierPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *RaftReadBarrierPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewRaftReadBarrierPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewRaftReadBarrierPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewRaftReadBarrierPostOK creates a RaftReadBarrierPostOK with default headers values -func NewRaftReadBarrierPostOK() *RaftReadBarrierPostOK { - return &RaftReadBarrierPostOK{} -} - -/* -RaftReadBarrierPostOK handles this case with default header values. - -Success -*/ -type RaftReadBarrierPostOK struct { -} - -func (o *RaftReadBarrierPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewRaftReadBarrierPostDefault creates a RaftReadBarrierPostDefault with default headers values -func NewRaftReadBarrierPostDefault(code int) *RaftReadBarrierPostDefault { - return &RaftReadBarrierPostDefault{ - _statusCode: code, - } -} - -/* -RaftReadBarrierPostDefault handles this case with default header values. - -internal server error -*/ -type RaftReadBarrierPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the raft read barrier post default response -func (o *RaftReadBarrierPostDefault) Code() int { - return o._statusCode -} - -func (o *RaftReadBarrierPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *RaftReadBarrierPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *RaftReadBarrierPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/snitch_datacenter_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/snitch_datacenter_get_parameters.go deleted file mode 100644 index f1f3e1e3be..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/snitch_datacenter_get_parameters.go +++ /dev/null @@ -1,147 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewSnitchDatacenterGetParams creates a new SnitchDatacenterGetParams object -// with the default values initialized. -func NewSnitchDatacenterGetParams() *SnitchDatacenterGetParams { - var () - return &SnitchDatacenterGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewSnitchDatacenterGetParamsWithTimeout creates a new SnitchDatacenterGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewSnitchDatacenterGetParamsWithTimeout(timeout time.Duration) *SnitchDatacenterGetParams { - var () - return &SnitchDatacenterGetParams{ - - timeout: timeout, - } -} - -// NewSnitchDatacenterGetParamsWithContext creates a new SnitchDatacenterGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewSnitchDatacenterGetParamsWithContext(ctx context.Context) *SnitchDatacenterGetParams { - var () - return &SnitchDatacenterGetParams{ - - Context: ctx, - } -} - -// NewSnitchDatacenterGetParamsWithHTTPClient creates a new SnitchDatacenterGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewSnitchDatacenterGetParamsWithHTTPClient(client *http.Client) *SnitchDatacenterGetParams { - var () - return &SnitchDatacenterGetParams{ - HTTPClient: client, - } -} - -/* -SnitchDatacenterGetParams contains all the parameters to send to the API endpoint -for the snitch datacenter get operation typically these are written to a http.Request -*/ -type SnitchDatacenterGetParams struct { - - /*Host - The host name. If absent, the local server broadcast/listen address is used - - */ - Host *string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the snitch datacenter get params -func (o *SnitchDatacenterGetParams) WithTimeout(timeout time.Duration) *SnitchDatacenterGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the snitch datacenter get params -func (o *SnitchDatacenterGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the snitch datacenter get params -func (o *SnitchDatacenterGetParams) WithContext(ctx context.Context) *SnitchDatacenterGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the snitch datacenter get params -func (o *SnitchDatacenterGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the snitch datacenter get params -func (o *SnitchDatacenterGetParams) WithHTTPClient(client *http.Client) *SnitchDatacenterGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the snitch datacenter get params -func (o *SnitchDatacenterGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithHost adds the host to the snitch datacenter get params -func (o *SnitchDatacenterGetParams) WithHost(host *string) *SnitchDatacenterGetParams { - o.SetHost(host) - return o -} - -// SetHost adds the host to the snitch datacenter get params -func (o *SnitchDatacenterGetParams) SetHost(host *string) { - o.Host = host -} - -// WriteToRequest writes these params to a swagger request -func (o *SnitchDatacenterGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Host != nil { - - // query param host - var qrHost string - if o.Host != nil { - qrHost = *o.Host - } - qHost := qrHost - if qHost != "" { - if err := r.SetQueryParam("host", qHost); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/snitch_datacenter_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/snitch_datacenter_get_responses.go deleted file mode 100644 index d402686679..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/snitch_datacenter_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// SnitchDatacenterGetReader is a Reader for the SnitchDatacenterGet structure. -type SnitchDatacenterGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *SnitchDatacenterGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewSnitchDatacenterGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewSnitchDatacenterGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewSnitchDatacenterGetOK creates a SnitchDatacenterGetOK with default headers values -func NewSnitchDatacenterGetOK() *SnitchDatacenterGetOK { - return &SnitchDatacenterGetOK{} -} - -/* -SnitchDatacenterGetOK handles this case with default header values. - -Success -*/ -type SnitchDatacenterGetOK struct { - Payload string -} - -func (o *SnitchDatacenterGetOK) GetPayload() string { - return o.Payload -} - -func (o *SnitchDatacenterGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewSnitchDatacenterGetDefault creates a SnitchDatacenterGetDefault with default headers values -func NewSnitchDatacenterGetDefault(code int) *SnitchDatacenterGetDefault { - return &SnitchDatacenterGetDefault{ - _statusCode: code, - } -} - -/* -SnitchDatacenterGetDefault handles this case with default header values. - -internal server error -*/ -type SnitchDatacenterGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the snitch datacenter get default response -func (o *SnitchDatacenterGetDefault) Code() int { - return o._statusCode -} - -func (o *SnitchDatacenterGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *SnitchDatacenterGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *SnitchDatacenterGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/snitch_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/snitch_name_get_parameters.go deleted file mode 100644 index 6a1e52a346..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/snitch_name_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewSnitchNameGetParams creates a new SnitchNameGetParams object -// with the default values initialized. -func NewSnitchNameGetParams() *SnitchNameGetParams { - - return &SnitchNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewSnitchNameGetParamsWithTimeout creates a new SnitchNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewSnitchNameGetParamsWithTimeout(timeout time.Duration) *SnitchNameGetParams { - - return &SnitchNameGetParams{ - - timeout: timeout, - } -} - -// NewSnitchNameGetParamsWithContext creates a new SnitchNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewSnitchNameGetParamsWithContext(ctx context.Context) *SnitchNameGetParams { - - return &SnitchNameGetParams{ - - Context: ctx, - } -} - -// NewSnitchNameGetParamsWithHTTPClient creates a new SnitchNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewSnitchNameGetParamsWithHTTPClient(client *http.Client) *SnitchNameGetParams { - - return &SnitchNameGetParams{ - HTTPClient: client, - } -} - -/* -SnitchNameGetParams contains all the parameters to send to the API endpoint -for the snitch name get operation typically these are written to a http.Request -*/ -type SnitchNameGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the snitch name get params -func (o *SnitchNameGetParams) WithTimeout(timeout time.Duration) *SnitchNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the snitch name get params -func (o *SnitchNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the snitch name get params -func (o *SnitchNameGetParams) WithContext(ctx context.Context) *SnitchNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the snitch name get params -func (o *SnitchNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the snitch name get params -func (o *SnitchNameGetParams) WithHTTPClient(client *http.Client) *SnitchNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the snitch name get params -func (o *SnitchNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *SnitchNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/snitch_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/snitch_name_get_responses.go deleted file mode 100644 index 335537799d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/snitch_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// SnitchNameGetReader is a Reader for the SnitchNameGet structure. -type SnitchNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *SnitchNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewSnitchNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewSnitchNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewSnitchNameGetOK creates a SnitchNameGetOK with default headers values -func NewSnitchNameGetOK() *SnitchNameGetOK { - return &SnitchNameGetOK{} -} - -/* -SnitchNameGetOK handles this case with default header values. - -Success -*/ -type SnitchNameGetOK struct { - Payload string -} - -func (o *SnitchNameGetOK) GetPayload() string { - return o.Payload -} - -func (o *SnitchNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewSnitchNameGetDefault creates a SnitchNameGetDefault with default headers values -func NewSnitchNameGetDefault(code int) *SnitchNameGetDefault { - return &SnitchNameGetDefault{ - _statusCode: code, - } -} - -/* -SnitchNameGetDefault handles this case with default header values. - -internal server error -*/ -type SnitchNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the snitch name get default response -func (o *SnitchNameGetDefault) Code() int { - return o._statusCode -} - -func (o *SnitchNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *SnitchNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *SnitchNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/snitch_rack_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/snitch_rack_get_parameters.go deleted file mode 100644 index b11cffded1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/snitch_rack_get_parameters.go +++ /dev/null @@ -1,147 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewSnitchRackGetParams creates a new SnitchRackGetParams object -// with the default values initialized. -func NewSnitchRackGetParams() *SnitchRackGetParams { - var () - return &SnitchRackGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewSnitchRackGetParamsWithTimeout creates a new SnitchRackGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewSnitchRackGetParamsWithTimeout(timeout time.Duration) *SnitchRackGetParams { - var () - return &SnitchRackGetParams{ - - timeout: timeout, - } -} - -// NewSnitchRackGetParamsWithContext creates a new SnitchRackGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewSnitchRackGetParamsWithContext(ctx context.Context) *SnitchRackGetParams { - var () - return &SnitchRackGetParams{ - - Context: ctx, - } -} - -// NewSnitchRackGetParamsWithHTTPClient creates a new SnitchRackGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewSnitchRackGetParamsWithHTTPClient(client *http.Client) *SnitchRackGetParams { - var () - return &SnitchRackGetParams{ - HTTPClient: client, - } -} - -/* -SnitchRackGetParams contains all the parameters to send to the API endpoint -for the snitch rack get operation typically these are written to a http.Request -*/ -type SnitchRackGetParams struct { - - /*Host - The host name. If absent, the local server broadcast/listen address is used - - */ - Host *string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the snitch rack get params -func (o *SnitchRackGetParams) WithTimeout(timeout time.Duration) *SnitchRackGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the snitch rack get params -func (o *SnitchRackGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the snitch rack get params -func (o *SnitchRackGetParams) WithContext(ctx context.Context) *SnitchRackGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the snitch rack get params -func (o *SnitchRackGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the snitch rack get params -func (o *SnitchRackGetParams) WithHTTPClient(client *http.Client) *SnitchRackGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the snitch rack get params -func (o *SnitchRackGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithHost adds the host to the snitch rack get params -func (o *SnitchRackGetParams) WithHost(host *string) *SnitchRackGetParams { - o.SetHost(host) - return o -} - -// SetHost adds the host to the snitch rack get params -func (o *SnitchRackGetParams) SetHost(host *string) { - o.Host = host -} - -// WriteToRequest writes these params to a swagger request -func (o *SnitchRackGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Host != nil { - - // query param host - var qrHost string - if o.Host != nil { - qrHost = *o.Host - } - qHost := qrHost - if qHost != "" { - if err := r.SetQueryParam("host", qHost); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/snitch_rack_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/snitch_rack_get_responses.go deleted file mode 100644 index 75fe44665a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/snitch_rack_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// SnitchRackGetReader is a Reader for the SnitchRackGet structure. -type SnitchRackGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *SnitchRackGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewSnitchRackGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewSnitchRackGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewSnitchRackGetOK creates a SnitchRackGetOK with default headers values -func NewSnitchRackGetOK() *SnitchRackGetOK { - return &SnitchRackGetOK{} -} - -/* -SnitchRackGetOK handles this case with default header values. - -Success -*/ -type SnitchRackGetOK struct { - Payload string -} - -func (o *SnitchRackGetOK) GetPayload() string { - return o.Payload -} - -func (o *SnitchRackGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewSnitchRackGetDefault creates a SnitchRackGetDefault with default headers values -func NewSnitchRackGetDefault(code int) *SnitchRackGetDefault { - return &SnitchRackGetDefault{ - _statusCode: code, - } -} - -/* -SnitchRackGetDefault handles this case with default header values. - -internal server error -*/ -type SnitchRackGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the snitch rack get default response -func (o *SnitchRackGetDefault) Code() int { - return o._statusCode -} - -func (o *SnitchRackGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *SnitchRackGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *SnitchRackGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_cas_contention_timeout_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_cas_contention_timeout_get_parameters.go deleted file mode 100644 index d9a9ad87c1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_cas_contention_timeout_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyCasContentionTimeoutGetParams creates a new StorageProxyCasContentionTimeoutGetParams object -// with the default values initialized. -func NewStorageProxyCasContentionTimeoutGetParams() *StorageProxyCasContentionTimeoutGetParams { - - return &StorageProxyCasContentionTimeoutGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyCasContentionTimeoutGetParamsWithTimeout creates a new StorageProxyCasContentionTimeoutGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyCasContentionTimeoutGetParamsWithTimeout(timeout time.Duration) *StorageProxyCasContentionTimeoutGetParams { - - return &StorageProxyCasContentionTimeoutGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyCasContentionTimeoutGetParamsWithContext creates a new StorageProxyCasContentionTimeoutGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyCasContentionTimeoutGetParamsWithContext(ctx context.Context) *StorageProxyCasContentionTimeoutGetParams { - - return &StorageProxyCasContentionTimeoutGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyCasContentionTimeoutGetParamsWithHTTPClient creates a new StorageProxyCasContentionTimeoutGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyCasContentionTimeoutGetParamsWithHTTPClient(client *http.Client) *StorageProxyCasContentionTimeoutGetParams { - - return &StorageProxyCasContentionTimeoutGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyCasContentionTimeoutGetParams contains all the parameters to send to the API endpoint -for the storage proxy cas contention timeout get operation typically these are written to a http.Request -*/ -type StorageProxyCasContentionTimeoutGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy cas contention timeout get params -func (o *StorageProxyCasContentionTimeoutGetParams) WithTimeout(timeout time.Duration) *StorageProxyCasContentionTimeoutGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy cas contention timeout get params -func (o *StorageProxyCasContentionTimeoutGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy cas contention timeout get params -func (o *StorageProxyCasContentionTimeoutGetParams) WithContext(ctx context.Context) *StorageProxyCasContentionTimeoutGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy cas contention timeout get params -func (o *StorageProxyCasContentionTimeoutGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy cas contention timeout get params -func (o *StorageProxyCasContentionTimeoutGetParams) WithHTTPClient(client *http.Client) *StorageProxyCasContentionTimeoutGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy cas contention timeout get params -func (o *StorageProxyCasContentionTimeoutGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyCasContentionTimeoutGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_cas_contention_timeout_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_cas_contention_timeout_get_responses.go deleted file mode 100644 index 5d95215d27..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_cas_contention_timeout_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyCasContentionTimeoutGetReader is a Reader for the StorageProxyCasContentionTimeoutGet structure. -type StorageProxyCasContentionTimeoutGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyCasContentionTimeoutGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyCasContentionTimeoutGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyCasContentionTimeoutGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyCasContentionTimeoutGetOK creates a StorageProxyCasContentionTimeoutGetOK with default headers values -func NewStorageProxyCasContentionTimeoutGetOK() *StorageProxyCasContentionTimeoutGetOK { - return &StorageProxyCasContentionTimeoutGetOK{} -} - -/* -StorageProxyCasContentionTimeoutGetOK handles this case with default header values. - -Success -*/ -type StorageProxyCasContentionTimeoutGetOK struct { - Payload interface{} -} - -func (o *StorageProxyCasContentionTimeoutGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageProxyCasContentionTimeoutGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyCasContentionTimeoutGetDefault creates a StorageProxyCasContentionTimeoutGetDefault with default headers values -func NewStorageProxyCasContentionTimeoutGetDefault(code int) *StorageProxyCasContentionTimeoutGetDefault { - return &StorageProxyCasContentionTimeoutGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyCasContentionTimeoutGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyCasContentionTimeoutGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy cas contention timeout get default response -func (o *StorageProxyCasContentionTimeoutGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyCasContentionTimeoutGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyCasContentionTimeoutGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyCasContentionTimeoutGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_cas_contention_timeout_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_cas_contention_timeout_post_parameters.go deleted file mode 100644 index 516eb67e1c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_cas_contention_timeout_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyCasContentionTimeoutPostParams creates a new StorageProxyCasContentionTimeoutPostParams object -// with the default values initialized. -func NewStorageProxyCasContentionTimeoutPostParams() *StorageProxyCasContentionTimeoutPostParams { - var () - return &StorageProxyCasContentionTimeoutPostParams{ - - requestTimeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyCasContentionTimeoutPostParamsWithTimeout creates a new StorageProxyCasContentionTimeoutPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyCasContentionTimeoutPostParamsWithTimeout(timeout time.Duration) *StorageProxyCasContentionTimeoutPostParams { - var () - return &StorageProxyCasContentionTimeoutPostParams{ - - requestTimeout: timeout, - } -} - -// NewStorageProxyCasContentionTimeoutPostParamsWithContext creates a new StorageProxyCasContentionTimeoutPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyCasContentionTimeoutPostParamsWithContext(ctx context.Context) *StorageProxyCasContentionTimeoutPostParams { - var () - return &StorageProxyCasContentionTimeoutPostParams{ - - Context: ctx, - } -} - -// NewStorageProxyCasContentionTimeoutPostParamsWithHTTPClient creates a new StorageProxyCasContentionTimeoutPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyCasContentionTimeoutPostParamsWithHTTPClient(client *http.Client) *StorageProxyCasContentionTimeoutPostParams { - var () - return &StorageProxyCasContentionTimeoutPostParams{ - HTTPClient: client, - } -} - -/* -StorageProxyCasContentionTimeoutPostParams contains all the parameters to send to the API endpoint -for the storage proxy cas contention timeout post operation typically these are written to a http.Request -*/ -type StorageProxyCasContentionTimeoutPostParams struct { - - /*Timeout - timeout in second - - */ - Timeout string - - requestTimeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithRequestTimeout adds the timeout to the storage proxy cas contention timeout post params -func (o *StorageProxyCasContentionTimeoutPostParams) WithRequestTimeout(timeout time.Duration) *StorageProxyCasContentionTimeoutPostParams { - o.SetRequestTimeout(timeout) - return o -} - -// SetRequestTimeout adds the timeout to the storage proxy cas contention timeout post params -func (o *StorageProxyCasContentionTimeoutPostParams) SetRequestTimeout(timeout time.Duration) { - o.requestTimeout = timeout -} - -// WithContext adds the context to the storage proxy cas contention timeout post params -func (o *StorageProxyCasContentionTimeoutPostParams) WithContext(ctx context.Context) *StorageProxyCasContentionTimeoutPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy cas contention timeout post params -func (o *StorageProxyCasContentionTimeoutPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy cas contention timeout post params -func (o *StorageProxyCasContentionTimeoutPostParams) WithHTTPClient(client *http.Client) *StorageProxyCasContentionTimeoutPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy cas contention timeout post params -func (o *StorageProxyCasContentionTimeoutPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithTimeout adds the timeout to the storage proxy cas contention timeout post params -func (o *StorageProxyCasContentionTimeoutPostParams) WithTimeout(timeout string) *StorageProxyCasContentionTimeoutPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy cas contention timeout post params -func (o *StorageProxyCasContentionTimeoutPostParams) SetTimeout(timeout string) { - o.Timeout = timeout -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyCasContentionTimeoutPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.requestTimeout); err != nil { - return err - } - var res []error - - // query param timeout - qrTimeout := o.Timeout - qTimeout := qrTimeout - if qTimeout != "" { - if err := r.SetQueryParam("timeout", qTimeout); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_cas_contention_timeout_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_cas_contention_timeout_post_responses.go deleted file mode 100644 index 2f4be7d1c7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_cas_contention_timeout_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyCasContentionTimeoutPostReader is a Reader for the StorageProxyCasContentionTimeoutPost structure. -type StorageProxyCasContentionTimeoutPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyCasContentionTimeoutPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyCasContentionTimeoutPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyCasContentionTimeoutPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyCasContentionTimeoutPostOK creates a StorageProxyCasContentionTimeoutPostOK with default headers values -func NewStorageProxyCasContentionTimeoutPostOK() *StorageProxyCasContentionTimeoutPostOK { - return &StorageProxyCasContentionTimeoutPostOK{} -} - -/* -StorageProxyCasContentionTimeoutPostOK handles this case with default header values. - -Success -*/ -type StorageProxyCasContentionTimeoutPostOK struct { -} - -func (o *StorageProxyCasContentionTimeoutPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyCasContentionTimeoutPostDefault creates a StorageProxyCasContentionTimeoutPostDefault with default headers values -func NewStorageProxyCasContentionTimeoutPostDefault(code int) *StorageProxyCasContentionTimeoutPostDefault { - return &StorageProxyCasContentionTimeoutPostDefault{ - _statusCode: code, - } -} - -/* -StorageProxyCasContentionTimeoutPostDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyCasContentionTimeoutPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy cas contention timeout post default response -func (o *StorageProxyCasContentionTimeoutPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyCasContentionTimeoutPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyCasContentionTimeoutPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyCasContentionTimeoutPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_counter_write_rpc_timeout_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_counter_write_rpc_timeout_get_parameters.go deleted file mode 100644 index f242dba937..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_counter_write_rpc_timeout_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyCounterWriteRPCTimeoutGetParams creates a new StorageProxyCounterWriteRPCTimeoutGetParams object -// with the default values initialized. -func NewStorageProxyCounterWriteRPCTimeoutGetParams() *StorageProxyCounterWriteRPCTimeoutGetParams { - - return &StorageProxyCounterWriteRPCTimeoutGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyCounterWriteRPCTimeoutGetParamsWithTimeout creates a new StorageProxyCounterWriteRPCTimeoutGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyCounterWriteRPCTimeoutGetParamsWithTimeout(timeout time.Duration) *StorageProxyCounterWriteRPCTimeoutGetParams { - - return &StorageProxyCounterWriteRPCTimeoutGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyCounterWriteRPCTimeoutGetParamsWithContext creates a new StorageProxyCounterWriteRPCTimeoutGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyCounterWriteRPCTimeoutGetParamsWithContext(ctx context.Context) *StorageProxyCounterWriteRPCTimeoutGetParams { - - return &StorageProxyCounterWriteRPCTimeoutGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyCounterWriteRPCTimeoutGetParamsWithHTTPClient creates a new StorageProxyCounterWriteRPCTimeoutGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyCounterWriteRPCTimeoutGetParamsWithHTTPClient(client *http.Client) *StorageProxyCounterWriteRPCTimeoutGetParams { - - return &StorageProxyCounterWriteRPCTimeoutGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyCounterWriteRPCTimeoutGetParams contains all the parameters to send to the API endpoint -for the storage proxy counter write Rpc timeout get operation typically these are written to a http.Request -*/ -type StorageProxyCounterWriteRPCTimeoutGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy counter write Rpc timeout get params -func (o *StorageProxyCounterWriteRPCTimeoutGetParams) WithTimeout(timeout time.Duration) *StorageProxyCounterWriteRPCTimeoutGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy counter write Rpc timeout get params -func (o *StorageProxyCounterWriteRPCTimeoutGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy counter write Rpc timeout get params -func (o *StorageProxyCounterWriteRPCTimeoutGetParams) WithContext(ctx context.Context) *StorageProxyCounterWriteRPCTimeoutGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy counter write Rpc timeout get params -func (o *StorageProxyCounterWriteRPCTimeoutGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy counter write Rpc timeout get params -func (o *StorageProxyCounterWriteRPCTimeoutGetParams) WithHTTPClient(client *http.Client) *StorageProxyCounterWriteRPCTimeoutGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy counter write Rpc timeout get params -func (o *StorageProxyCounterWriteRPCTimeoutGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyCounterWriteRPCTimeoutGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_counter_write_rpc_timeout_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_counter_write_rpc_timeout_get_responses.go deleted file mode 100644 index eb84a699b8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_counter_write_rpc_timeout_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyCounterWriteRPCTimeoutGetReader is a Reader for the StorageProxyCounterWriteRPCTimeoutGet structure. -type StorageProxyCounterWriteRPCTimeoutGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyCounterWriteRPCTimeoutGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyCounterWriteRPCTimeoutGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyCounterWriteRPCTimeoutGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyCounterWriteRPCTimeoutGetOK creates a StorageProxyCounterWriteRPCTimeoutGetOK with default headers values -func NewStorageProxyCounterWriteRPCTimeoutGetOK() *StorageProxyCounterWriteRPCTimeoutGetOK { - return &StorageProxyCounterWriteRPCTimeoutGetOK{} -} - -/* -StorageProxyCounterWriteRPCTimeoutGetOK handles this case with default header values. - -Success -*/ -type StorageProxyCounterWriteRPCTimeoutGetOK struct { - Payload interface{} -} - -func (o *StorageProxyCounterWriteRPCTimeoutGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageProxyCounterWriteRPCTimeoutGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyCounterWriteRPCTimeoutGetDefault creates a StorageProxyCounterWriteRPCTimeoutGetDefault with default headers values -func NewStorageProxyCounterWriteRPCTimeoutGetDefault(code int) *StorageProxyCounterWriteRPCTimeoutGetDefault { - return &StorageProxyCounterWriteRPCTimeoutGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyCounterWriteRPCTimeoutGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyCounterWriteRPCTimeoutGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy counter write Rpc timeout get default response -func (o *StorageProxyCounterWriteRPCTimeoutGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyCounterWriteRPCTimeoutGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyCounterWriteRPCTimeoutGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyCounterWriteRPCTimeoutGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_counter_write_rpc_timeout_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_counter_write_rpc_timeout_post_parameters.go deleted file mode 100644 index 8d6e89d47c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_counter_write_rpc_timeout_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyCounterWriteRPCTimeoutPostParams creates a new StorageProxyCounterWriteRPCTimeoutPostParams object -// with the default values initialized. -func NewStorageProxyCounterWriteRPCTimeoutPostParams() *StorageProxyCounterWriteRPCTimeoutPostParams { - var () - return &StorageProxyCounterWriteRPCTimeoutPostParams{ - - requestTimeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyCounterWriteRPCTimeoutPostParamsWithTimeout creates a new StorageProxyCounterWriteRPCTimeoutPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyCounterWriteRPCTimeoutPostParamsWithTimeout(timeout time.Duration) *StorageProxyCounterWriteRPCTimeoutPostParams { - var () - return &StorageProxyCounterWriteRPCTimeoutPostParams{ - - requestTimeout: timeout, - } -} - -// NewStorageProxyCounterWriteRPCTimeoutPostParamsWithContext creates a new StorageProxyCounterWriteRPCTimeoutPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyCounterWriteRPCTimeoutPostParamsWithContext(ctx context.Context) *StorageProxyCounterWriteRPCTimeoutPostParams { - var () - return &StorageProxyCounterWriteRPCTimeoutPostParams{ - - Context: ctx, - } -} - -// NewStorageProxyCounterWriteRPCTimeoutPostParamsWithHTTPClient creates a new StorageProxyCounterWriteRPCTimeoutPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyCounterWriteRPCTimeoutPostParamsWithHTTPClient(client *http.Client) *StorageProxyCounterWriteRPCTimeoutPostParams { - var () - return &StorageProxyCounterWriteRPCTimeoutPostParams{ - HTTPClient: client, - } -} - -/* -StorageProxyCounterWriteRPCTimeoutPostParams contains all the parameters to send to the API endpoint -for the storage proxy counter write Rpc timeout post operation typically these are written to a http.Request -*/ -type StorageProxyCounterWriteRPCTimeoutPostParams struct { - - /*Timeout - timeout in seconds - - */ - Timeout string - - requestTimeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithRequestTimeout adds the timeout to the storage proxy counter write Rpc timeout post params -func (o *StorageProxyCounterWriteRPCTimeoutPostParams) WithRequestTimeout(timeout time.Duration) *StorageProxyCounterWriteRPCTimeoutPostParams { - o.SetRequestTimeout(timeout) - return o -} - -// SetRequestTimeout adds the timeout to the storage proxy counter write Rpc timeout post params -func (o *StorageProxyCounterWriteRPCTimeoutPostParams) SetRequestTimeout(timeout time.Duration) { - o.requestTimeout = timeout -} - -// WithContext adds the context to the storage proxy counter write Rpc timeout post params -func (o *StorageProxyCounterWriteRPCTimeoutPostParams) WithContext(ctx context.Context) *StorageProxyCounterWriteRPCTimeoutPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy counter write Rpc timeout post params -func (o *StorageProxyCounterWriteRPCTimeoutPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy counter write Rpc timeout post params -func (o *StorageProxyCounterWriteRPCTimeoutPostParams) WithHTTPClient(client *http.Client) *StorageProxyCounterWriteRPCTimeoutPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy counter write Rpc timeout post params -func (o *StorageProxyCounterWriteRPCTimeoutPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithTimeout adds the timeout to the storage proxy counter write Rpc timeout post params -func (o *StorageProxyCounterWriteRPCTimeoutPostParams) WithTimeout(timeout string) *StorageProxyCounterWriteRPCTimeoutPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy counter write Rpc timeout post params -func (o *StorageProxyCounterWriteRPCTimeoutPostParams) SetTimeout(timeout string) { - o.Timeout = timeout -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyCounterWriteRPCTimeoutPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.requestTimeout); err != nil { - return err - } - var res []error - - // query param timeout - qrTimeout := o.Timeout - qTimeout := qrTimeout - if qTimeout != "" { - if err := r.SetQueryParam("timeout", qTimeout); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_counter_write_rpc_timeout_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_counter_write_rpc_timeout_post_responses.go deleted file mode 100644 index 93c0f49ff2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_counter_write_rpc_timeout_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyCounterWriteRPCTimeoutPostReader is a Reader for the StorageProxyCounterWriteRPCTimeoutPost structure. -type StorageProxyCounterWriteRPCTimeoutPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyCounterWriteRPCTimeoutPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyCounterWriteRPCTimeoutPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyCounterWriteRPCTimeoutPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyCounterWriteRPCTimeoutPostOK creates a StorageProxyCounterWriteRPCTimeoutPostOK with default headers values -func NewStorageProxyCounterWriteRPCTimeoutPostOK() *StorageProxyCounterWriteRPCTimeoutPostOK { - return &StorageProxyCounterWriteRPCTimeoutPostOK{} -} - -/* -StorageProxyCounterWriteRPCTimeoutPostOK handles this case with default header values. - -Success -*/ -type StorageProxyCounterWriteRPCTimeoutPostOK struct { -} - -func (o *StorageProxyCounterWriteRPCTimeoutPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyCounterWriteRPCTimeoutPostDefault creates a StorageProxyCounterWriteRPCTimeoutPostDefault with default headers values -func NewStorageProxyCounterWriteRPCTimeoutPostDefault(code int) *StorageProxyCounterWriteRPCTimeoutPostDefault { - return &StorageProxyCounterWriteRPCTimeoutPostDefault{ - _statusCode: code, - } -} - -/* -StorageProxyCounterWriteRPCTimeoutPostDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyCounterWriteRPCTimeoutPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy counter write Rpc timeout post default response -func (o *StorageProxyCounterWriteRPCTimeoutPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyCounterWriteRPCTimeoutPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyCounterWriteRPCTimeoutPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyCounterWriteRPCTimeoutPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_by_dc_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_by_dc_get_parameters.go deleted file mode 100644 index 2924343364..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_by_dc_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyHintedHandoffEnabledByDcGetParams creates a new StorageProxyHintedHandoffEnabledByDcGetParams object -// with the default values initialized. -func NewStorageProxyHintedHandoffEnabledByDcGetParams() *StorageProxyHintedHandoffEnabledByDcGetParams { - - return &StorageProxyHintedHandoffEnabledByDcGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyHintedHandoffEnabledByDcGetParamsWithTimeout creates a new StorageProxyHintedHandoffEnabledByDcGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyHintedHandoffEnabledByDcGetParamsWithTimeout(timeout time.Duration) *StorageProxyHintedHandoffEnabledByDcGetParams { - - return &StorageProxyHintedHandoffEnabledByDcGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyHintedHandoffEnabledByDcGetParamsWithContext creates a new StorageProxyHintedHandoffEnabledByDcGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyHintedHandoffEnabledByDcGetParamsWithContext(ctx context.Context) *StorageProxyHintedHandoffEnabledByDcGetParams { - - return &StorageProxyHintedHandoffEnabledByDcGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyHintedHandoffEnabledByDcGetParamsWithHTTPClient creates a new StorageProxyHintedHandoffEnabledByDcGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyHintedHandoffEnabledByDcGetParamsWithHTTPClient(client *http.Client) *StorageProxyHintedHandoffEnabledByDcGetParams { - - return &StorageProxyHintedHandoffEnabledByDcGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyHintedHandoffEnabledByDcGetParams contains all the parameters to send to the API endpoint -for the storage proxy hinted handoff enabled by dc get operation typically these are written to a http.Request -*/ -type StorageProxyHintedHandoffEnabledByDcGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy hinted handoff enabled by dc get params -func (o *StorageProxyHintedHandoffEnabledByDcGetParams) WithTimeout(timeout time.Duration) *StorageProxyHintedHandoffEnabledByDcGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy hinted handoff enabled by dc get params -func (o *StorageProxyHintedHandoffEnabledByDcGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy hinted handoff enabled by dc get params -func (o *StorageProxyHintedHandoffEnabledByDcGetParams) WithContext(ctx context.Context) *StorageProxyHintedHandoffEnabledByDcGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy hinted handoff enabled by dc get params -func (o *StorageProxyHintedHandoffEnabledByDcGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy hinted handoff enabled by dc get params -func (o *StorageProxyHintedHandoffEnabledByDcGetParams) WithHTTPClient(client *http.Client) *StorageProxyHintedHandoffEnabledByDcGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy hinted handoff enabled by dc get params -func (o *StorageProxyHintedHandoffEnabledByDcGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyHintedHandoffEnabledByDcGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_by_dc_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_by_dc_get_responses.go deleted file mode 100644 index 11d4512f29..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_by_dc_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyHintedHandoffEnabledByDcGetReader is a Reader for the StorageProxyHintedHandoffEnabledByDcGet structure. -type StorageProxyHintedHandoffEnabledByDcGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyHintedHandoffEnabledByDcGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyHintedHandoffEnabledByDcGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyHintedHandoffEnabledByDcGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyHintedHandoffEnabledByDcGetOK creates a StorageProxyHintedHandoffEnabledByDcGetOK with default headers values -func NewStorageProxyHintedHandoffEnabledByDcGetOK() *StorageProxyHintedHandoffEnabledByDcGetOK { - return &StorageProxyHintedHandoffEnabledByDcGetOK{} -} - -/* -StorageProxyHintedHandoffEnabledByDcGetOK handles this case with default header values. - -Success -*/ -type StorageProxyHintedHandoffEnabledByDcGetOK struct { - Payload []*models.MapperList -} - -func (o *StorageProxyHintedHandoffEnabledByDcGetOK) GetPayload() []*models.MapperList { - return o.Payload -} - -func (o *StorageProxyHintedHandoffEnabledByDcGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyHintedHandoffEnabledByDcGetDefault creates a StorageProxyHintedHandoffEnabledByDcGetDefault with default headers values -func NewStorageProxyHintedHandoffEnabledByDcGetDefault(code int) *StorageProxyHintedHandoffEnabledByDcGetDefault { - return &StorageProxyHintedHandoffEnabledByDcGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyHintedHandoffEnabledByDcGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyHintedHandoffEnabledByDcGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy hinted handoff enabled by dc get default response -func (o *StorageProxyHintedHandoffEnabledByDcGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyHintedHandoffEnabledByDcGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyHintedHandoffEnabledByDcGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyHintedHandoffEnabledByDcGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_by_dc_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_by_dc_post_parameters.go deleted file mode 100644 index 6b58dd4757..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_by_dc_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyHintedHandoffEnabledByDcPostParams creates a new StorageProxyHintedHandoffEnabledByDcPostParams object -// with the default values initialized. -func NewStorageProxyHintedHandoffEnabledByDcPostParams() *StorageProxyHintedHandoffEnabledByDcPostParams { - var () - return &StorageProxyHintedHandoffEnabledByDcPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyHintedHandoffEnabledByDcPostParamsWithTimeout creates a new StorageProxyHintedHandoffEnabledByDcPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyHintedHandoffEnabledByDcPostParamsWithTimeout(timeout time.Duration) *StorageProxyHintedHandoffEnabledByDcPostParams { - var () - return &StorageProxyHintedHandoffEnabledByDcPostParams{ - - timeout: timeout, - } -} - -// NewStorageProxyHintedHandoffEnabledByDcPostParamsWithContext creates a new StorageProxyHintedHandoffEnabledByDcPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyHintedHandoffEnabledByDcPostParamsWithContext(ctx context.Context) *StorageProxyHintedHandoffEnabledByDcPostParams { - var () - return &StorageProxyHintedHandoffEnabledByDcPostParams{ - - Context: ctx, - } -} - -// NewStorageProxyHintedHandoffEnabledByDcPostParamsWithHTTPClient creates a new StorageProxyHintedHandoffEnabledByDcPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyHintedHandoffEnabledByDcPostParamsWithHTTPClient(client *http.Client) *StorageProxyHintedHandoffEnabledByDcPostParams { - var () - return &StorageProxyHintedHandoffEnabledByDcPostParams{ - HTTPClient: client, - } -} - -/* -StorageProxyHintedHandoffEnabledByDcPostParams contains all the parameters to send to the API endpoint -for the storage proxy hinted handoff enabled by dc post operation typically these are written to a http.Request -*/ -type StorageProxyHintedHandoffEnabledByDcPostParams struct { - - /*Dcs - The dcs to enable in the CSV format - - */ - Dcs string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy hinted handoff enabled by dc post params -func (o *StorageProxyHintedHandoffEnabledByDcPostParams) WithTimeout(timeout time.Duration) *StorageProxyHintedHandoffEnabledByDcPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy hinted handoff enabled by dc post params -func (o *StorageProxyHintedHandoffEnabledByDcPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy hinted handoff enabled by dc post params -func (o *StorageProxyHintedHandoffEnabledByDcPostParams) WithContext(ctx context.Context) *StorageProxyHintedHandoffEnabledByDcPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy hinted handoff enabled by dc post params -func (o *StorageProxyHintedHandoffEnabledByDcPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy hinted handoff enabled by dc post params -func (o *StorageProxyHintedHandoffEnabledByDcPostParams) WithHTTPClient(client *http.Client) *StorageProxyHintedHandoffEnabledByDcPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy hinted handoff enabled by dc post params -func (o *StorageProxyHintedHandoffEnabledByDcPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithDcs adds the dcs to the storage proxy hinted handoff enabled by dc post params -func (o *StorageProxyHintedHandoffEnabledByDcPostParams) WithDcs(dcs string) *StorageProxyHintedHandoffEnabledByDcPostParams { - o.SetDcs(dcs) - return o -} - -// SetDcs adds the dcs to the storage proxy hinted handoff enabled by dc post params -func (o *StorageProxyHintedHandoffEnabledByDcPostParams) SetDcs(dcs string) { - o.Dcs = dcs -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyHintedHandoffEnabledByDcPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param dcs - qrDcs := o.Dcs - qDcs := qrDcs - if qDcs != "" { - if err := r.SetQueryParam("dcs", qDcs); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_by_dc_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_by_dc_post_responses.go deleted file mode 100644 index f241dcd83c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_by_dc_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyHintedHandoffEnabledByDcPostReader is a Reader for the StorageProxyHintedHandoffEnabledByDcPost structure. -type StorageProxyHintedHandoffEnabledByDcPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyHintedHandoffEnabledByDcPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyHintedHandoffEnabledByDcPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyHintedHandoffEnabledByDcPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyHintedHandoffEnabledByDcPostOK creates a StorageProxyHintedHandoffEnabledByDcPostOK with default headers values -func NewStorageProxyHintedHandoffEnabledByDcPostOK() *StorageProxyHintedHandoffEnabledByDcPostOK { - return &StorageProxyHintedHandoffEnabledByDcPostOK{} -} - -/* -StorageProxyHintedHandoffEnabledByDcPostOK handles this case with default header values. - -Success -*/ -type StorageProxyHintedHandoffEnabledByDcPostOK struct { -} - -func (o *StorageProxyHintedHandoffEnabledByDcPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyHintedHandoffEnabledByDcPostDefault creates a StorageProxyHintedHandoffEnabledByDcPostDefault with default headers values -func NewStorageProxyHintedHandoffEnabledByDcPostDefault(code int) *StorageProxyHintedHandoffEnabledByDcPostDefault { - return &StorageProxyHintedHandoffEnabledByDcPostDefault{ - _statusCode: code, - } -} - -/* -StorageProxyHintedHandoffEnabledByDcPostDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyHintedHandoffEnabledByDcPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy hinted handoff enabled by dc post default response -func (o *StorageProxyHintedHandoffEnabledByDcPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyHintedHandoffEnabledByDcPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyHintedHandoffEnabledByDcPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyHintedHandoffEnabledByDcPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_get_parameters.go deleted file mode 100644 index 2956c9ee1a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyHintedHandoffEnabledGetParams creates a new StorageProxyHintedHandoffEnabledGetParams object -// with the default values initialized. -func NewStorageProxyHintedHandoffEnabledGetParams() *StorageProxyHintedHandoffEnabledGetParams { - - return &StorageProxyHintedHandoffEnabledGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyHintedHandoffEnabledGetParamsWithTimeout creates a new StorageProxyHintedHandoffEnabledGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyHintedHandoffEnabledGetParamsWithTimeout(timeout time.Duration) *StorageProxyHintedHandoffEnabledGetParams { - - return &StorageProxyHintedHandoffEnabledGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyHintedHandoffEnabledGetParamsWithContext creates a new StorageProxyHintedHandoffEnabledGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyHintedHandoffEnabledGetParamsWithContext(ctx context.Context) *StorageProxyHintedHandoffEnabledGetParams { - - return &StorageProxyHintedHandoffEnabledGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyHintedHandoffEnabledGetParamsWithHTTPClient creates a new StorageProxyHintedHandoffEnabledGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyHintedHandoffEnabledGetParamsWithHTTPClient(client *http.Client) *StorageProxyHintedHandoffEnabledGetParams { - - return &StorageProxyHintedHandoffEnabledGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyHintedHandoffEnabledGetParams contains all the parameters to send to the API endpoint -for the storage proxy hinted handoff enabled get operation typically these are written to a http.Request -*/ -type StorageProxyHintedHandoffEnabledGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy hinted handoff enabled get params -func (o *StorageProxyHintedHandoffEnabledGetParams) WithTimeout(timeout time.Duration) *StorageProxyHintedHandoffEnabledGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy hinted handoff enabled get params -func (o *StorageProxyHintedHandoffEnabledGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy hinted handoff enabled get params -func (o *StorageProxyHintedHandoffEnabledGetParams) WithContext(ctx context.Context) *StorageProxyHintedHandoffEnabledGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy hinted handoff enabled get params -func (o *StorageProxyHintedHandoffEnabledGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy hinted handoff enabled get params -func (o *StorageProxyHintedHandoffEnabledGetParams) WithHTTPClient(client *http.Client) *StorageProxyHintedHandoffEnabledGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy hinted handoff enabled get params -func (o *StorageProxyHintedHandoffEnabledGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyHintedHandoffEnabledGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_get_responses.go deleted file mode 100644 index 1724d039fc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyHintedHandoffEnabledGetReader is a Reader for the StorageProxyHintedHandoffEnabledGet structure. -type StorageProxyHintedHandoffEnabledGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyHintedHandoffEnabledGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyHintedHandoffEnabledGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyHintedHandoffEnabledGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyHintedHandoffEnabledGetOK creates a StorageProxyHintedHandoffEnabledGetOK with default headers values -func NewStorageProxyHintedHandoffEnabledGetOK() *StorageProxyHintedHandoffEnabledGetOK { - return &StorageProxyHintedHandoffEnabledGetOK{} -} - -/* -StorageProxyHintedHandoffEnabledGetOK handles this case with default header values. - -Success -*/ -type StorageProxyHintedHandoffEnabledGetOK struct { - Payload bool -} - -func (o *StorageProxyHintedHandoffEnabledGetOK) GetPayload() bool { - return o.Payload -} - -func (o *StorageProxyHintedHandoffEnabledGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyHintedHandoffEnabledGetDefault creates a StorageProxyHintedHandoffEnabledGetDefault with default headers values -func NewStorageProxyHintedHandoffEnabledGetDefault(code int) *StorageProxyHintedHandoffEnabledGetDefault { - return &StorageProxyHintedHandoffEnabledGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyHintedHandoffEnabledGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyHintedHandoffEnabledGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy hinted handoff enabled get default response -func (o *StorageProxyHintedHandoffEnabledGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyHintedHandoffEnabledGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyHintedHandoffEnabledGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyHintedHandoffEnabledGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_post_parameters.go deleted file mode 100644 index d0521c4d8f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageProxyHintedHandoffEnabledPostParams creates a new StorageProxyHintedHandoffEnabledPostParams object -// with the default values initialized. -func NewStorageProxyHintedHandoffEnabledPostParams() *StorageProxyHintedHandoffEnabledPostParams { - var () - return &StorageProxyHintedHandoffEnabledPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyHintedHandoffEnabledPostParamsWithTimeout creates a new StorageProxyHintedHandoffEnabledPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyHintedHandoffEnabledPostParamsWithTimeout(timeout time.Duration) *StorageProxyHintedHandoffEnabledPostParams { - var () - return &StorageProxyHintedHandoffEnabledPostParams{ - - timeout: timeout, - } -} - -// NewStorageProxyHintedHandoffEnabledPostParamsWithContext creates a new StorageProxyHintedHandoffEnabledPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyHintedHandoffEnabledPostParamsWithContext(ctx context.Context) *StorageProxyHintedHandoffEnabledPostParams { - var () - return &StorageProxyHintedHandoffEnabledPostParams{ - - Context: ctx, - } -} - -// NewStorageProxyHintedHandoffEnabledPostParamsWithHTTPClient creates a new StorageProxyHintedHandoffEnabledPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyHintedHandoffEnabledPostParamsWithHTTPClient(client *http.Client) *StorageProxyHintedHandoffEnabledPostParams { - var () - return &StorageProxyHintedHandoffEnabledPostParams{ - HTTPClient: client, - } -} - -/* -StorageProxyHintedHandoffEnabledPostParams contains all the parameters to send to the API endpoint -for the storage proxy hinted handoff enabled post operation typically these are written to a http.Request -*/ -type StorageProxyHintedHandoffEnabledPostParams struct { - - /*Enable - Set to true to enable hinted handoff - - */ - Enable bool - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy hinted handoff enabled post params -func (o *StorageProxyHintedHandoffEnabledPostParams) WithTimeout(timeout time.Duration) *StorageProxyHintedHandoffEnabledPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy hinted handoff enabled post params -func (o *StorageProxyHintedHandoffEnabledPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy hinted handoff enabled post params -func (o *StorageProxyHintedHandoffEnabledPostParams) WithContext(ctx context.Context) *StorageProxyHintedHandoffEnabledPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy hinted handoff enabled post params -func (o *StorageProxyHintedHandoffEnabledPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy hinted handoff enabled post params -func (o *StorageProxyHintedHandoffEnabledPostParams) WithHTTPClient(client *http.Client) *StorageProxyHintedHandoffEnabledPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy hinted handoff enabled post params -func (o *StorageProxyHintedHandoffEnabledPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithEnable adds the enable to the storage proxy hinted handoff enabled post params -func (o *StorageProxyHintedHandoffEnabledPostParams) WithEnable(enable bool) *StorageProxyHintedHandoffEnabledPostParams { - o.SetEnable(enable) - return o -} - -// SetEnable adds the enable to the storage proxy hinted handoff enabled post params -func (o *StorageProxyHintedHandoffEnabledPostParams) SetEnable(enable bool) { - o.Enable = enable -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyHintedHandoffEnabledPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param enable - qrEnable := o.Enable - qEnable := swag.FormatBool(qrEnable) - if qEnable != "" { - if err := r.SetQueryParam("enable", qEnable); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_post_responses.go deleted file mode 100644 index deabfc55c7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hinted_handoff_enabled_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyHintedHandoffEnabledPostReader is a Reader for the StorageProxyHintedHandoffEnabledPost structure. -type StorageProxyHintedHandoffEnabledPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyHintedHandoffEnabledPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyHintedHandoffEnabledPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyHintedHandoffEnabledPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyHintedHandoffEnabledPostOK creates a StorageProxyHintedHandoffEnabledPostOK with default headers values -func NewStorageProxyHintedHandoffEnabledPostOK() *StorageProxyHintedHandoffEnabledPostOK { - return &StorageProxyHintedHandoffEnabledPostOK{} -} - -/* -StorageProxyHintedHandoffEnabledPostOK handles this case with default header values. - -Success -*/ -type StorageProxyHintedHandoffEnabledPostOK struct { -} - -func (o *StorageProxyHintedHandoffEnabledPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyHintedHandoffEnabledPostDefault creates a StorageProxyHintedHandoffEnabledPostDefault with default headers values -func NewStorageProxyHintedHandoffEnabledPostDefault(code int) *StorageProxyHintedHandoffEnabledPostDefault { - return &StorageProxyHintedHandoffEnabledPostDefault{ - _statusCode: code, - } -} - -/* -StorageProxyHintedHandoffEnabledPostDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyHintedHandoffEnabledPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy hinted handoff enabled post default response -func (o *StorageProxyHintedHandoffEnabledPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyHintedHandoffEnabledPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyHintedHandoffEnabledPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyHintedHandoffEnabledPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hints_in_progress_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hints_in_progress_get_parameters.go deleted file mode 100644 index 67ca192613..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hints_in_progress_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyHintsInProgressGetParams creates a new StorageProxyHintsInProgressGetParams object -// with the default values initialized. -func NewStorageProxyHintsInProgressGetParams() *StorageProxyHintsInProgressGetParams { - - return &StorageProxyHintsInProgressGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyHintsInProgressGetParamsWithTimeout creates a new StorageProxyHintsInProgressGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyHintsInProgressGetParamsWithTimeout(timeout time.Duration) *StorageProxyHintsInProgressGetParams { - - return &StorageProxyHintsInProgressGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyHintsInProgressGetParamsWithContext creates a new StorageProxyHintsInProgressGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyHintsInProgressGetParamsWithContext(ctx context.Context) *StorageProxyHintsInProgressGetParams { - - return &StorageProxyHintsInProgressGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyHintsInProgressGetParamsWithHTTPClient creates a new StorageProxyHintsInProgressGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyHintsInProgressGetParamsWithHTTPClient(client *http.Client) *StorageProxyHintsInProgressGetParams { - - return &StorageProxyHintsInProgressGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyHintsInProgressGetParams contains all the parameters to send to the API endpoint -for the storage proxy hints in progress get operation typically these are written to a http.Request -*/ -type StorageProxyHintsInProgressGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy hints in progress get params -func (o *StorageProxyHintsInProgressGetParams) WithTimeout(timeout time.Duration) *StorageProxyHintsInProgressGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy hints in progress get params -func (o *StorageProxyHintsInProgressGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy hints in progress get params -func (o *StorageProxyHintsInProgressGetParams) WithContext(ctx context.Context) *StorageProxyHintsInProgressGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy hints in progress get params -func (o *StorageProxyHintsInProgressGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy hints in progress get params -func (o *StorageProxyHintsInProgressGetParams) WithHTTPClient(client *http.Client) *StorageProxyHintsInProgressGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy hints in progress get params -func (o *StorageProxyHintsInProgressGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyHintsInProgressGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hints_in_progress_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hints_in_progress_get_responses.go deleted file mode 100644 index 7919780b84..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_hints_in_progress_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyHintsInProgressGetReader is a Reader for the StorageProxyHintsInProgressGet structure. -type StorageProxyHintsInProgressGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyHintsInProgressGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyHintsInProgressGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyHintsInProgressGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyHintsInProgressGetOK creates a StorageProxyHintsInProgressGetOK with default headers values -func NewStorageProxyHintsInProgressGetOK() *StorageProxyHintsInProgressGetOK { - return &StorageProxyHintsInProgressGetOK{} -} - -/* -StorageProxyHintsInProgressGetOK handles this case with default header values. - -Success -*/ -type StorageProxyHintsInProgressGetOK struct { - Payload int32 -} - -func (o *StorageProxyHintsInProgressGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageProxyHintsInProgressGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyHintsInProgressGetDefault creates a StorageProxyHintsInProgressGetDefault with default headers values -func NewStorageProxyHintsInProgressGetDefault(code int) *StorageProxyHintsInProgressGetDefault { - return &StorageProxyHintsInProgressGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyHintsInProgressGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyHintsInProgressGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy hints in progress get default response -func (o *StorageProxyHintsInProgressGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyHintsInProgressGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyHintsInProgressGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyHintsInProgressGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hint_window_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hint_window_get_parameters.go deleted file mode 100644 index 2afac1eb53..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hint_window_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMaxHintWindowGetParams creates a new StorageProxyMaxHintWindowGetParams object -// with the default values initialized. -func NewStorageProxyMaxHintWindowGetParams() *StorageProxyMaxHintWindowGetParams { - - return &StorageProxyMaxHintWindowGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMaxHintWindowGetParamsWithTimeout creates a new StorageProxyMaxHintWindowGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMaxHintWindowGetParamsWithTimeout(timeout time.Duration) *StorageProxyMaxHintWindowGetParams { - - return &StorageProxyMaxHintWindowGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMaxHintWindowGetParamsWithContext creates a new StorageProxyMaxHintWindowGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMaxHintWindowGetParamsWithContext(ctx context.Context) *StorageProxyMaxHintWindowGetParams { - - return &StorageProxyMaxHintWindowGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMaxHintWindowGetParamsWithHTTPClient creates a new StorageProxyMaxHintWindowGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMaxHintWindowGetParamsWithHTTPClient(client *http.Client) *StorageProxyMaxHintWindowGetParams { - - return &StorageProxyMaxHintWindowGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMaxHintWindowGetParams contains all the parameters to send to the API endpoint -for the storage proxy max hint window get operation typically these are written to a http.Request -*/ -type StorageProxyMaxHintWindowGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy max hint window get params -func (o *StorageProxyMaxHintWindowGetParams) WithTimeout(timeout time.Duration) *StorageProxyMaxHintWindowGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy max hint window get params -func (o *StorageProxyMaxHintWindowGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy max hint window get params -func (o *StorageProxyMaxHintWindowGetParams) WithContext(ctx context.Context) *StorageProxyMaxHintWindowGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy max hint window get params -func (o *StorageProxyMaxHintWindowGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy max hint window get params -func (o *StorageProxyMaxHintWindowGetParams) WithHTTPClient(client *http.Client) *StorageProxyMaxHintWindowGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy max hint window get params -func (o *StorageProxyMaxHintWindowGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMaxHintWindowGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hint_window_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hint_window_get_responses.go deleted file mode 100644 index d169895cfc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hint_window_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMaxHintWindowGetReader is a Reader for the StorageProxyMaxHintWindowGet structure. -type StorageProxyMaxHintWindowGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMaxHintWindowGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMaxHintWindowGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMaxHintWindowGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMaxHintWindowGetOK creates a StorageProxyMaxHintWindowGetOK with default headers values -func NewStorageProxyMaxHintWindowGetOK() *StorageProxyMaxHintWindowGetOK { - return &StorageProxyMaxHintWindowGetOK{} -} - -/* -StorageProxyMaxHintWindowGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMaxHintWindowGetOK struct { - Payload int32 -} - -func (o *StorageProxyMaxHintWindowGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageProxyMaxHintWindowGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMaxHintWindowGetDefault creates a StorageProxyMaxHintWindowGetDefault with default headers values -func NewStorageProxyMaxHintWindowGetDefault(code int) *StorageProxyMaxHintWindowGetDefault { - return &StorageProxyMaxHintWindowGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMaxHintWindowGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMaxHintWindowGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy max hint window get default response -func (o *StorageProxyMaxHintWindowGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMaxHintWindowGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMaxHintWindowGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMaxHintWindowGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hint_window_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hint_window_post_parameters.go deleted file mode 100644 index 1408e025c6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hint_window_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageProxyMaxHintWindowPostParams creates a new StorageProxyMaxHintWindowPostParams object -// with the default values initialized. -func NewStorageProxyMaxHintWindowPostParams() *StorageProxyMaxHintWindowPostParams { - var () - return &StorageProxyMaxHintWindowPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMaxHintWindowPostParamsWithTimeout creates a new StorageProxyMaxHintWindowPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMaxHintWindowPostParamsWithTimeout(timeout time.Duration) *StorageProxyMaxHintWindowPostParams { - var () - return &StorageProxyMaxHintWindowPostParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMaxHintWindowPostParamsWithContext creates a new StorageProxyMaxHintWindowPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMaxHintWindowPostParamsWithContext(ctx context.Context) *StorageProxyMaxHintWindowPostParams { - var () - return &StorageProxyMaxHintWindowPostParams{ - - Context: ctx, - } -} - -// NewStorageProxyMaxHintWindowPostParamsWithHTTPClient creates a new StorageProxyMaxHintWindowPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMaxHintWindowPostParamsWithHTTPClient(client *http.Client) *StorageProxyMaxHintWindowPostParams { - var () - return &StorageProxyMaxHintWindowPostParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMaxHintWindowPostParams contains all the parameters to send to the API endpoint -for the storage proxy max hint window post operation typically these are written to a http.Request -*/ -type StorageProxyMaxHintWindowPostParams struct { - - /*Ms - max hint window in ms - - */ - Ms int32 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy max hint window post params -func (o *StorageProxyMaxHintWindowPostParams) WithTimeout(timeout time.Duration) *StorageProxyMaxHintWindowPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy max hint window post params -func (o *StorageProxyMaxHintWindowPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy max hint window post params -func (o *StorageProxyMaxHintWindowPostParams) WithContext(ctx context.Context) *StorageProxyMaxHintWindowPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy max hint window post params -func (o *StorageProxyMaxHintWindowPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy max hint window post params -func (o *StorageProxyMaxHintWindowPostParams) WithHTTPClient(client *http.Client) *StorageProxyMaxHintWindowPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy max hint window post params -func (o *StorageProxyMaxHintWindowPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithMs adds the ms to the storage proxy max hint window post params -func (o *StorageProxyMaxHintWindowPostParams) WithMs(ms int32) *StorageProxyMaxHintWindowPostParams { - o.SetMs(ms) - return o -} - -// SetMs adds the ms to the storage proxy max hint window post params -func (o *StorageProxyMaxHintWindowPostParams) SetMs(ms int32) { - o.Ms = ms -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMaxHintWindowPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param ms - qrMs := o.Ms - qMs := swag.FormatInt32(qrMs) - if qMs != "" { - if err := r.SetQueryParam("ms", qMs); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hint_window_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hint_window_post_responses.go deleted file mode 100644 index 7d9e899ddd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hint_window_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMaxHintWindowPostReader is a Reader for the StorageProxyMaxHintWindowPost structure. -type StorageProxyMaxHintWindowPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMaxHintWindowPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMaxHintWindowPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMaxHintWindowPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMaxHintWindowPostOK creates a StorageProxyMaxHintWindowPostOK with default headers values -func NewStorageProxyMaxHintWindowPostOK() *StorageProxyMaxHintWindowPostOK { - return &StorageProxyMaxHintWindowPostOK{} -} - -/* -StorageProxyMaxHintWindowPostOK handles this case with default header values. - -Success -*/ -type StorageProxyMaxHintWindowPostOK struct { -} - -func (o *StorageProxyMaxHintWindowPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyMaxHintWindowPostDefault creates a StorageProxyMaxHintWindowPostDefault with default headers values -func NewStorageProxyMaxHintWindowPostDefault(code int) *StorageProxyMaxHintWindowPostDefault { - return &StorageProxyMaxHintWindowPostDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMaxHintWindowPostDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMaxHintWindowPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy max hint window post default response -func (o *StorageProxyMaxHintWindowPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMaxHintWindowPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMaxHintWindowPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMaxHintWindowPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hints_in_progress_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hints_in_progress_get_parameters.go deleted file mode 100644 index 4d8d88177f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hints_in_progress_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMaxHintsInProgressGetParams creates a new StorageProxyMaxHintsInProgressGetParams object -// with the default values initialized. -func NewStorageProxyMaxHintsInProgressGetParams() *StorageProxyMaxHintsInProgressGetParams { - - return &StorageProxyMaxHintsInProgressGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMaxHintsInProgressGetParamsWithTimeout creates a new StorageProxyMaxHintsInProgressGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMaxHintsInProgressGetParamsWithTimeout(timeout time.Duration) *StorageProxyMaxHintsInProgressGetParams { - - return &StorageProxyMaxHintsInProgressGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMaxHintsInProgressGetParamsWithContext creates a new StorageProxyMaxHintsInProgressGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMaxHintsInProgressGetParamsWithContext(ctx context.Context) *StorageProxyMaxHintsInProgressGetParams { - - return &StorageProxyMaxHintsInProgressGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMaxHintsInProgressGetParamsWithHTTPClient creates a new StorageProxyMaxHintsInProgressGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMaxHintsInProgressGetParamsWithHTTPClient(client *http.Client) *StorageProxyMaxHintsInProgressGetParams { - - return &StorageProxyMaxHintsInProgressGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMaxHintsInProgressGetParams contains all the parameters to send to the API endpoint -for the storage proxy max hints in progress get operation typically these are written to a http.Request -*/ -type StorageProxyMaxHintsInProgressGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy max hints in progress get params -func (o *StorageProxyMaxHintsInProgressGetParams) WithTimeout(timeout time.Duration) *StorageProxyMaxHintsInProgressGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy max hints in progress get params -func (o *StorageProxyMaxHintsInProgressGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy max hints in progress get params -func (o *StorageProxyMaxHintsInProgressGetParams) WithContext(ctx context.Context) *StorageProxyMaxHintsInProgressGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy max hints in progress get params -func (o *StorageProxyMaxHintsInProgressGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy max hints in progress get params -func (o *StorageProxyMaxHintsInProgressGetParams) WithHTTPClient(client *http.Client) *StorageProxyMaxHintsInProgressGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy max hints in progress get params -func (o *StorageProxyMaxHintsInProgressGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMaxHintsInProgressGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hints_in_progress_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hints_in_progress_get_responses.go deleted file mode 100644 index 4934ed8e4d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hints_in_progress_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMaxHintsInProgressGetReader is a Reader for the StorageProxyMaxHintsInProgressGet structure. -type StorageProxyMaxHintsInProgressGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMaxHintsInProgressGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMaxHintsInProgressGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMaxHintsInProgressGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMaxHintsInProgressGetOK creates a StorageProxyMaxHintsInProgressGetOK with default headers values -func NewStorageProxyMaxHintsInProgressGetOK() *StorageProxyMaxHintsInProgressGetOK { - return &StorageProxyMaxHintsInProgressGetOK{} -} - -/* -StorageProxyMaxHintsInProgressGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMaxHintsInProgressGetOK struct { - Payload int32 -} - -func (o *StorageProxyMaxHintsInProgressGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageProxyMaxHintsInProgressGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMaxHintsInProgressGetDefault creates a StorageProxyMaxHintsInProgressGetDefault with default headers values -func NewStorageProxyMaxHintsInProgressGetDefault(code int) *StorageProxyMaxHintsInProgressGetDefault { - return &StorageProxyMaxHintsInProgressGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMaxHintsInProgressGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMaxHintsInProgressGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy max hints in progress get default response -func (o *StorageProxyMaxHintsInProgressGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMaxHintsInProgressGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMaxHintsInProgressGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMaxHintsInProgressGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hints_in_progress_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hints_in_progress_post_parameters.go deleted file mode 100644 index 28290d47e2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hints_in_progress_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageProxyMaxHintsInProgressPostParams creates a new StorageProxyMaxHintsInProgressPostParams object -// with the default values initialized. -func NewStorageProxyMaxHintsInProgressPostParams() *StorageProxyMaxHintsInProgressPostParams { - var () - return &StorageProxyMaxHintsInProgressPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMaxHintsInProgressPostParamsWithTimeout creates a new StorageProxyMaxHintsInProgressPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMaxHintsInProgressPostParamsWithTimeout(timeout time.Duration) *StorageProxyMaxHintsInProgressPostParams { - var () - return &StorageProxyMaxHintsInProgressPostParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMaxHintsInProgressPostParamsWithContext creates a new StorageProxyMaxHintsInProgressPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMaxHintsInProgressPostParamsWithContext(ctx context.Context) *StorageProxyMaxHintsInProgressPostParams { - var () - return &StorageProxyMaxHintsInProgressPostParams{ - - Context: ctx, - } -} - -// NewStorageProxyMaxHintsInProgressPostParamsWithHTTPClient creates a new StorageProxyMaxHintsInProgressPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMaxHintsInProgressPostParamsWithHTTPClient(client *http.Client) *StorageProxyMaxHintsInProgressPostParams { - var () - return &StorageProxyMaxHintsInProgressPostParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMaxHintsInProgressPostParams contains all the parameters to send to the API endpoint -for the storage proxy max hints in progress post operation typically these are written to a http.Request -*/ -type StorageProxyMaxHintsInProgressPostParams struct { - - /*Qs - max hints in progress - - */ - Qs int32 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy max hints in progress post params -func (o *StorageProxyMaxHintsInProgressPostParams) WithTimeout(timeout time.Duration) *StorageProxyMaxHintsInProgressPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy max hints in progress post params -func (o *StorageProxyMaxHintsInProgressPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy max hints in progress post params -func (o *StorageProxyMaxHintsInProgressPostParams) WithContext(ctx context.Context) *StorageProxyMaxHintsInProgressPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy max hints in progress post params -func (o *StorageProxyMaxHintsInProgressPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy max hints in progress post params -func (o *StorageProxyMaxHintsInProgressPostParams) WithHTTPClient(client *http.Client) *StorageProxyMaxHintsInProgressPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy max hints in progress post params -func (o *StorageProxyMaxHintsInProgressPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithQs adds the qs to the storage proxy max hints in progress post params -func (o *StorageProxyMaxHintsInProgressPostParams) WithQs(qs int32) *StorageProxyMaxHintsInProgressPostParams { - o.SetQs(qs) - return o -} - -// SetQs adds the qs to the storage proxy max hints in progress post params -func (o *StorageProxyMaxHintsInProgressPostParams) SetQs(qs int32) { - o.Qs = qs -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMaxHintsInProgressPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param qs - qrQs := o.Qs - qQs := swag.FormatInt32(qrQs) - if qQs != "" { - if err := r.SetQueryParam("qs", qQs); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hints_in_progress_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hints_in_progress_post_responses.go deleted file mode 100644 index 48fd75d2e6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_max_hints_in_progress_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMaxHintsInProgressPostReader is a Reader for the StorageProxyMaxHintsInProgressPost structure. -type StorageProxyMaxHintsInProgressPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMaxHintsInProgressPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMaxHintsInProgressPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMaxHintsInProgressPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMaxHintsInProgressPostOK creates a StorageProxyMaxHintsInProgressPostOK with default headers values -func NewStorageProxyMaxHintsInProgressPostOK() *StorageProxyMaxHintsInProgressPostOK { - return &StorageProxyMaxHintsInProgressPostOK{} -} - -/* -StorageProxyMaxHintsInProgressPostOK handles this case with default header values. - -Success -*/ -type StorageProxyMaxHintsInProgressPostOK struct { -} - -func (o *StorageProxyMaxHintsInProgressPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyMaxHintsInProgressPostDefault creates a StorageProxyMaxHintsInProgressPostDefault with default headers values -func NewStorageProxyMaxHintsInProgressPostDefault(code int) *StorageProxyMaxHintsInProgressPostDefault { - return &StorageProxyMaxHintsInProgressPostDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMaxHintsInProgressPostDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMaxHintsInProgressPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy max hints in progress post default response -func (o *StorageProxyMaxHintsInProgressPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMaxHintsInProgressPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMaxHintsInProgressPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMaxHintsInProgressPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_condition_not_met_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_condition_not_met_get_parameters.go deleted file mode 100644 index 862c13e9fd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_condition_not_met_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsCasReadConditionNotMetGetParams creates a new StorageProxyMetricsCasReadConditionNotMetGetParams object -// with the default values initialized. -func NewStorageProxyMetricsCasReadConditionNotMetGetParams() *StorageProxyMetricsCasReadConditionNotMetGetParams { - - return &StorageProxyMetricsCasReadConditionNotMetGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsCasReadConditionNotMetGetParamsWithTimeout creates a new StorageProxyMetricsCasReadConditionNotMetGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsCasReadConditionNotMetGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsCasReadConditionNotMetGetParams { - - return &StorageProxyMetricsCasReadConditionNotMetGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsCasReadConditionNotMetGetParamsWithContext creates a new StorageProxyMetricsCasReadConditionNotMetGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsCasReadConditionNotMetGetParamsWithContext(ctx context.Context) *StorageProxyMetricsCasReadConditionNotMetGetParams { - - return &StorageProxyMetricsCasReadConditionNotMetGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsCasReadConditionNotMetGetParamsWithHTTPClient creates a new StorageProxyMetricsCasReadConditionNotMetGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsCasReadConditionNotMetGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsCasReadConditionNotMetGetParams { - - return &StorageProxyMetricsCasReadConditionNotMetGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsCasReadConditionNotMetGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics cas read condition not met get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsCasReadConditionNotMetGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics cas read condition not met get params -func (o *StorageProxyMetricsCasReadConditionNotMetGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsCasReadConditionNotMetGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics cas read condition not met get params -func (o *StorageProxyMetricsCasReadConditionNotMetGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics cas read condition not met get params -func (o *StorageProxyMetricsCasReadConditionNotMetGetParams) WithContext(ctx context.Context) *StorageProxyMetricsCasReadConditionNotMetGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics cas read condition not met get params -func (o *StorageProxyMetricsCasReadConditionNotMetGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics cas read condition not met get params -func (o *StorageProxyMetricsCasReadConditionNotMetGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsCasReadConditionNotMetGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics cas read condition not met get params -func (o *StorageProxyMetricsCasReadConditionNotMetGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsCasReadConditionNotMetGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_condition_not_met_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_condition_not_met_get_responses.go deleted file mode 100644 index 145884503f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_condition_not_met_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsCasReadConditionNotMetGetReader is a Reader for the StorageProxyMetricsCasReadConditionNotMetGet structure. -type StorageProxyMetricsCasReadConditionNotMetGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsCasReadConditionNotMetGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsCasReadConditionNotMetGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsCasReadConditionNotMetGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsCasReadConditionNotMetGetOK creates a StorageProxyMetricsCasReadConditionNotMetGetOK with default headers values -func NewStorageProxyMetricsCasReadConditionNotMetGetOK() *StorageProxyMetricsCasReadConditionNotMetGetOK { - return &StorageProxyMetricsCasReadConditionNotMetGetOK{} -} - -/* -StorageProxyMetricsCasReadConditionNotMetGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsCasReadConditionNotMetGetOK struct { - Payload int32 -} - -func (o *StorageProxyMetricsCasReadConditionNotMetGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageProxyMetricsCasReadConditionNotMetGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsCasReadConditionNotMetGetDefault creates a StorageProxyMetricsCasReadConditionNotMetGetDefault with default headers values -func NewStorageProxyMetricsCasReadConditionNotMetGetDefault(code int) *StorageProxyMetricsCasReadConditionNotMetGetDefault { - return &StorageProxyMetricsCasReadConditionNotMetGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsCasReadConditionNotMetGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsCasReadConditionNotMetGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics cas read condition not met get default response -func (o *StorageProxyMetricsCasReadConditionNotMetGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsCasReadConditionNotMetGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsCasReadConditionNotMetGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsCasReadConditionNotMetGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_contention_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_contention_get_parameters.go deleted file mode 100644 index 11ed956dbd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_contention_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsCasReadContentionGetParams creates a new StorageProxyMetricsCasReadContentionGetParams object -// with the default values initialized. -func NewStorageProxyMetricsCasReadContentionGetParams() *StorageProxyMetricsCasReadContentionGetParams { - - return &StorageProxyMetricsCasReadContentionGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsCasReadContentionGetParamsWithTimeout creates a new StorageProxyMetricsCasReadContentionGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsCasReadContentionGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsCasReadContentionGetParams { - - return &StorageProxyMetricsCasReadContentionGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsCasReadContentionGetParamsWithContext creates a new StorageProxyMetricsCasReadContentionGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsCasReadContentionGetParamsWithContext(ctx context.Context) *StorageProxyMetricsCasReadContentionGetParams { - - return &StorageProxyMetricsCasReadContentionGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsCasReadContentionGetParamsWithHTTPClient creates a new StorageProxyMetricsCasReadContentionGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsCasReadContentionGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsCasReadContentionGetParams { - - return &StorageProxyMetricsCasReadContentionGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsCasReadContentionGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics cas read contention get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsCasReadContentionGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics cas read contention get params -func (o *StorageProxyMetricsCasReadContentionGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsCasReadContentionGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics cas read contention get params -func (o *StorageProxyMetricsCasReadContentionGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics cas read contention get params -func (o *StorageProxyMetricsCasReadContentionGetParams) WithContext(ctx context.Context) *StorageProxyMetricsCasReadContentionGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics cas read contention get params -func (o *StorageProxyMetricsCasReadContentionGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics cas read contention get params -func (o *StorageProxyMetricsCasReadContentionGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsCasReadContentionGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics cas read contention get params -func (o *StorageProxyMetricsCasReadContentionGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsCasReadContentionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_contention_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_contention_get_responses.go deleted file mode 100644 index d1ecf53072..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_contention_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsCasReadContentionGetReader is a Reader for the StorageProxyMetricsCasReadContentionGet structure. -type StorageProxyMetricsCasReadContentionGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsCasReadContentionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsCasReadContentionGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsCasReadContentionGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsCasReadContentionGetOK creates a StorageProxyMetricsCasReadContentionGetOK with default headers values -func NewStorageProxyMetricsCasReadContentionGetOK() *StorageProxyMetricsCasReadContentionGetOK { - return &StorageProxyMetricsCasReadContentionGetOK{} -} - -/* -StorageProxyMetricsCasReadContentionGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsCasReadContentionGetOK struct { - Payload interface{} -} - -func (o *StorageProxyMetricsCasReadContentionGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageProxyMetricsCasReadContentionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsCasReadContentionGetDefault creates a StorageProxyMetricsCasReadContentionGetDefault with default headers values -func NewStorageProxyMetricsCasReadContentionGetDefault(code int) *StorageProxyMetricsCasReadContentionGetDefault { - return &StorageProxyMetricsCasReadContentionGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsCasReadContentionGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsCasReadContentionGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics cas read contention get default response -func (o *StorageProxyMetricsCasReadContentionGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsCasReadContentionGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsCasReadContentionGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsCasReadContentionGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_timeouts_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_timeouts_get_parameters.go deleted file mode 100644 index f06b69f780..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_timeouts_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsCasReadTimeoutsGetParams creates a new StorageProxyMetricsCasReadTimeoutsGetParams object -// with the default values initialized. -func NewStorageProxyMetricsCasReadTimeoutsGetParams() *StorageProxyMetricsCasReadTimeoutsGetParams { - - return &StorageProxyMetricsCasReadTimeoutsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsCasReadTimeoutsGetParamsWithTimeout creates a new StorageProxyMetricsCasReadTimeoutsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsCasReadTimeoutsGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsCasReadTimeoutsGetParams { - - return &StorageProxyMetricsCasReadTimeoutsGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsCasReadTimeoutsGetParamsWithContext creates a new StorageProxyMetricsCasReadTimeoutsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsCasReadTimeoutsGetParamsWithContext(ctx context.Context) *StorageProxyMetricsCasReadTimeoutsGetParams { - - return &StorageProxyMetricsCasReadTimeoutsGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsCasReadTimeoutsGetParamsWithHTTPClient creates a new StorageProxyMetricsCasReadTimeoutsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsCasReadTimeoutsGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsCasReadTimeoutsGetParams { - - return &StorageProxyMetricsCasReadTimeoutsGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsCasReadTimeoutsGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics cas read timeouts get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsCasReadTimeoutsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics cas read timeouts get params -func (o *StorageProxyMetricsCasReadTimeoutsGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsCasReadTimeoutsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics cas read timeouts get params -func (o *StorageProxyMetricsCasReadTimeoutsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics cas read timeouts get params -func (o *StorageProxyMetricsCasReadTimeoutsGetParams) WithContext(ctx context.Context) *StorageProxyMetricsCasReadTimeoutsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics cas read timeouts get params -func (o *StorageProxyMetricsCasReadTimeoutsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics cas read timeouts get params -func (o *StorageProxyMetricsCasReadTimeoutsGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsCasReadTimeoutsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics cas read timeouts get params -func (o *StorageProxyMetricsCasReadTimeoutsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsCasReadTimeoutsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_timeouts_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_timeouts_get_responses.go deleted file mode 100644 index 40cd00e458..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_timeouts_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsCasReadTimeoutsGetReader is a Reader for the StorageProxyMetricsCasReadTimeoutsGet structure. -type StorageProxyMetricsCasReadTimeoutsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsCasReadTimeoutsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsCasReadTimeoutsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsCasReadTimeoutsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsCasReadTimeoutsGetOK creates a StorageProxyMetricsCasReadTimeoutsGetOK with default headers values -func NewStorageProxyMetricsCasReadTimeoutsGetOK() *StorageProxyMetricsCasReadTimeoutsGetOK { - return &StorageProxyMetricsCasReadTimeoutsGetOK{} -} - -/* -StorageProxyMetricsCasReadTimeoutsGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsCasReadTimeoutsGetOK struct { - Payload interface{} -} - -func (o *StorageProxyMetricsCasReadTimeoutsGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageProxyMetricsCasReadTimeoutsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsCasReadTimeoutsGetDefault creates a StorageProxyMetricsCasReadTimeoutsGetDefault with default headers values -func NewStorageProxyMetricsCasReadTimeoutsGetDefault(code int) *StorageProxyMetricsCasReadTimeoutsGetDefault { - return &StorageProxyMetricsCasReadTimeoutsGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsCasReadTimeoutsGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsCasReadTimeoutsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics cas read timeouts get default response -func (o *StorageProxyMetricsCasReadTimeoutsGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsCasReadTimeoutsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsCasReadTimeoutsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsCasReadTimeoutsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_unavailables_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_unavailables_get_parameters.go deleted file mode 100644 index b5cd01c56c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_unavailables_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsCasReadUnavailablesGetParams creates a new StorageProxyMetricsCasReadUnavailablesGetParams object -// with the default values initialized. -func NewStorageProxyMetricsCasReadUnavailablesGetParams() *StorageProxyMetricsCasReadUnavailablesGetParams { - - return &StorageProxyMetricsCasReadUnavailablesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsCasReadUnavailablesGetParamsWithTimeout creates a new StorageProxyMetricsCasReadUnavailablesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsCasReadUnavailablesGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsCasReadUnavailablesGetParams { - - return &StorageProxyMetricsCasReadUnavailablesGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsCasReadUnavailablesGetParamsWithContext creates a new StorageProxyMetricsCasReadUnavailablesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsCasReadUnavailablesGetParamsWithContext(ctx context.Context) *StorageProxyMetricsCasReadUnavailablesGetParams { - - return &StorageProxyMetricsCasReadUnavailablesGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsCasReadUnavailablesGetParamsWithHTTPClient creates a new StorageProxyMetricsCasReadUnavailablesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsCasReadUnavailablesGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsCasReadUnavailablesGetParams { - - return &StorageProxyMetricsCasReadUnavailablesGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsCasReadUnavailablesGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics cas read unavailables get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsCasReadUnavailablesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics cas read unavailables get params -func (o *StorageProxyMetricsCasReadUnavailablesGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsCasReadUnavailablesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics cas read unavailables get params -func (o *StorageProxyMetricsCasReadUnavailablesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics cas read unavailables get params -func (o *StorageProxyMetricsCasReadUnavailablesGetParams) WithContext(ctx context.Context) *StorageProxyMetricsCasReadUnavailablesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics cas read unavailables get params -func (o *StorageProxyMetricsCasReadUnavailablesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics cas read unavailables get params -func (o *StorageProxyMetricsCasReadUnavailablesGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsCasReadUnavailablesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics cas read unavailables get params -func (o *StorageProxyMetricsCasReadUnavailablesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsCasReadUnavailablesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_unavailables_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_unavailables_get_responses.go deleted file mode 100644 index e92b86d14c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_unavailables_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsCasReadUnavailablesGetReader is a Reader for the StorageProxyMetricsCasReadUnavailablesGet structure. -type StorageProxyMetricsCasReadUnavailablesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsCasReadUnavailablesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsCasReadUnavailablesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsCasReadUnavailablesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsCasReadUnavailablesGetOK creates a StorageProxyMetricsCasReadUnavailablesGetOK with default headers values -func NewStorageProxyMetricsCasReadUnavailablesGetOK() *StorageProxyMetricsCasReadUnavailablesGetOK { - return &StorageProxyMetricsCasReadUnavailablesGetOK{} -} - -/* -StorageProxyMetricsCasReadUnavailablesGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsCasReadUnavailablesGetOK struct { - Payload interface{} -} - -func (o *StorageProxyMetricsCasReadUnavailablesGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageProxyMetricsCasReadUnavailablesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsCasReadUnavailablesGetDefault creates a StorageProxyMetricsCasReadUnavailablesGetDefault with default headers values -func NewStorageProxyMetricsCasReadUnavailablesGetDefault(code int) *StorageProxyMetricsCasReadUnavailablesGetDefault { - return &StorageProxyMetricsCasReadUnavailablesGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsCasReadUnavailablesGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsCasReadUnavailablesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics cas read unavailables get default response -func (o *StorageProxyMetricsCasReadUnavailablesGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsCasReadUnavailablesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsCasReadUnavailablesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsCasReadUnavailablesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_unfinished_commit_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_unfinished_commit_get_parameters.go deleted file mode 100644 index f08ddddbf8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_unfinished_commit_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsCasReadUnfinishedCommitGetParams creates a new StorageProxyMetricsCasReadUnfinishedCommitGetParams object -// with the default values initialized. -func NewStorageProxyMetricsCasReadUnfinishedCommitGetParams() *StorageProxyMetricsCasReadUnfinishedCommitGetParams { - - return &StorageProxyMetricsCasReadUnfinishedCommitGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsCasReadUnfinishedCommitGetParamsWithTimeout creates a new StorageProxyMetricsCasReadUnfinishedCommitGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsCasReadUnfinishedCommitGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsCasReadUnfinishedCommitGetParams { - - return &StorageProxyMetricsCasReadUnfinishedCommitGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsCasReadUnfinishedCommitGetParamsWithContext creates a new StorageProxyMetricsCasReadUnfinishedCommitGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsCasReadUnfinishedCommitGetParamsWithContext(ctx context.Context) *StorageProxyMetricsCasReadUnfinishedCommitGetParams { - - return &StorageProxyMetricsCasReadUnfinishedCommitGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsCasReadUnfinishedCommitGetParamsWithHTTPClient creates a new StorageProxyMetricsCasReadUnfinishedCommitGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsCasReadUnfinishedCommitGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsCasReadUnfinishedCommitGetParams { - - return &StorageProxyMetricsCasReadUnfinishedCommitGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsCasReadUnfinishedCommitGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics cas read unfinished commit get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsCasReadUnfinishedCommitGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics cas read unfinished commit get params -func (o *StorageProxyMetricsCasReadUnfinishedCommitGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsCasReadUnfinishedCommitGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics cas read unfinished commit get params -func (o *StorageProxyMetricsCasReadUnfinishedCommitGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics cas read unfinished commit get params -func (o *StorageProxyMetricsCasReadUnfinishedCommitGetParams) WithContext(ctx context.Context) *StorageProxyMetricsCasReadUnfinishedCommitGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics cas read unfinished commit get params -func (o *StorageProxyMetricsCasReadUnfinishedCommitGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics cas read unfinished commit get params -func (o *StorageProxyMetricsCasReadUnfinishedCommitGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsCasReadUnfinishedCommitGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics cas read unfinished commit get params -func (o *StorageProxyMetricsCasReadUnfinishedCommitGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsCasReadUnfinishedCommitGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_unfinished_commit_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_unfinished_commit_get_responses.go deleted file mode 100644 index 116c57252f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_read_unfinished_commit_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsCasReadUnfinishedCommitGetReader is a Reader for the StorageProxyMetricsCasReadUnfinishedCommitGet structure. -type StorageProxyMetricsCasReadUnfinishedCommitGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsCasReadUnfinishedCommitGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsCasReadUnfinishedCommitGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsCasReadUnfinishedCommitGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsCasReadUnfinishedCommitGetOK creates a StorageProxyMetricsCasReadUnfinishedCommitGetOK with default headers values -func NewStorageProxyMetricsCasReadUnfinishedCommitGetOK() *StorageProxyMetricsCasReadUnfinishedCommitGetOK { - return &StorageProxyMetricsCasReadUnfinishedCommitGetOK{} -} - -/* -StorageProxyMetricsCasReadUnfinishedCommitGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsCasReadUnfinishedCommitGetOK struct { - Payload int32 -} - -func (o *StorageProxyMetricsCasReadUnfinishedCommitGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageProxyMetricsCasReadUnfinishedCommitGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsCasReadUnfinishedCommitGetDefault creates a StorageProxyMetricsCasReadUnfinishedCommitGetDefault with default headers values -func NewStorageProxyMetricsCasReadUnfinishedCommitGetDefault(code int) *StorageProxyMetricsCasReadUnfinishedCommitGetDefault { - return &StorageProxyMetricsCasReadUnfinishedCommitGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsCasReadUnfinishedCommitGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsCasReadUnfinishedCommitGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics cas read unfinished commit get default response -func (o *StorageProxyMetricsCasReadUnfinishedCommitGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsCasReadUnfinishedCommitGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsCasReadUnfinishedCommitGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsCasReadUnfinishedCommitGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_condition_not_met_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_condition_not_met_get_parameters.go deleted file mode 100644 index 2bf5732f14..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_condition_not_met_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsCasWriteConditionNotMetGetParams creates a new StorageProxyMetricsCasWriteConditionNotMetGetParams object -// with the default values initialized. -func NewStorageProxyMetricsCasWriteConditionNotMetGetParams() *StorageProxyMetricsCasWriteConditionNotMetGetParams { - - return &StorageProxyMetricsCasWriteConditionNotMetGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsCasWriteConditionNotMetGetParamsWithTimeout creates a new StorageProxyMetricsCasWriteConditionNotMetGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsCasWriteConditionNotMetGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsCasWriteConditionNotMetGetParams { - - return &StorageProxyMetricsCasWriteConditionNotMetGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsCasWriteConditionNotMetGetParamsWithContext creates a new StorageProxyMetricsCasWriteConditionNotMetGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsCasWriteConditionNotMetGetParamsWithContext(ctx context.Context) *StorageProxyMetricsCasWriteConditionNotMetGetParams { - - return &StorageProxyMetricsCasWriteConditionNotMetGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsCasWriteConditionNotMetGetParamsWithHTTPClient creates a new StorageProxyMetricsCasWriteConditionNotMetGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsCasWriteConditionNotMetGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsCasWriteConditionNotMetGetParams { - - return &StorageProxyMetricsCasWriteConditionNotMetGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsCasWriteConditionNotMetGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics cas write condition not met get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsCasWriteConditionNotMetGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics cas write condition not met get params -func (o *StorageProxyMetricsCasWriteConditionNotMetGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsCasWriteConditionNotMetGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics cas write condition not met get params -func (o *StorageProxyMetricsCasWriteConditionNotMetGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics cas write condition not met get params -func (o *StorageProxyMetricsCasWriteConditionNotMetGetParams) WithContext(ctx context.Context) *StorageProxyMetricsCasWriteConditionNotMetGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics cas write condition not met get params -func (o *StorageProxyMetricsCasWriteConditionNotMetGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics cas write condition not met get params -func (o *StorageProxyMetricsCasWriteConditionNotMetGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsCasWriteConditionNotMetGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics cas write condition not met get params -func (o *StorageProxyMetricsCasWriteConditionNotMetGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsCasWriteConditionNotMetGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_condition_not_met_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_condition_not_met_get_responses.go deleted file mode 100644 index 1cc05df719..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_condition_not_met_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsCasWriteConditionNotMetGetReader is a Reader for the StorageProxyMetricsCasWriteConditionNotMetGet structure. -type StorageProxyMetricsCasWriteConditionNotMetGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsCasWriteConditionNotMetGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsCasWriteConditionNotMetGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsCasWriteConditionNotMetGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsCasWriteConditionNotMetGetOK creates a StorageProxyMetricsCasWriteConditionNotMetGetOK with default headers values -func NewStorageProxyMetricsCasWriteConditionNotMetGetOK() *StorageProxyMetricsCasWriteConditionNotMetGetOK { - return &StorageProxyMetricsCasWriteConditionNotMetGetOK{} -} - -/* -StorageProxyMetricsCasWriteConditionNotMetGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsCasWriteConditionNotMetGetOK struct { - Payload int32 -} - -func (o *StorageProxyMetricsCasWriteConditionNotMetGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageProxyMetricsCasWriteConditionNotMetGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsCasWriteConditionNotMetGetDefault creates a StorageProxyMetricsCasWriteConditionNotMetGetDefault with default headers values -func NewStorageProxyMetricsCasWriteConditionNotMetGetDefault(code int) *StorageProxyMetricsCasWriteConditionNotMetGetDefault { - return &StorageProxyMetricsCasWriteConditionNotMetGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsCasWriteConditionNotMetGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsCasWriteConditionNotMetGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics cas write condition not met get default response -func (o *StorageProxyMetricsCasWriteConditionNotMetGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsCasWriteConditionNotMetGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsCasWriteConditionNotMetGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsCasWriteConditionNotMetGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_contention_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_contention_get_parameters.go deleted file mode 100644 index 9cbd1c97c3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_contention_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsCasWriteContentionGetParams creates a new StorageProxyMetricsCasWriteContentionGetParams object -// with the default values initialized. -func NewStorageProxyMetricsCasWriteContentionGetParams() *StorageProxyMetricsCasWriteContentionGetParams { - - return &StorageProxyMetricsCasWriteContentionGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsCasWriteContentionGetParamsWithTimeout creates a new StorageProxyMetricsCasWriteContentionGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsCasWriteContentionGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsCasWriteContentionGetParams { - - return &StorageProxyMetricsCasWriteContentionGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsCasWriteContentionGetParamsWithContext creates a new StorageProxyMetricsCasWriteContentionGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsCasWriteContentionGetParamsWithContext(ctx context.Context) *StorageProxyMetricsCasWriteContentionGetParams { - - return &StorageProxyMetricsCasWriteContentionGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsCasWriteContentionGetParamsWithHTTPClient creates a new StorageProxyMetricsCasWriteContentionGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsCasWriteContentionGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsCasWriteContentionGetParams { - - return &StorageProxyMetricsCasWriteContentionGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsCasWriteContentionGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics cas write contention get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsCasWriteContentionGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics cas write contention get params -func (o *StorageProxyMetricsCasWriteContentionGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsCasWriteContentionGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics cas write contention get params -func (o *StorageProxyMetricsCasWriteContentionGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics cas write contention get params -func (o *StorageProxyMetricsCasWriteContentionGetParams) WithContext(ctx context.Context) *StorageProxyMetricsCasWriteContentionGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics cas write contention get params -func (o *StorageProxyMetricsCasWriteContentionGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics cas write contention get params -func (o *StorageProxyMetricsCasWriteContentionGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsCasWriteContentionGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics cas write contention get params -func (o *StorageProxyMetricsCasWriteContentionGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsCasWriteContentionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_contention_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_contention_get_responses.go deleted file mode 100644 index 16474b2f05..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_contention_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsCasWriteContentionGetReader is a Reader for the StorageProxyMetricsCasWriteContentionGet structure. -type StorageProxyMetricsCasWriteContentionGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsCasWriteContentionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsCasWriteContentionGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsCasWriteContentionGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsCasWriteContentionGetOK creates a StorageProxyMetricsCasWriteContentionGetOK with default headers values -func NewStorageProxyMetricsCasWriteContentionGetOK() *StorageProxyMetricsCasWriteContentionGetOK { - return &StorageProxyMetricsCasWriteContentionGetOK{} -} - -/* -StorageProxyMetricsCasWriteContentionGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsCasWriteContentionGetOK struct { - Payload interface{} -} - -func (o *StorageProxyMetricsCasWriteContentionGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageProxyMetricsCasWriteContentionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsCasWriteContentionGetDefault creates a StorageProxyMetricsCasWriteContentionGetDefault with default headers values -func NewStorageProxyMetricsCasWriteContentionGetDefault(code int) *StorageProxyMetricsCasWriteContentionGetDefault { - return &StorageProxyMetricsCasWriteContentionGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsCasWriteContentionGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsCasWriteContentionGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics cas write contention get default response -func (o *StorageProxyMetricsCasWriteContentionGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsCasWriteContentionGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsCasWriteContentionGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsCasWriteContentionGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_timeouts_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_timeouts_get_parameters.go deleted file mode 100644 index 1f3a7021ea..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_timeouts_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsCasWriteTimeoutsGetParams creates a new StorageProxyMetricsCasWriteTimeoutsGetParams object -// with the default values initialized. -func NewStorageProxyMetricsCasWriteTimeoutsGetParams() *StorageProxyMetricsCasWriteTimeoutsGetParams { - - return &StorageProxyMetricsCasWriteTimeoutsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsCasWriteTimeoutsGetParamsWithTimeout creates a new StorageProxyMetricsCasWriteTimeoutsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsCasWriteTimeoutsGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsCasWriteTimeoutsGetParams { - - return &StorageProxyMetricsCasWriteTimeoutsGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsCasWriteTimeoutsGetParamsWithContext creates a new StorageProxyMetricsCasWriteTimeoutsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsCasWriteTimeoutsGetParamsWithContext(ctx context.Context) *StorageProxyMetricsCasWriteTimeoutsGetParams { - - return &StorageProxyMetricsCasWriteTimeoutsGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsCasWriteTimeoutsGetParamsWithHTTPClient creates a new StorageProxyMetricsCasWriteTimeoutsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsCasWriteTimeoutsGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsCasWriteTimeoutsGetParams { - - return &StorageProxyMetricsCasWriteTimeoutsGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsCasWriteTimeoutsGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics cas write timeouts get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsCasWriteTimeoutsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics cas write timeouts get params -func (o *StorageProxyMetricsCasWriteTimeoutsGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsCasWriteTimeoutsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics cas write timeouts get params -func (o *StorageProxyMetricsCasWriteTimeoutsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics cas write timeouts get params -func (o *StorageProxyMetricsCasWriteTimeoutsGetParams) WithContext(ctx context.Context) *StorageProxyMetricsCasWriteTimeoutsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics cas write timeouts get params -func (o *StorageProxyMetricsCasWriteTimeoutsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics cas write timeouts get params -func (o *StorageProxyMetricsCasWriteTimeoutsGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsCasWriteTimeoutsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics cas write timeouts get params -func (o *StorageProxyMetricsCasWriteTimeoutsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsCasWriteTimeoutsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_timeouts_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_timeouts_get_responses.go deleted file mode 100644 index caf3ff6b97..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_timeouts_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsCasWriteTimeoutsGetReader is a Reader for the StorageProxyMetricsCasWriteTimeoutsGet structure. -type StorageProxyMetricsCasWriteTimeoutsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsCasWriteTimeoutsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsCasWriteTimeoutsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsCasWriteTimeoutsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsCasWriteTimeoutsGetOK creates a StorageProxyMetricsCasWriteTimeoutsGetOK with default headers values -func NewStorageProxyMetricsCasWriteTimeoutsGetOK() *StorageProxyMetricsCasWriteTimeoutsGetOK { - return &StorageProxyMetricsCasWriteTimeoutsGetOK{} -} - -/* -StorageProxyMetricsCasWriteTimeoutsGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsCasWriteTimeoutsGetOK struct { - Payload interface{} -} - -func (o *StorageProxyMetricsCasWriteTimeoutsGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageProxyMetricsCasWriteTimeoutsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsCasWriteTimeoutsGetDefault creates a StorageProxyMetricsCasWriteTimeoutsGetDefault with default headers values -func NewStorageProxyMetricsCasWriteTimeoutsGetDefault(code int) *StorageProxyMetricsCasWriteTimeoutsGetDefault { - return &StorageProxyMetricsCasWriteTimeoutsGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsCasWriteTimeoutsGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsCasWriteTimeoutsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics cas write timeouts get default response -func (o *StorageProxyMetricsCasWriteTimeoutsGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsCasWriteTimeoutsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsCasWriteTimeoutsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsCasWriteTimeoutsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_unavailables_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_unavailables_get_parameters.go deleted file mode 100644 index 6b20d39355..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_unavailables_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsCasWriteUnavailablesGetParams creates a new StorageProxyMetricsCasWriteUnavailablesGetParams object -// with the default values initialized. -func NewStorageProxyMetricsCasWriteUnavailablesGetParams() *StorageProxyMetricsCasWriteUnavailablesGetParams { - - return &StorageProxyMetricsCasWriteUnavailablesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsCasWriteUnavailablesGetParamsWithTimeout creates a new StorageProxyMetricsCasWriteUnavailablesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsCasWriteUnavailablesGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsCasWriteUnavailablesGetParams { - - return &StorageProxyMetricsCasWriteUnavailablesGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsCasWriteUnavailablesGetParamsWithContext creates a new StorageProxyMetricsCasWriteUnavailablesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsCasWriteUnavailablesGetParamsWithContext(ctx context.Context) *StorageProxyMetricsCasWriteUnavailablesGetParams { - - return &StorageProxyMetricsCasWriteUnavailablesGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsCasWriteUnavailablesGetParamsWithHTTPClient creates a new StorageProxyMetricsCasWriteUnavailablesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsCasWriteUnavailablesGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsCasWriteUnavailablesGetParams { - - return &StorageProxyMetricsCasWriteUnavailablesGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsCasWriteUnavailablesGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics cas write unavailables get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsCasWriteUnavailablesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics cas write unavailables get params -func (o *StorageProxyMetricsCasWriteUnavailablesGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsCasWriteUnavailablesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics cas write unavailables get params -func (o *StorageProxyMetricsCasWriteUnavailablesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics cas write unavailables get params -func (o *StorageProxyMetricsCasWriteUnavailablesGetParams) WithContext(ctx context.Context) *StorageProxyMetricsCasWriteUnavailablesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics cas write unavailables get params -func (o *StorageProxyMetricsCasWriteUnavailablesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics cas write unavailables get params -func (o *StorageProxyMetricsCasWriteUnavailablesGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsCasWriteUnavailablesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics cas write unavailables get params -func (o *StorageProxyMetricsCasWriteUnavailablesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsCasWriteUnavailablesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_unavailables_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_unavailables_get_responses.go deleted file mode 100644 index 7469619bf1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_unavailables_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsCasWriteUnavailablesGetReader is a Reader for the StorageProxyMetricsCasWriteUnavailablesGet structure. -type StorageProxyMetricsCasWriteUnavailablesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsCasWriteUnavailablesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsCasWriteUnavailablesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsCasWriteUnavailablesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsCasWriteUnavailablesGetOK creates a StorageProxyMetricsCasWriteUnavailablesGetOK with default headers values -func NewStorageProxyMetricsCasWriteUnavailablesGetOK() *StorageProxyMetricsCasWriteUnavailablesGetOK { - return &StorageProxyMetricsCasWriteUnavailablesGetOK{} -} - -/* -StorageProxyMetricsCasWriteUnavailablesGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsCasWriteUnavailablesGetOK struct { - Payload interface{} -} - -func (o *StorageProxyMetricsCasWriteUnavailablesGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageProxyMetricsCasWriteUnavailablesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsCasWriteUnavailablesGetDefault creates a StorageProxyMetricsCasWriteUnavailablesGetDefault with default headers values -func NewStorageProxyMetricsCasWriteUnavailablesGetDefault(code int) *StorageProxyMetricsCasWriteUnavailablesGetDefault { - return &StorageProxyMetricsCasWriteUnavailablesGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsCasWriteUnavailablesGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsCasWriteUnavailablesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics cas write unavailables get default response -func (o *StorageProxyMetricsCasWriteUnavailablesGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsCasWriteUnavailablesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsCasWriteUnavailablesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsCasWriteUnavailablesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_unfinished_commit_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_unfinished_commit_get_parameters.go deleted file mode 100644 index c1924411ae..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_unfinished_commit_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsCasWriteUnfinishedCommitGetParams creates a new StorageProxyMetricsCasWriteUnfinishedCommitGetParams object -// with the default values initialized. -func NewStorageProxyMetricsCasWriteUnfinishedCommitGetParams() *StorageProxyMetricsCasWriteUnfinishedCommitGetParams { - - return &StorageProxyMetricsCasWriteUnfinishedCommitGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsCasWriteUnfinishedCommitGetParamsWithTimeout creates a new StorageProxyMetricsCasWriteUnfinishedCommitGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsCasWriteUnfinishedCommitGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsCasWriteUnfinishedCommitGetParams { - - return &StorageProxyMetricsCasWriteUnfinishedCommitGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsCasWriteUnfinishedCommitGetParamsWithContext creates a new StorageProxyMetricsCasWriteUnfinishedCommitGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsCasWriteUnfinishedCommitGetParamsWithContext(ctx context.Context) *StorageProxyMetricsCasWriteUnfinishedCommitGetParams { - - return &StorageProxyMetricsCasWriteUnfinishedCommitGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsCasWriteUnfinishedCommitGetParamsWithHTTPClient creates a new StorageProxyMetricsCasWriteUnfinishedCommitGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsCasWriteUnfinishedCommitGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsCasWriteUnfinishedCommitGetParams { - - return &StorageProxyMetricsCasWriteUnfinishedCommitGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsCasWriteUnfinishedCommitGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics cas write unfinished commit get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsCasWriteUnfinishedCommitGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics cas write unfinished commit get params -func (o *StorageProxyMetricsCasWriteUnfinishedCommitGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsCasWriteUnfinishedCommitGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics cas write unfinished commit get params -func (o *StorageProxyMetricsCasWriteUnfinishedCommitGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics cas write unfinished commit get params -func (o *StorageProxyMetricsCasWriteUnfinishedCommitGetParams) WithContext(ctx context.Context) *StorageProxyMetricsCasWriteUnfinishedCommitGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics cas write unfinished commit get params -func (o *StorageProxyMetricsCasWriteUnfinishedCommitGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics cas write unfinished commit get params -func (o *StorageProxyMetricsCasWriteUnfinishedCommitGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsCasWriteUnfinishedCommitGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics cas write unfinished commit get params -func (o *StorageProxyMetricsCasWriteUnfinishedCommitGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsCasWriteUnfinishedCommitGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_unfinished_commit_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_unfinished_commit_get_responses.go deleted file mode 100644 index b06fba84ba..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_cas_write_unfinished_commit_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsCasWriteUnfinishedCommitGetReader is a Reader for the StorageProxyMetricsCasWriteUnfinishedCommitGet structure. -type StorageProxyMetricsCasWriteUnfinishedCommitGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsCasWriteUnfinishedCommitGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsCasWriteUnfinishedCommitGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsCasWriteUnfinishedCommitGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsCasWriteUnfinishedCommitGetOK creates a StorageProxyMetricsCasWriteUnfinishedCommitGetOK with default headers values -func NewStorageProxyMetricsCasWriteUnfinishedCommitGetOK() *StorageProxyMetricsCasWriteUnfinishedCommitGetOK { - return &StorageProxyMetricsCasWriteUnfinishedCommitGetOK{} -} - -/* -StorageProxyMetricsCasWriteUnfinishedCommitGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsCasWriteUnfinishedCommitGetOK struct { - Payload int32 -} - -func (o *StorageProxyMetricsCasWriteUnfinishedCommitGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageProxyMetricsCasWriteUnfinishedCommitGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsCasWriteUnfinishedCommitGetDefault creates a StorageProxyMetricsCasWriteUnfinishedCommitGetDefault with default headers values -func NewStorageProxyMetricsCasWriteUnfinishedCommitGetDefault(code int) *StorageProxyMetricsCasWriteUnfinishedCommitGetDefault { - return &StorageProxyMetricsCasWriteUnfinishedCommitGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsCasWriteUnfinishedCommitGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsCasWriteUnfinishedCommitGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics cas write unfinished commit get default response -func (o *StorageProxyMetricsCasWriteUnfinishedCommitGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsCasWriteUnfinishedCommitGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsCasWriteUnfinishedCommitGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsCasWriteUnfinishedCommitGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_estimated_histogram_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_estimated_histogram_get_parameters.go deleted file mode 100644 index 98c99fbb2b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_estimated_histogram_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsRangeEstimatedHistogramGetParams creates a new StorageProxyMetricsRangeEstimatedHistogramGetParams object -// with the default values initialized. -func NewStorageProxyMetricsRangeEstimatedHistogramGetParams() *StorageProxyMetricsRangeEstimatedHistogramGetParams { - - return &StorageProxyMetricsRangeEstimatedHistogramGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsRangeEstimatedHistogramGetParamsWithTimeout creates a new StorageProxyMetricsRangeEstimatedHistogramGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsRangeEstimatedHistogramGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsRangeEstimatedHistogramGetParams { - - return &StorageProxyMetricsRangeEstimatedHistogramGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsRangeEstimatedHistogramGetParamsWithContext creates a new StorageProxyMetricsRangeEstimatedHistogramGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsRangeEstimatedHistogramGetParamsWithContext(ctx context.Context) *StorageProxyMetricsRangeEstimatedHistogramGetParams { - - return &StorageProxyMetricsRangeEstimatedHistogramGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsRangeEstimatedHistogramGetParamsWithHTTPClient creates a new StorageProxyMetricsRangeEstimatedHistogramGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsRangeEstimatedHistogramGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsRangeEstimatedHistogramGetParams { - - return &StorageProxyMetricsRangeEstimatedHistogramGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsRangeEstimatedHistogramGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics range estimated histogram get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsRangeEstimatedHistogramGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics range estimated histogram get params -func (o *StorageProxyMetricsRangeEstimatedHistogramGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsRangeEstimatedHistogramGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics range estimated histogram get params -func (o *StorageProxyMetricsRangeEstimatedHistogramGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics range estimated histogram get params -func (o *StorageProxyMetricsRangeEstimatedHistogramGetParams) WithContext(ctx context.Context) *StorageProxyMetricsRangeEstimatedHistogramGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics range estimated histogram get params -func (o *StorageProxyMetricsRangeEstimatedHistogramGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics range estimated histogram get params -func (o *StorageProxyMetricsRangeEstimatedHistogramGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsRangeEstimatedHistogramGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics range estimated histogram get params -func (o *StorageProxyMetricsRangeEstimatedHistogramGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsRangeEstimatedHistogramGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_estimated_histogram_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_estimated_histogram_get_responses.go deleted file mode 100644 index 256b87c94f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_estimated_histogram_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsRangeEstimatedHistogramGetReader is a Reader for the StorageProxyMetricsRangeEstimatedHistogramGet structure. -type StorageProxyMetricsRangeEstimatedHistogramGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsRangeEstimatedHistogramGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsRangeEstimatedHistogramGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsRangeEstimatedHistogramGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsRangeEstimatedHistogramGetOK creates a StorageProxyMetricsRangeEstimatedHistogramGetOK with default headers values -func NewStorageProxyMetricsRangeEstimatedHistogramGetOK() *StorageProxyMetricsRangeEstimatedHistogramGetOK { - return &StorageProxyMetricsRangeEstimatedHistogramGetOK{} -} - -/* -StorageProxyMetricsRangeEstimatedHistogramGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsRangeEstimatedHistogramGetOK struct { -} - -func (o *StorageProxyMetricsRangeEstimatedHistogramGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyMetricsRangeEstimatedHistogramGetDefault creates a StorageProxyMetricsRangeEstimatedHistogramGetDefault with default headers values -func NewStorageProxyMetricsRangeEstimatedHistogramGetDefault(code int) *StorageProxyMetricsRangeEstimatedHistogramGetDefault { - return &StorageProxyMetricsRangeEstimatedHistogramGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsRangeEstimatedHistogramGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsRangeEstimatedHistogramGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics range estimated histogram get default response -func (o *StorageProxyMetricsRangeEstimatedHistogramGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsRangeEstimatedHistogramGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsRangeEstimatedHistogramGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsRangeEstimatedHistogramGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_get_parameters.go deleted file mode 100644 index fb56554f71..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsRangeGetParams creates a new StorageProxyMetricsRangeGetParams object -// with the default values initialized. -func NewStorageProxyMetricsRangeGetParams() *StorageProxyMetricsRangeGetParams { - - return &StorageProxyMetricsRangeGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsRangeGetParamsWithTimeout creates a new StorageProxyMetricsRangeGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsRangeGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsRangeGetParams { - - return &StorageProxyMetricsRangeGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsRangeGetParamsWithContext creates a new StorageProxyMetricsRangeGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsRangeGetParamsWithContext(ctx context.Context) *StorageProxyMetricsRangeGetParams { - - return &StorageProxyMetricsRangeGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsRangeGetParamsWithHTTPClient creates a new StorageProxyMetricsRangeGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsRangeGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsRangeGetParams { - - return &StorageProxyMetricsRangeGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsRangeGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics range get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsRangeGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics range get params -func (o *StorageProxyMetricsRangeGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsRangeGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics range get params -func (o *StorageProxyMetricsRangeGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics range get params -func (o *StorageProxyMetricsRangeGetParams) WithContext(ctx context.Context) *StorageProxyMetricsRangeGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics range get params -func (o *StorageProxyMetricsRangeGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics range get params -func (o *StorageProxyMetricsRangeGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsRangeGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics range get params -func (o *StorageProxyMetricsRangeGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsRangeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_get_responses.go deleted file mode 100644 index 43893d7b43..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsRangeGetReader is a Reader for the StorageProxyMetricsRangeGet structure. -type StorageProxyMetricsRangeGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsRangeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsRangeGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsRangeGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsRangeGetOK creates a StorageProxyMetricsRangeGetOK with default headers values -func NewStorageProxyMetricsRangeGetOK() *StorageProxyMetricsRangeGetOK { - return &StorageProxyMetricsRangeGetOK{} -} - -/* -StorageProxyMetricsRangeGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsRangeGetOK struct { - Payload int32 -} - -func (o *StorageProxyMetricsRangeGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageProxyMetricsRangeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsRangeGetDefault creates a StorageProxyMetricsRangeGetDefault with default headers values -func NewStorageProxyMetricsRangeGetDefault(code int) *StorageProxyMetricsRangeGetDefault { - return &StorageProxyMetricsRangeGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsRangeGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsRangeGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics range get default response -func (o *StorageProxyMetricsRangeGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsRangeGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsRangeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsRangeGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_histogram_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_histogram_get_parameters.go deleted file mode 100644 index 3a6778c30c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_histogram_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsRangeHistogramGetParams creates a new StorageProxyMetricsRangeHistogramGetParams object -// with the default values initialized. -func NewStorageProxyMetricsRangeHistogramGetParams() *StorageProxyMetricsRangeHistogramGetParams { - - return &StorageProxyMetricsRangeHistogramGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsRangeHistogramGetParamsWithTimeout creates a new StorageProxyMetricsRangeHistogramGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsRangeHistogramGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsRangeHistogramGetParams { - - return &StorageProxyMetricsRangeHistogramGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsRangeHistogramGetParamsWithContext creates a new StorageProxyMetricsRangeHistogramGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsRangeHistogramGetParamsWithContext(ctx context.Context) *StorageProxyMetricsRangeHistogramGetParams { - - return &StorageProxyMetricsRangeHistogramGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsRangeHistogramGetParamsWithHTTPClient creates a new StorageProxyMetricsRangeHistogramGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsRangeHistogramGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsRangeHistogramGetParams { - - return &StorageProxyMetricsRangeHistogramGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsRangeHistogramGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics range histogram get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsRangeHistogramGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics range histogram get params -func (o *StorageProxyMetricsRangeHistogramGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsRangeHistogramGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics range histogram get params -func (o *StorageProxyMetricsRangeHistogramGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics range histogram get params -func (o *StorageProxyMetricsRangeHistogramGetParams) WithContext(ctx context.Context) *StorageProxyMetricsRangeHistogramGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics range histogram get params -func (o *StorageProxyMetricsRangeHistogramGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics range histogram get params -func (o *StorageProxyMetricsRangeHistogramGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsRangeHistogramGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics range histogram get params -func (o *StorageProxyMetricsRangeHistogramGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsRangeHistogramGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_histogram_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_histogram_get_responses.go deleted file mode 100644 index d34de41013..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_histogram_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsRangeHistogramGetReader is a Reader for the StorageProxyMetricsRangeHistogramGet structure. -type StorageProxyMetricsRangeHistogramGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsRangeHistogramGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsRangeHistogramGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsRangeHistogramGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsRangeHistogramGetOK creates a StorageProxyMetricsRangeHistogramGetOK with default headers values -func NewStorageProxyMetricsRangeHistogramGetOK() *StorageProxyMetricsRangeHistogramGetOK { - return &StorageProxyMetricsRangeHistogramGetOK{} -} - -/* -StorageProxyMetricsRangeHistogramGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsRangeHistogramGetOK struct { -} - -func (o *StorageProxyMetricsRangeHistogramGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyMetricsRangeHistogramGetDefault creates a StorageProxyMetricsRangeHistogramGetDefault with default headers values -func NewStorageProxyMetricsRangeHistogramGetDefault(code int) *StorageProxyMetricsRangeHistogramGetDefault { - return &StorageProxyMetricsRangeHistogramGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsRangeHistogramGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsRangeHistogramGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics range histogram get default response -func (o *StorageProxyMetricsRangeHistogramGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsRangeHistogramGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsRangeHistogramGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsRangeHistogramGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_moving_average_histogram_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_moving_average_histogram_get_parameters.go deleted file mode 100644 index ab5b051371..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_moving_average_histogram_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsRangeMovingAverageHistogramGetParams creates a new StorageProxyMetricsRangeMovingAverageHistogramGetParams object -// with the default values initialized. -func NewStorageProxyMetricsRangeMovingAverageHistogramGetParams() *StorageProxyMetricsRangeMovingAverageHistogramGetParams { - - return &StorageProxyMetricsRangeMovingAverageHistogramGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsRangeMovingAverageHistogramGetParamsWithTimeout creates a new StorageProxyMetricsRangeMovingAverageHistogramGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsRangeMovingAverageHistogramGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsRangeMovingAverageHistogramGetParams { - - return &StorageProxyMetricsRangeMovingAverageHistogramGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsRangeMovingAverageHistogramGetParamsWithContext creates a new StorageProxyMetricsRangeMovingAverageHistogramGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsRangeMovingAverageHistogramGetParamsWithContext(ctx context.Context) *StorageProxyMetricsRangeMovingAverageHistogramGetParams { - - return &StorageProxyMetricsRangeMovingAverageHistogramGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsRangeMovingAverageHistogramGetParamsWithHTTPClient creates a new StorageProxyMetricsRangeMovingAverageHistogramGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsRangeMovingAverageHistogramGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsRangeMovingAverageHistogramGetParams { - - return &StorageProxyMetricsRangeMovingAverageHistogramGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsRangeMovingAverageHistogramGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics range moving average histogram get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsRangeMovingAverageHistogramGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics range moving average histogram get params -func (o *StorageProxyMetricsRangeMovingAverageHistogramGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsRangeMovingAverageHistogramGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics range moving average histogram get params -func (o *StorageProxyMetricsRangeMovingAverageHistogramGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics range moving average histogram get params -func (o *StorageProxyMetricsRangeMovingAverageHistogramGetParams) WithContext(ctx context.Context) *StorageProxyMetricsRangeMovingAverageHistogramGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics range moving average histogram get params -func (o *StorageProxyMetricsRangeMovingAverageHistogramGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics range moving average histogram get params -func (o *StorageProxyMetricsRangeMovingAverageHistogramGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsRangeMovingAverageHistogramGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics range moving average histogram get params -func (o *StorageProxyMetricsRangeMovingAverageHistogramGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsRangeMovingAverageHistogramGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_moving_average_histogram_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_moving_average_histogram_get_responses.go deleted file mode 100644 index 1d96309af2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_moving_average_histogram_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsRangeMovingAverageHistogramGetReader is a Reader for the StorageProxyMetricsRangeMovingAverageHistogramGet structure. -type StorageProxyMetricsRangeMovingAverageHistogramGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsRangeMovingAverageHistogramGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsRangeMovingAverageHistogramGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsRangeMovingAverageHistogramGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsRangeMovingAverageHistogramGetOK creates a StorageProxyMetricsRangeMovingAverageHistogramGetOK with default headers values -func NewStorageProxyMetricsRangeMovingAverageHistogramGetOK() *StorageProxyMetricsRangeMovingAverageHistogramGetOK { - return &StorageProxyMetricsRangeMovingAverageHistogramGetOK{} -} - -/* -StorageProxyMetricsRangeMovingAverageHistogramGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsRangeMovingAverageHistogramGetOK struct { -} - -func (o *StorageProxyMetricsRangeMovingAverageHistogramGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyMetricsRangeMovingAverageHistogramGetDefault creates a StorageProxyMetricsRangeMovingAverageHistogramGetDefault with default headers values -func NewStorageProxyMetricsRangeMovingAverageHistogramGetDefault(code int) *StorageProxyMetricsRangeMovingAverageHistogramGetDefault { - return &StorageProxyMetricsRangeMovingAverageHistogramGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsRangeMovingAverageHistogramGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsRangeMovingAverageHistogramGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics range moving average histogram get default response -func (o *StorageProxyMetricsRangeMovingAverageHistogramGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsRangeMovingAverageHistogramGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsRangeMovingAverageHistogramGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsRangeMovingAverageHistogramGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_timeouts_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_timeouts_get_parameters.go deleted file mode 100644 index 34bca19f87..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_timeouts_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsRangeTimeoutsGetParams creates a new StorageProxyMetricsRangeTimeoutsGetParams object -// with the default values initialized. -func NewStorageProxyMetricsRangeTimeoutsGetParams() *StorageProxyMetricsRangeTimeoutsGetParams { - - return &StorageProxyMetricsRangeTimeoutsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsRangeTimeoutsGetParamsWithTimeout creates a new StorageProxyMetricsRangeTimeoutsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsRangeTimeoutsGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsRangeTimeoutsGetParams { - - return &StorageProxyMetricsRangeTimeoutsGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsRangeTimeoutsGetParamsWithContext creates a new StorageProxyMetricsRangeTimeoutsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsRangeTimeoutsGetParamsWithContext(ctx context.Context) *StorageProxyMetricsRangeTimeoutsGetParams { - - return &StorageProxyMetricsRangeTimeoutsGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsRangeTimeoutsGetParamsWithHTTPClient creates a new StorageProxyMetricsRangeTimeoutsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsRangeTimeoutsGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsRangeTimeoutsGetParams { - - return &StorageProxyMetricsRangeTimeoutsGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsRangeTimeoutsGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics range timeouts get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsRangeTimeoutsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics range timeouts get params -func (o *StorageProxyMetricsRangeTimeoutsGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsRangeTimeoutsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics range timeouts get params -func (o *StorageProxyMetricsRangeTimeoutsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics range timeouts get params -func (o *StorageProxyMetricsRangeTimeoutsGetParams) WithContext(ctx context.Context) *StorageProxyMetricsRangeTimeoutsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics range timeouts get params -func (o *StorageProxyMetricsRangeTimeoutsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics range timeouts get params -func (o *StorageProxyMetricsRangeTimeoutsGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsRangeTimeoutsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics range timeouts get params -func (o *StorageProxyMetricsRangeTimeoutsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsRangeTimeoutsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_timeouts_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_timeouts_get_responses.go deleted file mode 100644 index 7616474397..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_timeouts_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsRangeTimeoutsGetReader is a Reader for the StorageProxyMetricsRangeTimeoutsGet structure. -type StorageProxyMetricsRangeTimeoutsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsRangeTimeoutsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsRangeTimeoutsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsRangeTimeoutsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsRangeTimeoutsGetOK creates a StorageProxyMetricsRangeTimeoutsGetOK with default headers values -func NewStorageProxyMetricsRangeTimeoutsGetOK() *StorageProxyMetricsRangeTimeoutsGetOK { - return &StorageProxyMetricsRangeTimeoutsGetOK{} -} - -/* -StorageProxyMetricsRangeTimeoutsGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsRangeTimeoutsGetOK struct { - Payload int32 -} - -func (o *StorageProxyMetricsRangeTimeoutsGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageProxyMetricsRangeTimeoutsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsRangeTimeoutsGetDefault creates a StorageProxyMetricsRangeTimeoutsGetDefault with default headers values -func NewStorageProxyMetricsRangeTimeoutsGetDefault(code int) *StorageProxyMetricsRangeTimeoutsGetDefault { - return &StorageProxyMetricsRangeTimeoutsGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsRangeTimeoutsGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsRangeTimeoutsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics range timeouts get default response -func (o *StorageProxyMetricsRangeTimeoutsGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsRangeTimeoutsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsRangeTimeoutsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsRangeTimeoutsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_timeouts_rates_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_timeouts_rates_get_parameters.go deleted file mode 100644 index be4160f525..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_timeouts_rates_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsRangeTimeoutsRatesGetParams creates a new StorageProxyMetricsRangeTimeoutsRatesGetParams object -// with the default values initialized. -func NewStorageProxyMetricsRangeTimeoutsRatesGetParams() *StorageProxyMetricsRangeTimeoutsRatesGetParams { - - return &StorageProxyMetricsRangeTimeoutsRatesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsRangeTimeoutsRatesGetParamsWithTimeout creates a new StorageProxyMetricsRangeTimeoutsRatesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsRangeTimeoutsRatesGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsRangeTimeoutsRatesGetParams { - - return &StorageProxyMetricsRangeTimeoutsRatesGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsRangeTimeoutsRatesGetParamsWithContext creates a new StorageProxyMetricsRangeTimeoutsRatesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsRangeTimeoutsRatesGetParamsWithContext(ctx context.Context) *StorageProxyMetricsRangeTimeoutsRatesGetParams { - - return &StorageProxyMetricsRangeTimeoutsRatesGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsRangeTimeoutsRatesGetParamsWithHTTPClient creates a new StorageProxyMetricsRangeTimeoutsRatesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsRangeTimeoutsRatesGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsRangeTimeoutsRatesGetParams { - - return &StorageProxyMetricsRangeTimeoutsRatesGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsRangeTimeoutsRatesGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics range timeouts rates get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsRangeTimeoutsRatesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics range timeouts rates get params -func (o *StorageProxyMetricsRangeTimeoutsRatesGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsRangeTimeoutsRatesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics range timeouts rates get params -func (o *StorageProxyMetricsRangeTimeoutsRatesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics range timeouts rates get params -func (o *StorageProxyMetricsRangeTimeoutsRatesGetParams) WithContext(ctx context.Context) *StorageProxyMetricsRangeTimeoutsRatesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics range timeouts rates get params -func (o *StorageProxyMetricsRangeTimeoutsRatesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics range timeouts rates get params -func (o *StorageProxyMetricsRangeTimeoutsRatesGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsRangeTimeoutsRatesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics range timeouts rates get params -func (o *StorageProxyMetricsRangeTimeoutsRatesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsRangeTimeoutsRatesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_timeouts_rates_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_timeouts_rates_get_responses.go deleted file mode 100644 index 51087b98f3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_timeouts_rates_get_responses.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsRangeTimeoutsRatesGetReader is a Reader for the StorageProxyMetricsRangeTimeoutsRatesGet structure. -type StorageProxyMetricsRangeTimeoutsRatesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsRangeTimeoutsRatesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsRangeTimeoutsRatesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsRangeTimeoutsRatesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsRangeTimeoutsRatesGetOK creates a StorageProxyMetricsRangeTimeoutsRatesGetOK with default headers values -func NewStorageProxyMetricsRangeTimeoutsRatesGetOK() *StorageProxyMetricsRangeTimeoutsRatesGetOK { - return &StorageProxyMetricsRangeTimeoutsRatesGetOK{} -} - -/* -StorageProxyMetricsRangeTimeoutsRatesGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsRangeTimeoutsRatesGetOK struct { - Payload *models.RateMovingAverage -} - -func (o *StorageProxyMetricsRangeTimeoutsRatesGetOK) GetPayload() *models.RateMovingAverage { - return o.Payload -} - -func (o *StorageProxyMetricsRangeTimeoutsRatesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.RateMovingAverage) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsRangeTimeoutsRatesGetDefault creates a StorageProxyMetricsRangeTimeoutsRatesGetDefault with default headers values -func NewStorageProxyMetricsRangeTimeoutsRatesGetDefault(code int) *StorageProxyMetricsRangeTimeoutsRatesGetDefault { - return &StorageProxyMetricsRangeTimeoutsRatesGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsRangeTimeoutsRatesGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsRangeTimeoutsRatesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics range timeouts rates get default response -func (o *StorageProxyMetricsRangeTimeoutsRatesGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsRangeTimeoutsRatesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsRangeTimeoutsRatesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsRangeTimeoutsRatesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_unavailables_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_unavailables_get_parameters.go deleted file mode 100644 index 1386274f47..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_unavailables_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsRangeUnavailablesGetParams creates a new StorageProxyMetricsRangeUnavailablesGetParams object -// with the default values initialized. -func NewStorageProxyMetricsRangeUnavailablesGetParams() *StorageProxyMetricsRangeUnavailablesGetParams { - - return &StorageProxyMetricsRangeUnavailablesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsRangeUnavailablesGetParamsWithTimeout creates a new StorageProxyMetricsRangeUnavailablesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsRangeUnavailablesGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsRangeUnavailablesGetParams { - - return &StorageProxyMetricsRangeUnavailablesGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsRangeUnavailablesGetParamsWithContext creates a new StorageProxyMetricsRangeUnavailablesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsRangeUnavailablesGetParamsWithContext(ctx context.Context) *StorageProxyMetricsRangeUnavailablesGetParams { - - return &StorageProxyMetricsRangeUnavailablesGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsRangeUnavailablesGetParamsWithHTTPClient creates a new StorageProxyMetricsRangeUnavailablesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsRangeUnavailablesGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsRangeUnavailablesGetParams { - - return &StorageProxyMetricsRangeUnavailablesGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsRangeUnavailablesGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics range unavailables get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsRangeUnavailablesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics range unavailables get params -func (o *StorageProxyMetricsRangeUnavailablesGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsRangeUnavailablesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics range unavailables get params -func (o *StorageProxyMetricsRangeUnavailablesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics range unavailables get params -func (o *StorageProxyMetricsRangeUnavailablesGetParams) WithContext(ctx context.Context) *StorageProxyMetricsRangeUnavailablesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics range unavailables get params -func (o *StorageProxyMetricsRangeUnavailablesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics range unavailables get params -func (o *StorageProxyMetricsRangeUnavailablesGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsRangeUnavailablesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics range unavailables get params -func (o *StorageProxyMetricsRangeUnavailablesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsRangeUnavailablesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_unavailables_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_unavailables_get_responses.go deleted file mode 100644 index 5d9572e46f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_unavailables_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsRangeUnavailablesGetReader is a Reader for the StorageProxyMetricsRangeUnavailablesGet structure. -type StorageProxyMetricsRangeUnavailablesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsRangeUnavailablesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsRangeUnavailablesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsRangeUnavailablesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsRangeUnavailablesGetOK creates a StorageProxyMetricsRangeUnavailablesGetOK with default headers values -func NewStorageProxyMetricsRangeUnavailablesGetOK() *StorageProxyMetricsRangeUnavailablesGetOK { - return &StorageProxyMetricsRangeUnavailablesGetOK{} -} - -/* -StorageProxyMetricsRangeUnavailablesGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsRangeUnavailablesGetOK struct { - Payload int32 -} - -func (o *StorageProxyMetricsRangeUnavailablesGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageProxyMetricsRangeUnavailablesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsRangeUnavailablesGetDefault creates a StorageProxyMetricsRangeUnavailablesGetDefault with default headers values -func NewStorageProxyMetricsRangeUnavailablesGetDefault(code int) *StorageProxyMetricsRangeUnavailablesGetDefault { - return &StorageProxyMetricsRangeUnavailablesGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsRangeUnavailablesGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsRangeUnavailablesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics range unavailables get default response -func (o *StorageProxyMetricsRangeUnavailablesGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsRangeUnavailablesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsRangeUnavailablesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsRangeUnavailablesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_unavailables_rates_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_unavailables_rates_get_parameters.go deleted file mode 100644 index 6efdc82cab..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_unavailables_rates_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsRangeUnavailablesRatesGetParams creates a new StorageProxyMetricsRangeUnavailablesRatesGetParams object -// with the default values initialized. -func NewStorageProxyMetricsRangeUnavailablesRatesGetParams() *StorageProxyMetricsRangeUnavailablesRatesGetParams { - - return &StorageProxyMetricsRangeUnavailablesRatesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsRangeUnavailablesRatesGetParamsWithTimeout creates a new StorageProxyMetricsRangeUnavailablesRatesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsRangeUnavailablesRatesGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsRangeUnavailablesRatesGetParams { - - return &StorageProxyMetricsRangeUnavailablesRatesGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsRangeUnavailablesRatesGetParamsWithContext creates a new StorageProxyMetricsRangeUnavailablesRatesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsRangeUnavailablesRatesGetParamsWithContext(ctx context.Context) *StorageProxyMetricsRangeUnavailablesRatesGetParams { - - return &StorageProxyMetricsRangeUnavailablesRatesGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsRangeUnavailablesRatesGetParamsWithHTTPClient creates a new StorageProxyMetricsRangeUnavailablesRatesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsRangeUnavailablesRatesGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsRangeUnavailablesRatesGetParams { - - return &StorageProxyMetricsRangeUnavailablesRatesGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsRangeUnavailablesRatesGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics range unavailables rates get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsRangeUnavailablesRatesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics range unavailables rates get params -func (o *StorageProxyMetricsRangeUnavailablesRatesGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsRangeUnavailablesRatesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics range unavailables rates get params -func (o *StorageProxyMetricsRangeUnavailablesRatesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics range unavailables rates get params -func (o *StorageProxyMetricsRangeUnavailablesRatesGetParams) WithContext(ctx context.Context) *StorageProxyMetricsRangeUnavailablesRatesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics range unavailables rates get params -func (o *StorageProxyMetricsRangeUnavailablesRatesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics range unavailables rates get params -func (o *StorageProxyMetricsRangeUnavailablesRatesGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsRangeUnavailablesRatesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics range unavailables rates get params -func (o *StorageProxyMetricsRangeUnavailablesRatesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsRangeUnavailablesRatesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_unavailables_rates_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_unavailables_rates_get_responses.go deleted file mode 100644 index b3111ac8a9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_range_unavailables_rates_get_responses.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsRangeUnavailablesRatesGetReader is a Reader for the StorageProxyMetricsRangeUnavailablesRatesGet structure. -type StorageProxyMetricsRangeUnavailablesRatesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsRangeUnavailablesRatesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsRangeUnavailablesRatesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsRangeUnavailablesRatesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsRangeUnavailablesRatesGetOK creates a StorageProxyMetricsRangeUnavailablesRatesGetOK with default headers values -func NewStorageProxyMetricsRangeUnavailablesRatesGetOK() *StorageProxyMetricsRangeUnavailablesRatesGetOK { - return &StorageProxyMetricsRangeUnavailablesRatesGetOK{} -} - -/* -StorageProxyMetricsRangeUnavailablesRatesGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsRangeUnavailablesRatesGetOK struct { - Payload *models.RateMovingAverage -} - -func (o *StorageProxyMetricsRangeUnavailablesRatesGetOK) GetPayload() *models.RateMovingAverage { - return o.Payload -} - -func (o *StorageProxyMetricsRangeUnavailablesRatesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.RateMovingAverage) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsRangeUnavailablesRatesGetDefault creates a StorageProxyMetricsRangeUnavailablesRatesGetDefault with default headers values -func NewStorageProxyMetricsRangeUnavailablesRatesGetDefault(code int) *StorageProxyMetricsRangeUnavailablesRatesGetDefault { - return &StorageProxyMetricsRangeUnavailablesRatesGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsRangeUnavailablesRatesGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsRangeUnavailablesRatesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics range unavailables rates get default response -func (o *StorageProxyMetricsRangeUnavailablesRatesGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsRangeUnavailablesRatesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsRangeUnavailablesRatesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsRangeUnavailablesRatesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_estimated_histogram_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_estimated_histogram_get_parameters.go deleted file mode 100644 index d9ea7ba0d0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_estimated_histogram_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsReadEstimatedHistogramGetParams creates a new StorageProxyMetricsReadEstimatedHistogramGetParams object -// with the default values initialized. -func NewStorageProxyMetricsReadEstimatedHistogramGetParams() *StorageProxyMetricsReadEstimatedHistogramGetParams { - - return &StorageProxyMetricsReadEstimatedHistogramGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsReadEstimatedHistogramGetParamsWithTimeout creates a new StorageProxyMetricsReadEstimatedHistogramGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsReadEstimatedHistogramGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsReadEstimatedHistogramGetParams { - - return &StorageProxyMetricsReadEstimatedHistogramGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsReadEstimatedHistogramGetParamsWithContext creates a new StorageProxyMetricsReadEstimatedHistogramGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsReadEstimatedHistogramGetParamsWithContext(ctx context.Context) *StorageProxyMetricsReadEstimatedHistogramGetParams { - - return &StorageProxyMetricsReadEstimatedHistogramGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsReadEstimatedHistogramGetParamsWithHTTPClient creates a new StorageProxyMetricsReadEstimatedHistogramGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsReadEstimatedHistogramGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsReadEstimatedHistogramGetParams { - - return &StorageProxyMetricsReadEstimatedHistogramGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsReadEstimatedHistogramGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics read estimated histogram get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsReadEstimatedHistogramGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics read estimated histogram get params -func (o *StorageProxyMetricsReadEstimatedHistogramGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsReadEstimatedHistogramGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics read estimated histogram get params -func (o *StorageProxyMetricsReadEstimatedHistogramGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics read estimated histogram get params -func (o *StorageProxyMetricsReadEstimatedHistogramGetParams) WithContext(ctx context.Context) *StorageProxyMetricsReadEstimatedHistogramGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics read estimated histogram get params -func (o *StorageProxyMetricsReadEstimatedHistogramGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics read estimated histogram get params -func (o *StorageProxyMetricsReadEstimatedHistogramGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsReadEstimatedHistogramGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics read estimated histogram get params -func (o *StorageProxyMetricsReadEstimatedHistogramGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsReadEstimatedHistogramGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_estimated_histogram_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_estimated_histogram_get_responses.go deleted file mode 100644 index c004f14ea4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_estimated_histogram_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsReadEstimatedHistogramGetReader is a Reader for the StorageProxyMetricsReadEstimatedHistogramGet structure. -type StorageProxyMetricsReadEstimatedHistogramGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsReadEstimatedHistogramGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsReadEstimatedHistogramGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsReadEstimatedHistogramGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsReadEstimatedHistogramGetOK creates a StorageProxyMetricsReadEstimatedHistogramGetOK with default headers values -func NewStorageProxyMetricsReadEstimatedHistogramGetOK() *StorageProxyMetricsReadEstimatedHistogramGetOK { - return &StorageProxyMetricsReadEstimatedHistogramGetOK{} -} - -/* -StorageProxyMetricsReadEstimatedHistogramGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsReadEstimatedHistogramGetOK struct { -} - -func (o *StorageProxyMetricsReadEstimatedHistogramGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyMetricsReadEstimatedHistogramGetDefault creates a StorageProxyMetricsReadEstimatedHistogramGetDefault with default headers values -func NewStorageProxyMetricsReadEstimatedHistogramGetDefault(code int) *StorageProxyMetricsReadEstimatedHistogramGetDefault { - return &StorageProxyMetricsReadEstimatedHistogramGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsReadEstimatedHistogramGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsReadEstimatedHistogramGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics read estimated histogram get default response -func (o *StorageProxyMetricsReadEstimatedHistogramGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsReadEstimatedHistogramGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsReadEstimatedHistogramGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsReadEstimatedHistogramGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_get_parameters.go deleted file mode 100644 index 98e0a9d1da..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsReadGetParams creates a new StorageProxyMetricsReadGetParams object -// with the default values initialized. -func NewStorageProxyMetricsReadGetParams() *StorageProxyMetricsReadGetParams { - - return &StorageProxyMetricsReadGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsReadGetParamsWithTimeout creates a new StorageProxyMetricsReadGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsReadGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsReadGetParams { - - return &StorageProxyMetricsReadGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsReadGetParamsWithContext creates a new StorageProxyMetricsReadGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsReadGetParamsWithContext(ctx context.Context) *StorageProxyMetricsReadGetParams { - - return &StorageProxyMetricsReadGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsReadGetParamsWithHTTPClient creates a new StorageProxyMetricsReadGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsReadGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsReadGetParams { - - return &StorageProxyMetricsReadGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsReadGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics read get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsReadGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics read get params -func (o *StorageProxyMetricsReadGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsReadGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics read get params -func (o *StorageProxyMetricsReadGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics read get params -func (o *StorageProxyMetricsReadGetParams) WithContext(ctx context.Context) *StorageProxyMetricsReadGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics read get params -func (o *StorageProxyMetricsReadGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics read get params -func (o *StorageProxyMetricsReadGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsReadGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics read get params -func (o *StorageProxyMetricsReadGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsReadGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_get_responses.go deleted file mode 100644 index 1838fb0f87..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsReadGetReader is a Reader for the StorageProxyMetricsReadGet structure. -type StorageProxyMetricsReadGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsReadGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsReadGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsReadGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsReadGetOK creates a StorageProxyMetricsReadGetOK with default headers values -func NewStorageProxyMetricsReadGetOK() *StorageProxyMetricsReadGetOK { - return &StorageProxyMetricsReadGetOK{} -} - -/* -StorageProxyMetricsReadGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsReadGetOK struct { - Payload int32 -} - -func (o *StorageProxyMetricsReadGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageProxyMetricsReadGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsReadGetDefault creates a StorageProxyMetricsReadGetDefault with default headers values -func NewStorageProxyMetricsReadGetDefault(code int) *StorageProxyMetricsReadGetDefault { - return &StorageProxyMetricsReadGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsReadGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsReadGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics read get default response -func (o *StorageProxyMetricsReadGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsReadGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsReadGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsReadGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_histogram_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_histogram_get_parameters.go deleted file mode 100644 index e352814b66..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_histogram_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsReadHistogramGetParams creates a new StorageProxyMetricsReadHistogramGetParams object -// with the default values initialized. -func NewStorageProxyMetricsReadHistogramGetParams() *StorageProxyMetricsReadHistogramGetParams { - - return &StorageProxyMetricsReadHistogramGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsReadHistogramGetParamsWithTimeout creates a new StorageProxyMetricsReadHistogramGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsReadHistogramGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsReadHistogramGetParams { - - return &StorageProxyMetricsReadHistogramGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsReadHistogramGetParamsWithContext creates a new StorageProxyMetricsReadHistogramGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsReadHistogramGetParamsWithContext(ctx context.Context) *StorageProxyMetricsReadHistogramGetParams { - - return &StorageProxyMetricsReadHistogramGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsReadHistogramGetParamsWithHTTPClient creates a new StorageProxyMetricsReadHistogramGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsReadHistogramGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsReadHistogramGetParams { - - return &StorageProxyMetricsReadHistogramGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsReadHistogramGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics read histogram get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsReadHistogramGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics read histogram get params -func (o *StorageProxyMetricsReadHistogramGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsReadHistogramGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics read histogram get params -func (o *StorageProxyMetricsReadHistogramGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics read histogram get params -func (o *StorageProxyMetricsReadHistogramGetParams) WithContext(ctx context.Context) *StorageProxyMetricsReadHistogramGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics read histogram get params -func (o *StorageProxyMetricsReadHistogramGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics read histogram get params -func (o *StorageProxyMetricsReadHistogramGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsReadHistogramGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics read histogram get params -func (o *StorageProxyMetricsReadHistogramGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsReadHistogramGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_histogram_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_histogram_get_responses.go deleted file mode 100644 index c5681d3705..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_histogram_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsReadHistogramGetReader is a Reader for the StorageProxyMetricsReadHistogramGet structure. -type StorageProxyMetricsReadHistogramGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsReadHistogramGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsReadHistogramGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsReadHistogramGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsReadHistogramGetOK creates a StorageProxyMetricsReadHistogramGetOK with default headers values -func NewStorageProxyMetricsReadHistogramGetOK() *StorageProxyMetricsReadHistogramGetOK { - return &StorageProxyMetricsReadHistogramGetOK{} -} - -/* -StorageProxyMetricsReadHistogramGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsReadHistogramGetOK struct { -} - -func (o *StorageProxyMetricsReadHistogramGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyMetricsReadHistogramGetDefault creates a StorageProxyMetricsReadHistogramGetDefault with default headers values -func NewStorageProxyMetricsReadHistogramGetDefault(code int) *StorageProxyMetricsReadHistogramGetDefault { - return &StorageProxyMetricsReadHistogramGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsReadHistogramGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsReadHistogramGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics read histogram get default response -func (o *StorageProxyMetricsReadHistogramGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsReadHistogramGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsReadHistogramGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsReadHistogramGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_moving_average_histogram_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_moving_average_histogram_get_parameters.go deleted file mode 100644 index d52706c709..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_moving_average_histogram_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsReadMovingAverageHistogramGetParams creates a new StorageProxyMetricsReadMovingAverageHistogramGetParams object -// with the default values initialized. -func NewStorageProxyMetricsReadMovingAverageHistogramGetParams() *StorageProxyMetricsReadMovingAverageHistogramGetParams { - - return &StorageProxyMetricsReadMovingAverageHistogramGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsReadMovingAverageHistogramGetParamsWithTimeout creates a new StorageProxyMetricsReadMovingAverageHistogramGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsReadMovingAverageHistogramGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsReadMovingAverageHistogramGetParams { - - return &StorageProxyMetricsReadMovingAverageHistogramGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsReadMovingAverageHistogramGetParamsWithContext creates a new StorageProxyMetricsReadMovingAverageHistogramGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsReadMovingAverageHistogramGetParamsWithContext(ctx context.Context) *StorageProxyMetricsReadMovingAverageHistogramGetParams { - - return &StorageProxyMetricsReadMovingAverageHistogramGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsReadMovingAverageHistogramGetParamsWithHTTPClient creates a new StorageProxyMetricsReadMovingAverageHistogramGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsReadMovingAverageHistogramGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsReadMovingAverageHistogramGetParams { - - return &StorageProxyMetricsReadMovingAverageHistogramGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsReadMovingAverageHistogramGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics read moving average histogram get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsReadMovingAverageHistogramGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics read moving average histogram get params -func (o *StorageProxyMetricsReadMovingAverageHistogramGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsReadMovingAverageHistogramGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics read moving average histogram get params -func (o *StorageProxyMetricsReadMovingAverageHistogramGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics read moving average histogram get params -func (o *StorageProxyMetricsReadMovingAverageHistogramGetParams) WithContext(ctx context.Context) *StorageProxyMetricsReadMovingAverageHistogramGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics read moving average histogram get params -func (o *StorageProxyMetricsReadMovingAverageHistogramGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics read moving average histogram get params -func (o *StorageProxyMetricsReadMovingAverageHistogramGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsReadMovingAverageHistogramGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics read moving average histogram get params -func (o *StorageProxyMetricsReadMovingAverageHistogramGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsReadMovingAverageHistogramGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_moving_average_histogram_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_moving_average_histogram_get_responses.go deleted file mode 100644 index 50e304b1c1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_moving_average_histogram_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsReadMovingAverageHistogramGetReader is a Reader for the StorageProxyMetricsReadMovingAverageHistogramGet structure. -type StorageProxyMetricsReadMovingAverageHistogramGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsReadMovingAverageHistogramGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsReadMovingAverageHistogramGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsReadMovingAverageHistogramGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsReadMovingAverageHistogramGetOK creates a StorageProxyMetricsReadMovingAverageHistogramGetOK with default headers values -func NewStorageProxyMetricsReadMovingAverageHistogramGetOK() *StorageProxyMetricsReadMovingAverageHistogramGetOK { - return &StorageProxyMetricsReadMovingAverageHistogramGetOK{} -} - -/* -StorageProxyMetricsReadMovingAverageHistogramGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsReadMovingAverageHistogramGetOK struct { -} - -func (o *StorageProxyMetricsReadMovingAverageHistogramGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyMetricsReadMovingAverageHistogramGetDefault creates a StorageProxyMetricsReadMovingAverageHistogramGetDefault with default headers values -func NewStorageProxyMetricsReadMovingAverageHistogramGetDefault(code int) *StorageProxyMetricsReadMovingAverageHistogramGetDefault { - return &StorageProxyMetricsReadMovingAverageHistogramGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsReadMovingAverageHistogramGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsReadMovingAverageHistogramGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics read moving average histogram get default response -func (o *StorageProxyMetricsReadMovingAverageHistogramGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsReadMovingAverageHistogramGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsReadMovingAverageHistogramGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsReadMovingAverageHistogramGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_timeouts_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_timeouts_get_parameters.go deleted file mode 100644 index eeca48375f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_timeouts_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsReadTimeoutsGetParams creates a new StorageProxyMetricsReadTimeoutsGetParams object -// with the default values initialized. -func NewStorageProxyMetricsReadTimeoutsGetParams() *StorageProxyMetricsReadTimeoutsGetParams { - - return &StorageProxyMetricsReadTimeoutsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsReadTimeoutsGetParamsWithTimeout creates a new StorageProxyMetricsReadTimeoutsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsReadTimeoutsGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsReadTimeoutsGetParams { - - return &StorageProxyMetricsReadTimeoutsGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsReadTimeoutsGetParamsWithContext creates a new StorageProxyMetricsReadTimeoutsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsReadTimeoutsGetParamsWithContext(ctx context.Context) *StorageProxyMetricsReadTimeoutsGetParams { - - return &StorageProxyMetricsReadTimeoutsGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsReadTimeoutsGetParamsWithHTTPClient creates a new StorageProxyMetricsReadTimeoutsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsReadTimeoutsGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsReadTimeoutsGetParams { - - return &StorageProxyMetricsReadTimeoutsGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsReadTimeoutsGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics read timeouts get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsReadTimeoutsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics read timeouts get params -func (o *StorageProxyMetricsReadTimeoutsGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsReadTimeoutsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics read timeouts get params -func (o *StorageProxyMetricsReadTimeoutsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics read timeouts get params -func (o *StorageProxyMetricsReadTimeoutsGetParams) WithContext(ctx context.Context) *StorageProxyMetricsReadTimeoutsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics read timeouts get params -func (o *StorageProxyMetricsReadTimeoutsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics read timeouts get params -func (o *StorageProxyMetricsReadTimeoutsGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsReadTimeoutsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics read timeouts get params -func (o *StorageProxyMetricsReadTimeoutsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsReadTimeoutsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_timeouts_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_timeouts_get_responses.go deleted file mode 100644 index ca08315778..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_timeouts_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsReadTimeoutsGetReader is a Reader for the StorageProxyMetricsReadTimeoutsGet structure. -type StorageProxyMetricsReadTimeoutsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsReadTimeoutsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsReadTimeoutsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsReadTimeoutsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsReadTimeoutsGetOK creates a StorageProxyMetricsReadTimeoutsGetOK with default headers values -func NewStorageProxyMetricsReadTimeoutsGetOK() *StorageProxyMetricsReadTimeoutsGetOK { - return &StorageProxyMetricsReadTimeoutsGetOK{} -} - -/* -StorageProxyMetricsReadTimeoutsGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsReadTimeoutsGetOK struct { - Payload int32 -} - -func (o *StorageProxyMetricsReadTimeoutsGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageProxyMetricsReadTimeoutsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsReadTimeoutsGetDefault creates a StorageProxyMetricsReadTimeoutsGetDefault with default headers values -func NewStorageProxyMetricsReadTimeoutsGetDefault(code int) *StorageProxyMetricsReadTimeoutsGetDefault { - return &StorageProxyMetricsReadTimeoutsGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsReadTimeoutsGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsReadTimeoutsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics read timeouts get default response -func (o *StorageProxyMetricsReadTimeoutsGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsReadTimeoutsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsReadTimeoutsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsReadTimeoutsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_timeouts_rates_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_timeouts_rates_get_parameters.go deleted file mode 100644 index 8358addcce..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_timeouts_rates_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsReadTimeoutsRatesGetParams creates a new StorageProxyMetricsReadTimeoutsRatesGetParams object -// with the default values initialized. -func NewStorageProxyMetricsReadTimeoutsRatesGetParams() *StorageProxyMetricsReadTimeoutsRatesGetParams { - - return &StorageProxyMetricsReadTimeoutsRatesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsReadTimeoutsRatesGetParamsWithTimeout creates a new StorageProxyMetricsReadTimeoutsRatesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsReadTimeoutsRatesGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsReadTimeoutsRatesGetParams { - - return &StorageProxyMetricsReadTimeoutsRatesGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsReadTimeoutsRatesGetParamsWithContext creates a new StorageProxyMetricsReadTimeoutsRatesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsReadTimeoutsRatesGetParamsWithContext(ctx context.Context) *StorageProxyMetricsReadTimeoutsRatesGetParams { - - return &StorageProxyMetricsReadTimeoutsRatesGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsReadTimeoutsRatesGetParamsWithHTTPClient creates a new StorageProxyMetricsReadTimeoutsRatesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsReadTimeoutsRatesGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsReadTimeoutsRatesGetParams { - - return &StorageProxyMetricsReadTimeoutsRatesGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsReadTimeoutsRatesGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics read timeouts rates get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsReadTimeoutsRatesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics read timeouts rates get params -func (o *StorageProxyMetricsReadTimeoutsRatesGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsReadTimeoutsRatesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics read timeouts rates get params -func (o *StorageProxyMetricsReadTimeoutsRatesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics read timeouts rates get params -func (o *StorageProxyMetricsReadTimeoutsRatesGetParams) WithContext(ctx context.Context) *StorageProxyMetricsReadTimeoutsRatesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics read timeouts rates get params -func (o *StorageProxyMetricsReadTimeoutsRatesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics read timeouts rates get params -func (o *StorageProxyMetricsReadTimeoutsRatesGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsReadTimeoutsRatesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics read timeouts rates get params -func (o *StorageProxyMetricsReadTimeoutsRatesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsReadTimeoutsRatesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_timeouts_rates_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_timeouts_rates_get_responses.go deleted file mode 100644 index c46776b36a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_timeouts_rates_get_responses.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsReadTimeoutsRatesGetReader is a Reader for the StorageProxyMetricsReadTimeoutsRatesGet structure. -type StorageProxyMetricsReadTimeoutsRatesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsReadTimeoutsRatesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsReadTimeoutsRatesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsReadTimeoutsRatesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsReadTimeoutsRatesGetOK creates a StorageProxyMetricsReadTimeoutsRatesGetOK with default headers values -func NewStorageProxyMetricsReadTimeoutsRatesGetOK() *StorageProxyMetricsReadTimeoutsRatesGetOK { - return &StorageProxyMetricsReadTimeoutsRatesGetOK{} -} - -/* -StorageProxyMetricsReadTimeoutsRatesGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsReadTimeoutsRatesGetOK struct { - Payload *models.RateMovingAverage -} - -func (o *StorageProxyMetricsReadTimeoutsRatesGetOK) GetPayload() *models.RateMovingAverage { - return o.Payload -} - -func (o *StorageProxyMetricsReadTimeoutsRatesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.RateMovingAverage) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsReadTimeoutsRatesGetDefault creates a StorageProxyMetricsReadTimeoutsRatesGetDefault with default headers values -func NewStorageProxyMetricsReadTimeoutsRatesGetDefault(code int) *StorageProxyMetricsReadTimeoutsRatesGetDefault { - return &StorageProxyMetricsReadTimeoutsRatesGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsReadTimeoutsRatesGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsReadTimeoutsRatesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics read timeouts rates get default response -func (o *StorageProxyMetricsReadTimeoutsRatesGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsReadTimeoutsRatesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsReadTimeoutsRatesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsReadTimeoutsRatesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_unavailables_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_unavailables_get_parameters.go deleted file mode 100644 index e3eda39d4f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_unavailables_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsReadUnavailablesGetParams creates a new StorageProxyMetricsReadUnavailablesGetParams object -// with the default values initialized. -func NewStorageProxyMetricsReadUnavailablesGetParams() *StorageProxyMetricsReadUnavailablesGetParams { - - return &StorageProxyMetricsReadUnavailablesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsReadUnavailablesGetParamsWithTimeout creates a new StorageProxyMetricsReadUnavailablesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsReadUnavailablesGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsReadUnavailablesGetParams { - - return &StorageProxyMetricsReadUnavailablesGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsReadUnavailablesGetParamsWithContext creates a new StorageProxyMetricsReadUnavailablesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsReadUnavailablesGetParamsWithContext(ctx context.Context) *StorageProxyMetricsReadUnavailablesGetParams { - - return &StorageProxyMetricsReadUnavailablesGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsReadUnavailablesGetParamsWithHTTPClient creates a new StorageProxyMetricsReadUnavailablesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsReadUnavailablesGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsReadUnavailablesGetParams { - - return &StorageProxyMetricsReadUnavailablesGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsReadUnavailablesGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics read unavailables get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsReadUnavailablesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics read unavailables get params -func (o *StorageProxyMetricsReadUnavailablesGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsReadUnavailablesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics read unavailables get params -func (o *StorageProxyMetricsReadUnavailablesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics read unavailables get params -func (o *StorageProxyMetricsReadUnavailablesGetParams) WithContext(ctx context.Context) *StorageProxyMetricsReadUnavailablesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics read unavailables get params -func (o *StorageProxyMetricsReadUnavailablesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics read unavailables get params -func (o *StorageProxyMetricsReadUnavailablesGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsReadUnavailablesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics read unavailables get params -func (o *StorageProxyMetricsReadUnavailablesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsReadUnavailablesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_unavailables_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_unavailables_get_responses.go deleted file mode 100644 index c8b9a08eb1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_unavailables_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsReadUnavailablesGetReader is a Reader for the StorageProxyMetricsReadUnavailablesGet structure. -type StorageProxyMetricsReadUnavailablesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsReadUnavailablesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsReadUnavailablesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsReadUnavailablesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsReadUnavailablesGetOK creates a StorageProxyMetricsReadUnavailablesGetOK with default headers values -func NewStorageProxyMetricsReadUnavailablesGetOK() *StorageProxyMetricsReadUnavailablesGetOK { - return &StorageProxyMetricsReadUnavailablesGetOK{} -} - -/* -StorageProxyMetricsReadUnavailablesGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsReadUnavailablesGetOK struct { - Payload int32 -} - -func (o *StorageProxyMetricsReadUnavailablesGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageProxyMetricsReadUnavailablesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsReadUnavailablesGetDefault creates a StorageProxyMetricsReadUnavailablesGetDefault with default headers values -func NewStorageProxyMetricsReadUnavailablesGetDefault(code int) *StorageProxyMetricsReadUnavailablesGetDefault { - return &StorageProxyMetricsReadUnavailablesGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsReadUnavailablesGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsReadUnavailablesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics read unavailables get default response -func (o *StorageProxyMetricsReadUnavailablesGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsReadUnavailablesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsReadUnavailablesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsReadUnavailablesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_unavailables_rates_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_unavailables_rates_get_parameters.go deleted file mode 100644 index a7fac6a2f2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_unavailables_rates_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsReadUnavailablesRatesGetParams creates a new StorageProxyMetricsReadUnavailablesRatesGetParams object -// with the default values initialized. -func NewStorageProxyMetricsReadUnavailablesRatesGetParams() *StorageProxyMetricsReadUnavailablesRatesGetParams { - - return &StorageProxyMetricsReadUnavailablesRatesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsReadUnavailablesRatesGetParamsWithTimeout creates a new StorageProxyMetricsReadUnavailablesRatesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsReadUnavailablesRatesGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsReadUnavailablesRatesGetParams { - - return &StorageProxyMetricsReadUnavailablesRatesGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsReadUnavailablesRatesGetParamsWithContext creates a new StorageProxyMetricsReadUnavailablesRatesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsReadUnavailablesRatesGetParamsWithContext(ctx context.Context) *StorageProxyMetricsReadUnavailablesRatesGetParams { - - return &StorageProxyMetricsReadUnavailablesRatesGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsReadUnavailablesRatesGetParamsWithHTTPClient creates a new StorageProxyMetricsReadUnavailablesRatesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsReadUnavailablesRatesGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsReadUnavailablesRatesGetParams { - - return &StorageProxyMetricsReadUnavailablesRatesGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsReadUnavailablesRatesGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics read unavailables rates get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsReadUnavailablesRatesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics read unavailables rates get params -func (o *StorageProxyMetricsReadUnavailablesRatesGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsReadUnavailablesRatesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics read unavailables rates get params -func (o *StorageProxyMetricsReadUnavailablesRatesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics read unavailables rates get params -func (o *StorageProxyMetricsReadUnavailablesRatesGetParams) WithContext(ctx context.Context) *StorageProxyMetricsReadUnavailablesRatesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics read unavailables rates get params -func (o *StorageProxyMetricsReadUnavailablesRatesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics read unavailables rates get params -func (o *StorageProxyMetricsReadUnavailablesRatesGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsReadUnavailablesRatesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics read unavailables rates get params -func (o *StorageProxyMetricsReadUnavailablesRatesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsReadUnavailablesRatesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_unavailables_rates_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_unavailables_rates_get_responses.go deleted file mode 100644 index 886915a532..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_read_unavailables_rates_get_responses.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsReadUnavailablesRatesGetReader is a Reader for the StorageProxyMetricsReadUnavailablesRatesGet structure. -type StorageProxyMetricsReadUnavailablesRatesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsReadUnavailablesRatesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsReadUnavailablesRatesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsReadUnavailablesRatesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsReadUnavailablesRatesGetOK creates a StorageProxyMetricsReadUnavailablesRatesGetOK with default headers values -func NewStorageProxyMetricsReadUnavailablesRatesGetOK() *StorageProxyMetricsReadUnavailablesRatesGetOK { - return &StorageProxyMetricsReadUnavailablesRatesGetOK{} -} - -/* -StorageProxyMetricsReadUnavailablesRatesGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsReadUnavailablesRatesGetOK struct { - Payload *models.RateMovingAverage -} - -func (o *StorageProxyMetricsReadUnavailablesRatesGetOK) GetPayload() *models.RateMovingAverage { - return o.Payload -} - -func (o *StorageProxyMetricsReadUnavailablesRatesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.RateMovingAverage) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsReadUnavailablesRatesGetDefault creates a StorageProxyMetricsReadUnavailablesRatesGetDefault with default headers values -func NewStorageProxyMetricsReadUnavailablesRatesGetDefault(code int) *StorageProxyMetricsReadUnavailablesRatesGetDefault { - return &StorageProxyMetricsReadUnavailablesRatesGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsReadUnavailablesRatesGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsReadUnavailablesRatesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics read unavailables rates get default response -func (o *StorageProxyMetricsReadUnavailablesRatesGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsReadUnavailablesRatesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsReadUnavailablesRatesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsReadUnavailablesRatesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_estimated_histogram_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_estimated_histogram_get_parameters.go deleted file mode 100644 index a50b4ed136..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_estimated_histogram_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsWriteEstimatedHistogramGetParams creates a new StorageProxyMetricsWriteEstimatedHistogramGetParams object -// with the default values initialized. -func NewStorageProxyMetricsWriteEstimatedHistogramGetParams() *StorageProxyMetricsWriteEstimatedHistogramGetParams { - - return &StorageProxyMetricsWriteEstimatedHistogramGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsWriteEstimatedHistogramGetParamsWithTimeout creates a new StorageProxyMetricsWriteEstimatedHistogramGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsWriteEstimatedHistogramGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsWriteEstimatedHistogramGetParams { - - return &StorageProxyMetricsWriteEstimatedHistogramGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsWriteEstimatedHistogramGetParamsWithContext creates a new StorageProxyMetricsWriteEstimatedHistogramGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsWriteEstimatedHistogramGetParamsWithContext(ctx context.Context) *StorageProxyMetricsWriteEstimatedHistogramGetParams { - - return &StorageProxyMetricsWriteEstimatedHistogramGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsWriteEstimatedHistogramGetParamsWithHTTPClient creates a new StorageProxyMetricsWriteEstimatedHistogramGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsWriteEstimatedHistogramGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsWriteEstimatedHistogramGetParams { - - return &StorageProxyMetricsWriteEstimatedHistogramGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsWriteEstimatedHistogramGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics write estimated histogram get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsWriteEstimatedHistogramGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics write estimated histogram get params -func (o *StorageProxyMetricsWriteEstimatedHistogramGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsWriteEstimatedHistogramGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics write estimated histogram get params -func (o *StorageProxyMetricsWriteEstimatedHistogramGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics write estimated histogram get params -func (o *StorageProxyMetricsWriteEstimatedHistogramGetParams) WithContext(ctx context.Context) *StorageProxyMetricsWriteEstimatedHistogramGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics write estimated histogram get params -func (o *StorageProxyMetricsWriteEstimatedHistogramGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics write estimated histogram get params -func (o *StorageProxyMetricsWriteEstimatedHistogramGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsWriteEstimatedHistogramGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics write estimated histogram get params -func (o *StorageProxyMetricsWriteEstimatedHistogramGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsWriteEstimatedHistogramGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_estimated_histogram_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_estimated_histogram_get_responses.go deleted file mode 100644 index 58e3ea86cd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_estimated_histogram_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsWriteEstimatedHistogramGetReader is a Reader for the StorageProxyMetricsWriteEstimatedHistogramGet structure. -type StorageProxyMetricsWriteEstimatedHistogramGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsWriteEstimatedHistogramGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsWriteEstimatedHistogramGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsWriteEstimatedHistogramGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsWriteEstimatedHistogramGetOK creates a StorageProxyMetricsWriteEstimatedHistogramGetOK with default headers values -func NewStorageProxyMetricsWriteEstimatedHistogramGetOK() *StorageProxyMetricsWriteEstimatedHistogramGetOK { - return &StorageProxyMetricsWriteEstimatedHistogramGetOK{} -} - -/* -StorageProxyMetricsWriteEstimatedHistogramGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsWriteEstimatedHistogramGetOK struct { -} - -func (o *StorageProxyMetricsWriteEstimatedHistogramGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyMetricsWriteEstimatedHistogramGetDefault creates a StorageProxyMetricsWriteEstimatedHistogramGetDefault with default headers values -func NewStorageProxyMetricsWriteEstimatedHistogramGetDefault(code int) *StorageProxyMetricsWriteEstimatedHistogramGetDefault { - return &StorageProxyMetricsWriteEstimatedHistogramGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsWriteEstimatedHistogramGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsWriteEstimatedHistogramGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics write estimated histogram get default response -func (o *StorageProxyMetricsWriteEstimatedHistogramGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsWriteEstimatedHistogramGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsWriteEstimatedHistogramGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsWriteEstimatedHistogramGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_get_parameters.go deleted file mode 100644 index ad43968248..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsWriteGetParams creates a new StorageProxyMetricsWriteGetParams object -// with the default values initialized. -func NewStorageProxyMetricsWriteGetParams() *StorageProxyMetricsWriteGetParams { - - return &StorageProxyMetricsWriteGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsWriteGetParamsWithTimeout creates a new StorageProxyMetricsWriteGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsWriteGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsWriteGetParams { - - return &StorageProxyMetricsWriteGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsWriteGetParamsWithContext creates a new StorageProxyMetricsWriteGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsWriteGetParamsWithContext(ctx context.Context) *StorageProxyMetricsWriteGetParams { - - return &StorageProxyMetricsWriteGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsWriteGetParamsWithHTTPClient creates a new StorageProxyMetricsWriteGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsWriteGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsWriteGetParams { - - return &StorageProxyMetricsWriteGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsWriteGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics write get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsWriteGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics write get params -func (o *StorageProxyMetricsWriteGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsWriteGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics write get params -func (o *StorageProxyMetricsWriteGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics write get params -func (o *StorageProxyMetricsWriteGetParams) WithContext(ctx context.Context) *StorageProxyMetricsWriteGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics write get params -func (o *StorageProxyMetricsWriteGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics write get params -func (o *StorageProxyMetricsWriteGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsWriteGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics write get params -func (o *StorageProxyMetricsWriteGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsWriteGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_get_responses.go deleted file mode 100644 index 00a0d9c12d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsWriteGetReader is a Reader for the StorageProxyMetricsWriteGet structure. -type StorageProxyMetricsWriteGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsWriteGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsWriteGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsWriteGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsWriteGetOK creates a StorageProxyMetricsWriteGetOK with default headers values -func NewStorageProxyMetricsWriteGetOK() *StorageProxyMetricsWriteGetOK { - return &StorageProxyMetricsWriteGetOK{} -} - -/* -StorageProxyMetricsWriteGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsWriteGetOK struct { - Payload int32 -} - -func (o *StorageProxyMetricsWriteGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageProxyMetricsWriteGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsWriteGetDefault creates a StorageProxyMetricsWriteGetDefault with default headers values -func NewStorageProxyMetricsWriteGetDefault(code int) *StorageProxyMetricsWriteGetDefault { - return &StorageProxyMetricsWriteGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsWriteGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsWriteGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics write get default response -func (o *StorageProxyMetricsWriteGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsWriteGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsWriteGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsWriteGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_histogram_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_histogram_get_parameters.go deleted file mode 100644 index e4bce2c56b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_histogram_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsWriteHistogramGetParams creates a new StorageProxyMetricsWriteHistogramGetParams object -// with the default values initialized. -func NewStorageProxyMetricsWriteHistogramGetParams() *StorageProxyMetricsWriteHistogramGetParams { - - return &StorageProxyMetricsWriteHistogramGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsWriteHistogramGetParamsWithTimeout creates a new StorageProxyMetricsWriteHistogramGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsWriteHistogramGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsWriteHistogramGetParams { - - return &StorageProxyMetricsWriteHistogramGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsWriteHistogramGetParamsWithContext creates a new StorageProxyMetricsWriteHistogramGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsWriteHistogramGetParamsWithContext(ctx context.Context) *StorageProxyMetricsWriteHistogramGetParams { - - return &StorageProxyMetricsWriteHistogramGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsWriteHistogramGetParamsWithHTTPClient creates a new StorageProxyMetricsWriteHistogramGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsWriteHistogramGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsWriteHistogramGetParams { - - return &StorageProxyMetricsWriteHistogramGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsWriteHistogramGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics write histogram get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsWriteHistogramGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics write histogram get params -func (o *StorageProxyMetricsWriteHistogramGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsWriteHistogramGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics write histogram get params -func (o *StorageProxyMetricsWriteHistogramGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics write histogram get params -func (o *StorageProxyMetricsWriteHistogramGetParams) WithContext(ctx context.Context) *StorageProxyMetricsWriteHistogramGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics write histogram get params -func (o *StorageProxyMetricsWriteHistogramGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics write histogram get params -func (o *StorageProxyMetricsWriteHistogramGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsWriteHistogramGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics write histogram get params -func (o *StorageProxyMetricsWriteHistogramGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsWriteHistogramGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_histogram_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_histogram_get_responses.go deleted file mode 100644 index f5d32e071d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_histogram_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsWriteHistogramGetReader is a Reader for the StorageProxyMetricsWriteHistogramGet structure. -type StorageProxyMetricsWriteHistogramGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsWriteHistogramGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsWriteHistogramGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsWriteHistogramGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsWriteHistogramGetOK creates a StorageProxyMetricsWriteHistogramGetOK with default headers values -func NewStorageProxyMetricsWriteHistogramGetOK() *StorageProxyMetricsWriteHistogramGetOK { - return &StorageProxyMetricsWriteHistogramGetOK{} -} - -/* -StorageProxyMetricsWriteHistogramGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsWriteHistogramGetOK struct { -} - -func (o *StorageProxyMetricsWriteHistogramGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyMetricsWriteHistogramGetDefault creates a StorageProxyMetricsWriteHistogramGetDefault with default headers values -func NewStorageProxyMetricsWriteHistogramGetDefault(code int) *StorageProxyMetricsWriteHistogramGetDefault { - return &StorageProxyMetricsWriteHistogramGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsWriteHistogramGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsWriteHistogramGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics write histogram get default response -func (o *StorageProxyMetricsWriteHistogramGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsWriteHistogramGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsWriteHistogramGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsWriteHistogramGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_moving_average_histogram_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_moving_average_histogram_get_parameters.go deleted file mode 100644 index 33d5dca1c9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_moving_average_histogram_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsWriteMovingAverageHistogramGetParams creates a new StorageProxyMetricsWriteMovingAverageHistogramGetParams object -// with the default values initialized. -func NewStorageProxyMetricsWriteMovingAverageHistogramGetParams() *StorageProxyMetricsWriteMovingAverageHistogramGetParams { - - return &StorageProxyMetricsWriteMovingAverageHistogramGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsWriteMovingAverageHistogramGetParamsWithTimeout creates a new StorageProxyMetricsWriteMovingAverageHistogramGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsWriteMovingAverageHistogramGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsWriteMovingAverageHistogramGetParams { - - return &StorageProxyMetricsWriteMovingAverageHistogramGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsWriteMovingAverageHistogramGetParamsWithContext creates a new StorageProxyMetricsWriteMovingAverageHistogramGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsWriteMovingAverageHistogramGetParamsWithContext(ctx context.Context) *StorageProxyMetricsWriteMovingAverageHistogramGetParams { - - return &StorageProxyMetricsWriteMovingAverageHistogramGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsWriteMovingAverageHistogramGetParamsWithHTTPClient creates a new StorageProxyMetricsWriteMovingAverageHistogramGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsWriteMovingAverageHistogramGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsWriteMovingAverageHistogramGetParams { - - return &StorageProxyMetricsWriteMovingAverageHistogramGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsWriteMovingAverageHistogramGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics write moving average histogram get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsWriteMovingAverageHistogramGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics write moving average histogram get params -func (o *StorageProxyMetricsWriteMovingAverageHistogramGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsWriteMovingAverageHistogramGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics write moving average histogram get params -func (o *StorageProxyMetricsWriteMovingAverageHistogramGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics write moving average histogram get params -func (o *StorageProxyMetricsWriteMovingAverageHistogramGetParams) WithContext(ctx context.Context) *StorageProxyMetricsWriteMovingAverageHistogramGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics write moving average histogram get params -func (o *StorageProxyMetricsWriteMovingAverageHistogramGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics write moving average histogram get params -func (o *StorageProxyMetricsWriteMovingAverageHistogramGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsWriteMovingAverageHistogramGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics write moving average histogram get params -func (o *StorageProxyMetricsWriteMovingAverageHistogramGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsWriteMovingAverageHistogramGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_moving_average_histogram_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_moving_average_histogram_get_responses.go deleted file mode 100644 index a81140415d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_moving_average_histogram_get_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsWriteMovingAverageHistogramGetReader is a Reader for the StorageProxyMetricsWriteMovingAverageHistogramGet structure. -type StorageProxyMetricsWriteMovingAverageHistogramGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsWriteMovingAverageHistogramGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsWriteMovingAverageHistogramGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsWriteMovingAverageHistogramGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsWriteMovingAverageHistogramGetOK creates a StorageProxyMetricsWriteMovingAverageHistogramGetOK with default headers values -func NewStorageProxyMetricsWriteMovingAverageHistogramGetOK() *StorageProxyMetricsWriteMovingAverageHistogramGetOK { - return &StorageProxyMetricsWriteMovingAverageHistogramGetOK{} -} - -/* -StorageProxyMetricsWriteMovingAverageHistogramGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsWriteMovingAverageHistogramGetOK struct { -} - -func (o *StorageProxyMetricsWriteMovingAverageHistogramGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyMetricsWriteMovingAverageHistogramGetDefault creates a StorageProxyMetricsWriteMovingAverageHistogramGetDefault with default headers values -func NewStorageProxyMetricsWriteMovingAverageHistogramGetDefault(code int) *StorageProxyMetricsWriteMovingAverageHistogramGetDefault { - return &StorageProxyMetricsWriteMovingAverageHistogramGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsWriteMovingAverageHistogramGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsWriteMovingAverageHistogramGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics write moving average histogram get default response -func (o *StorageProxyMetricsWriteMovingAverageHistogramGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsWriteMovingAverageHistogramGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsWriteMovingAverageHistogramGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsWriteMovingAverageHistogramGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_timeouts_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_timeouts_get_parameters.go deleted file mode 100644 index dbd3613736..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_timeouts_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsWriteTimeoutsGetParams creates a new StorageProxyMetricsWriteTimeoutsGetParams object -// with the default values initialized. -func NewStorageProxyMetricsWriteTimeoutsGetParams() *StorageProxyMetricsWriteTimeoutsGetParams { - - return &StorageProxyMetricsWriteTimeoutsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsWriteTimeoutsGetParamsWithTimeout creates a new StorageProxyMetricsWriteTimeoutsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsWriteTimeoutsGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsWriteTimeoutsGetParams { - - return &StorageProxyMetricsWriteTimeoutsGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsWriteTimeoutsGetParamsWithContext creates a new StorageProxyMetricsWriteTimeoutsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsWriteTimeoutsGetParamsWithContext(ctx context.Context) *StorageProxyMetricsWriteTimeoutsGetParams { - - return &StorageProxyMetricsWriteTimeoutsGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsWriteTimeoutsGetParamsWithHTTPClient creates a new StorageProxyMetricsWriteTimeoutsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsWriteTimeoutsGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsWriteTimeoutsGetParams { - - return &StorageProxyMetricsWriteTimeoutsGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsWriteTimeoutsGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics write timeouts get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsWriteTimeoutsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics write timeouts get params -func (o *StorageProxyMetricsWriteTimeoutsGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsWriteTimeoutsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics write timeouts get params -func (o *StorageProxyMetricsWriteTimeoutsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics write timeouts get params -func (o *StorageProxyMetricsWriteTimeoutsGetParams) WithContext(ctx context.Context) *StorageProxyMetricsWriteTimeoutsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics write timeouts get params -func (o *StorageProxyMetricsWriteTimeoutsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics write timeouts get params -func (o *StorageProxyMetricsWriteTimeoutsGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsWriteTimeoutsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics write timeouts get params -func (o *StorageProxyMetricsWriteTimeoutsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsWriteTimeoutsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_timeouts_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_timeouts_get_responses.go deleted file mode 100644 index 2840b50892..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_timeouts_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsWriteTimeoutsGetReader is a Reader for the StorageProxyMetricsWriteTimeoutsGet structure. -type StorageProxyMetricsWriteTimeoutsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsWriteTimeoutsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsWriteTimeoutsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsWriteTimeoutsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsWriteTimeoutsGetOK creates a StorageProxyMetricsWriteTimeoutsGetOK with default headers values -func NewStorageProxyMetricsWriteTimeoutsGetOK() *StorageProxyMetricsWriteTimeoutsGetOK { - return &StorageProxyMetricsWriteTimeoutsGetOK{} -} - -/* -StorageProxyMetricsWriteTimeoutsGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsWriteTimeoutsGetOK struct { - Payload int32 -} - -func (o *StorageProxyMetricsWriteTimeoutsGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageProxyMetricsWriteTimeoutsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsWriteTimeoutsGetDefault creates a StorageProxyMetricsWriteTimeoutsGetDefault with default headers values -func NewStorageProxyMetricsWriteTimeoutsGetDefault(code int) *StorageProxyMetricsWriteTimeoutsGetDefault { - return &StorageProxyMetricsWriteTimeoutsGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsWriteTimeoutsGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsWriteTimeoutsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics write timeouts get default response -func (o *StorageProxyMetricsWriteTimeoutsGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsWriteTimeoutsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsWriteTimeoutsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsWriteTimeoutsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_timeouts_rates_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_timeouts_rates_get_parameters.go deleted file mode 100644 index 5fd5df1053..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_timeouts_rates_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsWriteTimeoutsRatesGetParams creates a new StorageProxyMetricsWriteTimeoutsRatesGetParams object -// with the default values initialized. -func NewStorageProxyMetricsWriteTimeoutsRatesGetParams() *StorageProxyMetricsWriteTimeoutsRatesGetParams { - - return &StorageProxyMetricsWriteTimeoutsRatesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsWriteTimeoutsRatesGetParamsWithTimeout creates a new StorageProxyMetricsWriteTimeoutsRatesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsWriteTimeoutsRatesGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsWriteTimeoutsRatesGetParams { - - return &StorageProxyMetricsWriteTimeoutsRatesGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsWriteTimeoutsRatesGetParamsWithContext creates a new StorageProxyMetricsWriteTimeoutsRatesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsWriteTimeoutsRatesGetParamsWithContext(ctx context.Context) *StorageProxyMetricsWriteTimeoutsRatesGetParams { - - return &StorageProxyMetricsWriteTimeoutsRatesGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsWriteTimeoutsRatesGetParamsWithHTTPClient creates a new StorageProxyMetricsWriteTimeoutsRatesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsWriteTimeoutsRatesGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsWriteTimeoutsRatesGetParams { - - return &StorageProxyMetricsWriteTimeoutsRatesGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsWriteTimeoutsRatesGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics write timeouts rates get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsWriteTimeoutsRatesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics write timeouts rates get params -func (o *StorageProxyMetricsWriteTimeoutsRatesGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsWriteTimeoutsRatesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics write timeouts rates get params -func (o *StorageProxyMetricsWriteTimeoutsRatesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics write timeouts rates get params -func (o *StorageProxyMetricsWriteTimeoutsRatesGetParams) WithContext(ctx context.Context) *StorageProxyMetricsWriteTimeoutsRatesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics write timeouts rates get params -func (o *StorageProxyMetricsWriteTimeoutsRatesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics write timeouts rates get params -func (o *StorageProxyMetricsWriteTimeoutsRatesGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsWriteTimeoutsRatesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics write timeouts rates get params -func (o *StorageProxyMetricsWriteTimeoutsRatesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsWriteTimeoutsRatesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_timeouts_rates_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_timeouts_rates_get_responses.go deleted file mode 100644 index bb5ec880b1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_timeouts_rates_get_responses.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsWriteTimeoutsRatesGetReader is a Reader for the StorageProxyMetricsWriteTimeoutsRatesGet structure. -type StorageProxyMetricsWriteTimeoutsRatesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsWriteTimeoutsRatesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsWriteTimeoutsRatesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsWriteTimeoutsRatesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsWriteTimeoutsRatesGetOK creates a StorageProxyMetricsWriteTimeoutsRatesGetOK with default headers values -func NewStorageProxyMetricsWriteTimeoutsRatesGetOK() *StorageProxyMetricsWriteTimeoutsRatesGetOK { - return &StorageProxyMetricsWriteTimeoutsRatesGetOK{} -} - -/* -StorageProxyMetricsWriteTimeoutsRatesGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsWriteTimeoutsRatesGetOK struct { - Payload *models.RateMovingAverage -} - -func (o *StorageProxyMetricsWriteTimeoutsRatesGetOK) GetPayload() *models.RateMovingAverage { - return o.Payload -} - -func (o *StorageProxyMetricsWriteTimeoutsRatesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.RateMovingAverage) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsWriteTimeoutsRatesGetDefault creates a StorageProxyMetricsWriteTimeoutsRatesGetDefault with default headers values -func NewStorageProxyMetricsWriteTimeoutsRatesGetDefault(code int) *StorageProxyMetricsWriteTimeoutsRatesGetDefault { - return &StorageProxyMetricsWriteTimeoutsRatesGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsWriteTimeoutsRatesGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsWriteTimeoutsRatesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics write timeouts rates get default response -func (o *StorageProxyMetricsWriteTimeoutsRatesGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsWriteTimeoutsRatesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsWriteTimeoutsRatesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsWriteTimeoutsRatesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_unavailables_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_unavailables_get_parameters.go deleted file mode 100644 index 189ddbac06..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_unavailables_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsWriteUnavailablesGetParams creates a new StorageProxyMetricsWriteUnavailablesGetParams object -// with the default values initialized. -func NewStorageProxyMetricsWriteUnavailablesGetParams() *StorageProxyMetricsWriteUnavailablesGetParams { - - return &StorageProxyMetricsWriteUnavailablesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsWriteUnavailablesGetParamsWithTimeout creates a new StorageProxyMetricsWriteUnavailablesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsWriteUnavailablesGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsWriteUnavailablesGetParams { - - return &StorageProxyMetricsWriteUnavailablesGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsWriteUnavailablesGetParamsWithContext creates a new StorageProxyMetricsWriteUnavailablesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsWriteUnavailablesGetParamsWithContext(ctx context.Context) *StorageProxyMetricsWriteUnavailablesGetParams { - - return &StorageProxyMetricsWriteUnavailablesGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsWriteUnavailablesGetParamsWithHTTPClient creates a new StorageProxyMetricsWriteUnavailablesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsWriteUnavailablesGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsWriteUnavailablesGetParams { - - return &StorageProxyMetricsWriteUnavailablesGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsWriteUnavailablesGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics write unavailables get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsWriteUnavailablesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics write unavailables get params -func (o *StorageProxyMetricsWriteUnavailablesGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsWriteUnavailablesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics write unavailables get params -func (o *StorageProxyMetricsWriteUnavailablesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics write unavailables get params -func (o *StorageProxyMetricsWriteUnavailablesGetParams) WithContext(ctx context.Context) *StorageProxyMetricsWriteUnavailablesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics write unavailables get params -func (o *StorageProxyMetricsWriteUnavailablesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics write unavailables get params -func (o *StorageProxyMetricsWriteUnavailablesGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsWriteUnavailablesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics write unavailables get params -func (o *StorageProxyMetricsWriteUnavailablesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsWriteUnavailablesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_unavailables_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_unavailables_get_responses.go deleted file mode 100644 index a66d195130..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_unavailables_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsWriteUnavailablesGetReader is a Reader for the StorageProxyMetricsWriteUnavailablesGet structure. -type StorageProxyMetricsWriteUnavailablesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsWriteUnavailablesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsWriteUnavailablesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsWriteUnavailablesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsWriteUnavailablesGetOK creates a StorageProxyMetricsWriteUnavailablesGetOK with default headers values -func NewStorageProxyMetricsWriteUnavailablesGetOK() *StorageProxyMetricsWriteUnavailablesGetOK { - return &StorageProxyMetricsWriteUnavailablesGetOK{} -} - -/* -StorageProxyMetricsWriteUnavailablesGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsWriteUnavailablesGetOK struct { - Payload int32 -} - -func (o *StorageProxyMetricsWriteUnavailablesGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageProxyMetricsWriteUnavailablesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsWriteUnavailablesGetDefault creates a StorageProxyMetricsWriteUnavailablesGetDefault with default headers values -func NewStorageProxyMetricsWriteUnavailablesGetDefault(code int) *StorageProxyMetricsWriteUnavailablesGetDefault { - return &StorageProxyMetricsWriteUnavailablesGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsWriteUnavailablesGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsWriteUnavailablesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics write unavailables get default response -func (o *StorageProxyMetricsWriteUnavailablesGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsWriteUnavailablesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsWriteUnavailablesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsWriteUnavailablesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_unavailables_rates_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_unavailables_rates_get_parameters.go deleted file mode 100644 index 5bc601c32d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_unavailables_rates_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyMetricsWriteUnavailablesRatesGetParams creates a new StorageProxyMetricsWriteUnavailablesRatesGetParams object -// with the default values initialized. -func NewStorageProxyMetricsWriteUnavailablesRatesGetParams() *StorageProxyMetricsWriteUnavailablesRatesGetParams { - - return &StorageProxyMetricsWriteUnavailablesRatesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyMetricsWriteUnavailablesRatesGetParamsWithTimeout creates a new StorageProxyMetricsWriteUnavailablesRatesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyMetricsWriteUnavailablesRatesGetParamsWithTimeout(timeout time.Duration) *StorageProxyMetricsWriteUnavailablesRatesGetParams { - - return &StorageProxyMetricsWriteUnavailablesRatesGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyMetricsWriteUnavailablesRatesGetParamsWithContext creates a new StorageProxyMetricsWriteUnavailablesRatesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyMetricsWriteUnavailablesRatesGetParamsWithContext(ctx context.Context) *StorageProxyMetricsWriteUnavailablesRatesGetParams { - - return &StorageProxyMetricsWriteUnavailablesRatesGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyMetricsWriteUnavailablesRatesGetParamsWithHTTPClient creates a new StorageProxyMetricsWriteUnavailablesRatesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyMetricsWriteUnavailablesRatesGetParamsWithHTTPClient(client *http.Client) *StorageProxyMetricsWriteUnavailablesRatesGetParams { - - return &StorageProxyMetricsWriteUnavailablesRatesGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyMetricsWriteUnavailablesRatesGetParams contains all the parameters to send to the API endpoint -for the storage proxy metrics write unavailables rates get operation typically these are written to a http.Request -*/ -type StorageProxyMetricsWriteUnavailablesRatesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy metrics write unavailables rates get params -func (o *StorageProxyMetricsWriteUnavailablesRatesGetParams) WithTimeout(timeout time.Duration) *StorageProxyMetricsWriteUnavailablesRatesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy metrics write unavailables rates get params -func (o *StorageProxyMetricsWriteUnavailablesRatesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy metrics write unavailables rates get params -func (o *StorageProxyMetricsWriteUnavailablesRatesGetParams) WithContext(ctx context.Context) *StorageProxyMetricsWriteUnavailablesRatesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy metrics write unavailables rates get params -func (o *StorageProxyMetricsWriteUnavailablesRatesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy metrics write unavailables rates get params -func (o *StorageProxyMetricsWriteUnavailablesRatesGetParams) WithHTTPClient(client *http.Client) *StorageProxyMetricsWriteUnavailablesRatesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy metrics write unavailables rates get params -func (o *StorageProxyMetricsWriteUnavailablesRatesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyMetricsWriteUnavailablesRatesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_unavailables_rates_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_unavailables_rates_get_responses.go deleted file mode 100644 index 2733de277f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_metrics_write_unavailables_rates_get_responses.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyMetricsWriteUnavailablesRatesGetReader is a Reader for the StorageProxyMetricsWriteUnavailablesRatesGet structure. -type StorageProxyMetricsWriteUnavailablesRatesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyMetricsWriteUnavailablesRatesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyMetricsWriteUnavailablesRatesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyMetricsWriteUnavailablesRatesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyMetricsWriteUnavailablesRatesGetOK creates a StorageProxyMetricsWriteUnavailablesRatesGetOK with default headers values -func NewStorageProxyMetricsWriteUnavailablesRatesGetOK() *StorageProxyMetricsWriteUnavailablesRatesGetOK { - return &StorageProxyMetricsWriteUnavailablesRatesGetOK{} -} - -/* -StorageProxyMetricsWriteUnavailablesRatesGetOK handles this case with default header values. - -Success -*/ -type StorageProxyMetricsWriteUnavailablesRatesGetOK struct { - Payload *models.RateMovingAverage -} - -func (o *StorageProxyMetricsWriteUnavailablesRatesGetOK) GetPayload() *models.RateMovingAverage { - return o.Payload -} - -func (o *StorageProxyMetricsWriteUnavailablesRatesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.RateMovingAverage) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyMetricsWriteUnavailablesRatesGetDefault creates a StorageProxyMetricsWriteUnavailablesRatesGetDefault with default headers values -func NewStorageProxyMetricsWriteUnavailablesRatesGetDefault(code int) *StorageProxyMetricsWriteUnavailablesRatesGetDefault { - return &StorageProxyMetricsWriteUnavailablesRatesGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyMetricsWriteUnavailablesRatesGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyMetricsWriteUnavailablesRatesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy metrics write unavailables rates get default response -func (o *StorageProxyMetricsWriteUnavailablesRatesGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyMetricsWriteUnavailablesRatesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyMetricsWriteUnavailablesRatesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyMetricsWriteUnavailablesRatesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_range_rpc_timeout_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_range_rpc_timeout_get_parameters.go deleted file mode 100644 index 8145a6f738..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_range_rpc_timeout_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyRangeRPCTimeoutGetParams creates a new StorageProxyRangeRPCTimeoutGetParams object -// with the default values initialized. -func NewStorageProxyRangeRPCTimeoutGetParams() *StorageProxyRangeRPCTimeoutGetParams { - - return &StorageProxyRangeRPCTimeoutGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyRangeRPCTimeoutGetParamsWithTimeout creates a new StorageProxyRangeRPCTimeoutGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyRangeRPCTimeoutGetParamsWithTimeout(timeout time.Duration) *StorageProxyRangeRPCTimeoutGetParams { - - return &StorageProxyRangeRPCTimeoutGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyRangeRPCTimeoutGetParamsWithContext creates a new StorageProxyRangeRPCTimeoutGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyRangeRPCTimeoutGetParamsWithContext(ctx context.Context) *StorageProxyRangeRPCTimeoutGetParams { - - return &StorageProxyRangeRPCTimeoutGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyRangeRPCTimeoutGetParamsWithHTTPClient creates a new StorageProxyRangeRPCTimeoutGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyRangeRPCTimeoutGetParamsWithHTTPClient(client *http.Client) *StorageProxyRangeRPCTimeoutGetParams { - - return &StorageProxyRangeRPCTimeoutGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyRangeRPCTimeoutGetParams contains all the parameters to send to the API endpoint -for the storage proxy range Rpc timeout get operation typically these are written to a http.Request -*/ -type StorageProxyRangeRPCTimeoutGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy range Rpc timeout get params -func (o *StorageProxyRangeRPCTimeoutGetParams) WithTimeout(timeout time.Duration) *StorageProxyRangeRPCTimeoutGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy range Rpc timeout get params -func (o *StorageProxyRangeRPCTimeoutGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy range Rpc timeout get params -func (o *StorageProxyRangeRPCTimeoutGetParams) WithContext(ctx context.Context) *StorageProxyRangeRPCTimeoutGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy range Rpc timeout get params -func (o *StorageProxyRangeRPCTimeoutGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy range Rpc timeout get params -func (o *StorageProxyRangeRPCTimeoutGetParams) WithHTTPClient(client *http.Client) *StorageProxyRangeRPCTimeoutGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy range Rpc timeout get params -func (o *StorageProxyRangeRPCTimeoutGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyRangeRPCTimeoutGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_range_rpc_timeout_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_range_rpc_timeout_get_responses.go deleted file mode 100644 index 305eea738f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_range_rpc_timeout_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyRangeRPCTimeoutGetReader is a Reader for the StorageProxyRangeRPCTimeoutGet structure. -type StorageProxyRangeRPCTimeoutGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyRangeRPCTimeoutGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyRangeRPCTimeoutGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyRangeRPCTimeoutGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyRangeRPCTimeoutGetOK creates a StorageProxyRangeRPCTimeoutGetOK with default headers values -func NewStorageProxyRangeRPCTimeoutGetOK() *StorageProxyRangeRPCTimeoutGetOK { - return &StorageProxyRangeRPCTimeoutGetOK{} -} - -/* -StorageProxyRangeRPCTimeoutGetOK handles this case with default header values. - -Success -*/ -type StorageProxyRangeRPCTimeoutGetOK struct { - Payload interface{} -} - -func (o *StorageProxyRangeRPCTimeoutGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageProxyRangeRPCTimeoutGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyRangeRPCTimeoutGetDefault creates a StorageProxyRangeRPCTimeoutGetDefault with default headers values -func NewStorageProxyRangeRPCTimeoutGetDefault(code int) *StorageProxyRangeRPCTimeoutGetDefault { - return &StorageProxyRangeRPCTimeoutGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyRangeRPCTimeoutGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyRangeRPCTimeoutGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy range Rpc timeout get default response -func (o *StorageProxyRangeRPCTimeoutGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyRangeRPCTimeoutGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyRangeRPCTimeoutGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyRangeRPCTimeoutGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_range_rpc_timeout_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_range_rpc_timeout_post_parameters.go deleted file mode 100644 index ed5b5e94ee..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_range_rpc_timeout_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyRangeRPCTimeoutPostParams creates a new StorageProxyRangeRPCTimeoutPostParams object -// with the default values initialized. -func NewStorageProxyRangeRPCTimeoutPostParams() *StorageProxyRangeRPCTimeoutPostParams { - var () - return &StorageProxyRangeRPCTimeoutPostParams{ - - requestTimeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyRangeRPCTimeoutPostParamsWithTimeout creates a new StorageProxyRangeRPCTimeoutPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyRangeRPCTimeoutPostParamsWithTimeout(timeout time.Duration) *StorageProxyRangeRPCTimeoutPostParams { - var () - return &StorageProxyRangeRPCTimeoutPostParams{ - - requestTimeout: timeout, - } -} - -// NewStorageProxyRangeRPCTimeoutPostParamsWithContext creates a new StorageProxyRangeRPCTimeoutPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyRangeRPCTimeoutPostParamsWithContext(ctx context.Context) *StorageProxyRangeRPCTimeoutPostParams { - var () - return &StorageProxyRangeRPCTimeoutPostParams{ - - Context: ctx, - } -} - -// NewStorageProxyRangeRPCTimeoutPostParamsWithHTTPClient creates a new StorageProxyRangeRPCTimeoutPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyRangeRPCTimeoutPostParamsWithHTTPClient(client *http.Client) *StorageProxyRangeRPCTimeoutPostParams { - var () - return &StorageProxyRangeRPCTimeoutPostParams{ - HTTPClient: client, - } -} - -/* -StorageProxyRangeRPCTimeoutPostParams contains all the parameters to send to the API endpoint -for the storage proxy range Rpc timeout post operation typically these are written to a http.Request -*/ -type StorageProxyRangeRPCTimeoutPostParams struct { - - /*Timeout - timeout in second - - */ - Timeout string - - requestTimeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithRequestTimeout adds the timeout to the storage proxy range Rpc timeout post params -func (o *StorageProxyRangeRPCTimeoutPostParams) WithRequestTimeout(timeout time.Duration) *StorageProxyRangeRPCTimeoutPostParams { - o.SetRequestTimeout(timeout) - return o -} - -// SetRequestTimeout adds the timeout to the storage proxy range Rpc timeout post params -func (o *StorageProxyRangeRPCTimeoutPostParams) SetRequestTimeout(timeout time.Duration) { - o.requestTimeout = timeout -} - -// WithContext adds the context to the storage proxy range Rpc timeout post params -func (o *StorageProxyRangeRPCTimeoutPostParams) WithContext(ctx context.Context) *StorageProxyRangeRPCTimeoutPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy range Rpc timeout post params -func (o *StorageProxyRangeRPCTimeoutPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy range Rpc timeout post params -func (o *StorageProxyRangeRPCTimeoutPostParams) WithHTTPClient(client *http.Client) *StorageProxyRangeRPCTimeoutPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy range Rpc timeout post params -func (o *StorageProxyRangeRPCTimeoutPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithTimeout adds the timeout to the storage proxy range Rpc timeout post params -func (o *StorageProxyRangeRPCTimeoutPostParams) WithTimeout(timeout string) *StorageProxyRangeRPCTimeoutPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy range Rpc timeout post params -func (o *StorageProxyRangeRPCTimeoutPostParams) SetTimeout(timeout string) { - o.Timeout = timeout -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyRangeRPCTimeoutPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.requestTimeout); err != nil { - return err - } - var res []error - - // query param timeout - qrTimeout := o.Timeout - qTimeout := qrTimeout - if qTimeout != "" { - if err := r.SetQueryParam("timeout", qTimeout); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_range_rpc_timeout_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_range_rpc_timeout_post_responses.go deleted file mode 100644 index c3484daf28..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_range_rpc_timeout_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyRangeRPCTimeoutPostReader is a Reader for the StorageProxyRangeRPCTimeoutPost structure. -type StorageProxyRangeRPCTimeoutPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyRangeRPCTimeoutPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyRangeRPCTimeoutPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyRangeRPCTimeoutPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyRangeRPCTimeoutPostOK creates a StorageProxyRangeRPCTimeoutPostOK with default headers values -func NewStorageProxyRangeRPCTimeoutPostOK() *StorageProxyRangeRPCTimeoutPostOK { - return &StorageProxyRangeRPCTimeoutPostOK{} -} - -/* -StorageProxyRangeRPCTimeoutPostOK handles this case with default header values. - -Success -*/ -type StorageProxyRangeRPCTimeoutPostOK struct { -} - -func (o *StorageProxyRangeRPCTimeoutPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyRangeRPCTimeoutPostDefault creates a StorageProxyRangeRPCTimeoutPostDefault with default headers values -func NewStorageProxyRangeRPCTimeoutPostDefault(code int) *StorageProxyRangeRPCTimeoutPostDefault { - return &StorageProxyRangeRPCTimeoutPostDefault{ - _statusCode: code, - } -} - -/* -StorageProxyRangeRPCTimeoutPostDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyRangeRPCTimeoutPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy range Rpc timeout post default response -func (o *StorageProxyRangeRPCTimeoutPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyRangeRPCTimeoutPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyRangeRPCTimeoutPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyRangeRPCTimeoutPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_repair_attempted_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_repair_attempted_get_parameters.go deleted file mode 100644 index 2cf834f9c7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_repair_attempted_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyReadRepairAttemptedGetParams creates a new StorageProxyReadRepairAttemptedGetParams object -// with the default values initialized. -func NewStorageProxyReadRepairAttemptedGetParams() *StorageProxyReadRepairAttemptedGetParams { - - return &StorageProxyReadRepairAttemptedGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyReadRepairAttemptedGetParamsWithTimeout creates a new StorageProxyReadRepairAttemptedGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyReadRepairAttemptedGetParamsWithTimeout(timeout time.Duration) *StorageProxyReadRepairAttemptedGetParams { - - return &StorageProxyReadRepairAttemptedGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyReadRepairAttemptedGetParamsWithContext creates a new StorageProxyReadRepairAttemptedGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyReadRepairAttemptedGetParamsWithContext(ctx context.Context) *StorageProxyReadRepairAttemptedGetParams { - - return &StorageProxyReadRepairAttemptedGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyReadRepairAttemptedGetParamsWithHTTPClient creates a new StorageProxyReadRepairAttemptedGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyReadRepairAttemptedGetParamsWithHTTPClient(client *http.Client) *StorageProxyReadRepairAttemptedGetParams { - - return &StorageProxyReadRepairAttemptedGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyReadRepairAttemptedGetParams contains all the parameters to send to the API endpoint -for the storage proxy read repair attempted get operation typically these are written to a http.Request -*/ -type StorageProxyReadRepairAttemptedGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy read repair attempted get params -func (o *StorageProxyReadRepairAttemptedGetParams) WithTimeout(timeout time.Duration) *StorageProxyReadRepairAttemptedGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy read repair attempted get params -func (o *StorageProxyReadRepairAttemptedGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy read repair attempted get params -func (o *StorageProxyReadRepairAttemptedGetParams) WithContext(ctx context.Context) *StorageProxyReadRepairAttemptedGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy read repair attempted get params -func (o *StorageProxyReadRepairAttemptedGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy read repair attempted get params -func (o *StorageProxyReadRepairAttemptedGetParams) WithHTTPClient(client *http.Client) *StorageProxyReadRepairAttemptedGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy read repair attempted get params -func (o *StorageProxyReadRepairAttemptedGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyReadRepairAttemptedGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_repair_attempted_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_repair_attempted_get_responses.go deleted file mode 100644 index 11af928e00..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_repair_attempted_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyReadRepairAttemptedGetReader is a Reader for the StorageProxyReadRepairAttemptedGet structure. -type StorageProxyReadRepairAttemptedGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyReadRepairAttemptedGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyReadRepairAttemptedGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyReadRepairAttemptedGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyReadRepairAttemptedGetOK creates a StorageProxyReadRepairAttemptedGetOK with default headers values -func NewStorageProxyReadRepairAttemptedGetOK() *StorageProxyReadRepairAttemptedGetOK { - return &StorageProxyReadRepairAttemptedGetOK{} -} - -/* -StorageProxyReadRepairAttemptedGetOK handles this case with default header values. - -Success -*/ -type StorageProxyReadRepairAttemptedGetOK struct { - Payload interface{} -} - -func (o *StorageProxyReadRepairAttemptedGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageProxyReadRepairAttemptedGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyReadRepairAttemptedGetDefault creates a StorageProxyReadRepairAttemptedGetDefault with default headers values -func NewStorageProxyReadRepairAttemptedGetDefault(code int) *StorageProxyReadRepairAttemptedGetDefault { - return &StorageProxyReadRepairAttemptedGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyReadRepairAttemptedGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyReadRepairAttemptedGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy read repair attempted get default response -func (o *StorageProxyReadRepairAttemptedGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyReadRepairAttemptedGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyReadRepairAttemptedGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyReadRepairAttemptedGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_repair_repaired_background_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_repair_repaired_background_get_parameters.go deleted file mode 100644 index 00aa5841c6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_repair_repaired_background_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyReadRepairRepairedBackgroundGetParams creates a new StorageProxyReadRepairRepairedBackgroundGetParams object -// with the default values initialized. -func NewStorageProxyReadRepairRepairedBackgroundGetParams() *StorageProxyReadRepairRepairedBackgroundGetParams { - - return &StorageProxyReadRepairRepairedBackgroundGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyReadRepairRepairedBackgroundGetParamsWithTimeout creates a new StorageProxyReadRepairRepairedBackgroundGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyReadRepairRepairedBackgroundGetParamsWithTimeout(timeout time.Duration) *StorageProxyReadRepairRepairedBackgroundGetParams { - - return &StorageProxyReadRepairRepairedBackgroundGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyReadRepairRepairedBackgroundGetParamsWithContext creates a new StorageProxyReadRepairRepairedBackgroundGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyReadRepairRepairedBackgroundGetParamsWithContext(ctx context.Context) *StorageProxyReadRepairRepairedBackgroundGetParams { - - return &StorageProxyReadRepairRepairedBackgroundGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyReadRepairRepairedBackgroundGetParamsWithHTTPClient creates a new StorageProxyReadRepairRepairedBackgroundGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyReadRepairRepairedBackgroundGetParamsWithHTTPClient(client *http.Client) *StorageProxyReadRepairRepairedBackgroundGetParams { - - return &StorageProxyReadRepairRepairedBackgroundGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyReadRepairRepairedBackgroundGetParams contains all the parameters to send to the API endpoint -for the storage proxy read repair repaired background get operation typically these are written to a http.Request -*/ -type StorageProxyReadRepairRepairedBackgroundGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy read repair repaired background get params -func (o *StorageProxyReadRepairRepairedBackgroundGetParams) WithTimeout(timeout time.Duration) *StorageProxyReadRepairRepairedBackgroundGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy read repair repaired background get params -func (o *StorageProxyReadRepairRepairedBackgroundGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy read repair repaired background get params -func (o *StorageProxyReadRepairRepairedBackgroundGetParams) WithContext(ctx context.Context) *StorageProxyReadRepairRepairedBackgroundGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy read repair repaired background get params -func (o *StorageProxyReadRepairRepairedBackgroundGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy read repair repaired background get params -func (o *StorageProxyReadRepairRepairedBackgroundGetParams) WithHTTPClient(client *http.Client) *StorageProxyReadRepairRepairedBackgroundGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy read repair repaired background get params -func (o *StorageProxyReadRepairRepairedBackgroundGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyReadRepairRepairedBackgroundGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_repair_repaired_background_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_repair_repaired_background_get_responses.go deleted file mode 100644 index d765b560b3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_repair_repaired_background_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyReadRepairRepairedBackgroundGetReader is a Reader for the StorageProxyReadRepairRepairedBackgroundGet structure. -type StorageProxyReadRepairRepairedBackgroundGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyReadRepairRepairedBackgroundGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyReadRepairRepairedBackgroundGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyReadRepairRepairedBackgroundGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyReadRepairRepairedBackgroundGetOK creates a StorageProxyReadRepairRepairedBackgroundGetOK with default headers values -func NewStorageProxyReadRepairRepairedBackgroundGetOK() *StorageProxyReadRepairRepairedBackgroundGetOK { - return &StorageProxyReadRepairRepairedBackgroundGetOK{} -} - -/* -StorageProxyReadRepairRepairedBackgroundGetOK handles this case with default header values. - -Success -*/ -type StorageProxyReadRepairRepairedBackgroundGetOK struct { - Payload interface{} -} - -func (o *StorageProxyReadRepairRepairedBackgroundGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageProxyReadRepairRepairedBackgroundGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyReadRepairRepairedBackgroundGetDefault creates a StorageProxyReadRepairRepairedBackgroundGetDefault with default headers values -func NewStorageProxyReadRepairRepairedBackgroundGetDefault(code int) *StorageProxyReadRepairRepairedBackgroundGetDefault { - return &StorageProxyReadRepairRepairedBackgroundGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyReadRepairRepairedBackgroundGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyReadRepairRepairedBackgroundGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy read repair repaired background get default response -func (o *StorageProxyReadRepairRepairedBackgroundGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyReadRepairRepairedBackgroundGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyReadRepairRepairedBackgroundGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyReadRepairRepairedBackgroundGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_repair_repaired_blocking_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_repair_repaired_blocking_get_parameters.go deleted file mode 100644 index 7807056b19..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_repair_repaired_blocking_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyReadRepairRepairedBlockingGetParams creates a new StorageProxyReadRepairRepairedBlockingGetParams object -// with the default values initialized. -func NewStorageProxyReadRepairRepairedBlockingGetParams() *StorageProxyReadRepairRepairedBlockingGetParams { - - return &StorageProxyReadRepairRepairedBlockingGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyReadRepairRepairedBlockingGetParamsWithTimeout creates a new StorageProxyReadRepairRepairedBlockingGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyReadRepairRepairedBlockingGetParamsWithTimeout(timeout time.Duration) *StorageProxyReadRepairRepairedBlockingGetParams { - - return &StorageProxyReadRepairRepairedBlockingGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyReadRepairRepairedBlockingGetParamsWithContext creates a new StorageProxyReadRepairRepairedBlockingGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyReadRepairRepairedBlockingGetParamsWithContext(ctx context.Context) *StorageProxyReadRepairRepairedBlockingGetParams { - - return &StorageProxyReadRepairRepairedBlockingGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyReadRepairRepairedBlockingGetParamsWithHTTPClient creates a new StorageProxyReadRepairRepairedBlockingGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyReadRepairRepairedBlockingGetParamsWithHTTPClient(client *http.Client) *StorageProxyReadRepairRepairedBlockingGetParams { - - return &StorageProxyReadRepairRepairedBlockingGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyReadRepairRepairedBlockingGetParams contains all the parameters to send to the API endpoint -for the storage proxy read repair repaired blocking get operation typically these are written to a http.Request -*/ -type StorageProxyReadRepairRepairedBlockingGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy read repair repaired blocking get params -func (o *StorageProxyReadRepairRepairedBlockingGetParams) WithTimeout(timeout time.Duration) *StorageProxyReadRepairRepairedBlockingGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy read repair repaired blocking get params -func (o *StorageProxyReadRepairRepairedBlockingGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy read repair repaired blocking get params -func (o *StorageProxyReadRepairRepairedBlockingGetParams) WithContext(ctx context.Context) *StorageProxyReadRepairRepairedBlockingGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy read repair repaired blocking get params -func (o *StorageProxyReadRepairRepairedBlockingGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy read repair repaired blocking get params -func (o *StorageProxyReadRepairRepairedBlockingGetParams) WithHTTPClient(client *http.Client) *StorageProxyReadRepairRepairedBlockingGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy read repair repaired blocking get params -func (o *StorageProxyReadRepairRepairedBlockingGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyReadRepairRepairedBlockingGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_repair_repaired_blocking_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_repair_repaired_blocking_get_responses.go deleted file mode 100644 index a5abab9545..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_repair_repaired_blocking_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyReadRepairRepairedBlockingGetReader is a Reader for the StorageProxyReadRepairRepairedBlockingGet structure. -type StorageProxyReadRepairRepairedBlockingGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyReadRepairRepairedBlockingGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyReadRepairRepairedBlockingGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyReadRepairRepairedBlockingGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyReadRepairRepairedBlockingGetOK creates a StorageProxyReadRepairRepairedBlockingGetOK with default headers values -func NewStorageProxyReadRepairRepairedBlockingGetOK() *StorageProxyReadRepairRepairedBlockingGetOK { - return &StorageProxyReadRepairRepairedBlockingGetOK{} -} - -/* -StorageProxyReadRepairRepairedBlockingGetOK handles this case with default header values. - -Success -*/ -type StorageProxyReadRepairRepairedBlockingGetOK struct { - Payload interface{} -} - -func (o *StorageProxyReadRepairRepairedBlockingGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageProxyReadRepairRepairedBlockingGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyReadRepairRepairedBlockingGetDefault creates a StorageProxyReadRepairRepairedBlockingGetDefault with default headers values -func NewStorageProxyReadRepairRepairedBlockingGetDefault(code int) *StorageProxyReadRepairRepairedBlockingGetDefault { - return &StorageProxyReadRepairRepairedBlockingGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyReadRepairRepairedBlockingGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyReadRepairRepairedBlockingGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy read repair repaired blocking get default response -func (o *StorageProxyReadRepairRepairedBlockingGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyReadRepairRepairedBlockingGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyReadRepairRepairedBlockingGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyReadRepairRepairedBlockingGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_rpc_timeout_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_rpc_timeout_get_parameters.go deleted file mode 100644 index 9076ce5db2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_rpc_timeout_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyReadRPCTimeoutGetParams creates a new StorageProxyReadRPCTimeoutGetParams object -// with the default values initialized. -func NewStorageProxyReadRPCTimeoutGetParams() *StorageProxyReadRPCTimeoutGetParams { - - return &StorageProxyReadRPCTimeoutGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyReadRPCTimeoutGetParamsWithTimeout creates a new StorageProxyReadRPCTimeoutGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyReadRPCTimeoutGetParamsWithTimeout(timeout time.Duration) *StorageProxyReadRPCTimeoutGetParams { - - return &StorageProxyReadRPCTimeoutGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyReadRPCTimeoutGetParamsWithContext creates a new StorageProxyReadRPCTimeoutGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyReadRPCTimeoutGetParamsWithContext(ctx context.Context) *StorageProxyReadRPCTimeoutGetParams { - - return &StorageProxyReadRPCTimeoutGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyReadRPCTimeoutGetParamsWithHTTPClient creates a new StorageProxyReadRPCTimeoutGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyReadRPCTimeoutGetParamsWithHTTPClient(client *http.Client) *StorageProxyReadRPCTimeoutGetParams { - - return &StorageProxyReadRPCTimeoutGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyReadRPCTimeoutGetParams contains all the parameters to send to the API endpoint -for the storage proxy read Rpc timeout get operation typically these are written to a http.Request -*/ -type StorageProxyReadRPCTimeoutGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy read Rpc timeout get params -func (o *StorageProxyReadRPCTimeoutGetParams) WithTimeout(timeout time.Duration) *StorageProxyReadRPCTimeoutGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy read Rpc timeout get params -func (o *StorageProxyReadRPCTimeoutGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy read Rpc timeout get params -func (o *StorageProxyReadRPCTimeoutGetParams) WithContext(ctx context.Context) *StorageProxyReadRPCTimeoutGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy read Rpc timeout get params -func (o *StorageProxyReadRPCTimeoutGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy read Rpc timeout get params -func (o *StorageProxyReadRPCTimeoutGetParams) WithHTTPClient(client *http.Client) *StorageProxyReadRPCTimeoutGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy read Rpc timeout get params -func (o *StorageProxyReadRPCTimeoutGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyReadRPCTimeoutGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_rpc_timeout_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_rpc_timeout_get_responses.go deleted file mode 100644 index 62a0058144..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_rpc_timeout_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyReadRPCTimeoutGetReader is a Reader for the StorageProxyReadRPCTimeoutGet structure. -type StorageProxyReadRPCTimeoutGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyReadRPCTimeoutGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyReadRPCTimeoutGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyReadRPCTimeoutGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyReadRPCTimeoutGetOK creates a StorageProxyReadRPCTimeoutGetOK with default headers values -func NewStorageProxyReadRPCTimeoutGetOK() *StorageProxyReadRPCTimeoutGetOK { - return &StorageProxyReadRPCTimeoutGetOK{} -} - -/* -StorageProxyReadRPCTimeoutGetOK handles this case with default header values. - -Success -*/ -type StorageProxyReadRPCTimeoutGetOK struct { - Payload interface{} -} - -func (o *StorageProxyReadRPCTimeoutGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageProxyReadRPCTimeoutGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyReadRPCTimeoutGetDefault creates a StorageProxyReadRPCTimeoutGetDefault with default headers values -func NewStorageProxyReadRPCTimeoutGetDefault(code int) *StorageProxyReadRPCTimeoutGetDefault { - return &StorageProxyReadRPCTimeoutGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyReadRPCTimeoutGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyReadRPCTimeoutGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy read Rpc timeout get default response -func (o *StorageProxyReadRPCTimeoutGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyReadRPCTimeoutGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyReadRPCTimeoutGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyReadRPCTimeoutGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_rpc_timeout_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_rpc_timeout_post_parameters.go deleted file mode 100644 index d48fbaf544..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_rpc_timeout_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyReadRPCTimeoutPostParams creates a new StorageProxyReadRPCTimeoutPostParams object -// with the default values initialized. -func NewStorageProxyReadRPCTimeoutPostParams() *StorageProxyReadRPCTimeoutPostParams { - var () - return &StorageProxyReadRPCTimeoutPostParams{ - - requestTimeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyReadRPCTimeoutPostParamsWithTimeout creates a new StorageProxyReadRPCTimeoutPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyReadRPCTimeoutPostParamsWithTimeout(timeout time.Duration) *StorageProxyReadRPCTimeoutPostParams { - var () - return &StorageProxyReadRPCTimeoutPostParams{ - - requestTimeout: timeout, - } -} - -// NewStorageProxyReadRPCTimeoutPostParamsWithContext creates a new StorageProxyReadRPCTimeoutPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyReadRPCTimeoutPostParamsWithContext(ctx context.Context) *StorageProxyReadRPCTimeoutPostParams { - var () - return &StorageProxyReadRPCTimeoutPostParams{ - - Context: ctx, - } -} - -// NewStorageProxyReadRPCTimeoutPostParamsWithHTTPClient creates a new StorageProxyReadRPCTimeoutPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyReadRPCTimeoutPostParamsWithHTTPClient(client *http.Client) *StorageProxyReadRPCTimeoutPostParams { - var () - return &StorageProxyReadRPCTimeoutPostParams{ - HTTPClient: client, - } -} - -/* -StorageProxyReadRPCTimeoutPostParams contains all the parameters to send to the API endpoint -for the storage proxy read Rpc timeout post operation typically these are written to a http.Request -*/ -type StorageProxyReadRPCTimeoutPostParams struct { - - /*Timeout - The timeout in second - - */ - Timeout string - - requestTimeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithRequestTimeout adds the timeout to the storage proxy read Rpc timeout post params -func (o *StorageProxyReadRPCTimeoutPostParams) WithRequestTimeout(timeout time.Duration) *StorageProxyReadRPCTimeoutPostParams { - o.SetRequestTimeout(timeout) - return o -} - -// SetRequestTimeout adds the timeout to the storage proxy read Rpc timeout post params -func (o *StorageProxyReadRPCTimeoutPostParams) SetRequestTimeout(timeout time.Duration) { - o.requestTimeout = timeout -} - -// WithContext adds the context to the storage proxy read Rpc timeout post params -func (o *StorageProxyReadRPCTimeoutPostParams) WithContext(ctx context.Context) *StorageProxyReadRPCTimeoutPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy read Rpc timeout post params -func (o *StorageProxyReadRPCTimeoutPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy read Rpc timeout post params -func (o *StorageProxyReadRPCTimeoutPostParams) WithHTTPClient(client *http.Client) *StorageProxyReadRPCTimeoutPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy read Rpc timeout post params -func (o *StorageProxyReadRPCTimeoutPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithTimeout adds the timeout to the storage proxy read Rpc timeout post params -func (o *StorageProxyReadRPCTimeoutPostParams) WithTimeout(timeout string) *StorageProxyReadRPCTimeoutPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy read Rpc timeout post params -func (o *StorageProxyReadRPCTimeoutPostParams) SetTimeout(timeout string) { - o.Timeout = timeout -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyReadRPCTimeoutPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.requestTimeout); err != nil { - return err - } - var res []error - - // query param timeout - qrTimeout := o.Timeout - qTimeout := qrTimeout - if qTimeout != "" { - if err := r.SetQueryParam("timeout", qTimeout); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_rpc_timeout_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_rpc_timeout_post_responses.go deleted file mode 100644 index 31995bfc23..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_read_rpc_timeout_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyReadRPCTimeoutPostReader is a Reader for the StorageProxyReadRPCTimeoutPost structure. -type StorageProxyReadRPCTimeoutPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyReadRPCTimeoutPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyReadRPCTimeoutPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyReadRPCTimeoutPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyReadRPCTimeoutPostOK creates a StorageProxyReadRPCTimeoutPostOK with default headers values -func NewStorageProxyReadRPCTimeoutPostOK() *StorageProxyReadRPCTimeoutPostOK { - return &StorageProxyReadRPCTimeoutPostOK{} -} - -/* -StorageProxyReadRPCTimeoutPostOK handles this case with default header values. - -Success -*/ -type StorageProxyReadRPCTimeoutPostOK struct { -} - -func (o *StorageProxyReadRPCTimeoutPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyReadRPCTimeoutPostDefault creates a StorageProxyReadRPCTimeoutPostDefault with default headers values -func NewStorageProxyReadRPCTimeoutPostDefault(code int) *StorageProxyReadRPCTimeoutPostDefault { - return &StorageProxyReadRPCTimeoutPostDefault{ - _statusCode: code, - } -} - -/* -StorageProxyReadRPCTimeoutPostDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyReadRPCTimeoutPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy read Rpc timeout post default response -func (o *StorageProxyReadRPCTimeoutPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyReadRPCTimeoutPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyReadRPCTimeoutPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyReadRPCTimeoutPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_reload_trigger_classes_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_reload_trigger_classes_post_parameters.go deleted file mode 100644 index eb3a1ac5b9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_reload_trigger_classes_post_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyReloadTriggerClassesPostParams creates a new StorageProxyReloadTriggerClassesPostParams object -// with the default values initialized. -func NewStorageProxyReloadTriggerClassesPostParams() *StorageProxyReloadTriggerClassesPostParams { - - return &StorageProxyReloadTriggerClassesPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyReloadTriggerClassesPostParamsWithTimeout creates a new StorageProxyReloadTriggerClassesPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyReloadTriggerClassesPostParamsWithTimeout(timeout time.Duration) *StorageProxyReloadTriggerClassesPostParams { - - return &StorageProxyReloadTriggerClassesPostParams{ - - timeout: timeout, - } -} - -// NewStorageProxyReloadTriggerClassesPostParamsWithContext creates a new StorageProxyReloadTriggerClassesPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyReloadTriggerClassesPostParamsWithContext(ctx context.Context) *StorageProxyReloadTriggerClassesPostParams { - - return &StorageProxyReloadTriggerClassesPostParams{ - - Context: ctx, - } -} - -// NewStorageProxyReloadTriggerClassesPostParamsWithHTTPClient creates a new StorageProxyReloadTriggerClassesPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyReloadTriggerClassesPostParamsWithHTTPClient(client *http.Client) *StorageProxyReloadTriggerClassesPostParams { - - return &StorageProxyReloadTriggerClassesPostParams{ - HTTPClient: client, - } -} - -/* -StorageProxyReloadTriggerClassesPostParams contains all the parameters to send to the API endpoint -for the storage proxy reload trigger classes post operation typically these are written to a http.Request -*/ -type StorageProxyReloadTriggerClassesPostParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy reload trigger classes post params -func (o *StorageProxyReloadTriggerClassesPostParams) WithTimeout(timeout time.Duration) *StorageProxyReloadTriggerClassesPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy reload trigger classes post params -func (o *StorageProxyReloadTriggerClassesPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy reload trigger classes post params -func (o *StorageProxyReloadTriggerClassesPostParams) WithContext(ctx context.Context) *StorageProxyReloadTriggerClassesPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy reload trigger classes post params -func (o *StorageProxyReloadTriggerClassesPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy reload trigger classes post params -func (o *StorageProxyReloadTriggerClassesPostParams) WithHTTPClient(client *http.Client) *StorageProxyReloadTriggerClassesPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy reload trigger classes post params -func (o *StorageProxyReloadTriggerClassesPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyReloadTriggerClassesPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_reload_trigger_classes_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_reload_trigger_classes_post_responses.go deleted file mode 100644 index 3b979ad9fa..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_reload_trigger_classes_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyReloadTriggerClassesPostReader is a Reader for the StorageProxyReloadTriggerClassesPost structure. -type StorageProxyReloadTriggerClassesPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyReloadTriggerClassesPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyReloadTriggerClassesPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyReloadTriggerClassesPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyReloadTriggerClassesPostOK creates a StorageProxyReloadTriggerClassesPostOK with default headers values -func NewStorageProxyReloadTriggerClassesPostOK() *StorageProxyReloadTriggerClassesPostOK { - return &StorageProxyReloadTriggerClassesPostOK{} -} - -/* -StorageProxyReloadTriggerClassesPostOK handles this case with default header values. - -Success -*/ -type StorageProxyReloadTriggerClassesPostOK struct { -} - -func (o *StorageProxyReloadTriggerClassesPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyReloadTriggerClassesPostDefault creates a StorageProxyReloadTriggerClassesPostDefault with default headers values -func NewStorageProxyReloadTriggerClassesPostDefault(code int) *StorageProxyReloadTriggerClassesPostDefault { - return &StorageProxyReloadTriggerClassesPostDefault{ - _statusCode: code, - } -} - -/* -StorageProxyReloadTriggerClassesPostDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyReloadTriggerClassesPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy reload trigger classes post default response -func (o *StorageProxyReloadTriggerClassesPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyReloadTriggerClassesPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyReloadTriggerClassesPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyReloadTriggerClassesPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_rpc_timeout_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_rpc_timeout_get_parameters.go deleted file mode 100644 index 1976204116..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_rpc_timeout_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyRPCTimeoutGetParams creates a new StorageProxyRPCTimeoutGetParams object -// with the default values initialized. -func NewStorageProxyRPCTimeoutGetParams() *StorageProxyRPCTimeoutGetParams { - - return &StorageProxyRPCTimeoutGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyRPCTimeoutGetParamsWithTimeout creates a new StorageProxyRPCTimeoutGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyRPCTimeoutGetParamsWithTimeout(timeout time.Duration) *StorageProxyRPCTimeoutGetParams { - - return &StorageProxyRPCTimeoutGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyRPCTimeoutGetParamsWithContext creates a new StorageProxyRPCTimeoutGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyRPCTimeoutGetParamsWithContext(ctx context.Context) *StorageProxyRPCTimeoutGetParams { - - return &StorageProxyRPCTimeoutGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyRPCTimeoutGetParamsWithHTTPClient creates a new StorageProxyRPCTimeoutGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyRPCTimeoutGetParamsWithHTTPClient(client *http.Client) *StorageProxyRPCTimeoutGetParams { - - return &StorageProxyRPCTimeoutGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyRPCTimeoutGetParams contains all the parameters to send to the API endpoint -for the storage proxy Rpc timeout get operation typically these are written to a http.Request -*/ -type StorageProxyRPCTimeoutGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy Rpc timeout get params -func (o *StorageProxyRPCTimeoutGetParams) WithTimeout(timeout time.Duration) *StorageProxyRPCTimeoutGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy Rpc timeout get params -func (o *StorageProxyRPCTimeoutGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy Rpc timeout get params -func (o *StorageProxyRPCTimeoutGetParams) WithContext(ctx context.Context) *StorageProxyRPCTimeoutGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy Rpc timeout get params -func (o *StorageProxyRPCTimeoutGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy Rpc timeout get params -func (o *StorageProxyRPCTimeoutGetParams) WithHTTPClient(client *http.Client) *StorageProxyRPCTimeoutGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy Rpc timeout get params -func (o *StorageProxyRPCTimeoutGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyRPCTimeoutGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_rpc_timeout_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_rpc_timeout_get_responses.go deleted file mode 100644 index 0c48c10af5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_rpc_timeout_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyRPCTimeoutGetReader is a Reader for the StorageProxyRPCTimeoutGet structure. -type StorageProxyRPCTimeoutGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyRPCTimeoutGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyRPCTimeoutGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyRPCTimeoutGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyRPCTimeoutGetOK creates a StorageProxyRPCTimeoutGetOK with default headers values -func NewStorageProxyRPCTimeoutGetOK() *StorageProxyRPCTimeoutGetOK { - return &StorageProxyRPCTimeoutGetOK{} -} - -/* -StorageProxyRPCTimeoutGetOK handles this case with default header values. - -Success -*/ -type StorageProxyRPCTimeoutGetOK struct { - Payload interface{} -} - -func (o *StorageProxyRPCTimeoutGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageProxyRPCTimeoutGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyRPCTimeoutGetDefault creates a StorageProxyRPCTimeoutGetDefault with default headers values -func NewStorageProxyRPCTimeoutGetDefault(code int) *StorageProxyRPCTimeoutGetDefault { - return &StorageProxyRPCTimeoutGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyRPCTimeoutGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyRPCTimeoutGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy Rpc timeout get default response -func (o *StorageProxyRPCTimeoutGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyRPCTimeoutGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyRPCTimeoutGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyRPCTimeoutGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_rpc_timeout_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_rpc_timeout_post_parameters.go deleted file mode 100644 index 0f0556a7ba..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_rpc_timeout_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyRPCTimeoutPostParams creates a new StorageProxyRPCTimeoutPostParams object -// with the default values initialized. -func NewStorageProxyRPCTimeoutPostParams() *StorageProxyRPCTimeoutPostParams { - var () - return &StorageProxyRPCTimeoutPostParams{ - - requestTimeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyRPCTimeoutPostParamsWithTimeout creates a new StorageProxyRPCTimeoutPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyRPCTimeoutPostParamsWithTimeout(timeout time.Duration) *StorageProxyRPCTimeoutPostParams { - var () - return &StorageProxyRPCTimeoutPostParams{ - - requestTimeout: timeout, - } -} - -// NewStorageProxyRPCTimeoutPostParamsWithContext creates a new StorageProxyRPCTimeoutPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyRPCTimeoutPostParamsWithContext(ctx context.Context) *StorageProxyRPCTimeoutPostParams { - var () - return &StorageProxyRPCTimeoutPostParams{ - - Context: ctx, - } -} - -// NewStorageProxyRPCTimeoutPostParamsWithHTTPClient creates a new StorageProxyRPCTimeoutPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyRPCTimeoutPostParamsWithHTTPClient(client *http.Client) *StorageProxyRPCTimeoutPostParams { - var () - return &StorageProxyRPCTimeoutPostParams{ - HTTPClient: client, - } -} - -/* -StorageProxyRPCTimeoutPostParams contains all the parameters to send to the API endpoint -for the storage proxy Rpc timeout post operation typically these are written to a http.Request -*/ -type StorageProxyRPCTimeoutPostParams struct { - - /*Timeout - Timeout in seconds - - */ - Timeout string - - requestTimeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithRequestTimeout adds the timeout to the storage proxy Rpc timeout post params -func (o *StorageProxyRPCTimeoutPostParams) WithRequestTimeout(timeout time.Duration) *StorageProxyRPCTimeoutPostParams { - o.SetRequestTimeout(timeout) - return o -} - -// SetRequestTimeout adds the timeout to the storage proxy Rpc timeout post params -func (o *StorageProxyRPCTimeoutPostParams) SetRequestTimeout(timeout time.Duration) { - o.requestTimeout = timeout -} - -// WithContext adds the context to the storage proxy Rpc timeout post params -func (o *StorageProxyRPCTimeoutPostParams) WithContext(ctx context.Context) *StorageProxyRPCTimeoutPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy Rpc timeout post params -func (o *StorageProxyRPCTimeoutPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy Rpc timeout post params -func (o *StorageProxyRPCTimeoutPostParams) WithHTTPClient(client *http.Client) *StorageProxyRPCTimeoutPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy Rpc timeout post params -func (o *StorageProxyRPCTimeoutPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithTimeout adds the timeout to the storage proxy Rpc timeout post params -func (o *StorageProxyRPCTimeoutPostParams) WithTimeout(timeout string) *StorageProxyRPCTimeoutPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy Rpc timeout post params -func (o *StorageProxyRPCTimeoutPostParams) SetTimeout(timeout string) { - o.Timeout = timeout -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyRPCTimeoutPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.requestTimeout); err != nil { - return err - } - var res []error - - // query param timeout - qrTimeout := o.Timeout - qTimeout := qrTimeout - if qTimeout != "" { - if err := r.SetQueryParam("timeout", qTimeout); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_rpc_timeout_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_rpc_timeout_post_responses.go deleted file mode 100644 index 9c3a6b7416..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_rpc_timeout_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyRPCTimeoutPostReader is a Reader for the StorageProxyRPCTimeoutPost structure. -type StorageProxyRPCTimeoutPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyRPCTimeoutPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyRPCTimeoutPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyRPCTimeoutPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyRPCTimeoutPostOK creates a StorageProxyRPCTimeoutPostOK with default headers values -func NewStorageProxyRPCTimeoutPostOK() *StorageProxyRPCTimeoutPostOK { - return &StorageProxyRPCTimeoutPostOK{} -} - -/* -StorageProxyRPCTimeoutPostOK handles this case with default header values. - -Success -*/ -type StorageProxyRPCTimeoutPostOK struct { -} - -func (o *StorageProxyRPCTimeoutPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyRPCTimeoutPostDefault creates a StorageProxyRPCTimeoutPostDefault with default headers values -func NewStorageProxyRPCTimeoutPostDefault(code int) *StorageProxyRPCTimeoutPostDefault { - return &StorageProxyRPCTimeoutPostDefault{ - _statusCode: code, - } -} - -/* -StorageProxyRPCTimeoutPostDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyRPCTimeoutPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy Rpc timeout post default response -func (o *StorageProxyRPCTimeoutPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyRPCTimeoutPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyRPCTimeoutPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyRPCTimeoutPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_schema_versions_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_schema_versions_get_parameters.go deleted file mode 100644 index b238c7adbf..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_schema_versions_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxySchemaVersionsGetParams creates a new StorageProxySchemaVersionsGetParams object -// with the default values initialized. -func NewStorageProxySchemaVersionsGetParams() *StorageProxySchemaVersionsGetParams { - - return &StorageProxySchemaVersionsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxySchemaVersionsGetParamsWithTimeout creates a new StorageProxySchemaVersionsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxySchemaVersionsGetParamsWithTimeout(timeout time.Duration) *StorageProxySchemaVersionsGetParams { - - return &StorageProxySchemaVersionsGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxySchemaVersionsGetParamsWithContext creates a new StorageProxySchemaVersionsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxySchemaVersionsGetParamsWithContext(ctx context.Context) *StorageProxySchemaVersionsGetParams { - - return &StorageProxySchemaVersionsGetParams{ - - Context: ctx, - } -} - -// NewStorageProxySchemaVersionsGetParamsWithHTTPClient creates a new StorageProxySchemaVersionsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxySchemaVersionsGetParamsWithHTTPClient(client *http.Client) *StorageProxySchemaVersionsGetParams { - - return &StorageProxySchemaVersionsGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxySchemaVersionsGetParams contains all the parameters to send to the API endpoint -for the storage proxy schema versions get operation typically these are written to a http.Request -*/ -type StorageProxySchemaVersionsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy schema versions get params -func (o *StorageProxySchemaVersionsGetParams) WithTimeout(timeout time.Duration) *StorageProxySchemaVersionsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy schema versions get params -func (o *StorageProxySchemaVersionsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy schema versions get params -func (o *StorageProxySchemaVersionsGetParams) WithContext(ctx context.Context) *StorageProxySchemaVersionsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy schema versions get params -func (o *StorageProxySchemaVersionsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy schema versions get params -func (o *StorageProxySchemaVersionsGetParams) WithHTTPClient(client *http.Client) *StorageProxySchemaVersionsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy schema versions get params -func (o *StorageProxySchemaVersionsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxySchemaVersionsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_schema_versions_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_schema_versions_get_responses.go deleted file mode 100644 index 640f4d7d8d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_schema_versions_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxySchemaVersionsGetReader is a Reader for the StorageProxySchemaVersionsGet structure. -type StorageProxySchemaVersionsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxySchemaVersionsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxySchemaVersionsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxySchemaVersionsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxySchemaVersionsGetOK creates a StorageProxySchemaVersionsGetOK with default headers values -func NewStorageProxySchemaVersionsGetOK() *StorageProxySchemaVersionsGetOK { - return &StorageProxySchemaVersionsGetOK{} -} - -/* -StorageProxySchemaVersionsGetOK handles this case with default header values. - -Success -*/ -type StorageProxySchemaVersionsGetOK struct { - Payload []*models.MapperList -} - -func (o *StorageProxySchemaVersionsGetOK) GetPayload() []*models.MapperList { - return o.Payload -} - -func (o *StorageProxySchemaVersionsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxySchemaVersionsGetDefault creates a StorageProxySchemaVersionsGetDefault with default headers values -func NewStorageProxySchemaVersionsGetDefault(code int) *StorageProxySchemaVersionsGetDefault { - return &StorageProxySchemaVersionsGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxySchemaVersionsGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxySchemaVersionsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy schema versions get default response -func (o *StorageProxySchemaVersionsGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxySchemaVersionsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxySchemaVersionsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxySchemaVersionsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_total_hints_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_total_hints_get_parameters.go deleted file mode 100644 index 9a5ffc17de..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_total_hints_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyTotalHintsGetParams creates a new StorageProxyTotalHintsGetParams object -// with the default values initialized. -func NewStorageProxyTotalHintsGetParams() *StorageProxyTotalHintsGetParams { - - return &StorageProxyTotalHintsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyTotalHintsGetParamsWithTimeout creates a new StorageProxyTotalHintsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyTotalHintsGetParamsWithTimeout(timeout time.Duration) *StorageProxyTotalHintsGetParams { - - return &StorageProxyTotalHintsGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyTotalHintsGetParamsWithContext creates a new StorageProxyTotalHintsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyTotalHintsGetParamsWithContext(ctx context.Context) *StorageProxyTotalHintsGetParams { - - return &StorageProxyTotalHintsGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyTotalHintsGetParamsWithHTTPClient creates a new StorageProxyTotalHintsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyTotalHintsGetParamsWithHTTPClient(client *http.Client) *StorageProxyTotalHintsGetParams { - - return &StorageProxyTotalHintsGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyTotalHintsGetParams contains all the parameters to send to the API endpoint -for the storage proxy total hints get operation typically these are written to a http.Request -*/ -type StorageProxyTotalHintsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy total hints get params -func (o *StorageProxyTotalHintsGetParams) WithTimeout(timeout time.Duration) *StorageProxyTotalHintsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy total hints get params -func (o *StorageProxyTotalHintsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy total hints get params -func (o *StorageProxyTotalHintsGetParams) WithContext(ctx context.Context) *StorageProxyTotalHintsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy total hints get params -func (o *StorageProxyTotalHintsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy total hints get params -func (o *StorageProxyTotalHintsGetParams) WithHTTPClient(client *http.Client) *StorageProxyTotalHintsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy total hints get params -func (o *StorageProxyTotalHintsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyTotalHintsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_total_hints_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_total_hints_get_responses.go deleted file mode 100644 index 364221ed5d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_total_hints_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyTotalHintsGetReader is a Reader for the StorageProxyTotalHintsGet structure. -type StorageProxyTotalHintsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyTotalHintsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyTotalHintsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyTotalHintsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyTotalHintsGetOK creates a StorageProxyTotalHintsGetOK with default headers values -func NewStorageProxyTotalHintsGetOK() *StorageProxyTotalHintsGetOK { - return &StorageProxyTotalHintsGetOK{} -} - -/* -StorageProxyTotalHintsGetOK handles this case with default header values. - -Success -*/ -type StorageProxyTotalHintsGetOK struct { - Payload interface{} -} - -func (o *StorageProxyTotalHintsGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageProxyTotalHintsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyTotalHintsGetDefault creates a StorageProxyTotalHintsGetDefault with default headers values -func NewStorageProxyTotalHintsGetDefault(code int) *StorageProxyTotalHintsGetDefault { - return &StorageProxyTotalHintsGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyTotalHintsGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyTotalHintsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy total hints get default response -func (o *StorageProxyTotalHintsGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyTotalHintsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyTotalHintsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyTotalHintsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_truncate_rpc_timeout_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_truncate_rpc_timeout_get_parameters.go deleted file mode 100644 index 002feefc9d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_truncate_rpc_timeout_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyTruncateRPCTimeoutGetParams creates a new StorageProxyTruncateRPCTimeoutGetParams object -// with the default values initialized. -func NewStorageProxyTruncateRPCTimeoutGetParams() *StorageProxyTruncateRPCTimeoutGetParams { - - return &StorageProxyTruncateRPCTimeoutGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyTruncateRPCTimeoutGetParamsWithTimeout creates a new StorageProxyTruncateRPCTimeoutGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyTruncateRPCTimeoutGetParamsWithTimeout(timeout time.Duration) *StorageProxyTruncateRPCTimeoutGetParams { - - return &StorageProxyTruncateRPCTimeoutGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyTruncateRPCTimeoutGetParamsWithContext creates a new StorageProxyTruncateRPCTimeoutGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyTruncateRPCTimeoutGetParamsWithContext(ctx context.Context) *StorageProxyTruncateRPCTimeoutGetParams { - - return &StorageProxyTruncateRPCTimeoutGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyTruncateRPCTimeoutGetParamsWithHTTPClient creates a new StorageProxyTruncateRPCTimeoutGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyTruncateRPCTimeoutGetParamsWithHTTPClient(client *http.Client) *StorageProxyTruncateRPCTimeoutGetParams { - - return &StorageProxyTruncateRPCTimeoutGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyTruncateRPCTimeoutGetParams contains all the parameters to send to the API endpoint -for the storage proxy truncate Rpc timeout get operation typically these are written to a http.Request -*/ -type StorageProxyTruncateRPCTimeoutGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy truncate Rpc timeout get params -func (o *StorageProxyTruncateRPCTimeoutGetParams) WithTimeout(timeout time.Duration) *StorageProxyTruncateRPCTimeoutGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy truncate Rpc timeout get params -func (o *StorageProxyTruncateRPCTimeoutGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy truncate Rpc timeout get params -func (o *StorageProxyTruncateRPCTimeoutGetParams) WithContext(ctx context.Context) *StorageProxyTruncateRPCTimeoutGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy truncate Rpc timeout get params -func (o *StorageProxyTruncateRPCTimeoutGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy truncate Rpc timeout get params -func (o *StorageProxyTruncateRPCTimeoutGetParams) WithHTTPClient(client *http.Client) *StorageProxyTruncateRPCTimeoutGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy truncate Rpc timeout get params -func (o *StorageProxyTruncateRPCTimeoutGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyTruncateRPCTimeoutGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_truncate_rpc_timeout_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_truncate_rpc_timeout_get_responses.go deleted file mode 100644 index 4a039c9978..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_truncate_rpc_timeout_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyTruncateRPCTimeoutGetReader is a Reader for the StorageProxyTruncateRPCTimeoutGet structure. -type StorageProxyTruncateRPCTimeoutGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyTruncateRPCTimeoutGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyTruncateRPCTimeoutGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyTruncateRPCTimeoutGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyTruncateRPCTimeoutGetOK creates a StorageProxyTruncateRPCTimeoutGetOK with default headers values -func NewStorageProxyTruncateRPCTimeoutGetOK() *StorageProxyTruncateRPCTimeoutGetOK { - return &StorageProxyTruncateRPCTimeoutGetOK{} -} - -/* -StorageProxyTruncateRPCTimeoutGetOK handles this case with default header values. - -Success -*/ -type StorageProxyTruncateRPCTimeoutGetOK struct { - Payload interface{} -} - -func (o *StorageProxyTruncateRPCTimeoutGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageProxyTruncateRPCTimeoutGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyTruncateRPCTimeoutGetDefault creates a StorageProxyTruncateRPCTimeoutGetDefault with default headers values -func NewStorageProxyTruncateRPCTimeoutGetDefault(code int) *StorageProxyTruncateRPCTimeoutGetDefault { - return &StorageProxyTruncateRPCTimeoutGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyTruncateRPCTimeoutGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyTruncateRPCTimeoutGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy truncate Rpc timeout get default response -func (o *StorageProxyTruncateRPCTimeoutGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyTruncateRPCTimeoutGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyTruncateRPCTimeoutGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyTruncateRPCTimeoutGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_truncate_rpc_timeout_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_truncate_rpc_timeout_post_parameters.go deleted file mode 100644 index 87171067f8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_truncate_rpc_timeout_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyTruncateRPCTimeoutPostParams creates a new StorageProxyTruncateRPCTimeoutPostParams object -// with the default values initialized. -func NewStorageProxyTruncateRPCTimeoutPostParams() *StorageProxyTruncateRPCTimeoutPostParams { - var () - return &StorageProxyTruncateRPCTimeoutPostParams{ - - requestTimeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyTruncateRPCTimeoutPostParamsWithTimeout creates a new StorageProxyTruncateRPCTimeoutPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyTruncateRPCTimeoutPostParamsWithTimeout(timeout time.Duration) *StorageProxyTruncateRPCTimeoutPostParams { - var () - return &StorageProxyTruncateRPCTimeoutPostParams{ - - requestTimeout: timeout, - } -} - -// NewStorageProxyTruncateRPCTimeoutPostParamsWithContext creates a new StorageProxyTruncateRPCTimeoutPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyTruncateRPCTimeoutPostParamsWithContext(ctx context.Context) *StorageProxyTruncateRPCTimeoutPostParams { - var () - return &StorageProxyTruncateRPCTimeoutPostParams{ - - Context: ctx, - } -} - -// NewStorageProxyTruncateRPCTimeoutPostParamsWithHTTPClient creates a new StorageProxyTruncateRPCTimeoutPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyTruncateRPCTimeoutPostParamsWithHTTPClient(client *http.Client) *StorageProxyTruncateRPCTimeoutPostParams { - var () - return &StorageProxyTruncateRPCTimeoutPostParams{ - HTTPClient: client, - } -} - -/* -StorageProxyTruncateRPCTimeoutPostParams contains all the parameters to send to the API endpoint -for the storage proxy truncate Rpc timeout post operation typically these are written to a http.Request -*/ -type StorageProxyTruncateRPCTimeoutPostParams struct { - - /*Timeout - timeout in second - - */ - Timeout string - - requestTimeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithRequestTimeout adds the timeout to the storage proxy truncate Rpc timeout post params -func (o *StorageProxyTruncateRPCTimeoutPostParams) WithRequestTimeout(timeout time.Duration) *StorageProxyTruncateRPCTimeoutPostParams { - o.SetRequestTimeout(timeout) - return o -} - -// SetRequestTimeout adds the timeout to the storage proxy truncate Rpc timeout post params -func (o *StorageProxyTruncateRPCTimeoutPostParams) SetRequestTimeout(timeout time.Duration) { - o.requestTimeout = timeout -} - -// WithContext adds the context to the storage proxy truncate Rpc timeout post params -func (o *StorageProxyTruncateRPCTimeoutPostParams) WithContext(ctx context.Context) *StorageProxyTruncateRPCTimeoutPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy truncate Rpc timeout post params -func (o *StorageProxyTruncateRPCTimeoutPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy truncate Rpc timeout post params -func (o *StorageProxyTruncateRPCTimeoutPostParams) WithHTTPClient(client *http.Client) *StorageProxyTruncateRPCTimeoutPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy truncate Rpc timeout post params -func (o *StorageProxyTruncateRPCTimeoutPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithTimeout adds the timeout to the storage proxy truncate Rpc timeout post params -func (o *StorageProxyTruncateRPCTimeoutPostParams) WithTimeout(timeout string) *StorageProxyTruncateRPCTimeoutPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy truncate Rpc timeout post params -func (o *StorageProxyTruncateRPCTimeoutPostParams) SetTimeout(timeout string) { - o.Timeout = timeout -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyTruncateRPCTimeoutPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.requestTimeout); err != nil { - return err - } - var res []error - - // query param timeout - qrTimeout := o.Timeout - qTimeout := qrTimeout - if qTimeout != "" { - if err := r.SetQueryParam("timeout", qTimeout); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_truncate_rpc_timeout_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_truncate_rpc_timeout_post_responses.go deleted file mode 100644 index 484abfa0bf..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_truncate_rpc_timeout_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyTruncateRPCTimeoutPostReader is a Reader for the StorageProxyTruncateRPCTimeoutPost structure. -type StorageProxyTruncateRPCTimeoutPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyTruncateRPCTimeoutPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyTruncateRPCTimeoutPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyTruncateRPCTimeoutPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyTruncateRPCTimeoutPostOK creates a StorageProxyTruncateRPCTimeoutPostOK with default headers values -func NewStorageProxyTruncateRPCTimeoutPostOK() *StorageProxyTruncateRPCTimeoutPostOK { - return &StorageProxyTruncateRPCTimeoutPostOK{} -} - -/* -StorageProxyTruncateRPCTimeoutPostOK handles this case with default header values. - -Success -*/ -type StorageProxyTruncateRPCTimeoutPostOK struct { -} - -func (o *StorageProxyTruncateRPCTimeoutPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyTruncateRPCTimeoutPostDefault creates a StorageProxyTruncateRPCTimeoutPostDefault with default headers values -func NewStorageProxyTruncateRPCTimeoutPostDefault(code int) *StorageProxyTruncateRPCTimeoutPostDefault { - return &StorageProxyTruncateRPCTimeoutPostDefault{ - _statusCode: code, - } -} - -/* -StorageProxyTruncateRPCTimeoutPostDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyTruncateRPCTimeoutPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy truncate Rpc timeout post default response -func (o *StorageProxyTruncateRPCTimeoutPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyTruncateRPCTimeoutPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyTruncateRPCTimeoutPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyTruncateRPCTimeoutPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_write_rpc_timeout_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_write_rpc_timeout_get_parameters.go deleted file mode 100644 index 9a8fa5c2dd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_write_rpc_timeout_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyWriteRPCTimeoutGetParams creates a new StorageProxyWriteRPCTimeoutGetParams object -// with the default values initialized. -func NewStorageProxyWriteRPCTimeoutGetParams() *StorageProxyWriteRPCTimeoutGetParams { - - return &StorageProxyWriteRPCTimeoutGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyWriteRPCTimeoutGetParamsWithTimeout creates a new StorageProxyWriteRPCTimeoutGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyWriteRPCTimeoutGetParamsWithTimeout(timeout time.Duration) *StorageProxyWriteRPCTimeoutGetParams { - - return &StorageProxyWriteRPCTimeoutGetParams{ - - timeout: timeout, - } -} - -// NewStorageProxyWriteRPCTimeoutGetParamsWithContext creates a new StorageProxyWriteRPCTimeoutGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyWriteRPCTimeoutGetParamsWithContext(ctx context.Context) *StorageProxyWriteRPCTimeoutGetParams { - - return &StorageProxyWriteRPCTimeoutGetParams{ - - Context: ctx, - } -} - -// NewStorageProxyWriteRPCTimeoutGetParamsWithHTTPClient creates a new StorageProxyWriteRPCTimeoutGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyWriteRPCTimeoutGetParamsWithHTTPClient(client *http.Client) *StorageProxyWriteRPCTimeoutGetParams { - - return &StorageProxyWriteRPCTimeoutGetParams{ - HTTPClient: client, - } -} - -/* -StorageProxyWriteRPCTimeoutGetParams contains all the parameters to send to the API endpoint -for the storage proxy write Rpc timeout get operation typically these are written to a http.Request -*/ -type StorageProxyWriteRPCTimeoutGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage proxy write Rpc timeout get params -func (o *StorageProxyWriteRPCTimeoutGetParams) WithTimeout(timeout time.Duration) *StorageProxyWriteRPCTimeoutGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy write Rpc timeout get params -func (o *StorageProxyWriteRPCTimeoutGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage proxy write Rpc timeout get params -func (o *StorageProxyWriteRPCTimeoutGetParams) WithContext(ctx context.Context) *StorageProxyWriteRPCTimeoutGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy write Rpc timeout get params -func (o *StorageProxyWriteRPCTimeoutGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy write Rpc timeout get params -func (o *StorageProxyWriteRPCTimeoutGetParams) WithHTTPClient(client *http.Client) *StorageProxyWriteRPCTimeoutGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy write Rpc timeout get params -func (o *StorageProxyWriteRPCTimeoutGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyWriteRPCTimeoutGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_write_rpc_timeout_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_write_rpc_timeout_get_responses.go deleted file mode 100644 index b70bb9b1b8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_write_rpc_timeout_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyWriteRPCTimeoutGetReader is a Reader for the StorageProxyWriteRPCTimeoutGet structure. -type StorageProxyWriteRPCTimeoutGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyWriteRPCTimeoutGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyWriteRPCTimeoutGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyWriteRPCTimeoutGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyWriteRPCTimeoutGetOK creates a StorageProxyWriteRPCTimeoutGetOK with default headers values -func NewStorageProxyWriteRPCTimeoutGetOK() *StorageProxyWriteRPCTimeoutGetOK { - return &StorageProxyWriteRPCTimeoutGetOK{} -} - -/* -StorageProxyWriteRPCTimeoutGetOK handles this case with default header values. - -Success -*/ -type StorageProxyWriteRPCTimeoutGetOK struct { - Payload interface{} -} - -func (o *StorageProxyWriteRPCTimeoutGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageProxyWriteRPCTimeoutGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageProxyWriteRPCTimeoutGetDefault creates a StorageProxyWriteRPCTimeoutGetDefault with default headers values -func NewStorageProxyWriteRPCTimeoutGetDefault(code int) *StorageProxyWriteRPCTimeoutGetDefault { - return &StorageProxyWriteRPCTimeoutGetDefault{ - _statusCode: code, - } -} - -/* -StorageProxyWriteRPCTimeoutGetDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyWriteRPCTimeoutGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy write Rpc timeout get default response -func (o *StorageProxyWriteRPCTimeoutGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyWriteRPCTimeoutGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyWriteRPCTimeoutGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyWriteRPCTimeoutGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_write_rpc_timeout_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_write_rpc_timeout_post_parameters.go deleted file mode 100644 index 444c4355c6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_write_rpc_timeout_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageProxyWriteRPCTimeoutPostParams creates a new StorageProxyWriteRPCTimeoutPostParams object -// with the default values initialized. -func NewStorageProxyWriteRPCTimeoutPostParams() *StorageProxyWriteRPCTimeoutPostParams { - var () - return &StorageProxyWriteRPCTimeoutPostParams{ - - requestTimeout: cr.DefaultTimeout, - } -} - -// NewStorageProxyWriteRPCTimeoutPostParamsWithTimeout creates a new StorageProxyWriteRPCTimeoutPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageProxyWriteRPCTimeoutPostParamsWithTimeout(timeout time.Duration) *StorageProxyWriteRPCTimeoutPostParams { - var () - return &StorageProxyWriteRPCTimeoutPostParams{ - - requestTimeout: timeout, - } -} - -// NewStorageProxyWriteRPCTimeoutPostParamsWithContext creates a new StorageProxyWriteRPCTimeoutPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageProxyWriteRPCTimeoutPostParamsWithContext(ctx context.Context) *StorageProxyWriteRPCTimeoutPostParams { - var () - return &StorageProxyWriteRPCTimeoutPostParams{ - - Context: ctx, - } -} - -// NewStorageProxyWriteRPCTimeoutPostParamsWithHTTPClient creates a new StorageProxyWriteRPCTimeoutPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageProxyWriteRPCTimeoutPostParamsWithHTTPClient(client *http.Client) *StorageProxyWriteRPCTimeoutPostParams { - var () - return &StorageProxyWriteRPCTimeoutPostParams{ - HTTPClient: client, - } -} - -/* -StorageProxyWriteRPCTimeoutPostParams contains all the parameters to send to the API endpoint -for the storage proxy write Rpc timeout post operation typically these are written to a http.Request -*/ -type StorageProxyWriteRPCTimeoutPostParams struct { - - /*Timeout - timeout in seconds - - */ - Timeout string - - requestTimeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithRequestTimeout adds the timeout to the storage proxy write Rpc timeout post params -func (o *StorageProxyWriteRPCTimeoutPostParams) WithRequestTimeout(timeout time.Duration) *StorageProxyWriteRPCTimeoutPostParams { - o.SetRequestTimeout(timeout) - return o -} - -// SetRequestTimeout adds the timeout to the storage proxy write Rpc timeout post params -func (o *StorageProxyWriteRPCTimeoutPostParams) SetRequestTimeout(timeout time.Duration) { - o.requestTimeout = timeout -} - -// WithContext adds the context to the storage proxy write Rpc timeout post params -func (o *StorageProxyWriteRPCTimeoutPostParams) WithContext(ctx context.Context) *StorageProxyWriteRPCTimeoutPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage proxy write Rpc timeout post params -func (o *StorageProxyWriteRPCTimeoutPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage proxy write Rpc timeout post params -func (o *StorageProxyWriteRPCTimeoutPostParams) WithHTTPClient(client *http.Client) *StorageProxyWriteRPCTimeoutPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage proxy write Rpc timeout post params -func (o *StorageProxyWriteRPCTimeoutPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithTimeout adds the timeout to the storage proxy write Rpc timeout post params -func (o *StorageProxyWriteRPCTimeoutPostParams) WithTimeout(timeout string) *StorageProxyWriteRPCTimeoutPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage proxy write Rpc timeout post params -func (o *StorageProxyWriteRPCTimeoutPostParams) SetTimeout(timeout string) { - o.Timeout = timeout -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageProxyWriteRPCTimeoutPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.requestTimeout); err != nil { - return err - } - var res []error - - // query param timeout - qrTimeout := o.Timeout - qTimeout := qrTimeout - if qTimeout != "" { - if err := r.SetQueryParam("timeout", qTimeout); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_write_rpc_timeout_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_write_rpc_timeout_post_responses.go deleted file mode 100644 index aaacd551a3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_proxy_write_rpc_timeout_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageProxyWriteRPCTimeoutPostReader is a Reader for the StorageProxyWriteRPCTimeoutPost structure. -type StorageProxyWriteRPCTimeoutPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageProxyWriteRPCTimeoutPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageProxyWriteRPCTimeoutPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageProxyWriteRPCTimeoutPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageProxyWriteRPCTimeoutPostOK creates a StorageProxyWriteRPCTimeoutPostOK with default headers values -func NewStorageProxyWriteRPCTimeoutPostOK() *StorageProxyWriteRPCTimeoutPostOK { - return &StorageProxyWriteRPCTimeoutPostOK{} -} - -/* -StorageProxyWriteRPCTimeoutPostOK handles this case with default header values. - -Success -*/ -type StorageProxyWriteRPCTimeoutPostOK struct { -} - -func (o *StorageProxyWriteRPCTimeoutPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageProxyWriteRPCTimeoutPostDefault creates a StorageProxyWriteRPCTimeoutPostDefault with default headers values -func NewStorageProxyWriteRPCTimeoutPostDefault(code int) *StorageProxyWriteRPCTimeoutPostDefault { - return &StorageProxyWriteRPCTimeoutPostDefault{ - _statusCode: code, - } -} - -/* -StorageProxyWriteRPCTimeoutPostDefault handles this case with default header values. - -internal server error -*/ -type StorageProxyWriteRPCTimeoutPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage proxy write Rpc timeout post default response -func (o *StorageProxyWriteRPCTimeoutPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageProxyWriteRPCTimeoutPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageProxyWriteRPCTimeoutPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageProxyWriteRPCTimeoutPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_active_repair_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_active_repair_get_parameters.go deleted file mode 100644 index d90dddca9b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_active_repair_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceActiveRepairGetParams creates a new StorageServiceActiveRepairGetParams object -// with the default values initialized. -func NewStorageServiceActiveRepairGetParams() *StorageServiceActiveRepairGetParams { - - return &StorageServiceActiveRepairGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceActiveRepairGetParamsWithTimeout creates a new StorageServiceActiveRepairGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceActiveRepairGetParamsWithTimeout(timeout time.Duration) *StorageServiceActiveRepairGetParams { - - return &StorageServiceActiveRepairGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceActiveRepairGetParamsWithContext creates a new StorageServiceActiveRepairGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceActiveRepairGetParamsWithContext(ctx context.Context) *StorageServiceActiveRepairGetParams { - - return &StorageServiceActiveRepairGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceActiveRepairGetParamsWithHTTPClient creates a new StorageServiceActiveRepairGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceActiveRepairGetParamsWithHTTPClient(client *http.Client) *StorageServiceActiveRepairGetParams { - - return &StorageServiceActiveRepairGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceActiveRepairGetParams contains all the parameters to send to the API endpoint -for the storage service active repair get operation typically these are written to a http.Request -*/ -type StorageServiceActiveRepairGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service active repair get params -func (o *StorageServiceActiveRepairGetParams) WithTimeout(timeout time.Duration) *StorageServiceActiveRepairGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service active repair get params -func (o *StorageServiceActiveRepairGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service active repair get params -func (o *StorageServiceActiveRepairGetParams) WithContext(ctx context.Context) *StorageServiceActiveRepairGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service active repair get params -func (o *StorageServiceActiveRepairGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service active repair get params -func (o *StorageServiceActiveRepairGetParams) WithHTTPClient(client *http.Client) *StorageServiceActiveRepairGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service active repair get params -func (o *StorageServiceActiveRepairGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceActiveRepairGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_active_repair_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_active_repair_get_responses.go deleted file mode 100644 index 200a7a06da..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_active_repair_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceActiveRepairGetReader is a Reader for the StorageServiceActiveRepairGet structure. -type StorageServiceActiveRepairGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceActiveRepairGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceActiveRepairGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceActiveRepairGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceActiveRepairGetOK creates a StorageServiceActiveRepairGetOK with default headers values -func NewStorageServiceActiveRepairGetOK() *StorageServiceActiveRepairGetOK { - return &StorageServiceActiveRepairGetOK{} -} - -/* -StorageServiceActiveRepairGetOK handles this case with default header values. - -Success -*/ -type StorageServiceActiveRepairGetOK struct { - Payload []int32 -} - -func (o *StorageServiceActiveRepairGetOK) GetPayload() []int32 { - return o.Payload -} - -func (o *StorageServiceActiveRepairGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceActiveRepairGetDefault creates a StorageServiceActiveRepairGetDefault with default headers values -func NewStorageServiceActiveRepairGetDefault(code int) *StorageServiceActiveRepairGetDefault { - return &StorageServiceActiveRepairGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceActiveRepairGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceActiveRepairGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service active repair get default response -func (o *StorageServiceActiveRepairGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceActiveRepairGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceActiveRepairGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceActiveRepairGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_auto_compaction_by_keyspace_delete_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_auto_compaction_by_keyspace_delete_parameters.go deleted file mode 100644 index 55c477ad41..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_auto_compaction_by_keyspace_delete_parameters.go +++ /dev/null @@ -1,168 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceAutoCompactionByKeyspaceDeleteParams creates a new StorageServiceAutoCompactionByKeyspaceDeleteParams object -// with the default values initialized. -func NewStorageServiceAutoCompactionByKeyspaceDeleteParams() *StorageServiceAutoCompactionByKeyspaceDeleteParams { - var () - return &StorageServiceAutoCompactionByKeyspaceDeleteParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceAutoCompactionByKeyspaceDeleteParamsWithTimeout creates a new StorageServiceAutoCompactionByKeyspaceDeleteParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceAutoCompactionByKeyspaceDeleteParamsWithTimeout(timeout time.Duration) *StorageServiceAutoCompactionByKeyspaceDeleteParams { - var () - return &StorageServiceAutoCompactionByKeyspaceDeleteParams{ - - timeout: timeout, - } -} - -// NewStorageServiceAutoCompactionByKeyspaceDeleteParamsWithContext creates a new StorageServiceAutoCompactionByKeyspaceDeleteParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceAutoCompactionByKeyspaceDeleteParamsWithContext(ctx context.Context) *StorageServiceAutoCompactionByKeyspaceDeleteParams { - var () - return &StorageServiceAutoCompactionByKeyspaceDeleteParams{ - - Context: ctx, - } -} - -// NewStorageServiceAutoCompactionByKeyspaceDeleteParamsWithHTTPClient creates a new StorageServiceAutoCompactionByKeyspaceDeleteParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceAutoCompactionByKeyspaceDeleteParamsWithHTTPClient(client *http.Client) *StorageServiceAutoCompactionByKeyspaceDeleteParams { - var () - return &StorageServiceAutoCompactionByKeyspaceDeleteParams{ - HTTPClient: client, - } -} - -/* -StorageServiceAutoCompactionByKeyspaceDeleteParams contains all the parameters to send to the API endpoint -for the storage service auto compaction by keyspace delete operation typically these are written to a http.Request -*/ -type StorageServiceAutoCompactionByKeyspaceDeleteParams struct { - - /*Cf - Comma seperated column family names - - */ - Cf *string - /*Keyspace - The keyspace - - */ - Keyspace string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service auto compaction by keyspace delete params -func (o *StorageServiceAutoCompactionByKeyspaceDeleteParams) WithTimeout(timeout time.Duration) *StorageServiceAutoCompactionByKeyspaceDeleteParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service auto compaction by keyspace delete params -func (o *StorageServiceAutoCompactionByKeyspaceDeleteParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service auto compaction by keyspace delete params -func (o *StorageServiceAutoCompactionByKeyspaceDeleteParams) WithContext(ctx context.Context) *StorageServiceAutoCompactionByKeyspaceDeleteParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service auto compaction by keyspace delete params -func (o *StorageServiceAutoCompactionByKeyspaceDeleteParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service auto compaction by keyspace delete params -func (o *StorageServiceAutoCompactionByKeyspaceDeleteParams) WithHTTPClient(client *http.Client) *StorageServiceAutoCompactionByKeyspaceDeleteParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service auto compaction by keyspace delete params -func (o *StorageServiceAutoCompactionByKeyspaceDeleteParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCf adds the cf to the storage service auto compaction by keyspace delete params -func (o *StorageServiceAutoCompactionByKeyspaceDeleteParams) WithCf(cf *string) *StorageServiceAutoCompactionByKeyspaceDeleteParams { - o.SetCf(cf) - return o -} - -// SetCf adds the cf to the storage service auto compaction by keyspace delete params -func (o *StorageServiceAutoCompactionByKeyspaceDeleteParams) SetCf(cf *string) { - o.Cf = cf -} - -// WithKeyspace adds the keyspace to the storage service auto compaction by keyspace delete params -func (o *StorageServiceAutoCompactionByKeyspaceDeleteParams) WithKeyspace(keyspace string) *StorageServiceAutoCompactionByKeyspaceDeleteParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the storage service auto compaction by keyspace delete params -func (o *StorageServiceAutoCompactionByKeyspaceDeleteParams) SetKeyspace(keyspace string) { - o.Keyspace = keyspace -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceAutoCompactionByKeyspaceDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Cf != nil { - - // query param cf - var qrCf string - if o.Cf != nil { - qrCf = *o.Cf - } - qCf := qrCf - if qCf != "" { - if err := r.SetQueryParam("cf", qCf); err != nil { - return err - } - } - - } - - // path param keyspace - if err := r.SetPathParam("keyspace", o.Keyspace); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_auto_compaction_by_keyspace_delete_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_auto_compaction_by_keyspace_delete_responses.go deleted file mode 100644 index 28ac8590b5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_auto_compaction_by_keyspace_delete_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceAutoCompactionByKeyspaceDeleteReader is a Reader for the StorageServiceAutoCompactionByKeyspaceDelete structure. -type StorageServiceAutoCompactionByKeyspaceDeleteReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceAutoCompactionByKeyspaceDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceAutoCompactionByKeyspaceDeleteOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceAutoCompactionByKeyspaceDeleteDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceAutoCompactionByKeyspaceDeleteOK creates a StorageServiceAutoCompactionByKeyspaceDeleteOK with default headers values -func NewStorageServiceAutoCompactionByKeyspaceDeleteOK() *StorageServiceAutoCompactionByKeyspaceDeleteOK { - return &StorageServiceAutoCompactionByKeyspaceDeleteOK{} -} - -/* -StorageServiceAutoCompactionByKeyspaceDeleteOK handles this case with default header values. - -Success -*/ -type StorageServiceAutoCompactionByKeyspaceDeleteOK struct { -} - -func (o *StorageServiceAutoCompactionByKeyspaceDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceAutoCompactionByKeyspaceDeleteDefault creates a StorageServiceAutoCompactionByKeyspaceDeleteDefault with default headers values -func NewStorageServiceAutoCompactionByKeyspaceDeleteDefault(code int) *StorageServiceAutoCompactionByKeyspaceDeleteDefault { - return &StorageServiceAutoCompactionByKeyspaceDeleteDefault{ - _statusCode: code, - } -} - -/* -StorageServiceAutoCompactionByKeyspaceDeleteDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceAutoCompactionByKeyspaceDeleteDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service auto compaction by keyspace delete default response -func (o *StorageServiceAutoCompactionByKeyspaceDeleteDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceAutoCompactionByKeyspaceDeleteDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceAutoCompactionByKeyspaceDeleteDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceAutoCompactionByKeyspaceDeleteDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_auto_compaction_by_keyspace_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_auto_compaction_by_keyspace_post_parameters.go deleted file mode 100644 index 297316e107..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_auto_compaction_by_keyspace_post_parameters.go +++ /dev/null @@ -1,168 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceAutoCompactionByKeyspacePostParams creates a new StorageServiceAutoCompactionByKeyspacePostParams object -// with the default values initialized. -func NewStorageServiceAutoCompactionByKeyspacePostParams() *StorageServiceAutoCompactionByKeyspacePostParams { - var () - return &StorageServiceAutoCompactionByKeyspacePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceAutoCompactionByKeyspacePostParamsWithTimeout creates a new StorageServiceAutoCompactionByKeyspacePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceAutoCompactionByKeyspacePostParamsWithTimeout(timeout time.Duration) *StorageServiceAutoCompactionByKeyspacePostParams { - var () - return &StorageServiceAutoCompactionByKeyspacePostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceAutoCompactionByKeyspacePostParamsWithContext creates a new StorageServiceAutoCompactionByKeyspacePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceAutoCompactionByKeyspacePostParamsWithContext(ctx context.Context) *StorageServiceAutoCompactionByKeyspacePostParams { - var () - return &StorageServiceAutoCompactionByKeyspacePostParams{ - - Context: ctx, - } -} - -// NewStorageServiceAutoCompactionByKeyspacePostParamsWithHTTPClient creates a new StorageServiceAutoCompactionByKeyspacePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceAutoCompactionByKeyspacePostParamsWithHTTPClient(client *http.Client) *StorageServiceAutoCompactionByKeyspacePostParams { - var () - return &StorageServiceAutoCompactionByKeyspacePostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceAutoCompactionByKeyspacePostParams contains all the parameters to send to the API endpoint -for the storage service auto compaction by keyspace post operation typically these are written to a http.Request -*/ -type StorageServiceAutoCompactionByKeyspacePostParams struct { - - /*Cf - Comma seperated column family names - - */ - Cf *string - /*Keyspace - The keyspace - - */ - Keyspace string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service auto compaction by keyspace post params -func (o *StorageServiceAutoCompactionByKeyspacePostParams) WithTimeout(timeout time.Duration) *StorageServiceAutoCompactionByKeyspacePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service auto compaction by keyspace post params -func (o *StorageServiceAutoCompactionByKeyspacePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service auto compaction by keyspace post params -func (o *StorageServiceAutoCompactionByKeyspacePostParams) WithContext(ctx context.Context) *StorageServiceAutoCompactionByKeyspacePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service auto compaction by keyspace post params -func (o *StorageServiceAutoCompactionByKeyspacePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service auto compaction by keyspace post params -func (o *StorageServiceAutoCompactionByKeyspacePostParams) WithHTTPClient(client *http.Client) *StorageServiceAutoCompactionByKeyspacePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service auto compaction by keyspace post params -func (o *StorageServiceAutoCompactionByKeyspacePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCf adds the cf to the storage service auto compaction by keyspace post params -func (o *StorageServiceAutoCompactionByKeyspacePostParams) WithCf(cf *string) *StorageServiceAutoCompactionByKeyspacePostParams { - o.SetCf(cf) - return o -} - -// SetCf adds the cf to the storage service auto compaction by keyspace post params -func (o *StorageServiceAutoCompactionByKeyspacePostParams) SetCf(cf *string) { - o.Cf = cf -} - -// WithKeyspace adds the keyspace to the storage service auto compaction by keyspace post params -func (o *StorageServiceAutoCompactionByKeyspacePostParams) WithKeyspace(keyspace string) *StorageServiceAutoCompactionByKeyspacePostParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the storage service auto compaction by keyspace post params -func (o *StorageServiceAutoCompactionByKeyspacePostParams) SetKeyspace(keyspace string) { - o.Keyspace = keyspace -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceAutoCompactionByKeyspacePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Cf != nil { - - // query param cf - var qrCf string - if o.Cf != nil { - qrCf = *o.Cf - } - qCf := qrCf - if qCf != "" { - if err := r.SetQueryParam("cf", qCf); err != nil { - return err - } - } - - } - - // path param keyspace - if err := r.SetPathParam("keyspace", o.Keyspace); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_auto_compaction_by_keyspace_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_auto_compaction_by_keyspace_post_responses.go deleted file mode 100644 index 1b39fb64f7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_auto_compaction_by_keyspace_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceAutoCompactionByKeyspacePostReader is a Reader for the StorageServiceAutoCompactionByKeyspacePost structure. -type StorageServiceAutoCompactionByKeyspacePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceAutoCompactionByKeyspacePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceAutoCompactionByKeyspacePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceAutoCompactionByKeyspacePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceAutoCompactionByKeyspacePostOK creates a StorageServiceAutoCompactionByKeyspacePostOK with default headers values -func NewStorageServiceAutoCompactionByKeyspacePostOK() *StorageServiceAutoCompactionByKeyspacePostOK { - return &StorageServiceAutoCompactionByKeyspacePostOK{} -} - -/* -StorageServiceAutoCompactionByKeyspacePostOK handles this case with default header values. - -Success -*/ -type StorageServiceAutoCompactionByKeyspacePostOK struct { -} - -func (o *StorageServiceAutoCompactionByKeyspacePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceAutoCompactionByKeyspacePostDefault creates a StorageServiceAutoCompactionByKeyspacePostDefault with default headers values -func NewStorageServiceAutoCompactionByKeyspacePostDefault(code int) *StorageServiceAutoCompactionByKeyspacePostDefault { - return &StorageServiceAutoCompactionByKeyspacePostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceAutoCompactionByKeyspacePostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceAutoCompactionByKeyspacePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service auto compaction by keyspace post default response -func (o *StorageServiceAutoCompactionByKeyspacePostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceAutoCompactionByKeyspacePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceAutoCompactionByKeyspacePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceAutoCompactionByKeyspacePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_backup_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_backup_post_parameters.go deleted file mode 100644 index 5a876aef3e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_backup_post_parameters.go +++ /dev/null @@ -1,305 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageServiceBackupPostParams creates a new StorageServiceBackupPostParams object -// with the default values initialized. -func NewStorageServiceBackupPostParams() *StorageServiceBackupPostParams { - var () - return &StorageServiceBackupPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceBackupPostParamsWithTimeout creates a new StorageServiceBackupPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceBackupPostParamsWithTimeout(timeout time.Duration) *StorageServiceBackupPostParams { - var () - return &StorageServiceBackupPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceBackupPostParamsWithContext creates a new StorageServiceBackupPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceBackupPostParamsWithContext(ctx context.Context) *StorageServiceBackupPostParams { - var () - return &StorageServiceBackupPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceBackupPostParamsWithHTTPClient creates a new StorageServiceBackupPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceBackupPostParamsWithHTTPClient(client *http.Client) *StorageServiceBackupPostParams { - var () - return &StorageServiceBackupPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceBackupPostParams contains all the parameters to send to the API endpoint -for the storage service backup post operation typically these are written to a http.Request -*/ -type StorageServiceBackupPostParams struct { - - /*Bucket - Name of the bucket to backup sstables to - - */ - Bucket string - /*Endpoint - ID of the configured object storage endpoint to copy sstables to - - */ - Endpoint string - /*Keyspace - Name of a keyspace to copy sstables from - - */ - Keyspace string - /*MoveFiles - Move component files instead of copying them - - */ - MoveFiles *bool - /*Prefix - The prefix of the objects for the backuped sstables - - */ - Prefix string - /*Snapshot - Name of a snapshot to copy sstables from - - */ - Snapshot *string - /*Table - Name of a table to copy sstables from - - */ - Table string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service backup post params -func (o *StorageServiceBackupPostParams) WithTimeout(timeout time.Duration) *StorageServiceBackupPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service backup post params -func (o *StorageServiceBackupPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service backup post params -func (o *StorageServiceBackupPostParams) WithContext(ctx context.Context) *StorageServiceBackupPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service backup post params -func (o *StorageServiceBackupPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service backup post params -func (o *StorageServiceBackupPostParams) WithHTTPClient(client *http.Client) *StorageServiceBackupPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service backup post params -func (o *StorageServiceBackupPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithBucket adds the bucket to the storage service backup post params -func (o *StorageServiceBackupPostParams) WithBucket(bucket string) *StorageServiceBackupPostParams { - o.SetBucket(bucket) - return o -} - -// SetBucket adds the bucket to the storage service backup post params -func (o *StorageServiceBackupPostParams) SetBucket(bucket string) { - o.Bucket = bucket -} - -// WithEndpoint adds the endpoint to the storage service backup post params -func (o *StorageServiceBackupPostParams) WithEndpoint(endpoint string) *StorageServiceBackupPostParams { - o.SetEndpoint(endpoint) - return o -} - -// SetEndpoint adds the endpoint to the storage service backup post params -func (o *StorageServiceBackupPostParams) SetEndpoint(endpoint string) { - o.Endpoint = endpoint -} - -// WithKeyspace adds the keyspace to the storage service backup post params -func (o *StorageServiceBackupPostParams) WithKeyspace(keyspace string) *StorageServiceBackupPostParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the storage service backup post params -func (o *StorageServiceBackupPostParams) SetKeyspace(keyspace string) { - o.Keyspace = keyspace -} - -// WithMoveFiles adds the moveFiles to the storage service backup post params -func (o *StorageServiceBackupPostParams) WithMoveFiles(moveFiles *bool) *StorageServiceBackupPostParams { - o.SetMoveFiles(moveFiles) - return o -} - -// SetMoveFiles adds the moveFiles to the storage service backup post params -func (o *StorageServiceBackupPostParams) SetMoveFiles(moveFiles *bool) { - o.MoveFiles = moveFiles -} - -// WithPrefix adds the prefix to the storage service backup post params -func (o *StorageServiceBackupPostParams) WithPrefix(prefix string) *StorageServiceBackupPostParams { - o.SetPrefix(prefix) - return o -} - -// SetPrefix adds the prefix to the storage service backup post params -func (o *StorageServiceBackupPostParams) SetPrefix(prefix string) { - o.Prefix = prefix -} - -// WithSnapshot adds the snapshot to the storage service backup post params -func (o *StorageServiceBackupPostParams) WithSnapshot(snapshot *string) *StorageServiceBackupPostParams { - o.SetSnapshot(snapshot) - return o -} - -// SetSnapshot adds the snapshot to the storage service backup post params -func (o *StorageServiceBackupPostParams) SetSnapshot(snapshot *string) { - o.Snapshot = snapshot -} - -// WithTable adds the table to the storage service backup post params -func (o *StorageServiceBackupPostParams) WithTable(table string) *StorageServiceBackupPostParams { - o.SetTable(table) - return o -} - -// SetTable adds the table to the storage service backup post params -func (o *StorageServiceBackupPostParams) SetTable(table string) { - o.Table = table -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceBackupPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param bucket - qrBucket := o.Bucket - qBucket := qrBucket - if qBucket != "" { - if err := r.SetQueryParam("bucket", qBucket); err != nil { - return err - } - } - - // query param endpoint - qrEndpoint := o.Endpoint - qEndpoint := qrEndpoint - if qEndpoint != "" { - if err := r.SetQueryParam("endpoint", qEndpoint); err != nil { - return err - } - } - - // query param keyspace - qrKeyspace := o.Keyspace - qKeyspace := qrKeyspace - if qKeyspace != "" { - if err := r.SetQueryParam("keyspace", qKeyspace); err != nil { - return err - } - } - - if o.MoveFiles != nil { - - // query param move_files - var qrMoveFiles bool - if o.MoveFiles != nil { - qrMoveFiles = *o.MoveFiles - } - qMoveFiles := swag.FormatBool(qrMoveFiles) - if qMoveFiles != "" { - if err := r.SetQueryParam("move_files", qMoveFiles); err != nil { - return err - } - } - - } - - // query param prefix - qrPrefix := o.Prefix - qPrefix := qrPrefix - if qPrefix != "" { - if err := r.SetQueryParam("prefix", qPrefix); err != nil { - return err - } - } - - if o.Snapshot != nil { - - // query param snapshot - var qrSnapshot string - if o.Snapshot != nil { - qrSnapshot = *o.Snapshot - } - qSnapshot := qrSnapshot - if qSnapshot != "" { - if err := r.SetQueryParam("snapshot", qSnapshot); err != nil { - return err - } - } - - } - - // query param table - qrTable := o.Table - qTable := qrTable - if qTable != "" { - if err := r.SetQueryParam("table", qTable); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_backup_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_backup_post_responses.go deleted file mode 100644 index 4b82870cf0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_backup_post_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceBackupPostReader is a Reader for the StorageServiceBackupPost structure. -type StorageServiceBackupPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceBackupPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceBackupPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceBackupPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceBackupPostOK creates a StorageServiceBackupPostOK with default headers values -func NewStorageServiceBackupPostOK() *StorageServiceBackupPostOK { - return &StorageServiceBackupPostOK{} -} - -/* -StorageServiceBackupPostOK handles this case with default header values. - -Task ID that can be used with Task Manager service -*/ -type StorageServiceBackupPostOK struct { - Payload string -} - -func (o *StorageServiceBackupPostOK) GetPayload() string { - return o.Payload -} - -func (o *StorageServiceBackupPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceBackupPostDefault creates a StorageServiceBackupPostDefault with default headers values -func NewStorageServiceBackupPostDefault(code int) *StorageServiceBackupPostDefault { - return &StorageServiceBackupPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceBackupPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceBackupPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service backup post default response -func (o *StorageServiceBackupPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceBackupPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceBackupPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceBackupPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_batch_size_failure_threshold_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_batch_size_failure_threshold_get_parameters.go deleted file mode 100644 index c8055645e9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_batch_size_failure_threshold_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceBatchSizeFailureThresholdGetParams creates a new StorageServiceBatchSizeFailureThresholdGetParams object -// with the default values initialized. -func NewStorageServiceBatchSizeFailureThresholdGetParams() *StorageServiceBatchSizeFailureThresholdGetParams { - - return &StorageServiceBatchSizeFailureThresholdGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceBatchSizeFailureThresholdGetParamsWithTimeout creates a new StorageServiceBatchSizeFailureThresholdGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceBatchSizeFailureThresholdGetParamsWithTimeout(timeout time.Duration) *StorageServiceBatchSizeFailureThresholdGetParams { - - return &StorageServiceBatchSizeFailureThresholdGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceBatchSizeFailureThresholdGetParamsWithContext creates a new StorageServiceBatchSizeFailureThresholdGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceBatchSizeFailureThresholdGetParamsWithContext(ctx context.Context) *StorageServiceBatchSizeFailureThresholdGetParams { - - return &StorageServiceBatchSizeFailureThresholdGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceBatchSizeFailureThresholdGetParamsWithHTTPClient creates a new StorageServiceBatchSizeFailureThresholdGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceBatchSizeFailureThresholdGetParamsWithHTTPClient(client *http.Client) *StorageServiceBatchSizeFailureThresholdGetParams { - - return &StorageServiceBatchSizeFailureThresholdGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceBatchSizeFailureThresholdGetParams contains all the parameters to send to the API endpoint -for the storage service batch size failure threshold get operation typically these are written to a http.Request -*/ -type StorageServiceBatchSizeFailureThresholdGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service batch size failure threshold get params -func (o *StorageServiceBatchSizeFailureThresholdGetParams) WithTimeout(timeout time.Duration) *StorageServiceBatchSizeFailureThresholdGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service batch size failure threshold get params -func (o *StorageServiceBatchSizeFailureThresholdGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service batch size failure threshold get params -func (o *StorageServiceBatchSizeFailureThresholdGetParams) WithContext(ctx context.Context) *StorageServiceBatchSizeFailureThresholdGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service batch size failure threshold get params -func (o *StorageServiceBatchSizeFailureThresholdGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service batch size failure threshold get params -func (o *StorageServiceBatchSizeFailureThresholdGetParams) WithHTTPClient(client *http.Client) *StorageServiceBatchSizeFailureThresholdGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service batch size failure threshold get params -func (o *StorageServiceBatchSizeFailureThresholdGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceBatchSizeFailureThresholdGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_batch_size_failure_threshold_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_batch_size_failure_threshold_get_responses.go deleted file mode 100644 index 5c3595be0e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_batch_size_failure_threshold_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceBatchSizeFailureThresholdGetReader is a Reader for the StorageServiceBatchSizeFailureThresholdGet structure. -type StorageServiceBatchSizeFailureThresholdGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceBatchSizeFailureThresholdGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceBatchSizeFailureThresholdGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceBatchSizeFailureThresholdGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceBatchSizeFailureThresholdGetOK creates a StorageServiceBatchSizeFailureThresholdGetOK with default headers values -func NewStorageServiceBatchSizeFailureThresholdGetOK() *StorageServiceBatchSizeFailureThresholdGetOK { - return &StorageServiceBatchSizeFailureThresholdGetOK{} -} - -/* -StorageServiceBatchSizeFailureThresholdGetOK handles this case with default header values. - -Success -*/ -type StorageServiceBatchSizeFailureThresholdGetOK struct { - Payload int32 -} - -func (o *StorageServiceBatchSizeFailureThresholdGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageServiceBatchSizeFailureThresholdGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceBatchSizeFailureThresholdGetDefault creates a StorageServiceBatchSizeFailureThresholdGetDefault with default headers values -func NewStorageServiceBatchSizeFailureThresholdGetDefault(code int) *StorageServiceBatchSizeFailureThresholdGetDefault { - return &StorageServiceBatchSizeFailureThresholdGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceBatchSizeFailureThresholdGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceBatchSizeFailureThresholdGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service batch size failure threshold get default response -func (o *StorageServiceBatchSizeFailureThresholdGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceBatchSizeFailureThresholdGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceBatchSizeFailureThresholdGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceBatchSizeFailureThresholdGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_batch_size_failure_threshold_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_batch_size_failure_threshold_post_parameters.go deleted file mode 100644 index 39e45e6ceb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_batch_size_failure_threshold_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageServiceBatchSizeFailureThresholdPostParams creates a new StorageServiceBatchSizeFailureThresholdPostParams object -// with the default values initialized. -func NewStorageServiceBatchSizeFailureThresholdPostParams() *StorageServiceBatchSizeFailureThresholdPostParams { - var () - return &StorageServiceBatchSizeFailureThresholdPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceBatchSizeFailureThresholdPostParamsWithTimeout creates a new StorageServiceBatchSizeFailureThresholdPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceBatchSizeFailureThresholdPostParamsWithTimeout(timeout time.Duration) *StorageServiceBatchSizeFailureThresholdPostParams { - var () - return &StorageServiceBatchSizeFailureThresholdPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceBatchSizeFailureThresholdPostParamsWithContext creates a new StorageServiceBatchSizeFailureThresholdPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceBatchSizeFailureThresholdPostParamsWithContext(ctx context.Context) *StorageServiceBatchSizeFailureThresholdPostParams { - var () - return &StorageServiceBatchSizeFailureThresholdPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceBatchSizeFailureThresholdPostParamsWithHTTPClient creates a new StorageServiceBatchSizeFailureThresholdPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceBatchSizeFailureThresholdPostParamsWithHTTPClient(client *http.Client) *StorageServiceBatchSizeFailureThresholdPostParams { - var () - return &StorageServiceBatchSizeFailureThresholdPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceBatchSizeFailureThresholdPostParams contains all the parameters to send to the API endpoint -for the storage service batch size failure threshold post operation typically these are written to a http.Request -*/ -type StorageServiceBatchSizeFailureThresholdPostParams struct { - - /*Threshold - batch size debug threshold - - */ - Threshold int32 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service batch size failure threshold post params -func (o *StorageServiceBatchSizeFailureThresholdPostParams) WithTimeout(timeout time.Duration) *StorageServiceBatchSizeFailureThresholdPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service batch size failure threshold post params -func (o *StorageServiceBatchSizeFailureThresholdPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service batch size failure threshold post params -func (o *StorageServiceBatchSizeFailureThresholdPostParams) WithContext(ctx context.Context) *StorageServiceBatchSizeFailureThresholdPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service batch size failure threshold post params -func (o *StorageServiceBatchSizeFailureThresholdPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service batch size failure threshold post params -func (o *StorageServiceBatchSizeFailureThresholdPostParams) WithHTTPClient(client *http.Client) *StorageServiceBatchSizeFailureThresholdPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service batch size failure threshold post params -func (o *StorageServiceBatchSizeFailureThresholdPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithThreshold adds the threshold to the storage service batch size failure threshold post params -func (o *StorageServiceBatchSizeFailureThresholdPostParams) WithThreshold(threshold int32) *StorageServiceBatchSizeFailureThresholdPostParams { - o.SetThreshold(threshold) - return o -} - -// SetThreshold adds the threshold to the storage service batch size failure threshold post params -func (o *StorageServiceBatchSizeFailureThresholdPostParams) SetThreshold(threshold int32) { - o.Threshold = threshold -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceBatchSizeFailureThresholdPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param threshold - qrThreshold := o.Threshold - qThreshold := swag.FormatInt32(qrThreshold) - if qThreshold != "" { - if err := r.SetQueryParam("threshold", qThreshold); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_batch_size_failure_threshold_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_batch_size_failure_threshold_post_responses.go deleted file mode 100644 index 0fb9d8b447..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_batch_size_failure_threshold_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceBatchSizeFailureThresholdPostReader is a Reader for the StorageServiceBatchSizeFailureThresholdPost structure. -type StorageServiceBatchSizeFailureThresholdPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceBatchSizeFailureThresholdPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceBatchSizeFailureThresholdPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceBatchSizeFailureThresholdPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceBatchSizeFailureThresholdPostOK creates a StorageServiceBatchSizeFailureThresholdPostOK with default headers values -func NewStorageServiceBatchSizeFailureThresholdPostOK() *StorageServiceBatchSizeFailureThresholdPostOK { - return &StorageServiceBatchSizeFailureThresholdPostOK{} -} - -/* -StorageServiceBatchSizeFailureThresholdPostOK handles this case with default header values. - -Success -*/ -type StorageServiceBatchSizeFailureThresholdPostOK struct { -} - -func (o *StorageServiceBatchSizeFailureThresholdPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceBatchSizeFailureThresholdPostDefault creates a StorageServiceBatchSizeFailureThresholdPostDefault with default headers values -func NewStorageServiceBatchSizeFailureThresholdPostDefault(code int) *StorageServiceBatchSizeFailureThresholdPostDefault { - return &StorageServiceBatchSizeFailureThresholdPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceBatchSizeFailureThresholdPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceBatchSizeFailureThresholdPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service batch size failure threshold post default response -func (o *StorageServiceBatchSizeFailureThresholdPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceBatchSizeFailureThresholdPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceBatchSizeFailureThresholdPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceBatchSizeFailureThresholdPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_bulk_load_async_by_path_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_bulk_load_async_by_path_get_parameters.go deleted file mode 100644 index b59a49f3ae..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_bulk_load_async_by_path_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceBulkLoadAsyncByPathGetParams creates a new StorageServiceBulkLoadAsyncByPathGetParams object -// with the default values initialized. -func NewStorageServiceBulkLoadAsyncByPathGetParams() *StorageServiceBulkLoadAsyncByPathGetParams { - var () - return &StorageServiceBulkLoadAsyncByPathGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceBulkLoadAsyncByPathGetParamsWithTimeout creates a new StorageServiceBulkLoadAsyncByPathGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceBulkLoadAsyncByPathGetParamsWithTimeout(timeout time.Duration) *StorageServiceBulkLoadAsyncByPathGetParams { - var () - return &StorageServiceBulkLoadAsyncByPathGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceBulkLoadAsyncByPathGetParamsWithContext creates a new StorageServiceBulkLoadAsyncByPathGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceBulkLoadAsyncByPathGetParamsWithContext(ctx context.Context) *StorageServiceBulkLoadAsyncByPathGetParams { - var () - return &StorageServiceBulkLoadAsyncByPathGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceBulkLoadAsyncByPathGetParamsWithHTTPClient creates a new StorageServiceBulkLoadAsyncByPathGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceBulkLoadAsyncByPathGetParamsWithHTTPClient(client *http.Client) *StorageServiceBulkLoadAsyncByPathGetParams { - var () - return &StorageServiceBulkLoadAsyncByPathGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceBulkLoadAsyncByPathGetParams contains all the parameters to send to the API endpoint -for the storage service bulk load async by path get operation typically these are written to a http.Request -*/ -type StorageServiceBulkLoadAsyncByPathGetParams struct { - - /*Path - Path to directory to load from - - */ - Path string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service bulk load async by path get params -func (o *StorageServiceBulkLoadAsyncByPathGetParams) WithTimeout(timeout time.Duration) *StorageServiceBulkLoadAsyncByPathGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service bulk load async by path get params -func (o *StorageServiceBulkLoadAsyncByPathGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service bulk load async by path get params -func (o *StorageServiceBulkLoadAsyncByPathGetParams) WithContext(ctx context.Context) *StorageServiceBulkLoadAsyncByPathGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service bulk load async by path get params -func (o *StorageServiceBulkLoadAsyncByPathGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service bulk load async by path get params -func (o *StorageServiceBulkLoadAsyncByPathGetParams) WithHTTPClient(client *http.Client) *StorageServiceBulkLoadAsyncByPathGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service bulk load async by path get params -func (o *StorageServiceBulkLoadAsyncByPathGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithPath adds the path to the storage service bulk load async by path get params -func (o *StorageServiceBulkLoadAsyncByPathGetParams) WithPath(path string) *StorageServiceBulkLoadAsyncByPathGetParams { - o.SetPath(path) - return o -} - -// SetPath adds the path to the storage service bulk load async by path get params -func (o *StorageServiceBulkLoadAsyncByPathGetParams) SetPath(path string) { - o.Path = path -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceBulkLoadAsyncByPathGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param path - if err := r.SetPathParam("path", o.Path); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_bulk_load_async_by_path_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_bulk_load_async_by_path_get_responses.go deleted file mode 100644 index 1951a32a3c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_bulk_load_async_by_path_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceBulkLoadAsyncByPathGetReader is a Reader for the StorageServiceBulkLoadAsyncByPathGet structure. -type StorageServiceBulkLoadAsyncByPathGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceBulkLoadAsyncByPathGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceBulkLoadAsyncByPathGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceBulkLoadAsyncByPathGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceBulkLoadAsyncByPathGetOK creates a StorageServiceBulkLoadAsyncByPathGetOK with default headers values -func NewStorageServiceBulkLoadAsyncByPathGetOK() *StorageServiceBulkLoadAsyncByPathGetOK { - return &StorageServiceBulkLoadAsyncByPathGetOK{} -} - -/* -StorageServiceBulkLoadAsyncByPathGetOK handles this case with default header values. - -Success -*/ -type StorageServiceBulkLoadAsyncByPathGetOK struct { - Payload string -} - -func (o *StorageServiceBulkLoadAsyncByPathGetOK) GetPayload() string { - return o.Payload -} - -func (o *StorageServiceBulkLoadAsyncByPathGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceBulkLoadAsyncByPathGetDefault creates a StorageServiceBulkLoadAsyncByPathGetDefault with default headers values -func NewStorageServiceBulkLoadAsyncByPathGetDefault(code int) *StorageServiceBulkLoadAsyncByPathGetDefault { - return &StorageServiceBulkLoadAsyncByPathGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceBulkLoadAsyncByPathGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceBulkLoadAsyncByPathGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service bulk load async by path get default response -func (o *StorageServiceBulkLoadAsyncByPathGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceBulkLoadAsyncByPathGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceBulkLoadAsyncByPathGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceBulkLoadAsyncByPathGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_bulk_load_by_path_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_bulk_load_by_path_post_parameters.go deleted file mode 100644 index 80eb4eff24..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_bulk_load_by_path_post_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceBulkLoadByPathPostParams creates a new StorageServiceBulkLoadByPathPostParams object -// with the default values initialized. -func NewStorageServiceBulkLoadByPathPostParams() *StorageServiceBulkLoadByPathPostParams { - var () - return &StorageServiceBulkLoadByPathPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceBulkLoadByPathPostParamsWithTimeout creates a new StorageServiceBulkLoadByPathPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceBulkLoadByPathPostParamsWithTimeout(timeout time.Duration) *StorageServiceBulkLoadByPathPostParams { - var () - return &StorageServiceBulkLoadByPathPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceBulkLoadByPathPostParamsWithContext creates a new StorageServiceBulkLoadByPathPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceBulkLoadByPathPostParamsWithContext(ctx context.Context) *StorageServiceBulkLoadByPathPostParams { - var () - return &StorageServiceBulkLoadByPathPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceBulkLoadByPathPostParamsWithHTTPClient creates a new StorageServiceBulkLoadByPathPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceBulkLoadByPathPostParamsWithHTTPClient(client *http.Client) *StorageServiceBulkLoadByPathPostParams { - var () - return &StorageServiceBulkLoadByPathPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceBulkLoadByPathPostParams contains all the parameters to send to the API endpoint -for the storage service bulk load by path post operation typically these are written to a http.Request -*/ -type StorageServiceBulkLoadByPathPostParams struct { - - /*Path - Path to directory to load from - - */ - Path string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service bulk load by path post params -func (o *StorageServiceBulkLoadByPathPostParams) WithTimeout(timeout time.Duration) *StorageServiceBulkLoadByPathPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service bulk load by path post params -func (o *StorageServiceBulkLoadByPathPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service bulk load by path post params -func (o *StorageServiceBulkLoadByPathPostParams) WithContext(ctx context.Context) *StorageServiceBulkLoadByPathPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service bulk load by path post params -func (o *StorageServiceBulkLoadByPathPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service bulk load by path post params -func (o *StorageServiceBulkLoadByPathPostParams) WithHTTPClient(client *http.Client) *StorageServiceBulkLoadByPathPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service bulk load by path post params -func (o *StorageServiceBulkLoadByPathPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithPath adds the path to the storage service bulk load by path post params -func (o *StorageServiceBulkLoadByPathPostParams) WithPath(path string) *StorageServiceBulkLoadByPathPostParams { - o.SetPath(path) - return o -} - -// SetPath adds the path to the storage service bulk load by path post params -func (o *StorageServiceBulkLoadByPathPostParams) SetPath(path string) { - o.Path = path -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceBulkLoadByPathPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param path - if err := r.SetPathParam("path", o.Path); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_bulk_load_by_path_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_bulk_load_by_path_post_responses.go deleted file mode 100644 index f21a602b6f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_bulk_load_by_path_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceBulkLoadByPathPostReader is a Reader for the StorageServiceBulkLoadByPathPost structure. -type StorageServiceBulkLoadByPathPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceBulkLoadByPathPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceBulkLoadByPathPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceBulkLoadByPathPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceBulkLoadByPathPostOK creates a StorageServiceBulkLoadByPathPostOK with default headers values -func NewStorageServiceBulkLoadByPathPostOK() *StorageServiceBulkLoadByPathPostOK { - return &StorageServiceBulkLoadByPathPostOK{} -} - -/* -StorageServiceBulkLoadByPathPostOK handles this case with default header values. - -Success -*/ -type StorageServiceBulkLoadByPathPostOK struct { -} - -func (o *StorageServiceBulkLoadByPathPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceBulkLoadByPathPostDefault creates a StorageServiceBulkLoadByPathPostDefault with default headers values -func NewStorageServiceBulkLoadByPathPostDefault(code int) *StorageServiceBulkLoadByPathPostDefault { - return &StorageServiceBulkLoadByPathPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceBulkLoadByPathPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceBulkLoadByPathPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service bulk load by path post default response -func (o *StorageServiceBulkLoadByPathPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceBulkLoadByPathPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceBulkLoadByPathPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceBulkLoadByPathPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_cluster_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_cluster_name_get_parameters.go deleted file mode 100644 index b51a1695d9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_cluster_name_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceClusterNameGetParams creates a new StorageServiceClusterNameGetParams object -// with the default values initialized. -func NewStorageServiceClusterNameGetParams() *StorageServiceClusterNameGetParams { - - return &StorageServiceClusterNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceClusterNameGetParamsWithTimeout creates a new StorageServiceClusterNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceClusterNameGetParamsWithTimeout(timeout time.Duration) *StorageServiceClusterNameGetParams { - - return &StorageServiceClusterNameGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceClusterNameGetParamsWithContext creates a new StorageServiceClusterNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceClusterNameGetParamsWithContext(ctx context.Context) *StorageServiceClusterNameGetParams { - - return &StorageServiceClusterNameGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceClusterNameGetParamsWithHTTPClient creates a new StorageServiceClusterNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceClusterNameGetParamsWithHTTPClient(client *http.Client) *StorageServiceClusterNameGetParams { - - return &StorageServiceClusterNameGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceClusterNameGetParams contains all the parameters to send to the API endpoint -for the storage service cluster name get operation typically these are written to a http.Request -*/ -type StorageServiceClusterNameGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service cluster name get params -func (o *StorageServiceClusterNameGetParams) WithTimeout(timeout time.Duration) *StorageServiceClusterNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service cluster name get params -func (o *StorageServiceClusterNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service cluster name get params -func (o *StorageServiceClusterNameGetParams) WithContext(ctx context.Context) *StorageServiceClusterNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service cluster name get params -func (o *StorageServiceClusterNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service cluster name get params -func (o *StorageServiceClusterNameGetParams) WithHTTPClient(client *http.Client) *StorageServiceClusterNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service cluster name get params -func (o *StorageServiceClusterNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceClusterNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_cluster_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_cluster_name_get_responses.go deleted file mode 100644 index 120f63bdbd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_cluster_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceClusterNameGetReader is a Reader for the StorageServiceClusterNameGet structure. -type StorageServiceClusterNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceClusterNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceClusterNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceClusterNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceClusterNameGetOK creates a StorageServiceClusterNameGetOK with default headers values -func NewStorageServiceClusterNameGetOK() *StorageServiceClusterNameGetOK { - return &StorageServiceClusterNameGetOK{} -} - -/* -StorageServiceClusterNameGetOK handles this case with default header values. - -Success -*/ -type StorageServiceClusterNameGetOK struct { - Payload string -} - -func (o *StorageServiceClusterNameGetOK) GetPayload() string { - return o.Payload -} - -func (o *StorageServiceClusterNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceClusterNameGetDefault creates a StorageServiceClusterNameGetDefault with default headers values -func NewStorageServiceClusterNameGetDefault(code int) *StorageServiceClusterNameGetDefault { - return &StorageServiceClusterNameGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceClusterNameGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceClusterNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service cluster name get default response -func (o *StorageServiceClusterNameGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceClusterNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceClusterNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceClusterNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_commitlog_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_commitlog_get_parameters.go deleted file mode 100644 index ad32804c42..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_commitlog_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceCommitlogGetParams creates a new StorageServiceCommitlogGetParams object -// with the default values initialized. -func NewStorageServiceCommitlogGetParams() *StorageServiceCommitlogGetParams { - - return &StorageServiceCommitlogGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceCommitlogGetParamsWithTimeout creates a new StorageServiceCommitlogGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceCommitlogGetParamsWithTimeout(timeout time.Duration) *StorageServiceCommitlogGetParams { - - return &StorageServiceCommitlogGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceCommitlogGetParamsWithContext creates a new StorageServiceCommitlogGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceCommitlogGetParamsWithContext(ctx context.Context) *StorageServiceCommitlogGetParams { - - return &StorageServiceCommitlogGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceCommitlogGetParamsWithHTTPClient creates a new StorageServiceCommitlogGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceCommitlogGetParamsWithHTTPClient(client *http.Client) *StorageServiceCommitlogGetParams { - - return &StorageServiceCommitlogGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceCommitlogGetParams contains all the parameters to send to the API endpoint -for the storage service commitlog get operation typically these are written to a http.Request -*/ -type StorageServiceCommitlogGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service commitlog get params -func (o *StorageServiceCommitlogGetParams) WithTimeout(timeout time.Duration) *StorageServiceCommitlogGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service commitlog get params -func (o *StorageServiceCommitlogGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service commitlog get params -func (o *StorageServiceCommitlogGetParams) WithContext(ctx context.Context) *StorageServiceCommitlogGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service commitlog get params -func (o *StorageServiceCommitlogGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service commitlog get params -func (o *StorageServiceCommitlogGetParams) WithHTTPClient(client *http.Client) *StorageServiceCommitlogGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service commitlog get params -func (o *StorageServiceCommitlogGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceCommitlogGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_commitlog_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_commitlog_get_responses.go deleted file mode 100644 index 3cd340cf42..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_commitlog_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceCommitlogGetReader is a Reader for the StorageServiceCommitlogGet structure. -type StorageServiceCommitlogGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceCommitlogGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceCommitlogGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceCommitlogGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceCommitlogGetOK creates a StorageServiceCommitlogGetOK with default headers values -func NewStorageServiceCommitlogGetOK() *StorageServiceCommitlogGetOK { - return &StorageServiceCommitlogGetOK{} -} - -/* -StorageServiceCommitlogGetOK handles this case with default header values. - -Success -*/ -type StorageServiceCommitlogGetOK struct { - Payload string -} - -func (o *StorageServiceCommitlogGetOK) GetPayload() string { - return o.Payload -} - -func (o *StorageServiceCommitlogGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceCommitlogGetDefault creates a StorageServiceCommitlogGetDefault with default headers values -func NewStorageServiceCommitlogGetDefault(code int) *StorageServiceCommitlogGetDefault { - return &StorageServiceCommitlogGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceCommitlogGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceCommitlogGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service commitlog get default response -func (o *StorageServiceCommitlogGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceCommitlogGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceCommitlogGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceCommitlogGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_compaction_throughput_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_compaction_throughput_get_parameters.go deleted file mode 100644 index 5f43f01acf..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_compaction_throughput_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceCompactionThroughputGetParams creates a new StorageServiceCompactionThroughputGetParams object -// with the default values initialized. -func NewStorageServiceCompactionThroughputGetParams() *StorageServiceCompactionThroughputGetParams { - - return &StorageServiceCompactionThroughputGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceCompactionThroughputGetParamsWithTimeout creates a new StorageServiceCompactionThroughputGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceCompactionThroughputGetParamsWithTimeout(timeout time.Duration) *StorageServiceCompactionThroughputGetParams { - - return &StorageServiceCompactionThroughputGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceCompactionThroughputGetParamsWithContext creates a new StorageServiceCompactionThroughputGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceCompactionThroughputGetParamsWithContext(ctx context.Context) *StorageServiceCompactionThroughputGetParams { - - return &StorageServiceCompactionThroughputGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceCompactionThroughputGetParamsWithHTTPClient creates a new StorageServiceCompactionThroughputGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceCompactionThroughputGetParamsWithHTTPClient(client *http.Client) *StorageServiceCompactionThroughputGetParams { - - return &StorageServiceCompactionThroughputGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceCompactionThroughputGetParams contains all the parameters to send to the API endpoint -for the storage service compaction throughput get operation typically these are written to a http.Request -*/ -type StorageServiceCompactionThroughputGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service compaction throughput get params -func (o *StorageServiceCompactionThroughputGetParams) WithTimeout(timeout time.Duration) *StorageServiceCompactionThroughputGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service compaction throughput get params -func (o *StorageServiceCompactionThroughputGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service compaction throughput get params -func (o *StorageServiceCompactionThroughputGetParams) WithContext(ctx context.Context) *StorageServiceCompactionThroughputGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service compaction throughput get params -func (o *StorageServiceCompactionThroughputGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service compaction throughput get params -func (o *StorageServiceCompactionThroughputGetParams) WithHTTPClient(client *http.Client) *StorageServiceCompactionThroughputGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service compaction throughput get params -func (o *StorageServiceCompactionThroughputGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceCompactionThroughputGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_compaction_throughput_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_compaction_throughput_get_responses.go deleted file mode 100644 index 31536bf45f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_compaction_throughput_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceCompactionThroughputGetReader is a Reader for the StorageServiceCompactionThroughputGet structure. -type StorageServiceCompactionThroughputGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceCompactionThroughputGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceCompactionThroughputGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceCompactionThroughputGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceCompactionThroughputGetOK creates a StorageServiceCompactionThroughputGetOK with default headers values -func NewStorageServiceCompactionThroughputGetOK() *StorageServiceCompactionThroughputGetOK { - return &StorageServiceCompactionThroughputGetOK{} -} - -/* -StorageServiceCompactionThroughputGetOK handles this case with default header values. - -Success -*/ -type StorageServiceCompactionThroughputGetOK struct { - Payload int32 -} - -func (o *StorageServiceCompactionThroughputGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageServiceCompactionThroughputGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceCompactionThroughputGetDefault creates a StorageServiceCompactionThroughputGetDefault with default headers values -func NewStorageServiceCompactionThroughputGetDefault(code int) *StorageServiceCompactionThroughputGetDefault { - return &StorageServiceCompactionThroughputGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceCompactionThroughputGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceCompactionThroughputGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service compaction throughput get default response -func (o *StorageServiceCompactionThroughputGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceCompactionThroughputGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceCompactionThroughputGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceCompactionThroughputGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_compaction_throughput_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_compaction_throughput_post_parameters.go deleted file mode 100644 index d41f18c9c8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_compaction_throughput_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageServiceCompactionThroughputPostParams creates a new StorageServiceCompactionThroughputPostParams object -// with the default values initialized. -func NewStorageServiceCompactionThroughputPostParams() *StorageServiceCompactionThroughputPostParams { - var () - return &StorageServiceCompactionThroughputPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceCompactionThroughputPostParamsWithTimeout creates a new StorageServiceCompactionThroughputPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceCompactionThroughputPostParamsWithTimeout(timeout time.Duration) *StorageServiceCompactionThroughputPostParams { - var () - return &StorageServiceCompactionThroughputPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceCompactionThroughputPostParamsWithContext creates a new StorageServiceCompactionThroughputPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceCompactionThroughputPostParamsWithContext(ctx context.Context) *StorageServiceCompactionThroughputPostParams { - var () - return &StorageServiceCompactionThroughputPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceCompactionThroughputPostParamsWithHTTPClient creates a new StorageServiceCompactionThroughputPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceCompactionThroughputPostParamsWithHTTPClient(client *http.Client) *StorageServiceCompactionThroughputPostParams { - var () - return &StorageServiceCompactionThroughputPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceCompactionThroughputPostParams contains all the parameters to send to the API endpoint -for the storage service compaction throughput post operation typically these are written to a http.Request -*/ -type StorageServiceCompactionThroughputPostParams struct { - - /*Value - compaction throughput - - */ - Value int32 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service compaction throughput post params -func (o *StorageServiceCompactionThroughputPostParams) WithTimeout(timeout time.Duration) *StorageServiceCompactionThroughputPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service compaction throughput post params -func (o *StorageServiceCompactionThroughputPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service compaction throughput post params -func (o *StorageServiceCompactionThroughputPostParams) WithContext(ctx context.Context) *StorageServiceCompactionThroughputPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service compaction throughput post params -func (o *StorageServiceCompactionThroughputPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service compaction throughput post params -func (o *StorageServiceCompactionThroughputPostParams) WithHTTPClient(client *http.Client) *StorageServiceCompactionThroughputPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service compaction throughput post params -func (o *StorageServiceCompactionThroughputPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithValue adds the value to the storage service compaction throughput post params -func (o *StorageServiceCompactionThroughputPostParams) WithValue(value int32) *StorageServiceCompactionThroughputPostParams { - o.SetValue(value) - return o -} - -// SetValue adds the value to the storage service compaction throughput post params -func (o *StorageServiceCompactionThroughputPostParams) SetValue(value int32) { - o.Value = value -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceCompactionThroughputPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param value - qrValue := o.Value - qValue := swag.FormatInt32(qrValue) - if qValue != "" { - if err := r.SetQueryParam("value", qValue); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_compaction_throughput_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_compaction_throughput_post_responses.go deleted file mode 100644 index cbaee26e86..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_compaction_throughput_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceCompactionThroughputPostReader is a Reader for the StorageServiceCompactionThroughputPost structure. -type StorageServiceCompactionThroughputPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceCompactionThroughputPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceCompactionThroughputPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceCompactionThroughputPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceCompactionThroughputPostOK creates a StorageServiceCompactionThroughputPostOK with default headers values -func NewStorageServiceCompactionThroughputPostOK() *StorageServiceCompactionThroughputPostOK { - return &StorageServiceCompactionThroughputPostOK{} -} - -/* -StorageServiceCompactionThroughputPostOK handles this case with default header values. - -Success -*/ -type StorageServiceCompactionThroughputPostOK struct { -} - -func (o *StorageServiceCompactionThroughputPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceCompactionThroughputPostDefault creates a StorageServiceCompactionThroughputPostDefault with default headers values -func NewStorageServiceCompactionThroughputPostDefault(code int) *StorageServiceCompactionThroughputPostDefault { - return &StorageServiceCompactionThroughputPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceCompactionThroughputPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceCompactionThroughputPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service compaction throughput post default response -func (o *StorageServiceCompactionThroughputPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceCompactionThroughputPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceCompactionThroughputPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceCompactionThroughputPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_data_file_locations_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_data_file_locations_get_parameters.go deleted file mode 100644 index 696b3f8e50..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_data_file_locations_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceDataFileLocationsGetParams creates a new StorageServiceDataFileLocationsGetParams object -// with the default values initialized. -func NewStorageServiceDataFileLocationsGetParams() *StorageServiceDataFileLocationsGetParams { - - return &StorageServiceDataFileLocationsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceDataFileLocationsGetParamsWithTimeout creates a new StorageServiceDataFileLocationsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceDataFileLocationsGetParamsWithTimeout(timeout time.Duration) *StorageServiceDataFileLocationsGetParams { - - return &StorageServiceDataFileLocationsGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceDataFileLocationsGetParamsWithContext creates a new StorageServiceDataFileLocationsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceDataFileLocationsGetParamsWithContext(ctx context.Context) *StorageServiceDataFileLocationsGetParams { - - return &StorageServiceDataFileLocationsGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceDataFileLocationsGetParamsWithHTTPClient creates a new StorageServiceDataFileLocationsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceDataFileLocationsGetParamsWithHTTPClient(client *http.Client) *StorageServiceDataFileLocationsGetParams { - - return &StorageServiceDataFileLocationsGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceDataFileLocationsGetParams contains all the parameters to send to the API endpoint -for the storage service data file locations get operation typically these are written to a http.Request -*/ -type StorageServiceDataFileLocationsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service data file locations get params -func (o *StorageServiceDataFileLocationsGetParams) WithTimeout(timeout time.Duration) *StorageServiceDataFileLocationsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service data file locations get params -func (o *StorageServiceDataFileLocationsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service data file locations get params -func (o *StorageServiceDataFileLocationsGetParams) WithContext(ctx context.Context) *StorageServiceDataFileLocationsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service data file locations get params -func (o *StorageServiceDataFileLocationsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service data file locations get params -func (o *StorageServiceDataFileLocationsGetParams) WithHTTPClient(client *http.Client) *StorageServiceDataFileLocationsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service data file locations get params -func (o *StorageServiceDataFileLocationsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceDataFileLocationsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_data_file_locations_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_data_file_locations_get_responses.go deleted file mode 100644 index 73a3f955ea..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_data_file_locations_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceDataFileLocationsGetReader is a Reader for the StorageServiceDataFileLocationsGet structure. -type StorageServiceDataFileLocationsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceDataFileLocationsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceDataFileLocationsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceDataFileLocationsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceDataFileLocationsGetOK creates a StorageServiceDataFileLocationsGetOK with default headers values -func NewStorageServiceDataFileLocationsGetOK() *StorageServiceDataFileLocationsGetOK { - return &StorageServiceDataFileLocationsGetOK{} -} - -/* -StorageServiceDataFileLocationsGetOK handles this case with default header values. - -Success -*/ -type StorageServiceDataFileLocationsGetOK struct { - Payload []string -} - -func (o *StorageServiceDataFileLocationsGetOK) GetPayload() []string { - return o.Payload -} - -func (o *StorageServiceDataFileLocationsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceDataFileLocationsGetDefault creates a StorageServiceDataFileLocationsGetDefault with default headers values -func NewStorageServiceDataFileLocationsGetDefault(code int) *StorageServiceDataFileLocationsGetDefault { - return &StorageServiceDataFileLocationsGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceDataFileLocationsGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceDataFileLocationsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service data file locations get default response -func (o *StorageServiceDataFileLocationsGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceDataFileLocationsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceDataFileLocationsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceDataFileLocationsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_decommission_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_decommission_post_parameters.go deleted file mode 100644 index 16981ed389..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_decommission_post_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceDecommissionPostParams creates a new StorageServiceDecommissionPostParams object -// with the default values initialized. -func NewStorageServiceDecommissionPostParams() *StorageServiceDecommissionPostParams { - - return &StorageServiceDecommissionPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceDecommissionPostParamsWithTimeout creates a new StorageServiceDecommissionPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceDecommissionPostParamsWithTimeout(timeout time.Duration) *StorageServiceDecommissionPostParams { - - return &StorageServiceDecommissionPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceDecommissionPostParamsWithContext creates a new StorageServiceDecommissionPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceDecommissionPostParamsWithContext(ctx context.Context) *StorageServiceDecommissionPostParams { - - return &StorageServiceDecommissionPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceDecommissionPostParamsWithHTTPClient creates a new StorageServiceDecommissionPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceDecommissionPostParamsWithHTTPClient(client *http.Client) *StorageServiceDecommissionPostParams { - - return &StorageServiceDecommissionPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceDecommissionPostParams contains all the parameters to send to the API endpoint -for the storage service decommission post operation typically these are written to a http.Request -*/ -type StorageServiceDecommissionPostParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service decommission post params -func (o *StorageServiceDecommissionPostParams) WithTimeout(timeout time.Duration) *StorageServiceDecommissionPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service decommission post params -func (o *StorageServiceDecommissionPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service decommission post params -func (o *StorageServiceDecommissionPostParams) WithContext(ctx context.Context) *StorageServiceDecommissionPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service decommission post params -func (o *StorageServiceDecommissionPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service decommission post params -func (o *StorageServiceDecommissionPostParams) WithHTTPClient(client *http.Client) *StorageServiceDecommissionPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service decommission post params -func (o *StorageServiceDecommissionPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceDecommissionPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_decommission_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_decommission_post_responses.go deleted file mode 100644 index 9548b168b4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_decommission_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceDecommissionPostReader is a Reader for the StorageServiceDecommissionPost structure. -type StorageServiceDecommissionPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceDecommissionPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceDecommissionPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceDecommissionPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceDecommissionPostOK creates a StorageServiceDecommissionPostOK with default headers values -func NewStorageServiceDecommissionPostOK() *StorageServiceDecommissionPostOK { - return &StorageServiceDecommissionPostOK{} -} - -/* -StorageServiceDecommissionPostOK handles this case with default header values. - -Success -*/ -type StorageServiceDecommissionPostOK struct { -} - -func (o *StorageServiceDecommissionPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceDecommissionPostDefault creates a StorageServiceDecommissionPostDefault with default headers values -func NewStorageServiceDecommissionPostDefault(code int) *StorageServiceDecommissionPostDefault { - return &StorageServiceDecommissionPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceDecommissionPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceDecommissionPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service decommission post default response -func (o *StorageServiceDecommissionPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceDecommissionPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceDecommissionPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceDecommissionPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_deliver_hints_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_deliver_hints_post_parameters.go deleted file mode 100644 index 5cdb7174ad..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_deliver_hints_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceDeliverHintsPostParams creates a new StorageServiceDeliverHintsPostParams object -// with the default values initialized. -func NewStorageServiceDeliverHintsPostParams() *StorageServiceDeliverHintsPostParams { - var () - return &StorageServiceDeliverHintsPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceDeliverHintsPostParamsWithTimeout creates a new StorageServiceDeliverHintsPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceDeliverHintsPostParamsWithTimeout(timeout time.Duration) *StorageServiceDeliverHintsPostParams { - var () - return &StorageServiceDeliverHintsPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceDeliverHintsPostParamsWithContext creates a new StorageServiceDeliverHintsPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceDeliverHintsPostParamsWithContext(ctx context.Context) *StorageServiceDeliverHintsPostParams { - var () - return &StorageServiceDeliverHintsPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceDeliverHintsPostParamsWithHTTPClient creates a new StorageServiceDeliverHintsPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceDeliverHintsPostParamsWithHTTPClient(client *http.Client) *StorageServiceDeliverHintsPostParams { - var () - return &StorageServiceDeliverHintsPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceDeliverHintsPostParams contains all the parameters to send to the API endpoint -for the storage service deliver hints post operation typically these are written to a http.Request -*/ -type StorageServiceDeliverHintsPostParams struct { - - /*Host - The host name - - */ - Host string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service deliver hints post params -func (o *StorageServiceDeliverHintsPostParams) WithTimeout(timeout time.Duration) *StorageServiceDeliverHintsPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service deliver hints post params -func (o *StorageServiceDeliverHintsPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service deliver hints post params -func (o *StorageServiceDeliverHintsPostParams) WithContext(ctx context.Context) *StorageServiceDeliverHintsPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service deliver hints post params -func (o *StorageServiceDeliverHintsPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service deliver hints post params -func (o *StorageServiceDeliverHintsPostParams) WithHTTPClient(client *http.Client) *StorageServiceDeliverHintsPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service deliver hints post params -func (o *StorageServiceDeliverHintsPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithHost adds the host to the storage service deliver hints post params -func (o *StorageServiceDeliverHintsPostParams) WithHost(host string) *StorageServiceDeliverHintsPostParams { - o.SetHost(host) - return o -} - -// SetHost adds the host to the storage service deliver hints post params -func (o *StorageServiceDeliverHintsPostParams) SetHost(host string) { - o.Host = host -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceDeliverHintsPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param host - qrHost := o.Host - qHost := qrHost - if qHost != "" { - if err := r.SetQueryParam("host", qHost); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_deliver_hints_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_deliver_hints_post_responses.go deleted file mode 100644 index 532f57b269..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_deliver_hints_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceDeliverHintsPostReader is a Reader for the StorageServiceDeliverHintsPost structure. -type StorageServiceDeliverHintsPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceDeliverHintsPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceDeliverHintsPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceDeliverHintsPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceDeliverHintsPostOK creates a StorageServiceDeliverHintsPostOK with default headers values -func NewStorageServiceDeliverHintsPostOK() *StorageServiceDeliverHintsPostOK { - return &StorageServiceDeliverHintsPostOK{} -} - -/* -StorageServiceDeliverHintsPostOK handles this case with default header values. - -Success -*/ -type StorageServiceDeliverHintsPostOK struct { -} - -func (o *StorageServiceDeliverHintsPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceDeliverHintsPostDefault creates a StorageServiceDeliverHintsPostDefault with default headers values -func NewStorageServiceDeliverHintsPostDefault(code int) *StorageServiceDeliverHintsPostDefault { - return &StorageServiceDeliverHintsPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceDeliverHintsPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceDeliverHintsPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service deliver hints post default response -func (o *StorageServiceDeliverHintsPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceDeliverHintsPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceDeliverHintsPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceDeliverHintsPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_describe_ring_by_keyspace_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_describe_ring_by_keyspace_get_parameters.go deleted file mode 100644 index bc75e1b35c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_describe_ring_by_keyspace_get_parameters.go +++ /dev/null @@ -1,168 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceDescribeRingByKeyspaceGetParams creates a new StorageServiceDescribeRingByKeyspaceGetParams object -// with the default values initialized. -func NewStorageServiceDescribeRingByKeyspaceGetParams() *StorageServiceDescribeRingByKeyspaceGetParams { - var () - return &StorageServiceDescribeRingByKeyspaceGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceDescribeRingByKeyspaceGetParamsWithTimeout creates a new StorageServiceDescribeRingByKeyspaceGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceDescribeRingByKeyspaceGetParamsWithTimeout(timeout time.Duration) *StorageServiceDescribeRingByKeyspaceGetParams { - var () - return &StorageServiceDescribeRingByKeyspaceGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceDescribeRingByKeyspaceGetParamsWithContext creates a new StorageServiceDescribeRingByKeyspaceGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceDescribeRingByKeyspaceGetParamsWithContext(ctx context.Context) *StorageServiceDescribeRingByKeyspaceGetParams { - var () - return &StorageServiceDescribeRingByKeyspaceGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceDescribeRingByKeyspaceGetParamsWithHTTPClient creates a new StorageServiceDescribeRingByKeyspaceGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceDescribeRingByKeyspaceGetParamsWithHTTPClient(client *http.Client) *StorageServiceDescribeRingByKeyspaceGetParams { - var () - return &StorageServiceDescribeRingByKeyspaceGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceDescribeRingByKeyspaceGetParams contains all the parameters to send to the API endpoint -for the storage service describe ring by keyspace get operation typically these are written to a http.Request -*/ -type StorageServiceDescribeRingByKeyspaceGetParams struct { - - /*Keyspace - The keyspace to fetch information about - - */ - Keyspace string - /*Table - The name of table to fetch information about - - */ - Table *string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service describe ring by keyspace get params -func (o *StorageServiceDescribeRingByKeyspaceGetParams) WithTimeout(timeout time.Duration) *StorageServiceDescribeRingByKeyspaceGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service describe ring by keyspace get params -func (o *StorageServiceDescribeRingByKeyspaceGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service describe ring by keyspace get params -func (o *StorageServiceDescribeRingByKeyspaceGetParams) WithContext(ctx context.Context) *StorageServiceDescribeRingByKeyspaceGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service describe ring by keyspace get params -func (o *StorageServiceDescribeRingByKeyspaceGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service describe ring by keyspace get params -func (o *StorageServiceDescribeRingByKeyspaceGetParams) WithHTTPClient(client *http.Client) *StorageServiceDescribeRingByKeyspaceGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service describe ring by keyspace get params -func (o *StorageServiceDescribeRingByKeyspaceGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithKeyspace adds the keyspace to the storage service describe ring by keyspace get params -func (o *StorageServiceDescribeRingByKeyspaceGetParams) WithKeyspace(keyspace string) *StorageServiceDescribeRingByKeyspaceGetParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the storage service describe ring by keyspace get params -func (o *StorageServiceDescribeRingByKeyspaceGetParams) SetKeyspace(keyspace string) { - o.Keyspace = keyspace -} - -// WithTable adds the table to the storage service describe ring by keyspace get params -func (o *StorageServiceDescribeRingByKeyspaceGetParams) WithTable(table *string) *StorageServiceDescribeRingByKeyspaceGetParams { - o.SetTable(table) - return o -} - -// SetTable adds the table to the storage service describe ring by keyspace get params -func (o *StorageServiceDescribeRingByKeyspaceGetParams) SetTable(table *string) { - o.Table = table -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceDescribeRingByKeyspaceGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param keyspace - if err := r.SetPathParam("keyspace", o.Keyspace); err != nil { - return err - } - - if o.Table != nil { - - // query param table - var qrTable string - if o.Table != nil { - qrTable = *o.Table - } - qTable := qrTable - if qTable != "" { - if err := r.SetQueryParam("table", qTable); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_describe_ring_by_keyspace_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_describe_ring_by_keyspace_get_responses.go deleted file mode 100644 index a414363a07..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_describe_ring_by_keyspace_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceDescribeRingByKeyspaceGetReader is a Reader for the StorageServiceDescribeRingByKeyspaceGet structure. -type StorageServiceDescribeRingByKeyspaceGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceDescribeRingByKeyspaceGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceDescribeRingByKeyspaceGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceDescribeRingByKeyspaceGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceDescribeRingByKeyspaceGetOK creates a StorageServiceDescribeRingByKeyspaceGetOK with default headers values -func NewStorageServiceDescribeRingByKeyspaceGetOK() *StorageServiceDescribeRingByKeyspaceGetOK { - return &StorageServiceDescribeRingByKeyspaceGetOK{} -} - -/* -StorageServiceDescribeRingByKeyspaceGetOK handles this case with default header values. - -Success -*/ -type StorageServiceDescribeRingByKeyspaceGetOK struct { - Payload []*models.TokenRange -} - -func (o *StorageServiceDescribeRingByKeyspaceGetOK) GetPayload() []*models.TokenRange { - return o.Payload -} - -func (o *StorageServiceDescribeRingByKeyspaceGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceDescribeRingByKeyspaceGetDefault creates a StorageServiceDescribeRingByKeyspaceGetDefault with default headers values -func NewStorageServiceDescribeRingByKeyspaceGetDefault(code int) *StorageServiceDescribeRingByKeyspaceGetDefault { - return &StorageServiceDescribeRingByKeyspaceGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceDescribeRingByKeyspaceGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceDescribeRingByKeyspaceGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service describe ring by keyspace get default response -func (o *StorageServiceDescribeRingByKeyspaceGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceDescribeRingByKeyspaceGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceDescribeRingByKeyspaceGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceDescribeRingByKeyspaceGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_drain_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_drain_get_parameters.go deleted file mode 100644 index ad399d765a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_drain_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceDrainGetParams creates a new StorageServiceDrainGetParams object -// with the default values initialized. -func NewStorageServiceDrainGetParams() *StorageServiceDrainGetParams { - - return &StorageServiceDrainGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceDrainGetParamsWithTimeout creates a new StorageServiceDrainGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceDrainGetParamsWithTimeout(timeout time.Duration) *StorageServiceDrainGetParams { - - return &StorageServiceDrainGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceDrainGetParamsWithContext creates a new StorageServiceDrainGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceDrainGetParamsWithContext(ctx context.Context) *StorageServiceDrainGetParams { - - return &StorageServiceDrainGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceDrainGetParamsWithHTTPClient creates a new StorageServiceDrainGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceDrainGetParamsWithHTTPClient(client *http.Client) *StorageServiceDrainGetParams { - - return &StorageServiceDrainGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceDrainGetParams contains all the parameters to send to the API endpoint -for the storage service drain get operation typically these are written to a http.Request -*/ -type StorageServiceDrainGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service drain get params -func (o *StorageServiceDrainGetParams) WithTimeout(timeout time.Duration) *StorageServiceDrainGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service drain get params -func (o *StorageServiceDrainGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service drain get params -func (o *StorageServiceDrainGetParams) WithContext(ctx context.Context) *StorageServiceDrainGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service drain get params -func (o *StorageServiceDrainGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service drain get params -func (o *StorageServiceDrainGetParams) WithHTTPClient(client *http.Client) *StorageServiceDrainGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service drain get params -func (o *StorageServiceDrainGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceDrainGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_drain_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_drain_get_responses.go deleted file mode 100644 index 92f5ba8c9a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_drain_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceDrainGetReader is a Reader for the StorageServiceDrainGet structure. -type StorageServiceDrainGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceDrainGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceDrainGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceDrainGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceDrainGetOK creates a StorageServiceDrainGetOK with default headers values -func NewStorageServiceDrainGetOK() *StorageServiceDrainGetOK { - return &StorageServiceDrainGetOK{} -} - -/* -StorageServiceDrainGetOK handles this case with default header values. - -Success -*/ -type StorageServiceDrainGetOK struct { - Payload string -} - -func (o *StorageServiceDrainGetOK) GetPayload() string { - return o.Payload -} - -func (o *StorageServiceDrainGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceDrainGetDefault creates a StorageServiceDrainGetDefault with default headers values -func NewStorageServiceDrainGetDefault(code int) *StorageServiceDrainGetDefault { - return &StorageServiceDrainGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceDrainGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceDrainGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service drain get default response -func (o *StorageServiceDrainGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceDrainGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceDrainGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceDrainGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_drain_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_drain_post_parameters.go deleted file mode 100644 index b9530a13ad..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_drain_post_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceDrainPostParams creates a new StorageServiceDrainPostParams object -// with the default values initialized. -func NewStorageServiceDrainPostParams() *StorageServiceDrainPostParams { - - return &StorageServiceDrainPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceDrainPostParamsWithTimeout creates a new StorageServiceDrainPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceDrainPostParamsWithTimeout(timeout time.Duration) *StorageServiceDrainPostParams { - - return &StorageServiceDrainPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceDrainPostParamsWithContext creates a new StorageServiceDrainPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceDrainPostParamsWithContext(ctx context.Context) *StorageServiceDrainPostParams { - - return &StorageServiceDrainPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceDrainPostParamsWithHTTPClient creates a new StorageServiceDrainPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceDrainPostParamsWithHTTPClient(client *http.Client) *StorageServiceDrainPostParams { - - return &StorageServiceDrainPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceDrainPostParams contains all the parameters to send to the API endpoint -for the storage service drain post operation typically these are written to a http.Request -*/ -type StorageServiceDrainPostParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service drain post params -func (o *StorageServiceDrainPostParams) WithTimeout(timeout time.Duration) *StorageServiceDrainPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service drain post params -func (o *StorageServiceDrainPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service drain post params -func (o *StorageServiceDrainPostParams) WithContext(ctx context.Context) *StorageServiceDrainPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service drain post params -func (o *StorageServiceDrainPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service drain post params -func (o *StorageServiceDrainPostParams) WithHTTPClient(client *http.Client) *StorageServiceDrainPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service drain post params -func (o *StorageServiceDrainPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceDrainPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_drain_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_drain_post_responses.go deleted file mode 100644 index 7110764f8e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_drain_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceDrainPostReader is a Reader for the StorageServiceDrainPost structure. -type StorageServiceDrainPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceDrainPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceDrainPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceDrainPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceDrainPostOK creates a StorageServiceDrainPostOK with default headers values -func NewStorageServiceDrainPostOK() *StorageServiceDrainPostOK { - return &StorageServiceDrainPostOK{} -} - -/* -StorageServiceDrainPostOK handles this case with default header values. - -Success -*/ -type StorageServiceDrainPostOK struct { -} - -func (o *StorageServiceDrainPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceDrainPostDefault creates a StorageServiceDrainPostDefault with default headers values -func NewStorageServiceDrainPostDefault(code int) *StorageServiceDrainPostDefault { - return &StorageServiceDrainPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceDrainPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceDrainPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service drain post default response -func (o *StorageServiceDrainPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceDrainPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceDrainPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceDrainPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_force_remove_completion_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_force_remove_completion_post_parameters.go deleted file mode 100644 index 3f884d29d5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_force_remove_completion_post_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceForceRemoveCompletionPostParams creates a new StorageServiceForceRemoveCompletionPostParams object -// with the default values initialized. -func NewStorageServiceForceRemoveCompletionPostParams() *StorageServiceForceRemoveCompletionPostParams { - - return &StorageServiceForceRemoveCompletionPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceForceRemoveCompletionPostParamsWithTimeout creates a new StorageServiceForceRemoveCompletionPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceForceRemoveCompletionPostParamsWithTimeout(timeout time.Duration) *StorageServiceForceRemoveCompletionPostParams { - - return &StorageServiceForceRemoveCompletionPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceForceRemoveCompletionPostParamsWithContext creates a new StorageServiceForceRemoveCompletionPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceForceRemoveCompletionPostParamsWithContext(ctx context.Context) *StorageServiceForceRemoveCompletionPostParams { - - return &StorageServiceForceRemoveCompletionPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceForceRemoveCompletionPostParamsWithHTTPClient creates a new StorageServiceForceRemoveCompletionPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceForceRemoveCompletionPostParamsWithHTTPClient(client *http.Client) *StorageServiceForceRemoveCompletionPostParams { - - return &StorageServiceForceRemoveCompletionPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceForceRemoveCompletionPostParams contains all the parameters to send to the API endpoint -for the storage service force remove completion post operation typically these are written to a http.Request -*/ -type StorageServiceForceRemoveCompletionPostParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service force remove completion post params -func (o *StorageServiceForceRemoveCompletionPostParams) WithTimeout(timeout time.Duration) *StorageServiceForceRemoveCompletionPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service force remove completion post params -func (o *StorageServiceForceRemoveCompletionPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service force remove completion post params -func (o *StorageServiceForceRemoveCompletionPostParams) WithContext(ctx context.Context) *StorageServiceForceRemoveCompletionPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service force remove completion post params -func (o *StorageServiceForceRemoveCompletionPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service force remove completion post params -func (o *StorageServiceForceRemoveCompletionPostParams) WithHTTPClient(client *http.Client) *StorageServiceForceRemoveCompletionPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service force remove completion post params -func (o *StorageServiceForceRemoveCompletionPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceForceRemoveCompletionPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_force_remove_completion_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_force_remove_completion_post_responses.go deleted file mode 100644 index c544ee2e60..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_force_remove_completion_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceForceRemoveCompletionPostReader is a Reader for the StorageServiceForceRemoveCompletionPost structure. -type StorageServiceForceRemoveCompletionPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceForceRemoveCompletionPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceForceRemoveCompletionPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceForceRemoveCompletionPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceForceRemoveCompletionPostOK creates a StorageServiceForceRemoveCompletionPostOK with default headers values -func NewStorageServiceForceRemoveCompletionPostOK() *StorageServiceForceRemoveCompletionPostOK { - return &StorageServiceForceRemoveCompletionPostOK{} -} - -/* -StorageServiceForceRemoveCompletionPostOK handles this case with default header values. - -Success -*/ -type StorageServiceForceRemoveCompletionPostOK struct { -} - -func (o *StorageServiceForceRemoveCompletionPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceForceRemoveCompletionPostDefault creates a StorageServiceForceRemoveCompletionPostDefault with default headers values -func NewStorageServiceForceRemoveCompletionPostDefault(code int) *StorageServiceForceRemoveCompletionPostDefault { - return &StorageServiceForceRemoveCompletionPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceForceRemoveCompletionPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceForceRemoveCompletionPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service force remove completion post default response -func (o *StorageServiceForceRemoveCompletionPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceForceRemoveCompletionPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceForceRemoveCompletionPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceForceRemoveCompletionPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_force_terminate_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_force_terminate_post_parameters.go deleted file mode 100644 index 6cf8db11c7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_force_terminate_post_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceForceTerminatePostParams creates a new StorageServiceForceTerminatePostParams object -// with the default values initialized. -func NewStorageServiceForceTerminatePostParams() *StorageServiceForceTerminatePostParams { - - return &StorageServiceForceTerminatePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceForceTerminatePostParamsWithTimeout creates a new StorageServiceForceTerminatePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceForceTerminatePostParamsWithTimeout(timeout time.Duration) *StorageServiceForceTerminatePostParams { - - return &StorageServiceForceTerminatePostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceForceTerminatePostParamsWithContext creates a new StorageServiceForceTerminatePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceForceTerminatePostParamsWithContext(ctx context.Context) *StorageServiceForceTerminatePostParams { - - return &StorageServiceForceTerminatePostParams{ - - Context: ctx, - } -} - -// NewStorageServiceForceTerminatePostParamsWithHTTPClient creates a new StorageServiceForceTerminatePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceForceTerminatePostParamsWithHTTPClient(client *http.Client) *StorageServiceForceTerminatePostParams { - - return &StorageServiceForceTerminatePostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceForceTerminatePostParams contains all the parameters to send to the API endpoint -for the storage service force terminate post operation typically these are written to a http.Request -*/ -type StorageServiceForceTerminatePostParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service force terminate post params -func (o *StorageServiceForceTerminatePostParams) WithTimeout(timeout time.Duration) *StorageServiceForceTerminatePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service force terminate post params -func (o *StorageServiceForceTerminatePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service force terminate post params -func (o *StorageServiceForceTerminatePostParams) WithContext(ctx context.Context) *StorageServiceForceTerminatePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service force terminate post params -func (o *StorageServiceForceTerminatePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service force terminate post params -func (o *StorageServiceForceTerminatePostParams) WithHTTPClient(client *http.Client) *StorageServiceForceTerminatePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service force terminate post params -func (o *StorageServiceForceTerminatePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceForceTerminatePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_force_terminate_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_force_terminate_post_responses.go deleted file mode 100644 index 69ec350b60..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_force_terminate_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceForceTerminatePostReader is a Reader for the StorageServiceForceTerminatePost structure. -type StorageServiceForceTerminatePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceForceTerminatePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceForceTerminatePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceForceTerminatePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceForceTerminatePostOK creates a StorageServiceForceTerminatePostOK with default headers values -func NewStorageServiceForceTerminatePostOK() *StorageServiceForceTerminatePostOK { - return &StorageServiceForceTerminatePostOK{} -} - -/* -StorageServiceForceTerminatePostOK handles this case with default header values. - -Success -*/ -type StorageServiceForceTerminatePostOK struct { -} - -func (o *StorageServiceForceTerminatePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceForceTerminatePostDefault creates a StorageServiceForceTerminatePostDefault with default headers values -func NewStorageServiceForceTerminatePostDefault(code int) *StorageServiceForceTerminatePostDefault { - return &StorageServiceForceTerminatePostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceForceTerminatePostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceForceTerminatePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service force terminate post default response -func (o *StorageServiceForceTerminatePostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceForceTerminatePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceForceTerminatePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceForceTerminatePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_force_terminate_repair_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_force_terminate_repair_post_parameters.go deleted file mode 100644 index 73a0fe37bd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_force_terminate_repair_post_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceForceTerminateRepairPostParams creates a new StorageServiceForceTerminateRepairPostParams object -// with the default values initialized. -func NewStorageServiceForceTerminateRepairPostParams() *StorageServiceForceTerminateRepairPostParams { - - return &StorageServiceForceTerminateRepairPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceForceTerminateRepairPostParamsWithTimeout creates a new StorageServiceForceTerminateRepairPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceForceTerminateRepairPostParamsWithTimeout(timeout time.Duration) *StorageServiceForceTerminateRepairPostParams { - - return &StorageServiceForceTerminateRepairPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceForceTerminateRepairPostParamsWithContext creates a new StorageServiceForceTerminateRepairPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceForceTerminateRepairPostParamsWithContext(ctx context.Context) *StorageServiceForceTerminateRepairPostParams { - - return &StorageServiceForceTerminateRepairPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceForceTerminateRepairPostParamsWithHTTPClient creates a new StorageServiceForceTerminateRepairPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceForceTerminateRepairPostParamsWithHTTPClient(client *http.Client) *StorageServiceForceTerminateRepairPostParams { - - return &StorageServiceForceTerminateRepairPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceForceTerminateRepairPostParams contains all the parameters to send to the API endpoint -for the storage service force terminate repair post operation typically these are written to a http.Request -*/ -type StorageServiceForceTerminateRepairPostParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service force terminate repair post params -func (o *StorageServiceForceTerminateRepairPostParams) WithTimeout(timeout time.Duration) *StorageServiceForceTerminateRepairPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service force terminate repair post params -func (o *StorageServiceForceTerminateRepairPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service force terminate repair post params -func (o *StorageServiceForceTerminateRepairPostParams) WithContext(ctx context.Context) *StorageServiceForceTerminateRepairPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service force terminate repair post params -func (o *StorageServiceForceTerminateRepairPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service force terminate repair post params -func (o *StorageServiceForceTerminateRepairPostParams) WithHTTPClient(client *http.Client) *StorageServiceForceTerminateRepairPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service force terminate repair post params -func (o *StorageServiceForceTerminateRepairPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceForceTerminateRepairPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_force_terminate_repair_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_force_terminate_repair_post_responses.go deleted file mode 100644 index b16ed6a377..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_force_terminate_repair_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceForceTerminateRepairPostReader is a Reader for the StorageServiceForceTerminateRepairPost structure. -type StorageServiceForceTerminateRepairPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceForceTerminateRepairPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceForceTerminateRepairPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceForceTerminateRepairPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceForceTerminateRepairPostOK creates a StorageServiceForceTerminateRepairPostOK with default headers values -func NewStorageServiceForceTerminateRepairPostOK() *StorageServiceForceTerminateRepairPostOK { - return &StorageServiceForceTerminateRepairPostOK{} -} - -/* -StorageServiceForceTerminateRepairPostOK handles this case with default header values. - -Success -*/ -type StorageServiceForceTerminateRepairPostOK struct { -} - -func (o *StorageServiceForceTerminateRepairPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceForceTerminateRepairPostDefault creates a StorageServiceForceTerminateRepairPostDefault with default headers values -func NewStorageServiceForceTerminateRepairPostDefault(code int) *StorageServiceForceTerminateRepairPostDefault { - return &StorageServiceForceTerminateRepairPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceForceTerminateRepairPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceForceTerminateRepairPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service force terminate repair post default response -func (o *StorageServiceForceTerminateRepairPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceForceTerminateRepairPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceForceTerminateRepairPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceForceTerminateRepairPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_generation_number_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_generation_number_get_parameters.go deleted file mode 100644 index 60248d2e0a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_generation_number_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceGenerationNumberGetParams creates a new StorageServiceGenerationNumberGetParams object -// with the default values initialized. -func NewStorageServiceGenerationNumberGetParams() *StorageServiceGenerationNumberGetParams { - - return &StorageServiceGenerationNumberGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceGenerationNumberGetParamsWithTimeout creates a new StorageServiceGenerationNumberGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceGenerationNumberGetParamsWithTimeout(timeout time.Duration) *StorageServiceGenerationNumberGetParams { - - return &StorageServiceGenerationNumberGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceGenerationNumberGetParamsWithContext creates a new StorageServiceGenerationNumberGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceGenerationNumberGetParamsWithContext(ctx context.Context) *StorageServiceGenerationNumberGetParams { - - return &StorageServiceGenerationNumberGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceGenerationNumberGetParamsWithHTTPClient creates a new StorageServiceGenerationNumberGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceGenerationNumberGetParamsWithHTTPClient(client *http.Client) *StorageServiceGenerationNumberGetParams { - - return &StorageServiceGenerationNumberGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceGenerationNumberGetParams contains all the parameters to send to the API endpoint -for the storage service generation number get operation typically these are written to a http.Request -*/ -type StorageServiceGenerationNumberGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service generation number get params -func (o *StorageServiceGenerationNumberGetParams) WithTimeout(timeout time.Duration) *StorageServiceGenerationNumberGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service generation number get params -func (o *StorageServiceGenerationNumberGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service generation number get params -func (o *StorageServiceGenerationNumberGetParams) WithContext(ctx context.Context) *StorageServiceGenerationNumberGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service generation number get params -func (o *StorageServiceGenerationNumberGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service generation number get params -func (o *StorageServiceGenerationNumberGetParams) WithHTTPClient(client *http.Client) *StorageServiceGenerationNumberGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service generation number get params -func (o *StorageServiceGenerationNumberGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceGenerationNumberGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_generation_number_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_generation_number_get_responses.go deleted file mode 100644 index 048da44a17..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_generation_number_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceGenerationNumberGetReader is a Reader for the StorageServiceGenerationNumberGet structure. -type StorageServiceGenerationNumberGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceGenerationNumberGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceGenerationNumberGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceGenerationNumberGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceGenerationNumberGetOK creates a StorageServiceGenerationNumberGetOK with default headers values -func NewStorageServiceGenerationNumberGetOK() *StorageServiceGenerationNumberGetOK { - return &StorageServiceGenerationNumberGetOK{} -} - -/* -StorageServiceGenerationNumberGetOK handles this case with default header values. - -Success -*/ -type StorageServiceGenerationNumberGetOK struct { - Payload int32 -} - -func (o *StorageServiceGenerationNumberGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageServiceGenerationNumberGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceGenerationNumberGetDefault creates a StorageServiceGenerationNumberGetDefault with default headers values -func NewStorageServiceGenerationNumberGetDefault(code int) *StorageServiceGenerationNumberGetDefault { - return &StorageServiceGenerationNumberGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceGenerationNumberGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceGenerationNumberGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service generation number get default response -func (o *StorageServiceGenerationNumberGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceGenerationNumberGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceGenerationNumberGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceGenerationNumberGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_gossiping_delete_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_gossiping_delete_parameters.go deleted file mode 100644 index d78ce43d52..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_gossiping_delete_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceGossipingDeleteParams creates a new StorageServiceGossipingDeleteParams object -// with the default values initialized. -func NewStorageServiceGossipingDeleteParams() *StorageServiceGossipingDeleteParams { - - return &StorageServiceGossipingDeleteParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceGossipingDeleteParamsWithTimeout creates a new StorageServiceGossipingDeleteParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceGossipingDeleteParamsWithTimeout(timeout time.Duration) *StorageServiceGossipingDeleteParams { - - return &StorageServiceGossipingDeleteParams{ - - timeout: timeout, - } -} - -// NewStorageServiceGossipingDeleteParamsWithContext creates a new StorageServiceGossipingDeleteParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceGossipingDeleteParamsWithContext(ctx context.Context) *StorageServiceGossipingDeleteParams { - - return &StorageServiceGossipingDeleteParams{ - - Context: ctx, - } -} - -// NewStorageServiceGossipingDeleteParamsWithHTTPClient creates a new StorageServiceGossipingDeleteParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceGossipingDeleteParamsWithHTTPClient(client *http.Client) *StorageServiceGossipingDeleteParams { - - return &StorageServiceGossipingDeleteParams{ - HTTPClient: client, - } -} - -/* -StorageServiceGossipingDeleteParams contains all the parameters to send to the API endpoint -for the storage service gossiping delete operation typically these are written to a http.Request -*/ -type StorageServiceGossipingDeleteParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service gossiping delete params -func (o *StorageServiceGossipingDeleteParams) WithTimeout(timeout time.Duration) *StorageServiceGossipingDeleteParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service gossiping delete params -func (o *StorageServiceGossipingDeleteParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service gossiping delete params -func (o *StorageServiceGossipingDeleteParams) WithContext(ctx context.Context) *StorageServiceGossipingDeleteParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service gossiping delete params -func (o *StorageServiceGossipingDeleteParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service gossiping delete params -func (o *StorageServiceGossipingDeleteParams) WithHTTPClient(client *http.Client) *StorageServiceGossipingDeleteParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service gossiping delete params -func (o *StorageServiceGossipingDeleteParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceGossipingDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_gossiping_delete_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_gossiping_delete_responses.go deleted file mode 100644 index 739ab09329..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_gossiping_delete_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceGossipingDeleteReader is a Reader for the StorageServiceGossipingDelete structure. -type StorageServiceGossipingDeleteReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceGossipingDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceGossipingDeleteOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceGossipingDeleteDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceGossipingDeleteOK creates a StorageServiceGossipingDeleteOK with default headers values -func NewStorageServiceGossipingDeleteOK() *StorageServiceGossipingDeleteOK { - return &StorageServiceGossipingDeleteOK{} -} - -/* -StorageServiceGossipingDeleteOK handles this case with default header values. - -Success -*/ -type StorageServiceGossipingDeleteOK struct { -} - -func (o *StorageServiceGossipingDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceGossipingDeleteDefault creates a StorageServiceGossipingDeleteDefault with default headers values -func NewStorageServiceGossipingDeleteDefault(code int) *StorageServiceGossipingDeleteDefault { - return &StorageServiceGossipingDeleteDefault{ - _statusCode: code, - } -} - -/* -StorageServiceGossipingDeleteDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceGossipingDeleteDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service gossiping delete default response -func (o *StorageServiceGossipingDeleteDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceGossipingDeleteDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceGossipingDeleteDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceGossipingDeleteDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_gossiping_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_gossiping_get_parameters.go deleted file mode 100644 index b1c6b4ab3a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_gossiping_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceGossipingGetParams creates a new StorageServiceGossipingGetParams object -// with the default values initialized. -func NewStorageServiceGossipingGetParams() *StorageServiceGossipingGetParams { - - return &StorageServiceGossipingGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceGossipingGetParamsWithTimeout creates a new StorageServiceGossipingGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceGossipingGetParamsWithTimeout(timeout time.Duration) *StorageServiceGossipingGetParams { - - return &StorageServiceGossipingGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceGossipingGetParamsWithContext creates a new StorageServiceGossipingGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceGossipingGetParamsWithContext(ctx context.Context) *StorageServiceGossipingGetParams { - - return &StorageServiceGossipingGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceGossipingGetParamsWithHTTPClient creates a new StorageServiceGossipingGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceGossipingGetParamsWithHTTPClient(client *http.Client) *StorageServiceGossipingGetParams { - - return &StorageServiceGossipingGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceGossipingGetParams contains all the parameters to send to the API endpoint -for the storage service gossiping get operation typically these are written to a http.Request -*/ -type StorageServiceGossipingGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service gossiping get params -func (o *StorageServiceGossipingGetParams) WithTimeout(timeout time.Duration) *StorageServiceGossipingGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service gossiping get params -func (o *StorageServiceGossipingGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service gossiping get params -func (o *StorageServiceGossipingGetParams) WithContext(ctx context.Context) *StorageServiceGossipingGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service gossiping get params -func (o *StorageServiceGossipingGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service gossiping get params -func (o *StorageServiceGossipingGetParams) WithHTTPClient(client *http.Client) *StorageServiceGossipingGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service gossiping get params -func (o *StorageServiceGossipingGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceGossipingGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_gossiping_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_gossiping_get_responses.go deleted file mode 100644 index a217427569..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_gossiping_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceGossipingGetReader is a Reader for the StorageServiceGossipingGet structure. -type StorageServiceGossipingGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceGossipingGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceGossipingGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceGossipingGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceGossipingGetOK creates a StorageServiceGossipingGetOK with default headers values -func NewStorageServiceGossipingGetOK() *StorageServiceGossipingGetOK { - return &StorageServiceGossipingGetOK{} -} - -/* -StorageServiceGossipingGetOK handles this case with default header values. - -Success -*/ -type StorageServiceGossipingGetOK struct { - Payload bool -} - -func (o *StorageServiceGossipingGetOK) GetPayload() bool { - return o.Payload -} - -func (o *StorageServiceGossipingGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceGossipingGetDefault creates a StorageServiceGossipingGetDefault with default headers values -func NewStorageServiceGossipingGetDefault(code int) *StorageServiceGossipingGetDefault { - return &StorageServiceGossipingGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceGossipingGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceGossipingGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service gossiping get default response -func (o *StorageServiceGossipingGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceGossipingGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceGossipingGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceGossipingGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_gossiping_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_gossiping_post_parameters.go deleted file mode 100644 index e03284b05e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_gossiping_post_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceGossipingPostParams creates a new StorageServiceGossipingPostParams object -// with the default values initialized. -func NewStorageServiceGossipingPostParams() *StorageServiceGossipingPostParams { - - return &StorageServiceGossipingPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceGossipingPostParamsWithTimeout creates a new StorageServiceGossipingPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceGossipingPostParamsWithTimeout(timeout time.Duration) *StorageServiceGossipingPostParams { - - return &StorageServiceGossipingPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceGossipingPostParamsWithContext creates a new StorageServiceGossipingPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceGossipingPostParamsWithContext(ctx context.Context) *StorageServiceGossipingPostParams { - - return &StorageServiceGossipingPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceGossipingPostParamsWithHTTPClient creates a new StorageServiceGossipingPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceGossipingPostParamsWithHTTPClient(client *http.Client) *StorageServiceGossipingPostParams { - - return &StorageServiceGossipingPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceGossipingPostParams contains all the parameters to send to the API endpoint -for the storage service gossiping post operation typically these are written to a http.Request -*/ -type StorageServiceGossipingPostParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service gossiping post params -func (o *StorageServiceGossipingPostParams) WithTimeout(timeout time.Duration) *StorageServiceGossipingPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service gossiping post params -func (o *StorageServiceGossipingPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service gossiping post params -func (o *StorageServiceGossipingPostParams) WithContext(ctx context.Context) *StorageServiceGossipingPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service gossiping post params -func (o *StorageServiceGossipingPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service gossiping post params -func (o *StorageServiceGossipingPostParams) WithHTTPClient(client *http.Client) *StorageServiceGossipingPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service gossiping post params -func (o *StorageServiceGossipingPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceGossipingPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_gossiping_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_gossiping_post_responses.go deleted file mode 100644 index 83b134204f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_gossiping_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceGossipingPostReader is a Reader for the StorageServiceGossipingPost structure. -type StorageServiceGossipingPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceGossipingPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceGossipingPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceGossipingPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceGossipingPostOK creates a StorageServiceGossipingPostOK with default headers values -func NewStorageServiceGossipingPostOK() *StorageServiceGossipingPostOK { - return &StorageServiceGossipingPostOK{} -} - -/* -StorageServiceGossipingPostOK handles this case with default header values. - -Success -*/ -type StorageServiceGossipingPostOK struct { -} - -func (o *StorageServiceGossipingPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceGossipingPostDefault creates a StorageServiceGossipingPostDefault with default headers values -func NewStorageServiceGossipingPostDefault(code int) *StorageServiceGossipingPostDefault { - return &StorageServiceGossipingPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceGossipingPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceGossipingPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service gossiping post default response -func (o *StorageServiceGossipingPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceGossipingPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceGossipingPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceGossipingPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_hinted_handoff_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_hinted_handoff_post_parameters.go deleted file mode 100644 index ee72e071c3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_hinted_handoff_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageServiceHintedHandoffPostParams creates a new StorageServiceHintedHandoffPostParams object -// with the default values initialized. -func NewStorageServiceHintedHandoffPostParams() *StorageServiceHintedHandoffPostParams { - var () - return &StorageServiceHintedHandoffPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceHintedHandoffPostParamsWithTimeout creates a new StorageServiceHintedHandoffPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceHintedHandoffPostParamsWithTimeout(timeout time.Duration) *StorageServiceHintedHandoffPostParams { - var () - return &StorageServiceHintedHandoffPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceHintedHandoffPostParamsWithContext creates a new StorageServiceHintedHandoffPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceHintedHandoffPostParamsWithContext(ctx context.Context) *StorageServiceHintedHandoffPostParams { - var () - return &StorageServiceHintedHandoffPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceHintedHandoffPostParamsWithHTTPClient creates a new StorageServiceHintedHandoffPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceHintedHandoffPostParamsWithHTTPClient(client *http.Client) *StorageServiceHintedHandoffPostParams { - var () - return &StorageServiceHintedHandoffPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceHintedHandoffPostParams contains all the parameters to send to the API endpoint -for the storage service hinted handoff post operation typically these are written to a http.Request -*/ -type StorageServiceHintedHandoffPostParams struct { - - /*Throttle - throttle in kb - - */ - Throttle int32 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service hinted handoff post params -func (o *StorageServiceHintedHandoffPostParams) WithTimeout(timeout time.Duration) *StorageServiceHintedHandoffPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service hinted handoff post params -func (o *StorageServiceHintedHandoffPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service hinted handoff post params -func (o *StorageServiceHintedHandoffPostParams) WithContext(ctx context.Context) *StorageServiceHintedHandoffPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service hinted handoff post params -func (o *StorageServiceHintedHandoffPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service hinted handoff post params -func (o *StorageServiceHintedHandoffPostParams) WithHTTPClient(client *http.Client) *StorageServiceHintedHandoffPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service hinted handoff post params -func (o *StorageServiceHintedHandoffPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithThrottle adds the throttle to the storage service hinted handoff post params -func (o *StorageServiceHintedHandoffPostParams) WithThrottle(throttle int32) *StorageServiceHintedHandoffPostParams { - o.SetThrottle(throttle) - return o -} - -// SetThrottle adds the throttle to the storage service hinted handoff post params -func (o *StorageServiceHintedHandoffPostParams) SetThrottle(throttle int32) { - o.Throttle = throttle -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceHintedHandoffPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param throttle - qrThrottle := o.Throttle - qThrottle := swag.FormatInt32(qrThrottle) - if qThrottle != "" { - if err := r.SetQueryParam("throttle", qThrottle); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_hinted_handoff_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_hinted_handoff_post_responses.go deleted file mode 100644 index 8da55314bf..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_hinted_handoff_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceHintedHandoffPostReader is a Reader for the StorageServiceHintedHandoffPost structure. -type StorageServiceHintedHandoffPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceHintedHandoffPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceHintedHandoffPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceHintedHandoffPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceHintedHandoffPostOK creates a StorageServiceHintedHandoffPostOK with default headers values -func NewStorageServiceHintedHandoffPostOK() *StorageServiceHintedHandoffPostOK { - return &StorageServiceHintedHandoffPostOK{} -} - -/* -StorageServiceHintedHandoffPostOK handles this case with default header values. - -Success -*/ -type StorageServiceHintedHandoffPostOK struct { -} - -func (o *StorageServiceHintedHandoffPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceHintedHandoffPostDefault creates a StorageServiceHintedHandoffPostDefault with default headers values -func NewStorageServiceHintedHandoffPostDefault(code int) *StorageServiceHintedHandoffPostDefault { - return &StorageServiceHintedHandoffPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceHintedHandoffPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceHintedHandoffPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service hinted handoff post default response -func (o *StorageServiceHintedHandoffPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceHintedHandoffPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceHintedHandoffPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceHintedHandoffPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_host_id_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_host_id_get_parameters.go deleted file mode 100644 index 58c81ef765..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_host_id_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceHostIDGetParams creates a new StorageServiceHostIDGetParams object -// with the default values initialized. -func NewStorageServiceHostIDGetParams() *StorageServiceHostIDGetParams { - - return &StorageServiceHostIDGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceHostIDGetParamsWithTimeout creates a new StorageServiceHostIDGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceHostIDGetParamsWithTimeout(timeout time.Duration) *StorageServiceHostIDGetParams { - - return &StorageServiceHostIDGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceHostIDGetParamsWithContext creates a new StorageServiceHostIDGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceHostIDGetParamsWithContext(ctx context.Context) *StorageServiceHostIDGetParams { - - return &StorageServiceHostIDGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceHostIDGetParamsWithHTTPClient creates a new StorageServiceHostIDGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceHostIDGetParamsWithHTTPClient(client *http.Client) *StorageServiceHostIDGetParams { - - return &StorageServiceHostIDGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceHostIDGetParams contains all the parameters to send to the API endpoint -for the storage service host Id get operation typically these are written to a http.Request -*/ -type StorageServiceHostIDGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service host Id get params -func (o *StorageServiceHostIDGetParams) WithTimeout(timeout time.Duration) *StorageServiceHostIDGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service host Id get params -func (o *StorageServiceHostIDGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service host Id get params -func (o *StorageServiceHostIDGetParams) WithContext(ctx context.Context) *StorageServiceHostIDGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service host Id get params -func (o *StorageServiceHostIDGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service host Id get params -func (o *StorageServiceHostIDGetParams) WithHTTPClient(client *http.Client) *StorageServiceHostIDGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service host Id get params -func (o *StorageServiceHostIDGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceHostIDGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_host_id_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_host_id_get_responses.go deleted file mode 100644 index a5daece41f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_host_id_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceHostIDGetReader is a Reader for the StorageServiceHostIDGet structure. -type StorageServiceHostIDGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceHostIDGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceHostIDGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceHostIDGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceHostIDGetOK creates a StorageServiceHostIDGetOK with default headers values -func NewStorageServiceHostIDGetOK() *StorageServiceHostIDGetOK { - return &StorageServiceHostIDGetOK{} -} - -/* -StorageServiceHostIDGetOK handles this case with default header values. - -Success -*/ -type StorageServiceHostIDGetOK struct { - Payload []*models.Mapper -} - -func (o *StorageServiceHostIDGetOK) GetPayload() []*models.Mapper { - return o.Payload -} - -func (o *StorageServiceHostIDGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceHostIDGetDefault creates a StorageServiceHostIDGetDefault with default headers values -func NewStorageServiceHostIDGetDefault(code int) *StorageServiceHostIDGetDefault { - return &StorageServiceHostIDGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceHostIDGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceHostIDGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service host Id get default response -func (o *StorageServiceHostIDGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceHostIDGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceHostIDGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceHostIDGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_hostid_local_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_hostid_local_get_parameters.go deleted file mode 100644 index e607fe51eb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_hostid_local_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceHostidLocalGetParams creates a new StorageServiceHostidLocalGetParams object -// with the default values initialized. -func NewStorageServiceHostidLocalGetParams() *StorageServiceHostidLocalGetParams { - - return &StorageServiceHostidLocalGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceHostidLocalGetParamsWithTimeout creates a new StorageServiceHostidLocalGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceHostidLocalGetParamsWithTimeout(timeout time.Duration) *StorageServiceHostidLocalGetParams { - - return &StorageServiceHostidLocalGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceHostidLocalGetParamsWithContext creates a new StorageServiceHostidLocalGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceHostidLocalGetParamsWithContext(ctx context.Context) *StorageServiceHostidLocalGetParams { - - return &StorageServiceHostidLocalGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceHostidLocalGetParamsWithHTTPClient creates a new StorageServiceHostidLocalGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceHostidLocalGetParamsWithHTTPClient(client *http.Client) *StorageServiceHostidLocalGetParams { - - return &StorageServiceHostidLocalGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceHostidLocalGetParams contains all the parameters to send to the API endpoint -for the storage service hostid local get operation typically these are written to a http.Request -*/ -type StorageServiceHostidLocalGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service hostid local get params -func (o *StorageServiceHostidLocalGetParams) WithTimeout(timeout time.Duration) *StorageServiceHostidLocalGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service hostid local get params -func (o *StorageServiceHostidLocalGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service hostid local get params -func (o *StorageServiceHostidLocalGetParams) WithContext(ctx context.Context) *StorageServiceHostidLocalGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service hostid local get params -func (o *StorageServiceHostidLocalGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service hostid local get params -func (o *StorageServiceHostidLocalGetParams) WithHTTPClient(client *http.Client) *StorageServiceHostidLocalGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service hostid local get params -func (o *StorageServiceHostidLocalGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceHostidLocalGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_hostid_local_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_hostid_local_get_responses.go deleted file mode 100644 index 81ed25e2b9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_hostid_local_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceHostidLocalGetReader is a Reader for the StorageServiceHostidLocalGet structure. -type StorageServiceHostidLocalGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceHostidLocalGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceHostidLocalGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceHostidLocalGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceHostidLocalGetOK creates a StorageServiceHostidLocalGetOK with default headers values -func NewStorageServiceHostidLocalGetOK() *StorageServiceHostidLocalGetOK { - return &StorageServiceHostidLocalGetOK{} -} - -/* -StorageServiceHostidLocalGetOK handles this case with default header values. - -Success -*/ -type StorageServiceHostidLocalGetOK struct { - Payload string -} - -func (o *StorageServiceHostidLocalGetOK) GetPayload() string { - return o.Payload -} - -func (o *StorageServiceHostidLocalGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceHostidLocalGetDefault creates a StorageServiceHostidLocalGetDefault with default headers values -func NewStorageServiceHostidLocalGetDefault(code int) *StorageServiceHostidLocalGetDefault { - return &StorageServiceHostidLocalGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceHostidLocalGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceHostidLocalGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service hostid local get default response -func (o *StorageServiceHostidLocalGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceHostidLocalGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceHostidLocalGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceHostidLocalGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_incremental_backups_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_incremental_backups_get_parameters.go deleted file mode 100644 index 6fd1f51873..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_incremental_backups_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceIncrementalBackupsGetParams creates a new StorageServiceIncrementalBackupsGetParams object -// with the default values initialized. -func NewStorageServiceIncrementalBackupsGetParams() *StorageServiceIncrementalBackupsGetParams { - - return &StorageServiceIncrementalBackupsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceIncrementalBackupsGetParamsWithTimeout creates a new StorageServiceIncrementalBackupsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceIncrementalBackupsGetParamsWithTimeout(timeout time.Duration) *StorageServiceIncrementalBackupsGetParams { - - return &StorageServiceIncrementalBackupsGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceIncrementalBackupsGetParamsWithContext creates a new StorageServiceIncrementalBackupsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceIncrementalBackupsGetParamsWithContext(ctx context.Context) *StorageServiceIncrementalBackupsGetParams { - - return &StorageServiceIncrementalBackupsGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceIncrementalBackupsGetParamsWithHTTPClient creates a new StorageServiceIncrementalBackupsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceIncrementalBackupsGetParamsWithHTTPClient(client *http.Client) *StorageServiceIncrementalBackupsGetParams { - - return &StorageServiceIncrementalBackupsGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceIncrementalBackupsGetParams contains all the parameters to send to the API endpoint -for the storage service incremental backups get operation typically these are written to a http.Request -*/ -type StorageServiceIncrementalBackupsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service incremental backups get params -func (o *StorageServiceIncrementalBackupsGetParams) WithTimeout(timeout time.Duration) *StorageServiceIncrementalBackupsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service incremental backups get params -func (o *StorageServiceIncrementalBackupsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service incremental backups get params -func (o *StorageServiceIncrementalBackupsGetParams) WithContext(ctx context.Context) *StorageServiceIncrementalBackupsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service incremental backups get params -func (o *StorageServiceIncrementalBackupsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service incremental backups get params -func (o *StorageServiceIncrementalBackupsGetParams) WithHTTPClient(client *http.Client) *StorageServiceIncrementalBackupsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service incremental backups get params -func (o *StorageServiceIncrementalBackupsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceIncrementalBackupsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_incremental_backups_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_incremental_backups_get_responses.go deleted file mode 100644 index e93d95e78c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_incremental_backups_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceIncrementalBackupsGetReader is a Reader for the StorageServiceIncrementalBackupsGet structure. -type StorageServiceIncrementalBackupsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceIncrementalBackupsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceIncrementalBackupsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceIncrementalBackupsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceIncrementalBackupsGetOK creates a StorageServiceIncrementalBackupsGetOK with default headers values -func NewStorageServiceIncrementalBackupsGetOK() *StorageServiceIncrementalBackupsGetOK { - return &StorageServiceIncrementalBackupsGetOK{} -} - -/* -StorageServiceIncrementalBackupsGetOK handles this case with default header values. - -Success -*/ -type StorageServiceIncrementalBackupsGetOK struct { - Payload bool -} - -func (o *StorageServiceIncrementalBackupsGetOK) GetPayload() bool { - return o.Payload -} - -func (o *StorageServiceIncrementalBackupsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceIncrementalBackupsGetDefault creates a StorageServiceIncrementalBackupsGetDefault with default headers values -func NewStorageServiceIncrementalBackupsGetDefault(code int) *StorageServiceIncrementalBackupsGetDefault { - return &StorageServiceIncrementalBackupsGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceIncrementalBackupsGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceIncrementalBackupsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service incremental backups get default response -func (o *StorageServiceIncrementalBackupsGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceIncrementalBackupsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceIncrementalBackupsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceIncrementalBackupsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_incremental_backups_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_incremental_backups_post_parameters.go deleted file mode 100644 index cba4087b10..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_incremental_backups_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageServiceIncrementalBackupsPostParams creates a new StorageServiceIncrementalBackupsPostParams object -// with the default values initialized. -func NewStorageServiceIncrementalBackupsPostParams() *StorageServiceIncrementalBackupsPostParams { - var () - return &StorageServiceIncrementalBackupsPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceIncrementalBackupsPostParamsWithTimeout creates a new StorageServiceIncrementalBackupsPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceIncrementalBackupsPostParamsWithTimeout(timeout time.Duration) *StorageServiceIncrementalBackupsPostParams { - var () - return &StorageServiceIncrementalBackupsPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceIncrementalBackupsPostParamsWithContext creates a new StorageServiceIncrementalBackupsPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceIncrementalBackupsPostParamsWithContext(ctx context.Context) *StorageServiceIncrementalBackupsPostParams { - var () - return &StorageServiceIncrementalBackupsPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceIncrementalBackupsPostParamsWithHTTPClient creates a new StorageServiceIncrementalBackupsPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceIncrementalBackupsPostParamsWithHTTPClient(client *http.Client) *StorageServiceIncrementalBackupsPostParams { - var () - return &StorageServiceIncrementalBackupsPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceIncrementalBackupsPostParams contains all the parameters to send to the API endpoint -for the storage service incremental backups post operation typically these are written to a http.Request -*/ -type StorageServiceIncrementalBackupsPostParams struct { - - /*Value - Set to true for incremental backup enabled - - */ - Value bool - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service incremental backups post params -func (o *StorageServiceIncrementalBackupsPostParams) WithTimeout(timeout time.Duration) *StorageServiceIncrementalBackupsPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service incremental backups post params -func (o *StorageServiceIncrementalBackupsPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service incremental backups post params -func (o *StorageServiceIncrementalBackupsPostParams) WithContext(ctx context.Context) *StorageServiceIncrementalBackupsPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service incremental backups post params -func (o *StorageServiceIncrementalBackupsPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service incremental backups post params -func (o *StorageServiceIncrementalBackupsPostParams) WithHTTPClient(client *http.Client) *StorageServiceIncrementalBackupsPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service incremental backups post params -func (o *StorageServiceIncrementalBackupsPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithValue adds the value to the storage service incremental backups post params -func (o *StorageServiceIncrementalBackupsPostParams) WithValue(value bool) *StorageServiceIncrementalBackupsPostParams { - o.SetValue(value) - return o -} - -// SetValue adds the value to the storage service incremental backups post params -func (o *StorageServiceIncrementalBackupsPostParams) SetValue(value bool) { - o.Value = value -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceIncrementalBackupsPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param value - qrValue := o.Value - qValue := swag.FormatBool(qrValue) - if qValue != "" { - if err := r.SetQueryParam("value", qValue); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_incremental_backups_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_incremental_backups_post_responses.go deleted file mode 100644 index 5524d7efd5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_incremental_backups_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceIncrementalBackupsPostReader is a Reader for the StorageServiceIncrementalBackupsPost structure. -type StorageServiceIncrementalBackupsPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceIncrementalBackupsPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceIncrementalBackupsPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceIncrementalBackupsPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceIncrementalBackupsPostOK creates a StorageServiceIncrementalBackupsPostOK with default headers values -func NewStorageServiceIncrementalBackupsPostOK() *StorageServiceIncrementalBackupsPostOK { - return &StorageServiceIncrementalBackupsPostOK{} -} - -/* -StorageServiceIncrementalBackupsPostOK handles this case with default header values. - -Success -*/ -type StorageServiceIncrementalBackupsPostOK struct { -} - -func (o *StorageServiceIncrementalBackupsPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceIncrementalBackupsPostDefault creates a StorageServiceIncrementalBackupsPostDefault with default headers values -func NewStorageServiceIncrementalBackupsPostDefault(code int) *StorageServiceIncrementalBackupsPostDefault { - return &StorageServiceIncrementalBackupsPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceIncrementalBackupsPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceIncrementalBackupsPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service incremental backups post default response -func (o *StorageServiceIncrementalBackupsPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceIncrementalBackupsPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceIncrementalBackupsPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceIncrementalBackupsPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_is_initialized_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_is_initialized_get_parameters.go deleted file mode 100644 index 3c26148ea8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_is_initialized_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceIsInitializedGetParams creates a new StorageServiceIsInitializedGetParams object -// with the default values initialized. -func NewStorageServiceIsInitializedGetParams() *StorageServiceIsInitializedGetParams { - - return &StorageServiceIsInitializedGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceIsInitializedGetParamsWithTimeout creates a new StorageServiceIsInitializedGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceIsInitializedGetParamsWithTimeout(timeout time.Duration) *StorageServiceIsInitializedGetParams { - - return &StorageServiceIsInitializedGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceIsInitializedGetParamsWithContext creates a new StorageServiceIsInitializedGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceIsInitializedGetParamsWithContext(ctx context.Context) *StorageServiceIsInitializedGetParams { - - return &StorageServiceIsInitializedGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceIsInitializedGetParamsWithHTTPClient creates a new StorageServiceIsInitializedGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceIsInitializedGetParamsWithHTTPClient(client *http.Client) *StorageServiceIsInitializedGetParams { - - return &StorageServiceIsInitializedGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceIsInitializedGetParams contains all the parameters to send to the API endpoint -for the storage service is initialized get operation typically these are written to a http.Request -*/ -type StorageServiceIsInitializedGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service is initialized get params -func (o *StorageServiceIsInitializedGetParams) WithTimeout(timeout time.Duration) *StorageServiceIsInitializedGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service is initialized get params -func (o *StorageServiceIsInitializedGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service is initialized get params -func (o *StorageServiceIsInitializedGetParams) WithContext(ctx context.Context) *StorageServiceIsInitializedGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service is initialized get params -func (o *StorageServiceIsInitializedGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service is initialized get params -func (o *StorageServiceIsInitializedGetParams) WithHTTPClient(client *http.Client) *StorageServiceIsInitializedGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service is initialized get params -func (o *StorageServiceIsInitializedGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceIsInitializedGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_is_initialized_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_is_initialized_get_responses.go deleted file mode 100644 index 8fa4c15cc5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_is_initialized_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceIsInitializedGetReader is a Reader for the StorageServiceIsInitializedGet structure. -type StorageServiceIsInitializedGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceIsInitializedGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceIsInitializedGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceIsInitializedGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceIsInitializedGetOK creates a StorageServiceIsInitializedGetOK with default headers values -func NewStorageServiceIsInitializedGetOK() *StorageServiceIsInitializedGetOK { - return &StorageServiceIsInitializedGetOK{} -} - -/* -StorageServiceIsInitializedGetOK handles this case with default header values. - -Success -*/ -type StorageServiceIsInitializedGetOK struct { - Payload bool -} - -func (o *StorageServiceIsInitializedGetOK) GetPayload() bool { - return o.Payload -} - -func (o *StorageServiceIsInitializedGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceIsInitializedGetDefault creates a StorageServiceIsInitializedGetDefault with default headers values -func NewStorageServiceIsInitializedGetDefault(code int) *StorageServiceIsInitializedGetDefault { - return &StorageServiceIsInitializedGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceIsInitializedGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceIsInitializedGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service is initialized get default response -func (o *StorageServiceIsInitializedGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceIsInitializedGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceIsInitializedGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceIsInitializedGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_is_starting_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_is_starting_get_parameters.go deleted file mode 100644 index 8f19e3456e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_is_starting_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceIsStartingGetParams creates a new StorageServiceIsStartingGetParams object -// with the default values initialized. -func NewStorageServiceIsStartingGetParams() *StorageServiceIsStartingGetParams { - - return &StorageServiceIsStartingGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceIsStartingGetParamsWithTimeout creates a new StorageServiceIsStartingGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceIsStartingGetParamsWithTimeout(timeout time.Duration) *StorageServiceIsStartingGetParams { - - return &StorageServiceIsStartingGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceIsStartingGetParamsWithContext creates a new StorageServiceIsStartingGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceIsStartingGetParamsWithContext(ctx context.Context) *StorageServiceIsStartingGetParams { - - return &StorageServiceIsStartingGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceIsStartingGetParamsWithHTTPClient creates a new StorageServiceIsStartingGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceIsStartingGetParamsWithHTTPClient(client *http.Client) *StorageServiceIsStartingGetParams { - - return &StorageServiceIsStartingGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceIsStartingGetParams contains all the parameters to send to the API endpoint -for the storage service is starting get operation typically these are written to a http.Request -*/ -type StorageServiceIsStartingGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service is starting get params -func (o *StorageServiceIsStartingGetParams) WithTimeout(timeout time.Duration) *StorageServiceIsStartingGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service is starting get params -func (o *StorageServiceIsStartingGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service is starting get params -func (o *StorageServiceIsStartingGetParams) WithContext(ctx context.Context) *StorageServiceIsStartingGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service is starting get params -func (o *StorageServiceIsStartingGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service is starting get params -func (o *StorageServiceIsStartingGetParams) WithHTTPClient(client *http.Client) *StorageServiceIsStartingGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service is starting get params -func (o *StorageServiceIsStartingGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceIsStartingGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_is_starting_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_is_starting_get_responses.go deleted file mode 100644 index cceabf028f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_is_starting_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceIsStartingGetReader is a Reader for the StorageServiceIsStartingGet structure. -type StorageServiceIsStartingGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceIsStartingGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceIsStartingGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceIsStartingGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceIsStartingGetOK creates a StorageServiceIsStartingGetOK with default headers values -func NewStorageServiceIsStartingGetOK() *StorageServiceIsStartingGetOK { - return &StorageServiceIsStartingGetOK{} -} - -/* -StorageServiceIsStartingGetOK handles this case with default header values. - -Success -*/ -type StorageServiceIsStartingGetOK struct { - Payload bool -} - -func (o *StorageServiceIsStartingGetOK) GetPayload() bool { - return o.Payload -} - -func (o *StorageServiceIsStartingGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceIsStartingGetDefault creates a StorageServiceIsStartingGetDefault with default headers values -func NewStorageServiceIsStartingGetDefault(code int) *StorageServiceIsStartingGetDefault { - return &StorageServiceIsStartingGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceIsStartingGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceIsStartingGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service is starting get default response -func (o *StorageServiceIsStartingGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceIsStartingGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceIsStartingGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceIsStartingGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_join_ring_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_join_ring_get_parameters.go deleted file mode 100644 index 857c38eb38..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_join_ring_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceJoinRingGetParams creates a new StorageServiceJoinRingGetParams object -// with the default values initialized. -func NewStorageServiceJoinRingGetParams() *StorageServiceJoinRingGetParams { - - return &StorageServiceJoinRingGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceJoinRingGetParamsWithTimeout creates a new StorageServiceJoinRingGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceJoinRingGetParamsWithTimeout(timeout time.Duration) *StorageServiceJoinRingGetParams { - - return &StorageServiceJoinRingGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceJoinRingGetParamsWithContext creates a new StorageServiceJoinRingGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceJoinRingGetParamsWithContext(ctx context.Context) *StorageServiceJoinRingGetParams { - - return &StorageServiceJoinRingGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceJoinRingGetParamsWithHTTPClient creates a new StorageServiceJoinRingGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceJoinRingGetParamsWithHTTPClient(client *http.Client) *StorageServiceJoinRingGetParams { - - return &StorageServiceJoinRingGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceJoinRingGetParams contains all the parameters to send to the API endpoint -for the storage service join ring get operation typically these are written to a http.Request -*/ -type StorageServiceJoinRingGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service join ring get params -func (o *StorageServiceJoinRingGetParams) WithTimeout(timeout time.Duration) *StorageServiceJoinRingGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service join ring get params -func (o *StorageServiceJoinRingGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service join ring get params -func (o *StorageServiceJoinRingGetParams) WithContext(ctx context.Context) *StorageServiceJoinRingGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service join ring get params -func (o *StorageServiceJoinRingGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service join ring get params -func (o *StorageServiceJoinRingGetParams) WithHTTPClient(client *http.Client) *StorageServiceJoinRingGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service join ring get params -func (o *StorageServiceJoinRingGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceJoinRingGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_join_ring_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_join_ring_get_responses.go deleted file mode 100644 index 9dd853238b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_join_ring_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceJoinRingGetReader is a Reader for the StorageServiceJoinRingGet structure. -type StorageServiceJoinRingGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceJoinRingGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceJoinRingGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceJoinRingGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceJoinRingGetOK creates a StorageServiceJoinRingGetOK with default headers values -func NewStorageServiceJoinRingGetOK() *StorageServiceJoinRingGetOK { - return &StorageServiceJoinRingGetOK{} -} - -/* -StorageServiceJoinRingGetOK handles this case with default header values. - -Success -*/ -type StorageServiceJoinRingGetOK struct { - Payload bool -} - -func (o *StorageServiceJoinRingGetOK) GetPayload() bool { - return o.Payload -} - -func (o *StorageServiceJoinRingGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceJoinRingGetDefault creates a StorageServiceJoinRingGetDefault with default headers values -func NewStorageServiceJoinRingGetDefault(code int) *StorageServiceJoinRingGetDefault { - return &StorageServiceJoinRingGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceJoinRingGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceJoinRingGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service join ring get default response -func (o *StorageServiceJoinRingGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceJoinRingGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceJoinRingGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceJoinRingGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_join_ring_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_join_ring_post_parameters.go deleted file mode 100644 index 2b6b20c32a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_join_ring_post_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceJoinRingPostParams creates a new StorageServiceJoinRingPostParams object -// with the default values initialized. -func NewStorageServiceJoinRingPostParams() *StorageServiceJoinRingPostParams { - - return &StorageServiceJoinRingPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceJoinRingPostParamsWithTimeout creates a new StorageServiceJoinRingPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceJoinRingPostParamsWithTimeout(timeout time.Duration) *StorageServiceJoinRingPostParams { - - return &StorageServiceJoinRingPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceJoinRingPostParamsWithContext creates a new StorageServiceJoinRingPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceJoinRingPostParamsWithContext(ctx context.Context) *StorageServiceJoinRingPostParams { - - return &StorageServiceJoinRingPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceJoinRingPostParamsWithHTTPClient creates a new StorageServiceJoinRingPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceJoinRingPostParamsWithHTTPClient(client *http.Client) *StorageServiceJoinRingPostParams { - - return &StorageServiceJoinRingPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceJoinRingPostParams contains all the parameters to send to the API endpoint -for the storage service join ring post operation typically these are written to a http.Request -*/ -type StorageServiceJoinRingPostParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service join ring post params -func (o *StorageServiceJoinRingPostParams) WithTimeout(timeout time.Duration) *StorageServiceJoinRingPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service join ring post params -func (o *StorageServiceJoinRingPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service join ring post params -func (o *StorageServiceJoinRingPostParams) WithContext(ctx context.Context) *StorageServiceJoinRingPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service join ring post params -func (o *StorageServiceJoinRingPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service join ring post params -func (o *StorageServiceJoinRingPostParams) WithHTTPClient(client *http.Client) *StorageServiceJoinRingPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service join ring post params -func (o *StorageServiceJoinRingPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceJoinRingPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_join_ring_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_join_ring_post_responses.go deleted file mode 100644 index 82bd31781a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_join_ring_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceJoinRingPostReader is a Reader for the StorageServiceJoinRingPost structure. -type StorageServiceJoinRingPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceJoinRingPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceJoinRingPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceJoinRingPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceJoinRingPostOK creates a StorageServiceJoinRingPostOK with default headers values -func NewStorageServiceJoinRingPostOK() *StorageServiceJoinRingPostOK { - return &StorageServiceJoinRingPostOK{} -} - -/* -StorageServiceJoinRingPostOK handles this case with default header values. - -Success -*/ -type StorageServiceJoinRingPostOK struct { -} - -func (o *StorageServiceJoinRingPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceJoinRingPostDefault creates a StorageServiceJoinRingPostDefault with default headers values -func NewStorageServiceJoinRingPostDefault(code int) *StorageServiceJoinRingPostDefault { - return &StorageServiceJoinRingPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceJoinRingPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceJoinRingPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service join ring post default response -func (o *StorageServiceJoinRingPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceJoinRingPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceJoinRingPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceJoinRingPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_cleanup_by_keyspace_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_cleanup_by_keyspace_post_parameters.go deleted file mode 100644 index 158b0e1a3c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_cleanup_by_keyspace_post_parameters.go +++ /dev/null @@ -1,168 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceKeyspaceCleanupByKeyspacePostParams creates a new StorageServiceKeyspaceCleanupByKeyspacePostParams object -// with the default values initialized. -func NewStorageServiceKeyspaceCleanupByKeyspacePostParams() *StorageServiceKeyspaceCleanupByKeyspacePostParams { - var () - return &StorageServiceKeyspaceCleanupByKeyspacePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceKeyspaceCleanupByKeyspacePostParamsWithTimeout creates a new StorageServiceKeyspaceCleanupByKeyspacePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceKeyspaceCleanupByKeyspacePostParamsWithTimeout(timeout time.Duration) *StorageServiceKeyspaceCleanupByKeyspacePostParams { - var () - return &StorageServiceKeyspaceCleanupByKeyspacePostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceKeyspaceCleanupByKeyspacePostParamsWithContext creates a new StorageServiceKeyspaceCleanupByKeyspacePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceKeyspaceCleanupByKeyspacePostParamsWithContext(ctx context.Context) *StorageServiceKeyspaceCleanupByKeyspacePostParams { - var () - return &StorageServiceKeyspaceCleanupByKeyspacePostParams{ - - Context: ctx, - } -} - -// NewStorageServiceKeyspaceCleanupByKeyspacePostParamsWithHTTPClient creates a new StorageServiceKeyspaceCleanupByKeyspacePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceKeyspaceCleanupByKeyspacePostParamsWithHTTPClient(client *http.Client) *StorageServiceKeyspaceCleanupByKeyspacePostParams { - var () - return &StorageServiceKeyspaceCleanupByKeyspacePostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceKeyspaceCleanupByKeyspacePostParams contains all the parameters to send to the API endpoint -for the storage service keyspace cleanup by keyspace post operation typically these are written to a http.Request -*/ -type StorageServiceKeyspaceCleanupByKeyspacePostParams struct { - - /*Cf - Comma seperated column family names - - */ - Cf *string - /*Keyspace - The keyspace to query about - - */ - Keyspace string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service keyspace cleanup by keyspace post params -func (o *StorageServiceKeyspaceCleanupByKeyspacePostParams) WithTimeout(timeout time.Duration) *StorageServiceKeyspaceCleanupByKeyspacePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service keyspace cleanup by keyspace post params -func (o *StorageServiceKeyspaceCleanupByKeyspacePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service keyspace cleanup by keyspace post params -func (o *StorageServiceKeyspaceCleanupByKeyspacePostParams) WithContext(ctx context.Context) *StorageServiceKeyspaceCleanupByKeyspacePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service keyspace cleanup by keyspace post params -func (o *StorageServiceKeyspaceCleanupByKeyspacePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service keyspace cleanup by keyspace post params -func (o *StorageServiceKeyspaceCleanupByKeyspacePostParams) WithHTTPClient(client *http.Client) *StorageServiceKeyspaceCleanupByKeyspacePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service keyspace cleanup by keyspace post params -func (o *StorageServiceKeyspaceCleanupByKeyspacePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCf adds the cf to the storage service keyspace cleanup by keyspace post params -func (o *StorageServiceKeyspaceCleanupByKeyspacePostParams) WithCf(cf *string) *StorageServiceKeyspaceCleanupByKeyspacePostParams { - o.SetCf(cf) - return o -} - -// SetCf adds the cf to the storage service keyspace cleanup by keyspace post params -func (o *StorageServiceKeyspaceCleanupByKeyspacePostParams) SetCf(cf *string) { - o.Cf = cf -} - -// WithKeyspace adds the keyspace to the storage service keyspace cleanup by keyspace post params -func (o *StorageServiceKeyspaceCleanupByKeyspacePostParams) WithKeyspace(keyspace string) *StorageServiceKeyspaceCleanupByKeyspacePostParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the storage service keyspace cleanup by keyspace post params -func (o *StorageServiceKeyspaceCleanupByKeyspacePostParams) SetKeyspace(keyspace string) { - o.Keyspace = keyspace -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceKeyspaceCleanupByKeyspacePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Cf != nil { - - // query param cf - var qrCf string - if o.Cf != nil { - qrCf = *o.Cf - } - qCf := qrCf - if qCf != "" { - if err := r.SetQueryParam("cf", qCf); err != nil { - return err - } - } - - } - - // path param keyspace - if err := r.SetPathParam("keyspace", o.Keyspace); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_cleanup_by_keyspace_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_cleanup_by_keyspace_post_responses.go deleted file mode 100644 index fedf0c771c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_cleanup_by_keyspace_post_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceKeyspaceCleanupByKeyspacePostReader is a Reader for the StorageServiceKeyspaceCleanupByKeyspacePost structure. -type StorageServiceKeyspaceCleanupByKeyspacePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceKeyspaceCleanupByKeyspacePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceKeyspaceCleanupByKeyspacePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceKeyspaceCleanupByKeyspacePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceKeyspaceCleanupByKeyspacePostOK creates a StorageServiceKeyspaceCleanupByKeyspacePostOK with default headers values -func NewStorageServiceKeyspaceCleanupByKeyspacePostOK() *StorageServiceKeyspaceCleanupByKeyspacePostOK { - return &StorageServiceKeyspaceCleanupByKeyspacePostOK{} -} - -/* -StorageServiceKeyspaceCleanupByKeyspacePostOK handles this case with default header values. - -Success -*/ -type StorageServiceKeyspaceCleanupByKeyspacePostOK struct { - Payload int32 -} - -func (o *StorageServiceKeyspaceCleanupByKeyspacePostOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageServiceKeyspaceCleanupByKeyspacePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceKeyspaceCleanupByKeyspacePostDefault creates a StorageServiceKeyspaceCleanupByKeyspacePostDefault with default headers values -func NewStorageServiceKeyspaceCleanupByKeyspacePostDefault(code int) *StorageServiceKeyspaceCleanupByKeyspacePostDefault { - return &StorageServiceKeyspaceCleanupByKeyspacePostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceKeyspaceCleanupByKeyspacePostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceKeyspaceCleanupByKeyspacePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service keyspace cleanup by keyspace post default response -func (o *StorageServiceKeyspaceCleanupByKeyspacePostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceKeyspaceCleanupByKeyspacePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceKeyspaceCleanupByKeyspacePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceKeyspaceCleanupByKeyspacePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_compaction_by_keyspace_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_compaction_by_keyspace_post_parameters.go deleted file mode 100644 index 7ebb83df5d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_compaction_by_keyspace_post_parameters.go +++ /dev/null @@ -1,168 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceKeyspaceCompactionByKeyspacePostParams creates a new StorageServiceKeyspaceCompactionByKeyspacePostParams object -// with the default values initialized. -func NewStorageServiceKeyspaceCompactionByKeyspacePostParams() *StorageServiceKeyspaceCompactionByKeyspacePostParams { - var () - return &StorageServiceKeyspaceCompactionByKeyspacePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceKeyspaceCompactionByKeyspacePostParamsWithTimeout creates a new StorageServiceKeyspaceCompactionByKeyspacePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceKeyspaceCompactionByKeyspacePostParamsWithTimeout(timeout time.Duration) *StorageServiceKeyspaceCompactionByKeyspacePostParams { - var () - return &StorageServiceKeyspaceCompactionByKeyspacePostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceKeyspaceCompactionByKeyspacePostParamsWithContext creates a new StorageServiceKeyspaceCompactionByKeyspacePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceKeyspaceCompactionByKeyspacePostParamsWithContext(ctx context.Context) *StorageServiceKeyspaceCompactionByKeyspacePostParams { - var () - return &StorageServiceKeyspaceCompactionByKeyspacePostParams{ - - Context: ctx, - } -} - -// NewStorageServiceKeyspaceCompactionByKeyspacePostParamsWithHTTPClient creates a new StorageServiceKeyspaceCompactionByKeyspacePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceKeyspaceCompactionByKeyspacePostParamsWithHTTPClient(client *http.Client) *StorageServiceKeyspaceCompactionByKeyspacePostParams { - var () - return &StorageServiceKeyspaceCompactionByKeyspacePostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceKeyspaceCompactionByKeyspacePostParams contains all the parameters to send to the API endpoint -for the storage service keyspace compaction by keyspace post operation typically these are written to a http.Request -*/ -type StorageServiceKeyspaceCompactionByKeyspacePostParams struct { - - /*Cf - Comma seperated column family names - - */ - Cf *string - /*Keyspace - The keyspace to query about - - */ - Keyspace string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service keyspace compaction by keyspace post params -func (o *StorageServiceKeyspaceCompactionByKeyspacePostParams) WithTimeout(timeout time.Duration) *StorageServiceKeyspaceCompactionByKeyspacePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service keyspace compaction by keyspace post params -func (o *StorageServiceKeyspaceCompactionByKeyspacePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service keyspace compaction by keyspace post params -func (o *StorageServiceKeyspaceCompactionByKeyspacePostParams) WithContext(ctx context.Context) *StorageServiceKeyspaceCompactionByKeyspacePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service keyspace compaction by keyspace post params -func (o *StorageServiceKeyspaceCompactionByKeyspacePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service keyspace compaction by keyspace post params -func (o *StorageServiceKeyspaceCompactionByKeyspacePostParams) WithHTTPClient(client *http.Client) *StorageServiceKeyspaceCompactionByKeyspacePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service keyspace compaction by keyspace post params -func (o *StorageServiceKeyspaceCompactionByKeyspacePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCf adds the cf to the storage service keyspace compaction by keyspace post params -func (o *StorageServiceKeyspaceCompactionByKeyspacePostParams) WithCf(cf *string) *StorageServiceKeyspaceCompactionByKeyspacePostParams { - o.SetCf(cf) - return o -} - -// SetCf adds the cf to the storage service keyspace compaction by keyspace post params -func (o *StorageServiceKeyspaceCompactionByKeyspacePostParams) SetCf(cf *string) { - o.Cf = cf -} - -// WithKeyspace adds the keyspace to the storage service keyspace compaction by keyspace post params -func (o *StorageServiceKeyspaceCompactionByKeyspacePostParams) WithKeyspace(keyspace string) *StorageServiceKeyspaceCompactionByKeyspacePostParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the storage service keyspace compaction by keyspace post params -func (o *StorageServiceKeyspaceCompactionByKeyspacePostParams) SetKeyspace(keyspace string) { - o.Keyspace = keyspace -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceKeyspaceCompactionByKeyspacePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Cf != nil { - - // query param cf - var qrCf string - if o.Cf != nil { - qrCf = *o.Cf - } - qCf := qrCf - if qCf != "" { - if err := r.SetQueryParam("cf", qCf); err != nil { - return err - } - } - - } - - // path param keyspace - if err := r.SetPathParam("keyspace", o.Keyspace); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_compaction_by_keyspace_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_compaction_by_keyspace_post_responses.go deleted file mode 100644 index d9f3d092ad..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_compaction_by_keyspace_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceKeyspaceCompactionByKeyspacePostReader is a Reader for the StorageServiceKeyspaceCompactionByKeyspacePost structure. -type StorageServiceKeyspaceCompactionByKeyspacePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceKeyspaceCompactionByKeyspacePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceKeyspaceCompactionByKeyspacePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceKeyspaceCompactionByKeyspacePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceKeyspaceCompactionByKeyspacePostOK creates a StorageServiceKeyspaceCompactionByKeyspacePostOK with default headers values -func NewStorageServiceKeyspaceCompactionByKeyspacePostOK() *StorageServiceKeyspaceCompactionByKeyspacePostOK { - return &StorageServiceKeyspaceCompactionByKeyspacePostOK{} -} - -/* -StorageServiceKeyspaceCompactionByKeyspacePostOK handles this case with default header values. - -Success -*/ -type StorageServiceKeyspaceCompactionByKeyspacePostOK struct { -} - -func (o *StorageServiceKeyspaceCompactionByKeyspacePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceKeyspaceCompactionByKeyspacePostDefault creates a StorageServiceKeyspaceCompactionByKeyspacePostDefault with default headers values -func NewStorageServiceKeyspaceCompactionByKeyspacePostDefault(code int) *StorageServiceKeyspaceCompactionByKeyspacePostDefault { - return &StorageServiceKeyspaceCompactionByKeyspacePostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceKeyspaceCompactionByKeyspacePostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceKeyspaceCompactionByKeyspacePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service keyspace compaction by keyspace post default response -func (o *StorageServiceKeyspaceCompactionByKeyspacePostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceKeyspaceCompactionByKeyspacePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceKeyspaceCompactionByKeyspacePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceKeyspaceCompactionByKeyspacePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_flush_by_keyspace_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_flush_by_keyspace_post_parameters.go deleted file mode 100644 index d29e140298..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_flush_by_keyspace_post_parameters.go +++ /dev/null @@ -1,168 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceKeyspaceFlushByKeyspacePostParams creates a new StorageServiceKeyspaceFlushByKeyspacePostParams object -// with the default values initialized. -func NewStorageServiceKeyspaceFlushByKeyspacePostParams() *StorageServiceKeyspaceFlushByKeyspacePostParams { - var () - return &StorageServiceKeyspaceFlushByKeyspacePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceKeyspaceFlushByKeyspacePostParamsWithTimeout creates a new StorageServiceKeyspaceFlushByKeyspacePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceKeyspaceFlushByKeyspacePostParamsWithTimeout(timeout time.Duration) *StorageServiceKeyspaceFlushByKeyspacePostParams { - var () - return &StorageServiceKeyspaceFlushByKeyspacePostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceKeyspaceFlushByKeyspacePostParamsWithContext creates a new StorageServiceKeyspaceFlushByKeyspacePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceKeyspaceFlushByKeyspacePostParamsWithContext(ctx context.Context) *StorageServiceKeyspaceFlushByKeyspacePostParams { - var () - return &StorageServiceKeyspaceFlushByKeyspacePostParams{ - - Context: ctx, - } -} - -// NewStorageServiceKeyspaceFlushByKeyspacePostParamsWithHTTPClient creates a new StorageServiceKeyspaceFlushByKeyspacePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceKeyspaceFlushByKeyspacePostParamsWithHTTPClient(client *http.Client) *StorageServiceKeyspaceFlushByKeyspacePostParams { - var () - return &StorageServiceKeyspaceFlushByKeyspacePostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceKeyspaceFlushByKeyspacePostParams contains all the parameters to send to the API endpoint -for the storage service keyspace flush by keyspace post operation typically these are written to a http.Request -*/ -type StorageServiceKeyspaceFlushByKeyspacePostParams struct { - - /*Cf - Comma seperated column family names - - */ - Cf *string - /*Keyspace - The keyspace to flush - - */ - Keyspace string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service keyspace flush by keyspace post params -func (o *StorageServiceKeyspaceFlushByKeyspacePostParams) WithTimeout(timeout time.Duration) *StorageServiceKeyspaceFlushByKeyspacePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service keyspace flush by keyspace post params -func (o *StorageServiceKeyspaceFlushByKeyspacePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service keyspace flush by keyspace post params -func (o *StorageServiceKeyspaceFlushByKeyspacePostParams) WithContext(ctx context.Context) *StorageServiceKeyspaceFlushByKeyspacePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service keyspace flush by keyspace post params -func (o *StorageServiceKeyspaceFlushByKeyspacePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service keyspace flush by keyspace post params -func (o *StorageServiceKeyspaceFlushByKeyspacePostParams) WithHTTPClient(client *http.Client) *StorageServiceKeyspaceFlushByKeyspacePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service keyspace flush by keyspace post params -func (o *StorageServiceKeyspaceFlushByKeyspacePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCf adds the cf to the storage service keyspace flush by keyspace post params -func (o *StorageServiceKeyspaceFlushByKeyspacePostParams) WithCf(cf *string) *StorageServiceKeyspaceFlushByKeyspacePostParams { - o.SetCf(cf) - return o -} - -// SetCf adds the cf to the storage service keyspace flush by keyspace post params -func (o *StorageServiceKeyspaceFlushByKeyspacePostParams) SetCf(cf *string) { - o.Cf = cf -} - -// WithKeyspace adds the keyspace to the storage service keyspace flush by keyspace post params -func (o *StorageServiceKeyspaceFlushByKeyspacePostParams) WithKeyspace(keyspace string) *StorageServiceKeyspaceFlushByKeyspacePostParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the storage service keyspace flush by keyspace post params -func (o *StorageServiceKeyspaceFlushByKeyspacePostParams) SetKeyspace(keyspace string) { - o.Keyspace = keyspace -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceKeyspaceFlushByKeyspacePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Cf != nil { - - // query param cf - var qrCf string - if o.Cf != nil { - qrCf = *o.Cf - } - qCf := qrCf - if qCf != "" { - if err := r.SetQueryParam("cf", qCf); err != nil { - return err - } - } - - } - - // path param keyspace - if err := r.SetPathParam("keyspace", o.Keyspace); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_flush_by_keyspace_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_flush_by_keyspace_post_responses.go deleted file mode 100644 index 61843ee1f5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_flush_by_keyspace_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceKeyspaceFlushByKeyspacePostReader is a Reader for the StorageServiceKeyspaceFlushByKeyspacePost structure. -type StorageServiceKeyspaceFlushByKeyspacePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceKeyspaceFlushByKeyspacePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceKeyspaceFlushByKeyspacePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceKeyspaceFlushByKeyspacePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceKeyspaceFlushByKeyspacePostOK creates a StorageServiceKeyspaceFlushByKeyspacePostOK with default headers values -func NewStorageServiceKeyspaceFlushByKeyspacePostOK() *StorageServiceKeyspaceFlushByKeyspacePostOK { - return &StorageServiceKeyspaceFlushByKeyspacePostOK{} -} - -/* -StorageServiceKeyspaceFlushByKeyspacePostOK handles this case with default header values. - -Success -*/ -type StorageServiceKeyspaceFlushByKeyspacePostOK struct { -} - -func (o *StorageServiceKeyspaceFlushByKeyspacePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceKeyspaceFlushByKeyspacePostDefault creates a StorageServiceKeyspaceFlushByKeyspacePostDefault with default headers values -func NewStorageServiceKeyspaceFlushByKeyspacePostDefault(code int) *StorageServiceKeyspaceFlushByKeyspacePostDefault { - return &StorageServiceKeyspaceFlushByKeyspacePostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceKeyspaceFlushByKeyspacePostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceKeyspaceFlushByKeyspacePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service keyspace flush by keyspace post default response -func (o *StorageServiceKeyspaceFlushByKeyspacePostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceKeyspaceFlushByKeyspacePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceKeyspaceFlushByKeyspacePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceKeyspaceFlushByKeyspacePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_scrub_by_keyspace_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_scrub_by_keyspace_get_parameters.go deleted file mode 100644 index 184094d80d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_scrub_by_keyspace_get_parameters.go +++ /dev/null @@ -1,233 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageServiceKeyspaceScrubByKeyspaceGetParams creates a new StorageServiceKeyspaceScrubByKeyspaceGetParams object -// with the default values initialized. -func NewStorageServiceKeyspaceScrubByKeyspaceGetParams() *StorageServiceKeyspaceScrubByKeyspaceGetParams { - var () - return &StorageServiceKeyspaceScrubByKeyspaceGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceKeyspaceScrubByKeyspaceGetParamsWithTimeout creates a new StorageServiceKeyspaceScrubByKeyspaceGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceKeyspaceScrubByKeyspaceGetParamsWithTimeout(timeout time.Duration) *StorageServiceKeyspaceScrubByKeyspaceGetParams { - var () - return &StorageServiceKeyspaceScrubByKeyspaceGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceKeyspaceScrubByKeyspaceGetParamsWithContext creates a new StorageServiceKeyspaceScrubByKeyspaceGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceKeyspaceScrubByKeyspaceGetParamsWithContext(ctx context.Context) *StorageServiceKeyspaceScrubByKeyspaceGetParams { - var () - return &StorageServiceKeyspaceScrubByKeyspaceGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceKeyspaceScrubByKeyspaceGetParamsWithHTTPClient creates a new StorageServiceKeyspaceScrubByKeyspaceGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceKeyspaceScrubByKeyspaceGetParamsWithHTTPClient(client *http.Client) *StorageServiceKeyspaceScrubByKeyspaceGetParams { - var () - return &StorageServiceKeyspaceScrubByKeyspaceGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceKeyspaceScrubByKeyspaceGetParams contains all the parameters to send to the API endpoint -for the storage service keyspace scrub by keyspace get operation typically these are written to a http.Request -*/ -type StorageServiceKeyspaceScrubByKeyspaceGetParams struct { - - /*Cf - Comma seperated column family names - - */ - Cf *string - /*DisableSnapshot - When set to true, disable snapshot - - */ - DisableSnapshot *bool - /*Keyspace - The keyspace to query about - - */ - Keyspace string - /*SkipCorrupted - When set to true, skip corrupted - - */ - SkipCorrupted *bool - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service keyspace scrub by keyspace get params -func (o *StorageServiceKeyspaceScrubByKeyspaceGetParams) WithTimeout(timeout time.Duration) *StorageServiceKeyspaceScrubByKeyspaceGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service keyspace scrub by keyspace get params -func (o *StorageServiceKeyspaceScrubByKeyspaceGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service keyspace scrub by keyspace get params -func (o *StorageServiceKeyspaceScrubByKeyspaceGetParams) WithContext(ctx context.Context) *StorageServiceKeyspaceScrubByKeyspaceGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service keyspace scrub by keyspace get params -func (o *StorageServiceKeyspaceScrubByKeyspaceGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service keyspace scrub by keyspace get params -func (o *StorageServiceKeyspaceScrubByKeyspaceGetParams) WithHTTPClient(client *http.Client) *StorageServiceKeyspaceScrubByKeyspaceGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service keyspace scrub by keyspace get params -func (o *StorageServiceKeyspaceScrubByKeyspaceGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCf adds the cf to the storage service keyspace scrub by keyspace get params -func (o *StorageServiceKeyspaceScrubByKeyspaceGetParams) WithCf(cf *string) *StorageServiceKeyspaceScrubByKeyspaceGetParams { - o.SetCf(cf) - return o -} - -// SetCf adds the cf to the storage service keyspace scrub by keyspace get params -func (o *StorageServiceKeyspaceScrubByKeyspaceGetParams) SetCf(cf *string) { - o.Cf = cf -} - -// WithDisableSnapshot adds the disableSnapshot to the storage service keyspace scrub by keyspace get params -func (o *StorageServiceKeyspaceScrubByKeyspaceGetParams) WithDisableSnapshot(disableSnapshot *bool) *StorageServiceKeyspaceScrubByKeyspaceGetParams { - o.SetDisableSnapshot(disableSnapshot) - return o -} - -// SetDisableSnapshot adds the disableSnapshot to the storage service keyspace scrub by keyspace get params -func (o *StorageServiceKeyspaceScrubByKeyspaceGetParams) SetDisableSnapshot(disableSnapshot *bool) { - o.DisableSnapshot = disableSnapshot -} - -// WithKeyspace adds the keyspace to the storage service keyspace scrub by keyspace get params -func (o *StorageServiceKeyspaceScrubByKeyspaceGetParams) WithKeyspace(keyspace string) *StorageServiceKeyspaceScrubByKeyspaceGetParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the storage service keyspace scrub by keyspace get params -func (o *StorageServiceKeyspaceScrubByKeyspaceGetParams) SetKeyspace(keyspace string) { - o.Keyspace = keyspace -} - -// WithSkipCorrupted adds the skipCorrupted to the storage service keyspace scrub by keyspace get params -func (o *StorageServiceKeyspaceScrubByKeyspaceGetParams) WithSkipCorrupted(skipCorrupted *bool) *StorageServiceKeyspaceScrubByKeyspaceGetParams { - o.SetSkipCorrupted(skipCorrupted) - return o -} - -// SetSkipCorrupted adds the skipCorrupted to the storage service keyspace scrub by keyspace get params -func (o *StorageServiceKeyspaceScrubByKeyspaceGetParams) SetSkipCorrupted(skipCorrupted *bool) { - o.SkipCorrupted = skipCorrupted -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceKeyspaceScrubByKeyspaceGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Cf != nil { - - // query param cf - var qrCf string - if o.Cf != nil { - qrCf = *o.Cf - } - qCf := qrCf - if qCf != "" { - if err := r.SetQueryParam("cf", qCf); err != nil { - return err - } - } - - } - - if o.DisableSnapshot != nil { - - // query param disable_snapshot - var qrDisableSnapshot bool - if o.DisableSnapshot != nil { - qrDisableSnapshot = *o.DisableSnapshot - } - qDisableSnapshot := swag.FormatBool(qrDisableSnapshot) - if qDisableSnapshot != "" { - if err := r.SetQueryParam("disable_snapshot", qDisableSnapshot); err != nil { - return err - } - } - - } - - // path param keyspace - if err := r.SetPathParam("keyspace", o.Keyspace); err != nil { - return err - } - - if o.SkipCorrupted != nil { - - // query param skip_corrupted - var qrSkipCorrupted bool - if o.SkipCorrupted != nil { - qrSkipCorrupted = *o.SkipCorrupted - } - qSkipCorrupted := swag.FormatBool(qrSkipCorrupted) - if qSkipCorrupted != "" { - if err := r.SetQueryParam("skip_corrupted", qSkipCorrupted); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_scrub_by_keyspace_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_scrub_by_keyspace_get_responses.go deleted file mode 100644 index 63f79e5e9c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_scrub_by_keyspace_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceKeyspaceScrubByKeyspaceGetReader is a Reader for the StorageServiceKeyspaceScrubByKeyspaceGet structure. -type StorageServiceKeyspaceScrubByKeyspaceGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceKeyspaceScrubByKeyspaceGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceKeyspaceScrubByKeyspaceGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceKeyspaceScrubByKeyspaceGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceKeyspaceScrubByKeyspaceGetOK creates a StorageServiceKeyspaceScrubByKeyspaceGetOK with default headers values -func NewStorageServiceKeyspaceScrubByKeyspaceGetOK() *StorageServiceKeyspaceScrubByKeyspaceGetOK { - return &StorageServiceKeyspaceScrubByKeyspaceGetOK{} -} - -/* -StorageServiceKeyspaceScrubByKeyspaceGetOK handles this case with default header values. - -Success -*/ -type StorageServiceKeyspaceScrubByKeyspaceGetOK struct { - Payload int32 -} - -func (o *StorageServiceKeyspaceScrubByKeyspaceGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageServiceKeyspaceScrubByKeyspaceGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceKeyspaceScrubByKeyspaceGetDefault creates a StorageServiceKeyspaceScrubByKeyspaceGetDefault with default headers values -func NewStorageServiceKeyspaceScrubByKeyspaceGetDefault(code int) *StorageServiceKeyspaceScrubByKeyspaceGetDefault { - return &StorageServiceKeyspaceScrubByKeyspaceGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceKeyspaceScrubByKeyspaceGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceKeyspaceScrubByKeyspaceGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service keyspace scrub by keyspace get default response -func (o *StorageServiceKeyspaceScrubByKeyspaceGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceKeyspaceScrubByKeyspaceGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceKeyspaceScrubByKeyspaceGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceKeyspaceScrubByKeyspaceGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_upgrade_sstables_by_keyspace_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_upgrade_sstables_by_keyspace_get_parameters.go deleted file mode 100644 index e97ae03208..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_upgrade_sstables_by_keyspace_get_parameters.go +++ /dev/null @@ -1,201 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams creates a new StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams object -// with the default values initialized. -func NewStorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams() *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams { - var () - return &StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParamsWithTimeout creates a new StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParamsWithTimeout(timeout time.Duration) *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams { - var () - return &StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParamsWithContext creates a new StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParamsWithContext(ctx context.Context) *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams { - var () - return &StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParamsWithHTTPClient creates a new StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParamsWithHTTPClient(client *http.Client) *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams { - var () - return &StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams contains all the parameters to send to the API endpoint -for the storage service keyspace upgrade sstables by keyspace get operation typically these are written to a http.Request -*/ -type StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams struct { - - /*Cf - Comma seperated column family names - - */ - Cf *string - /*ExcludeCurrentVersion - When set to true exclude current version - - */ - ExcludeCurrentVersion *bool - /*Keyspace - The keyspace - - */ - Keyspace string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service keyspace upgrade sstables by keyspace get params -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams) WithTimeout(timeout time.Duration) *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service keyspace upgrade sstables by keyspace get params -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service keyspace upgrade sstables by keyspace get params -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams) WithContext(ctx context.Context) *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service keyspace upgrade sstables by keyspace get params -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service keyspace upgrade sstables by keyspace get params -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams) WithHTTPClient(client *http.Client) *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service keyspace upgrade sstables by keyspace get params -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCf adds the cf to the storage service keyspace upgrade sstables by keyspace get params -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams) WithCf(cf *string) *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams { - o.SetCf(cf) - return o -} - -// SetCf adds the cf to the storage service keyspace upgrade sstables by keyspace get params -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams) SetCf(cf *string) { - o.Cf = cf -} - -// WithExcludeCurrentVersion adds the excludeCurrentVersion to the storage service keyspace upgrade sstables by keyspace get params -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams) WithExcludeCurrentVersion(excludeCurrentVersion *bool) *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams { - o.SetExcludeCurrentVersion(excludeCurrentVersion) - return o -} - -// SetExcludeCurrentVersion adds the excludeCurrentVersion to the storage service keyspace upgrade sstables by keyspace get params -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams) SetExcludeCurrentVersion(excludeCurrentVersion *bool) { - o.ExcludeCurrentVersion = excludeCurrentVersion -} - -// WithKeyspace adds the keyspace to the storage service keyspace upgrade sstables by keyspace get params -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams) WithKeyspace(keyspace string) *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the storage service keyspace upgrade sstables by keyspace get params -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams) SetKeyspace(keyspace string) { - o.Keyspace = keyspace -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Cf != nil { - - // query param cf - var qrCf string - if o.Cf != nil { - qrCf = *o.Cf - } - qCf := qrCf - if qCf != "" { - if err := r.SetQueryParam("cf", qCf); err != nil { - return err - } - } - - } - - if o.ExcludeCurrentVersion != nil { - - // query param exclude_current_version - var qrExcludeCurrentVersion bool - if o.ExcludeCurrentVersion != nil { - qrExcludeCurrentVersion = *o.ExcludeCurrentVersion - } - qExcludeCurrentVersion := swag.FormatBool(qrExcludeCurrentVersion) - if qExcludeCurrentVersion != "" { - if err := r.SetQueryParam("exclude_current_version", qExcludeCurrentVersion); err != nil { - return err - } - } - - } - - // path param keyspace - if err := r.SetPathParam("keyspace", o.Keyspace); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_upgrade_sstables_by_keyspace_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_upgrade_sstables_by_keyspace_get_responses.go deleted file mode 100644 index 4d3a905ec5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspace_upgrade_sstables_by_keyspace_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetReader is a Reader for the StorageServiceKeyspaceUpgradeSstablesByKeyspaceGet structure. -type StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceKeyspaceUpgradeSstablesByKeyspaceGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceKeyspaceUpgradeSstablesByKeyspaceGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceKeyspaceUpgradeSstablesByKeyspaceGetOK creates a StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetOK with default headers values -func NewStorageServiceKeyspaceUpgradeSstablesByKeyspaceGetOK() *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetOK { - return &StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetOK{} -} - -/* -StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetOK handles this case with default header values. - -Success -*/ -type StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetOK struct { - Payload int32 -} - -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceKeyspaceUpgradeSstablesByKeyspaceGetDefault creates a StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetDefault with default headers values -func NewStorageServiceKeyspaceUpgradeSstablesByKeyspaceGetDefault(code int) *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetDefault { - return &StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service keyspace upgrade sstables by keyspace get default response -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceKeyspaceUpgradeSstablesByKeyspaceGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspaces_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspaces_get_parameters.go deleted file mode 100644 index 19a1b7e915..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspaces_get_parameters.go +++ /dev/null @@ -1,179 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceKeyspacesGetParams creates a new StorageServiceKeyspacesGetParams object -// with the default values initialized. -func NewStorageServiceKeyspacesGetParams() *StorageServiceKeyspacesGetParams { - var () - return &StorageServiceKeyspacesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceKeyspacesGetParamsWithTimeout creates a new StorageServiceKeyspacesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceKeyspacesGetParamsWithTimeout(timeout time.Duration) *StorageServiceKeyspacesGetParams { - var () - return &StorageServiceKeyspacesGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceKeyspacesGetParamsWithContext creates a new StorageServiceKeyspacesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceKeyspacesGetParamsWithContext(ctx context.Context) *StorageServiceKeyspacesGetParams { - var () - return &StorageServiceKeyspacesGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceKeyspacesGetParamsWithHTTPClient creates a new StorageServiceKeyspacesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceKeyspacesGetParamsWithHTTPClient(client *http.Client) *StorageServiceKeyspacesGetParams { - var () - return &StorageServiceKeyspacesGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceKeyspacesGetParams contains all the parameters to send to the API endpoint -for the storage service keyspaces get operation typically these are written to a http.Request -*/ -type StorageServiceKeyspacesGetParams struct { - - /*Replication - Filter keyspaces for the replication used: vnodes or tablets (default: all) - - */ - Replication *string - /*Type - Which keyspaces to return - - */ - Type *string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service keyspaces get params -func (o *StorageServiceKeyspacesGetParams) WithTimeout(timeout time.Duration) *StorageServiceKeyspacesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service keyspaces get params -func (o *StorageServiceKeyspacesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service keyspaces get params -func (o *StorageServiceKeyspacesGetParams) WithContext(ctx context.Context) *StorageServiceKeyspacesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service keyspaces get params -func (o *StorageServiceKeyspacesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service keyspaces get params -func (o *StorageServiceKeyspacesGetParams) WithHTTPClient(client *http.Client) *StorageServiceKeyspacesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service keyspaces get params -func (o *StorageServiceKeyspacesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithReplication adds the replication to the storage service keyspaces get params -func (o *StorageServiceKeyspacesGetParams) WithReplication(replication *string) *StorageServiceKeyspacesGetParams { - o.SetReplication(replication) - return o -} - -// SetReplication adds the replication to the storage service keyspaces get params -func (o *StorageServiceKeyspacesGetParams) SetReplication(replication *string) { - o.Replication = replication -} - -// WithType adds the typeVar to the storage service keyspaces get params -func (o *StorageServiceKeyspacesGetParams) WithType(typeVar *string) *StorageServiceKeyspacesGetParams { - o.SetType(typeVar) - return o -} - -// SetType adds the type to the storage service keyspaces get params -func (o *StorageServiceKeyspacesGetParams) SetType(typeVar *string) { - o.Type = typeVar -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceKeyspacesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Replication != nil { - - // query param replication - var qrReplication string - if o.Replication != nil { - qrReplication = *o.Replication - } - qReplication := qrReplication - if qReplication != "" { - if err := r.SetQueryParam("replication", qReplication); err != nil { - return err - } - } - - } - - if o.Type != nil { - - // query param type - var qrType string - if o.Type != nil { - qrType = *o.Type - } - qType := qrType - if qType != "" { - if err := r.SetQueryParam("type", qType); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspaces_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspaces_get_responses.go deleted file mode 100644 index 5aae381982..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_keyspaces_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceKeyspacesGetReader is a Reader for the StorageServiceKeyspacesGet structure. -type StorageServiceKeyspacesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceKeyspacesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceKeyspacesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceKeyspacesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceKeyspacesGetOK creates a StorageServiceKeyspacesGetOK with default headers values -func NewStorageServiceKeyspacesGetOK() *StorageServiceKeyspacesGetOK { - return &StorageServiceKeyspacesGetOK{} -} - -/* -StorageServiceKeyspacesGetOK handles this case with default header values. - -Success -*/ -type StorageServiceKeyspacesGetOK struct { - Payload []string -} - -func (o *StorageServiceKeyspacesGetOK) GetPayload() []string { - return o.Payload -} - -func (o *StorageServiceKeyspacesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceKeyspacesGetDefault creates a StorageServiceKeyspacesGetDefault with default headers values -func NewStorageServiceKeyspacesGetDefault(code int) *StorageServiceKeyspacesGetDefault { - return &StorageServiceKeyspacesGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceKeyspacesGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceKeyspacesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service keyspaces get default response -func (o *StorageServiceKeyspacesGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceKeyspacesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceKeyspacesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceKeyspacesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_load_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_load_get_parameters.go deleted file mode 100644 index 5b755932de..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_load_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceLoadGetParams creates a new StorageServiceLoadGetParams object -// with the default values initialized. -func NewStorageServiceLoadGetParams() *StorageServiceLoadGetParams { - - return &StorageServiceLoadGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceLoadGetParamsWithTimeout creates a new StorageServiceLoadGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceLoadGetParamsWithTimeout(timeout time.Duration) *StorageServiceLoadGetParams { - - return &StorageServiceLoadGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceLoadGetParamsWithContext creates a new StorageServiceLoadGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceLoadGetParamsWithContext(ctx context.Context) *StorageServiceLoadGetParams { - - return &StorageServiceLoadGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceLoadGetParamsWithHTTPClient creates a new StorageServiceLoadGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceLoadGetParamsWithHTTPClient(client *http.Client) *StorageServiceLoadGetParams { - - return &StorageServiceLoadGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceLoadGetParams contains all the parameters to send to the API endpoint -for the storage service load get operation typically these are written to a http.Request -*/ -type StorageServiceLoadGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service load get params -func (o *StorageServiceLoadGetParams) WithTimeout(timeout time.Duration) *StorageServiceLoadGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service load get params -func (o *StorageServiceLoadGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service load get params -func (o *StorageServiceLoadGetParams) WithContext(ctx context.Context) *StorageServiceLoadGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service load get params -func (o *StorageServiceLoadGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service load get params -func (o *StorageServiceLoadGetParams) WithHTTPClient(client *http.Client) *StorageServiceLoadGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service load get params -func (o *StorageServiceLoadGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceLoadGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_load_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_load_get_responses.go deleted file mode 100644 index 62ed6e3d6a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_load_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceLoadGetReader is a Reader for the StorageServiceLoadGet structure. -type StorageServiceLoadGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceLoadGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceLoadGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceLoadGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceLoadGetOK creates a StorageServiceLoadGetOK with default headers values -func NewStorageServiceLoadGetOK() *StorageServiceLoadGetOK { - return &StorageServiceLoadGetOK{} -} - -/* -StorageServiceLoadGetOK handles this case with default header values. - -Success -*/ -type StorageServiceLoadGetOK struct { - Payload interface{} -} - -func (o *StorageServiceLoadGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageServiceLoadGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceLoadGetDefault creates a StorageServiceLoadGetDefault with default headers values -func NewStorageServiceLoadGetDefault(code int) *StorageServiceLoadGetDefault { - return &StorageServiceLoadGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceLoadGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceLoadGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service load get default response -func (o *StorageServiceLoadGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceLoadGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceLoadGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceLoadGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_load_map_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_load_map_get_parameters.go deleted file mode 100644 index 8dfa59af00..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_load_map_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceLoadMapGetParams creates a new StorageServiceLoadMapGetParams object -// with the default values initialized. -func NewStorageServiceLoadMapGetParams() *StorageServiceLoadMapGetParams { - - return &StorageServiceLoadMapGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceLoadMapGetParamsWithTimeout creates a new StorageServiceLoadMapGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceLoadMapGetParamsWithTimeout(timeout time.Duration) *StorageServiceLoadMapGetParams { - - return &StorageServiceLoadMapGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceLoadMapGetParamsWithContext creates a new StorageServiceLoadMapGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceLoadMapGetParamsWithContext(ctx context.Context) *StorageServiceLoadMapGetParams { - - return &StorageServiceLoadMapGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceLoadMapGetParamsWithHTTPClient creates a new StorageServiceLoadMapGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceLoadMapGetParamsWithHTTPClient(client *http.Client) *StorageServiceLoadMapGetParams { - - return &StorageServiceLoadMapGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceLoadMapGetParams contains all the parameters to send to the API endpoint -for the storage service load map get operation typically these are written to a http.Request -*/ -type StorageServiceLoadMapGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service load map get params -func (o *StorageServiceLoadMapGetParams) WithTimeout(timeout time.Duration) *StorageServiceLoadMapGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service load map get params -func (o *StorageServiceLoadMapGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service load map get params -func (o *StorageServiceLoadMapGetParams) WithContext(ctx context.Context) *StorageServiceLoadMapGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service load map get params -func (o *StorageServiceLoadMapGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service load map get params -func (o *StorageServiceLoadMapGetParams) WithHTTPClient(client *http.Client) *StorageServiceLoadMapGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service load map get params -func (o *StorageServiceLoadMapGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceLoadMapGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_load_map_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_load_map_get_responses.go deleted file mode 100644 index 45ece05225..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_load_map_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceLoadMapGetReader is a Reader for the StorageServiceLoadMapGet structure. -type StorageServiceLoadMapGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceLoadMapGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceLoadMapGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceLoadMapGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceLoadMapGetOK creates a StorageServiceLoadMapGetOK with default headers values -func NewStorageServiceLoadMapGetOK() *StorageServiceLoadMapGetOK { - return &StorageServiceLoadMapGetOK{} -} - -/* -StorageServiceLoadMapGetOK handles this case with default header values. - -Success -*/ -type StorageServiceLoadMapGetOK struct { - Payload []*models.MapStringDouble -} - -func (o *StorageServiceLoadMapGetOK) GetPayload() []*models.MapStringDouble { - return o.Payload -} - -func (o *StorageServiceLoadMapGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceLoadMapGetDefault creates a StorageServiceLoadMapGetDefault with default headers values -func NewStorageServiceLoadMapGetDefault(code int) *StorageServiceLoadMapGetDefault { - return &StorageServiceLoadMapGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceLoadMapGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceLoadMapGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service load map get default response -func (o *StorageServiceLoadMapGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceLoadMapGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceLoadMapGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceLoadMapGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_logging_level_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_logging_level_get_parameters.go deleted file mode 100644 index f52d345887..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_logging_level_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceLoggingLevelGetParams creates a new StorageServiceLoggingLevelGetParams object -// with the default values initialized. -func NewStorageServiceLoggingLevelGetParams() *StorageServiceLoggingLevelGetParams { - - return &StorageServiceLoggingLevelGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceLoggingLevelGetParamsWithTimeout creates a new StorageServiceLoggingLevelGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceLoggingLevelGetParamsWithTimeout(timeout time.Duration) *StorageServiceLoggingLevelGetParams { - - return &StorageServiceLoggingLevelGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceLoggingLevelGetParamsWithContext creates a new StorageServiceLoggingLevelGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceLoggingLevelGetParamsWithContext(ctx context.Context) *StorageServiceLoggingLevelGetParams { - - return &StorageServiceLoggingLevelGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceLoggingLevelGetParamsWithHTTPClient creates a new StorageServiceLoggingLevelGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceLoggingLevelGetParamsWithHTTPClient(client *http.Client) *StorageServiceLoggingLevelGetParams { - - return &StorageServiceLoggingLevelGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceLoggingLevelGetParams contains all the parameters to send to the API endpoint -for the storage service logging level get operation typically these are written to a http.Request -*/ -type StorageServiceLoggingLevelGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service logging level get params -func (o *StorageServiceLoggingLevelGetParams) WithTimeout(timeout time.Duration) *StorageServiceLoggingLevelGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service logging level get params -func (o *StorageServiceLoggingLevelGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service logging level get params -func (o *StorageServiceLoggingLevelGetParams) WithContext(ctx context.Context) *StorageServiceLoggingLevelGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service logging level get params -func (o *StorageServiceLoggingLevelGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service logging level get params -func (o *StorageServiceLoggingLevelGetParams) WithHTTPClient(client *http.Client) *StorageServiceLoggingLevelGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service logging level get params -func (o *StorageServiceLoggingLevelGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceLoggingLevelGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_logging_level_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_logging_level_get_responses.go deleted file mode 100644 index cde3b9924a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_logging_level_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceLoggingLevelGetReader is a Reader for the StorageServiceLoggingLevelGet structure. -type StorageServiceLoggingLevelGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceLoggingLevelGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceLoggingLevelGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceLoggingLevelGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceLoggingLevelGetOK creates a StorageServiceLoggingLevelGetOK with default headers values -func NewStorageServiceLoggingLevelGetOK() *StorageServiceLoggingLevelGetOK { - return &StorageServiceLoggingLevelGetOK{} -} - -/* -StorageServiceLoggingLevelGetOK handles this case with default header values. - -Success -*/ -type StorageServiceLoggingLevelGetOK struct { - Payload []*models.Mapper -} - -func (o *StorageServiceLoggingLevelGetOK) GetPayload() []*models.Mapper { - return o.Payload -} - -func (o *StorageServiceLoggingLevelGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceLoggingLevelGetDefault creates a StorageServiceLoggingLevelGetDefault with default headers values -func NewStorageServiceLoggingLevelGetDefault(code int) *StorageServiceLoggingLevelGetDefault { - return &StorageServiceLoggingLevelGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceLoggingLevelGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceLoggingLevelGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service logging level get default response -func (o *StorageServiceLoggingLevelGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceLoggingLevelGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceLoggingLevelGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceLoggingLevelGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_logging_level_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_logging_level_post_parameters.go deleted file mode 100644 index baa69463cc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_logging_level_post_parameters.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceLoggingLevelPostParams creates a new StorageServiceLoggingLevelPostParams object -// with the default values initialized. -func NewStorageServiceLoggingLevelPostParams() *StorageServiceLoggingLevelPostParams { - var () - return &StorageServiceLoggingLevelPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceLoggingLevelPostParamsWithTimeout creates a new StorageServiceLoggingLevelPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceLoggingLevelPostParamsWithTimeout(timeout time.Duration) *StorageServiceLoggingLevelPostParams { - var () - return &StorageServiceLoggingLevelPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceLoggingLevelPostParamsWithContext creates a new StorageServiceLoggingLevelPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceLoggingLevelPostParamsWithContext(ctx context.Context) *StorageServiceLoggingLevelPostParams { - var () - return &StorageServiceLoggingLevelPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceLoggingLevelPostParamsWithHTTPClient creates a new StorageServiceLoggingLevelPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceLoggingLevelPostParamsWithHTTPClient(client *http.Client) *StorageServiceLoggingLevelPostParams { - var () - return &StorageServiceLoggingLevelPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceLoggingLevelPostParams contains all the parameters to send to the API endpoint -for the storage service logging level post operation typically these are written to a http.Request -*/ -type StorageServiceLoggingLevelPostParams struct { - - /*ClassQualifier - The logger's classQualifer - - */ - ClassQualifier string - /*Level - The log level - - */ - Level string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service logging level post params -func (o *StorageServiceLoggingLevelPostParams) WithTimeout(timeout time.Duration) *StorageServiceLoggingLevelPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service logging level post params -func (o *StorageServiceLoggingLevelPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service logging level post params -func (o *StorageServiceLoggingLevelPostParams) WithContext(ctx context.Context) *StorageServiceLoggingLevelPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service logging level post params -func (o *StorageServiceLoggingLevelPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service logging level post params -func (o *StorageServiceLoggingLevelPostParams) WithHTTPClient(client *http.Client) *StorageServiceLoggingLevelPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service logging level post params -func (o *StorageServiceLoggingLevelPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithClassQualifier adds the classQualifier to the storage service logging level post params -func (o *StorageServiceLoggingLevelPostParams) WithClassQualifier(classQualifier string) *StorageServiceLoggingLevelPostParams { - o.SetClassQualifier(classQualifier) - return o -} - -// SetClassQualifier adds the classQualifier to the storage service logging level post params -func (o *StorageServiceLoggingLevelPostParams) SetClassQualifier(classQualifier string) { - o.ClassQualifier = classQualifier -} - -// WithLevel adds the level to the storage service logging level post params -func (o *StorageServiceLoggingLevelPostParams) WithLevel(level string) *StorageServiceLoggingLevelPostParams { - o.SetLevel(level) - return o -} - -// SetLevel adds the level to the storage service logging level post params -func (o *StorageServiceLoggingLevelPostParams) SetLevel(level string) { - o.Level = level -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceLoggingLevelPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param class_qualifier - qrClassQualifier := o.ClassQualifier - qClassQualifier := qrClassQualifier - if qClassQualifier != "" { - if err := r.SetQueryParam("class_qualifier", qClassQualifier); err != nil { - return err - } - } - - // query param level - qrLevel := o.Level - qLevel := qrLevel - if qLevel != "" { - if err := r.SetQueryParam("level", qLevel); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_logging_level_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_logging_level_post_responses.go deleted file mode 100644 index f9dae77e43..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_logging_level_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceLoggingLevelPostReader is a Reader for the StorageServiceLoggingLevelPost structure. -type StorageServiceLoggingLevelPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceLoggingLevelPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceLoggingLevelPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceLoggingLevelPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceLoggingLevelPostOK creates a StorageServiceLoggingLevelPostOK with default headers values -func NewStorageServiceLoggingLevelPostOK() *StorageServiceLoggingLevelPostOK { - return &StorageServiceLoggingLevelPostOK{} -} - -/* -StorageServiceLoggingLevelPostOK handles this case with default header values. - -Success -*/ -type StorageServiceLoggingLevelPostOK struct { -} - -func (o *StorageServiceLoggingLevelPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceLoggingLevelPostDefault creates a StorageServiceLoggingLevelPostDefault with default headers values -func NewStorageServiceLoggingLevelPostDefault(code int) *StorageServiceLoggingLevelPostDefault { - return &StorageServiceLoggingLevelPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceLoggingLevelPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceLoggingLevelPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service logging level post default response -func (o *StorageServiceLoggingLevelPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceLoggingLevelPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceLoggingLevelPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceLoggingLevelPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_exceptions_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_exceptions_get_parameters.go deleted file mode 100644 index 95d6b8f760..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_exceptions_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceMetricsExceptionsGetParams creates a new StorageServiceMetricsExceptionsGetParams object -// with the default values initialized. -func NewStorageServiceMetricsExceptionsGetParams() *StorageServiceMetricsExceptionsGetParams { - - return &StorageServiceMetricsExceptionsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceMetricsExceptionsGetParamsWithTimeout creates a new StorageServiceMetricsExceptionsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceMetricsExceptionsGetParamsWithTimeout(timeout time.Duration) *StorageServiceMetricsExceptionsGetParams { - - return &StorageServiceMetricsExceptionsGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceMetricsExceptionsGetParamsWithContext creates a new StorageServiceMetricsExceptionsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceMetricsExceptionsGetParamsWithContext(ctx context.Context) *StorageServiceMetricsExceptionsGetParams { - - return &StorageServiceMetricsExceptionsGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceMetricsExceptionsGetParamsWithHTTPClient creates a new StorageServiceMetricsExceptionsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceMetricsExceptionsGetParamsWithHTTPClient(client *http.Client) *StorageServiceMetricsExceptionsGetParams { - - return &StorageServiceMetricsExceptionsGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceMetricsExceptionsGetParams contains all the parameters to send to the API endpoint -for the storage service metrics exceptions get operation typically these are written to a http.Request -*/ -type StorageServiceMetricsExceptionsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service metrics exceptions get params -func (o *StorageServiceMetricsExceptionsGetParams) WithTimeout(timeout time.Duration) *StorageServiceMetricsExceptionsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service metrics exceptions get params -func (o *StorageServiceMetricsExceptionsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service metrics exceptions get params -func (o *StorageServiceMetricsExceptionsGetParams) WithContext(ctx context.Context) *StorageServiceMetricsExceptionsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service metrics exceptions get params -func (o *StorageServiceMetricsExceptionsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service metrics exceptions get params -func (o *StorageServiceMetricsExceptionsGetParams) WithHTTPClient(client *http.Client) *StorageServiceMetricsExceptionsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service metrics exceptions get params -func (o *StorageServiceMetricsExceptionsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceMetricsExceptionsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_exceptions_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_exceptions_get_responses.go deleted file mode 100644 index a9dc2a997d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_exceptions_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceMetricsExceptionsGetReader is a Reader for the StorageServiceMetricsExceptionsGet structure. -type StorageServiceMetricsExceptionsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceMetricsExceptionsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceMetricsExceptionsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceMetricsExceptionsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceMetricsExceptionsGetOK creates a StorageServiceMetricsExceptionsGetOK with default headers values -func NewStorageServiceMetricsExceptionsGetOK() *StorageServiceMetricsExceptionsGetOK { - return &StorageServiceMetricsExceptionsGetOK{} -} - -/* -StorageServiceMetricsExceptionsGetOK handles this case with default header values. - -Success -*/ -type StorageServiceMetricsExceptionsGetOK struct { - Payload int32 -} - -func (o *StorageServiceMetricsExceptionsGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageServiceMetricsExceptionsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceMetricsExceptionsGetDefault creates a StorageServiceMetricsExceptionsGetDefault with default headers values -func NewStorageServiceMetricsExceptionsGetDefault(code int) *StorageServiceMetricsExceptionsGetDefault { - return &StorageServiceMetricsExceptionsGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceMetricsExceptionsGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceMetricsExceptionsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service metrics exceptions get default response -func (o *StorageServiceMetricsExceptionsGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceMetricsExceptionsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceMetricsExceptionsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceMetricsExceptionsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_hints_in_progress_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_hints_in_progress_get_parameters.go deleted file mode 100644 index 8828fde126..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_hints_in_progress_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceMetricsHintsInProgressGetParams creates a new StorageServiceMetricsHintsInProgressGetParams object -// with the default values initialized. -func NewStorageServiceMetricsHintsInProgressGetParams() *StorageServiceMetricsHintsInProgressGetParams { - - return &StorageServiceMetricsHintsInProgressGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceMetricsHintsInProgressGetParamsWithTimeout creates a new StorageServiceMetricsHintsInProgressGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceMetricsHintsInProgressGetParamsWithTimeout(timeout time.Duration) *StorageServiceMetricsHintsInProgressGetParams { - - return &StorageServiceMetricsHintsInProgressGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceMetricsHintsInProgressGetParamsWithContext creates a new StorageServiceMetricsHintsInProgressGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceMetricsHintsInProgressGetParamsWithContext(ctx context.Context) *StorageServiceMetricsHintsInProgressGetParams { - - return &StorageServiceMetricsHintsInProgressGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceMetricsHintsInProgressGetParamsWithHTTPClient creates a new StorageServiceMetricsHintsInProgressGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceMetricsHintsInProgressGetParamsWithHTTPClient(client *http.Client) *StorageServiceMetricsHintsInProgressGetParams { - - return &StorageServiceMetricsHintsInProgressGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceMetricsHintsInProgressGetParams contains all the parameters to send to the API endpoint -for the storage service metrics hints in progress get operation typically these are written to a http.Request -*/ -type StorageServiceMetricsHintsInProgressGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service metrics hints in progress get params -func (o *StorageServiceMetricsHintsInProgressGetParams) WithTimeout(timeout time.Duration) *StorageServiceMetricsHintsInProgressGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service metrics hints in progress get params -func (o *StorageServiceMetricsHintsInProgressGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service metrics hints in progress get params -func (o *StorageServiceMetricsHintsInProgressGetParams) WithContext(ctx context.Context) *StorageServiceMetricsHintsInProgressGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service metrics hints in progress get params -func (o *StorageServiceMetricsHintsInProgressGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service metrics hints in progress get params -func (o *StorageServiceMetricsHintsInProgressGetParams) WithHTTPClient(client *http.Client) *StorageServiceMetricsHintsInProgressGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service metrics hints in progress get params -func (o *StorageServiceMetricsHintsInProgressGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceMetricsHintsInProgressGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_hints_in_progress_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_hints_in_progress_get_responses.go deleted file mode 100644 index 33d8e9fa52..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_hints_in_progress_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceMetricsHintsInProgressGetReader is a Reader for the StorageServiceMetricsHintsInProgressGet structure. -type StorageServiceMetricsHintsInProgressGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceMetricsHintsInProgressGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceMetricsHintsInProgressGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceMetricsHintsInProgressGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceMetricsHintsInProgressGetOK creates a StorageServiceMetricsHintsInProgressGetOK with default headers values -func NewStorageServiceMetricsHintsInProgressGetOK() *StorageServiceMetricsHintsInProgressGetOK { - return &StorageServiceMetricsHintsInProgressGetOK{} -} - -/* -StorageServiceMetricsHintsInProgressGetOK handles this case with default header values. - -Success -*/ -type StorageServiceMetricsHintsInProgressGetOK struct { - Payload int32 -} - -func (o *StorageServiceMetricsHintsInProgressGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageServiceMetricsHintsInProgressGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceMetricsHintsInProgressGetDefault creates a StorageServiceMetricsHintsInProgressGetDefault with default headers values -func NewStorageServiceMetricsHintsInProgressGetDefault(code int) *StorageServiceMetricsHintsInProgressGetDefault { - return &StorageServiceMetricsHintsInProgressGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceMetricsHintsInProgressGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceMetricsHintsInProgressGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service metrics hints in progress get default response -func (o *StorageServiceMetricsHintsInProgressGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceMetricsHintsInProgressGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceMetricsHintsInProgressGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceMetricsHintsInProgressGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_load_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_load_get_parameters.go deleted file mode 100644 index 2632ea1b79..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_load_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceMetricsLoadGetParams creates a new StorageServiceMetricsLoadGetParams object -// with the default values initialized. -func NewStorageServiceMetricsLoadGetParams() *StorageServiceMetricsLoadGetParams { - - return &StorageServiceMetricsLoadGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceMetricsLoadGetParamsWithTimeout creates a new StorageServiceMetricsLoadGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceMetricsLoadGetParamsWithTimeout(timeout time.Duration) *StorageServiceMetricsLoadGetParams { - - return &StorageServiceMetricsLoadGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceMetricsLoadGetParamsWithContext creates a new StorageServiceMetricsLoadGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceMetricsLoadGetParamsWithContext(ctx context.Context) *StorageServiceMetricsLoadGetParams { - - return &StorageServiceMetricsLoadGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceMetricsLoadGetParamsWithHTTPClient creates a new StorageServiceMetricsLoadGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceMetricsLoadGetParamsWithHTTPClient(client *http.Client) *StorageServiceMetricsLoadGetParams { - - return &StorageServiceMetricsLoadGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceMetricsLoadGetParams contains all the parameters to send to the API endpoint -for the storage service metrics load get operation typically these are written to a http.Request -*/ -type StorageServiceMetricsLoadGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service metrics load get params -func (o *StorageServiceMetricsLoadGetParams) WithTimeout(timeout time.Duration) *StorageServiceMetricsLoadGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service metrics load get params -func (o *StorageServiceMetricsLoadGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service metrics load get params -func (o *StorageServiceMetricsLoadGetParams) WithContext(ctx context.Context) *StorageServiceMetricsLoadGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service metrics load get params -func (o *StorageServiceMetricsLoadGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service metrics load get params -func (o *StorageServiceMetricsLoadGetParams) WithHTTPClient(client *http.Client) *StorageServiceMetricsLoadGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service metrics load get params -func (o *StorageServiceMetricsLoadGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceMetricsLoadGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_load_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_load_get_responses.go deleted file mode 100644 index e563f1288f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_load_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceMetricsLoadGetReader is a Reader for the StorageServiceMetricsLoadGet structure. -type StorageServiceMetricsLoadGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceMetricsLoadGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceMetricsLoadGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceMetricsLoadGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceMetricsLoadGetOK creates a StorageServiceMetricsLoadGetOK with default headers values -func NewStorageServiceMetricsLoadGetOK() *StorageServiceMetricsLoadGetOK { - return &StorageServiceMetricsLoadGetOK{} -} - -/* -StorageServiceMetricsLoadGetOK handles this case with default header values. - -Success -*/ -type StorageServiceMetricsLoadGetOK struct { - Payload int32 -} - -func (o *StorageServiceMetricsLoadGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageServiceMetricsLoadGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceMetricsLoadGetDefault creates a StorageServiceMetricsLoadGetDefault with default headers values -func NewStorageServiceMetricsLoadGetDefault(code int) *StorageServiceMetricsLoadGetDefault { - return &StorageServiceMetricsLoadGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceMetricsLoadGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceMetricsLoadGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service metrics load get default response -func (o *StorageServiceMetricsLoadGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceMetricsLoadGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceMetricsLoadGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceMetricsLoadGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_total_hints_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_total_hints_get_parameters.go deleted file mode 100644 index 3e26ad677c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_total_hints_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceMetricsTotalHintsGetParams creates a new StorageServiceMetricsTotalHintsGetParams object -// with the default values initialized. -func NewStorageServiceMetricsTotalHintsGetParams() *StorageServiceMetricsTotalHintsGetParams { - - return &StorageServiceMetricsTotalHintsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceMetricsTotalHintsGetParamsWithTimeout creates a new StorageServiceMetricsTotalHintsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceMetricsTotalHintsGetParamsWithTimeout(timeout time.Duration) *StorageServiceMetricsTotalHintsGetParams { - - return &StorageServiceMetricsTotalHintsGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceMetricsTotalHintsGetParamsWithContext creates a new StorageServiceMetricsTotalHintsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceMetricsTotalHintsGetParamsWithContext(ctx context.Context) *StorageServiceMetricsTotalHintsGetParams { - - return &StorageServiceMetricsTotalHintsGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceMetricsTotalHintsGetParamsWithHTTPClient creates a new StorageServiceMetricsTotalHintsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceMetricsTotalHintsGetParamsWithHTTPClient(client *http.Client) *StorageServiceMetricsTotalHintsGetParams { - - return &StorageServiceMetricsTotalHintsGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceMetricsTotalHintsGetParams contains all the parameters to send to the API endpoint -for the storage service metrics total hints get operation typically these are written to a http.Request -*/ -type StorageServiceMetricsTotalHintsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service metrics total hints get params -func (o *StorageServiceMetricsTotalHintsGetParams) WithTimeout(timeout time.Duration) *StorageServiceMetricsTotalHintsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service metrics total hints get params -func (o *StorageServiceMetricsTotalHintsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service metrics total hints get params -func (o *StorageServiceMetricsTotalHintsGetParams) WithContext(ctx context.Context) *StorageServiceMetricsTotalHintsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service metrics total hints get params -func (o *StorageServiceMetricsTotalHintsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service metrics total hints get params -func (o *StorageServiceMetricsTotalHintsGetParams) WithHTTPClient(client *http.Client) *StorageServiceMetricsTotalHintsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service metrics total hints get params -func (o *StorageServiceMetricsTotalHintsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceMetricsTotalHintsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_total_hints_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_total_hints_get_responses.go deleted file mode 100644 index 22baca2d1a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_metrics_total_hints_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceMetricsTotalHintsGetReader is a Reader for the StorageServiceMetricsTotalHintsGet structure. -type StorageServiceMetricsTotalHintsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceMetricsTotalHintsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceMetricsTotalHintsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceMetricsTotalHintsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceMetricsTotalHintsGetOK creates a StorageServiceMetricsTotalHintsGetOK with default headers values -func NewStorageServiceMetricsTotalHintsGetOK() *StorageServiceMetricsTotalHintsGetOK { - return &StorageServiceMetricsTotalHintsGetOK{} -} - -/* -StorageServiceMetricsTotalHintsGetOK handles this case with default header values. - -Success -*/ -type StorageServiceMetricsTotalHintsGetOK struct { - Payload int32 -} - -func (o *StorageServiceMetricsTotalHintsGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageServiceMetricsTotalHintsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceMetricsTotalHintsGetDefault creates a StorageServiceMetricsTotalHintsGetDefault with default headers values -func NewStorageServiceMetricsTotalHintsGetDefault(code int) *StorageServiceMetricsTotalHintsGetDefault { - return &StorageServiceMetricsTotalHintsGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceMetricsTotalHintsGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceMetricsTotalHintsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service metrics total hints get default response -func (o *StorageServiceMetricsTotalHintsGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceMetricsTotalHintsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceMetricsTotalHintsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceMetricsTotalHintsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_move_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_move_post_parameters.go deleted file mode 100644 index 72590b8a18..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_move_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceMovePostParams creates a new StorageServiceMovePostParams object -// with the default values initialized. -func NewStorageServiceMovePostParams() *StorageServiceMovePostParams { - var () - return &StorageServiceMovePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceMovePostParamsWithTimeout creates a new StorageServiceMovePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceMovePostParamsWithTimeout(timeout time.Duration) *StorageServiceMovePostParams { - var () - return &StorageServiceMovePostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceMovePostParamsWithContext creates a new StorageServiceMovePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceMovePostParamsWithContext(ctx context.Context) *StorageServiceMovePostParams { - var () - return &StorageServiceMovePostParams{ - - Context: ctx, - } -} - -// NewStorageServiceMovePostParamsWithHTTPClient creates a new StorageServiceMovePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceMovePostParamsWithHTTPClient(client *http.Client) *StorageServiceMovePostParams { - var () - return &StorageServiceMovePostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceMovePostParams contains all the parameters to send to the API endpoint -for the storage service move post operation typically these are written to a http.Request -*/ -type StorageServiceMovePostParams struct { - - /*NewToken - token to move this node to - - */ - NewToken string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service move post params -func (o *StorageServiceMovePostParams) WithTimeout(timeout time.Duration) *StorageServiceMovePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service move post params -func (o *StorageServiceMovePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service move post params -func (o *StorageServiceMovePostParams) WithContext(ctx context.Context) *StorageServiceMovePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service move post params -func (o *StorageServiceMovePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service move post params -func (o *StorageServiceMovePostParams) WithHTTPClient(client *http.Client) *StorageServiceMovePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service move post params -func (o *StorageServiceMovePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithNewToken adds the newToken to the storage service move post params -func (o *StorageServiceMovePostParams) WithNewToken(newToken string) *StorageServiceMovePostParams { - o.SetNewToken(newToken) - return o -} - -// SetNewToken adds the newToken to the storage service move post params -func (o *StorageServiceMovePostParams) SetNewToken(newToken string) { - o.NewToken = newToken -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceMovePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param new_token - qrNewToken := o.NewToken - qNewToken := qrNewToken - if qNewToken != "" { - if err := r.SetQueryParam("new_token", qNewToken); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_move_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_move_post_responses.go deleted file mode 100644 index 811c4ab943..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_move_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceMovePostReader is a Reader for the StorageServiceMovePost structure. -type StorageServiceMovePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceMovePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceMovePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceMovePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceMovePostOK creates a StorageServiceMovePostOK with default headers values -func NewStorageServiceMovePostOK() *StorageServiceMovePostOK { - return &StorageServiceMovePostOK{} -} - -/* -StorageServiceMovePostOK handles this case with default header values. - -Success -*/ -type StorageServiceMovePostOK struct { -} - -func (o *StorageServiceMovePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceMovePostDefault creates a StorageServiceMovePostDefault with default headers values -func NewStorageServiceMovePostDefault(code int) *StorageServiceMovePostDefault { - return &StorageServiceMovePostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceMovePostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceMovePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service move post default response -func (o *StorageServiceMovePostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceMovePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceMovePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceMovePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_native_transport_delete_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_native_transport_delete_parameters.go deleted file mode 100644 index 6c8d0b8871..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_native_transport_delete_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceNativeTransportDeleteParams creates a new StorageServiceNativeTransportDeleteParams object -// with the default values initialized. -func NewStorageServiceNativeTransportDeleteParams() *StorageServiceNativeTransportDeleteParams { - - return &StorageServiceNativeTransportDeleteParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceNativeTransportDeleteParamsWithTimeout creates a new StorageServiceNativeTransportDeleteParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceNativeTransportDeleteParamsWithTimeout(timeout time.Duration) *StorageServiceNativeTransportDeleteParams { - - return &StorageServiceNativeTransportDeleteParams{ - - timeout: timeout, - } -} - -// NewStorageServiceNativeTransportDeleteParamsWithContext creates a new StorageServiceNativeTransportDeleteParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceNativeTransportDeleteParamsWithContext(ctx context.Context) *StorageServiceNativeTransportDeleteParams { - - return &StorageServiceNativeTransportDeleteParams{ - - Context: ctx, - } -} - -// NewStorageServiceNativeTransportDeleteParamsWithHTTPClient creates a new StorageServiceNativeTransportDeleteParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceNativeTransportDeleteParamsWithHTTPClient(client *http.Client) *StorageServiceNativeTransportDeleteParams { - - return &StorageServiceNativeTransportDeleteParams{ - HTTPClient: client, - } -} - -/* -StorageServiceNativeTransportDeleteParams contains all the parameters to send to the API endpoint -for the storage service native transport delete operation typically these are written to a http.Request -*/ -type StorageServiceNativeTransportDeleteParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service native transport delete params -func (o *StorageServiceNativeTransportDeleteParams) WithTimeout(timeout time.Duration) *StorageServiceNativeTransportDeleteParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service native transport delete params -func (o *StorageServiceNativeTransportDeleteParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service native transport delete params -func (o *StorageServiceNativeTransportDeleteParams) WithContext(ctx context.Context) *StorageServiceNativeTransportDeleteParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service native transport delete params -func (o *StorageServiceNativeTransportDeleteParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service native transport delete params -func (o *StorageServiceNativeTransportDeleteParams) WithHTTPClient(client *http.Client) *StorageServiceNativeTransportDeleteParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service native transport delete params -func (o *StorageServiceNativeTransportDeleteParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceNativeTransportDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_native_transport_delete_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_native_transport_delete_responses.go deleted file mode 100644 index 8f5fbcc88d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_native_transport_delete_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceNativeTransportDeleteReader is a Reader for the StorageServiceNativeTransportDelete structure. -type StorageServiceNativeTransportDeleteReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceNativeTransportDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceNativeTransportDeleteOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceNativeTransportDeleteDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceNativeTransportDeleteOK creates a StorageServiceNativeTransportDeleteOK with default headers values -func NewStorageServiceNativeTransportDeleteOK() *StorageServiceNativeTransportDeleteOK { - return &StorageServiceNativeTransportDeleteOK{} -} - -/* -StorageServiceNativeTransportDeleteOK handles this case with default header values. - -Success -*/ -type StorageServiceNativeTransportDeleteOK struct { -} - -func (o *StorageServiceNativeTransportDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceNativeTransportDeleteDefault creates a StorageServiceNativeTransportDeleteDefault with default headers values -func NewStorageServiceNativeTransportDeleteDefault(code int) *StorageServiceNativeTransportDeleteDefault { - return &StorageServiceNativeTransportDeleteDefault{ - _statusCode: code, - } -} - -/* -StorageServiceNativeTransportDeleteDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceNativeTransportDeleteDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service native transport delete default response -func (o *StorageServiceNativeTransportDeleteDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceNativeTransportDeleteDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceNativeTransportDeleteDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceNativeTransportDeleteDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_native_transport_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_native_transport_get_parameters.go deleted file mode 100644 index ad2914b9bf..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_native_transport_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceNativeTransportGetParams creates a new StorageServiceNativeTransportGetParams object -// with the default values initialized. -func NewStorageServiceNativeTransportGetParams() *StorageServiceNativeTransportGetParams { - - return &StorageServiceNativeTransportGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceNativeTransportGetParamsWithTimeout creates a new StorageServiceNativeTransportGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceNativeTransportGetParamsWithTimeout(timeout time.Duration) *StorageServiceNativeTransportGetParams { - - return &StorageServiceNativeTransportGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceNativeTransportGetParamsWithContext creates a new StorageServiceNativeTransportGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceNativeTransportGetParamsWithContext(ctx context.Context) *StorageServiceNativeTransportGetParams { - - return &StorageServiceNativeTransportGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceNativeTransportGetParamsWithHTTPClient creates a new StorageServiceNativeTransportGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceNativeTransportGetParamsWithHTTPClient(client *http.Client) *StorageServiceNativeTransportGetParams { - - return &StorageServiceNativeTransportGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceNativeTransportGetParams contains all the parameters to send to the API endpoint -for the storage service native transport get operation typically these are written to a http.Request -*/ -type StorageServiceNativeTransportGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service native transport get params -func (o *StorageServiceNativeTransportGetParams) WithTimeout(timeout time.Duration) *StorageServiceNativeTransportGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service native transport get params -func (o *StorageServiceNativeTransportGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service native transport get params -func (o *StorageServiceNativeTransportGetParams) WithContext(ctx context.Context) *StorageServiceNativeTransportGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service native transport get params -func (o *StorageServiceNativeTransportGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service native transport get params -func (o *StorageServiceNativeTransportGetParams) WithHTTPClient(client *http.Client) *StorageServiceNativeTransportGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service native transport get params -func (o *StorageServiceNativeTransportGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceNativeTransportGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_native_transport_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_native_transport_get_responses.go deleted file mode 100644 index 964fc4a06b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_native_transport_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceNativeTransportGetReader is a Reader for the StorageServiceNativeTransportGet structure. -type StorageServiceNativeTransportGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceNativeTransportGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceNativeTransportGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceNativeTransportGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceNativeTransportGetOK creates a StorageServiceNativeTransportGetOK with default headers values -func NewStorageServiceNativeTransportGetOK() *StorageServiceNativeTransportGetOK { - return &StorageServiceNativeTransportGetOK{} -} - -/* -StorageServiceNativeTransportGetOK handles this case with default header values. - -Success -*/ -type StorageServiceNativeTransportGetOK struct { - Payload bool -} - -func (o *StorageServiceNativeTransportGetOK) GetPayload() bool { - return o.Payload -} - -func (o *StorageServiceNativeTransportGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceNativeTransportGetDefault creates a StorageServiceNativeTransportGetDefault with default headers values -func NewStorageServiceNativeTransportGetDefault(code int) *StorageServiceNativeTransportGetDefault { - return &StorageServiceNativeTransportGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceNativeTransportGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceNativeTransportGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service native transport get default response -func (o *StorageServiceNativeTransportGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceNativeTransportGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceNativeTransportGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceNativeTransportGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_native_transport_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_native_transport_post_parameters.go deleted file mode 100644 index 270786e272..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_native_transport_post_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceNativeTransportPostParams creates a new StorageServiceNativeTransportPostParams object -// with the default values initialized. -func NewStorageServiceNativeTransportPostParams() *StorageServiceNativeTransportPostParams { - - return &StorageServiceNativeTransportPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceNativeTransportPostParamsWithTimeout creates a new StorageServiceNativeTransportPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceNativeTransportPostParamsWithTimeout(timeout time.Duration) *StorageServiceNativeTransportPostParams { - - return &StorageServiceNativeTransportPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceNativeTransportPostParamsWithContext creates a new StorageServiceNativeTransportPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceNativeTransportPostParamsWithContext(ctx context.Context) *StorageServiceNativeTransportPostParams { - - return &StorageServiceNativeTransportPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceNativeTransportPostParamsWithHTTPClient creates a new StorageServiceNativeTransportPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceNativeTransportPostParamsWithHTTPClient(client *http.Client) *StorageServiceNativeTransportPostParams { - - return &StorageServiceNativeTransportPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceNativeTransportPostParams contains all the parameters to send to the API endpoint -for the storage service native transport post operation typically these are written to a http.Request -*/ -type StorageServiceNativeTransportPostParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service native transport post params -func (o *StorageServiceNativeTransportPostParams) WithTimeout(timeout time.Duration) *StorageServiceNativeTransportPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service native transport post params -func (o *StorageServiceNativeTransportPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service native transport post params -func (o *StorageServiceNativeTransportPostParams) WithContext(ctx context.Context) *StorageServiceNativeTransportPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service native transport post params -func (o *StorageServiceNativeTransportPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service native transport post params -func (o *StorageServiceNativeTransportPostParams) WithHTTPClient(client *http.Client) *StorageServiceNativeTransportPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service native transport post params -func (o *StorageServiceNativeTransportPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceNativeTransportPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_native_transport_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_native_transport_post_responses.go deleted file mode 100644 index 96c994a130..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_native_transport_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceNativeTransportPostReader is a Reader for the StorageServiceNativeTransportPost structure. -type StorageServiceNativeTransportPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceNativeTransportPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceNativeTransportPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceNativeTransportPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceNativeTransportPostOK creates a StorageServiceNativeTransportPostOK with default headers values -func NewStorageServiceNativeTransportPostOK() *StorageServiceNativeTransportPostOK { - return &StorageServiceNativeTransportPostOK{} -} - -/* -StorageServiceNativeTransportPostOK handles this case with default header values. - -Success -*/ -type StorageServiceNativeTransportPostOK struct { -} - -func (o *StorageServiceNativeTransportPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceNativeTransportPostDefault creates a StorageServiceNativeTransportPostDefault with default headers values -func NewStorageServiceNativeTransportPostDefault(code int) *StorageServiceNativeTransportPostDefault { - return &StorageServiceNativeTransportPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceNativeTransportPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceNativeTransportPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service native transport post default response -func (o *StorageServiceNativeTransportPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceNativeTransportPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceNativeTransportPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceNativeTransportPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_natural_endpoints_by_keyspace_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_natural_endpoints_by_keyspace_get_parameters.go deleted file mode 100644 index c6827063fc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_natural_endpoints_by_keyspace_get_parameters.go +++ /dev/null @@ -1,186 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceNaturalEndpointsByKeyspaceGetParams creates a new StorageServiceNaturalEndpointsByKeyspaceGetParams object -// with the default values initialized. -func NewStorageServiceNaturalEndpointsByKeyspaceGetParams() *StorageServiceNaturalEndpointsByKeyspaceGetParams { - var () - return &StorageServiceNaturalEndpointsByKeyspaceGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceNaturalEndpointsByKeyspaceGetParamsWithTimeout creates a new StorageServiceNaturalEndpointsByKeyspaceGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceNaturalEndpointsByKeyspaceGetParamsWithTimeout(timeout time.Duration) *StorageServiceNaturalEndpointsByKeyspaceGetParams { - var () - return &StorageServiceNaturalEndpointsByKeyspaceGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceNaturalEndpointsByKeyspaceGetParamsWithContext creates a new StorageServiceNaturalEndpointsByKeyspaceGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceNaturalEndpointsByKeyspaceGetParamsWithContext(ctx context.Context) *StorageServiceNaturalEndpointsByKeyspaceGetParams { - var () - return &StorageServiceNaturalEndpointsByKeyspaceGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceNaturalEndpointsByKeyspaceGetParamsWithHTTPClient creates a new StorageServiceNaturalEndpointsByKeyspaceGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceNaturalEndpointsByKeyspaceGetParamsWithHTTPClient(client *http.Client) *StorageServiceNaturalEndpointsByKeyspaceGetParams { - var () - return &StorageServiceNaturalEndpointsByKeyspaceGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceNaturalEndpointsByKeyspaceGetParams contains all the parameters to send to the API endpoint -for the storage service natural endpoints by keyspace get operation typically these are written to a http.Request -*/ -type StorageServiceNaturalEndpointsByKeyspaceGetParams struct { - - /*Cf - Column family name - - */ - Cf string - /*Key - key for which we need to find the endpoint return value - the endpoint responsible for this key - - */ - Key string - /*Keyspace - The keyspace to query about - - */ - Keyspace string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service natural endpoints by keyspace get params -func (o *StorageServiceNaturalEndpointsByKeyspaceGetParams) WithTimeout(timeout time.Duration) *StorageServiceNaturalEndpointsByKeyspaceGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service natural endpoints by keyspace get params -func (o *StorageServiceNaturalEndpointsByKeyspaceGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service natural endpoints by keyspace get params -func (o *StorageServiceNaturalEndpointsByKeyspaceGetParams) WithContext(ctx context.Context) *StorageServiceNaturalEndpointsByKeyspaceGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service natural endpoints by keyspace get params -func (o *StorageServiceNaturalEndpointsByKeyspaceGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service natural endpoints by keyspace get params -func (o *StorageServiceNaturalEndpointsByKeyspaceGetParams) WithHTTPClient(client *http.Client) *StorageServiceNaturalEndpointsByKeyspaceGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service natural endpoints by keyspace get params -func (o *StorageServiceNaturalEndpointsByKeyspaceGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCf adds the cf to the storage service natural endpoints by keyspace get params -func (o *StorageServiceNaturalEndpointsByKeyspaceGetParams) WithCf(cf string) *StorageServiceNaturalEndpointsByKeyspaceGetParams { - o.SetCf(cf) - return o -} - -// SetCf adds the cf to the storage service natural endpoints by keyspace get params -func (o *StorageServiceNaturalEndpointsByKeyspaceGetParams) SetCf(cf string) { - o.Cf = cf -} - -// WithKey adds the key to the storage service natural endpoints by keyspace get params -func (o *StorageServiceNaturalEndpointsByKeyspaceGetParams) WithKey(key string) *StorageServiceNaturalEndpointsByKeyspaceGetParams { - o.SetKey(key) - return o -} - -// SetKey adds the key to the storage service natural endpoints by keyspace get params -func (o *StorageServiceNaturalEndpointsByKeyspaceGetParams) SetKey(key string) { - o.Key = key -} - -// WithKeyspace adds the keyspace to the storage service natural endpoints by keyspace get params -func (o *StorageServiceNaturalEndpointsByKeyspaceGetParams) WithKeyspace(keyspace string) *StorageServiceNaturalEndpointsByKeyspaceGetParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the storage service natural endpoints by keyspace get params -func (o *StorageServiceNaturalEndpointsByKeyspaceGetParams) SetKeyspace(keyspace string) { - o.Keyspace = keyspace -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceNaturalEndpointsByKeyspaceGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param cf - qrCf := o.Cf - qCf := qrCf - if qCf != "" { - if err := r.SetQueryParam("cf", qCf); err != nil { - return err - } - } - - // query param key - qrKey := o.Key - qKey := qrKey - if qKey != "" { - if err := r.SetQueryParam("key", qKey); err != nil { - return err - } - } - - // path param keyspace - if err := r.SetPathParam("keyspace", o.Keyspace); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_natural_endpoints_by_keyspace_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_natural_endpoints_by_keyspace_get_responses.go deleted file mode 100644 index a6e4279bb8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_natural_endpoints_by_keyspace_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceNaturalEndpointsByKeyspaceGetReader is a Reader for the StorageServiceNaturalEndpointsByKeyspaceGet structure. -type StorageServiceNaturalEndpointsByKeyspaceGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceNaturalEndpointsByKeyspaceGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceNaturalEndpointsByKeyspaceGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceNaturalEndpointsByKeyspaceGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceNaturalEndpointsByKeyspaceGetOK creates a StorageServiceNaturalEndpointsByKeyspaceGetOK with default headers values -func NewStorageServiceNaturalEndpointsByKeyspaceGetOK() *StorageServiceNaturalEndpointsByKeyspaceGetOK { - return &StorageServiceNaturalEndpointsByKeyspaceGetOK{} -} - -/* -StorageServiceNaturalEndpointsByKeyspaceGetOK handles this case with default header values. - -Success -*/ -type StorageServiceNaturalEndpointsByKeyspaceGetOK struct { - Payload []string -} - -func (o *StorageServiceNaturalEndpointsByKeyspaceGetOK) GetPayload() []string { - return o.Payload -} - -func (o *StorageServiceNaturalEndpointsByKeyspaceGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceNaturalEndpointsByKeyspaceGetDefault creates a StorageServiceNaturalEndpointsByKeyspaceGetDefault with default headers values -func NewStorageServiceNaturalEndpointsByKeyspaceGetDefault(code int) *StorageServiceNaturalEndpointsByKeyspaceGetDefault { - return &StorageServiceNaturalEndpointsByKeyspaceGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceNaturalEndpointsByKeyspaceGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceNaturalEndpointsByKeyspaceGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service natural endpoints by keyspace get default response -func (o *StorageServiceNaturalEndpointsByKeyspaceGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceNaturalEndpointsByKeyspaceGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceNaturalEndpointsByKeyspaceGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceNaturalEndpointsByKeyspaceGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_nodes_joining_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_nodes_joining_get_parameters.go deleted file mode 100644 index 21efe66ad2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_nodes_joining_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceNodesJoiningGetParams creates a new StorageServiceNodesJoiningGetParams object -// with the default values initialized. -func NewStorageServiceNodesJoiningGetParams() *StorageServiceNodesJoiningGetParams { - - return &StorageServiceNodesJoiningGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceNodesJoiningGetParamsWithTimeout creates a new StorageServiceNodesJoiningGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceNodesJoiningGetParamsWithTimeout(timeout time.Duration) *StorageServiceNodesJoiningGetParams { - - return &StorageServiceNodesJoiningGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceNodesJoiningGetParamsWithContext creates a new StorageServiceNodesJoiningGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceNodesJoiningGetParamsWithContext(ctx context.Context) *StorageServiceNodesJoiningGetParams { - - return &StorageServiceNodesJoiningGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceNodesJoiningGetParamsWithHTTPClient creates a new StorageServiceNodesJoiningGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceNodesJoiningGetParamsWithHTTPClient(client *http.Client) *StorageServiceNodesJoiningGetParams { - - return &StorageServiceNodesJoiningGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceNodesJoiningGetParams contains all the parameters to send to the API endpoint -for the storage service nodes joining get operation typically these are written to a http.Request -*/ -type StorageServiceNodesJoiningGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service nodes joining get params -func (o *StorageServiceNodesJoiningGetParams) WithTimeout(timeout time.Duration) *StorageServiceNodesJoiningGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service nodes joining get params -func (o *StorageServiceNodesJoiningGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service nodes joining get params -func (o *StorageServiceNodesJoiningGetParams) WithContext(ctx context.Context) *StorageServiceNodesJoiningGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service nodes joining get params -func (o *StorageServiceNodesJoiningGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service nodes joining get params -func (o *StorageServiceNodesJoiningGetParams) WithHTTPClient(client *http.Client) *StorageServiceNodesJoiningGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service nodes joining get params -func (o *StorageServiceNodesJoiningGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceNodesJoiningGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_nodes_joining_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_nodes_joining_get_responses.go deleted file mode 100644 index cb1f5dacbf..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_nodes_joining_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceNodesJoiningGetReader is a Reader for the StorageServiceNodesJoiningGet structure. -type StorageServiceNodesJoiningGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceNodesJoiningGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceNodesJoiningGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceNodesJoiningGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceNodesJoiningGetOK creates a StorageServiceNodesJoiningGetOK with default headers values -func NewStorageServiceNodesJoiningGetOK() *StorageServiceNodesJoiningGetOK { - return &StorageServiceNodesJoiningGetOK{} -} - -/* -StorageServiceNodesJoiningGetOK handles this case with default header values. - -Success -*/ -type StorageServiceNodesJoiningGetOK struct { - Payload []string -} - -func (o *StorageServiceNodesJoiningGetOK) GetPayload() []string { - return o.Payload -} - -func (o *StorageServiceNodesJoiningGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceNodesJoiningGetDefault creates a StorageServiceNodesJoiningGetDefault with default headers values -func NewStorageServiceNodesJoiningGetDefault(code int) *StorageServiceNodesJoiningGetDefault { - return &StorageServiceNodesJoiningGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceNodesJoiningGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceNodesJoiningGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service nodes joining get default response -func (o *StorageServiceNodesJoiningGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceNodesJoiningGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceNodesJoiningGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceNodesJoiningGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_nodes_leaving_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_nodes_leaving_get_parameters.go deleted file mode 100644 index 23a4354520..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_nodes_leaving_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceNodesLeavingGetParams creates a new StorageServiceNodesLeavingGetParams object -// with the default values initialized. -func NewStorageServiceNodesLeavingGetParams() *StorageServiceNodesLeavingGetParams { - - return &StorageServiceNodesLeavingGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceNodesLeavingGetParamsWithTimeout creates a new StorageServiceNodesLeavingGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceNodesLeavingGetParamsWithTimeout(timeout time.Duration) *StorageServiceNodesLeavingGetParams { - - return &StorageServiceNodesLeavingGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceNodesLeavingGetParamsWithContext creates a new StorageServiceNodesLeavingGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceNodesLeavingGetParamsWithContext(ctx context.Context) *StorageServiceNodesLeavingGetParams { - - return &StorageServiceNodesLeavingGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceNodesLeavingGetParamsWithHTTPClient creates a new StorageServiceNodesLeavingGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceNodesLeavingGetParamsWithHTTPClient(client *http.Client) *StorageServiceNodesLeavingGetParams { - - return &StorageServiceNodesLeavingGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceNodesLeavingGetParams contains all the parameters to send to the API endpoint -for the storage service nodes leaving get operation typically these are written to a http.Request -*/ -type StorageServiceNodesLeavingGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service nodes leaving get params -func (o *StorageServiceNodesLeavingGetParams) WithTimeout(timeout time.Duration) *StorageServiceNodesLeavingGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service nodes leaving get params -func (o *StorageServiceNodesLeavingGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service nodes leaving get params -func (o *StorageServiceNodesLeavingGetParams) WithContext(ctx context.Context) *StorageServiceNodesLeavingGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service nodes leaving get params -func (o *StorageServiceNodesLeavingGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service nodes leaving get params -func (o *StorageServiceNodesLeavingGetParams) WithHTTPClient(client *http.Client) *StorageServiceNodesLeavingGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service nodes leaving get params -func (o *StorageServiceNodesLeavingGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceNodesLeavingGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_nodes_leaving_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_nodes_leaving_get_responses.go deleted file mode 100644 index 14c17a751a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_nodes_leaving_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceNodesLeavingGetReader is a Reader for the StorageServiceNodesLeavingGet structure. -type StorageServiceNodesLeavingGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceNodesLeavingGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceNodesLeavingGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceNodesLeavingGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceNodesLeavingGetOK creates a StorageServiceNodesLeavingGetOK with default headers values -func NewStorageServiceNodesLeavingGetOK() *StorageServiceNodesLeavingGetOK { - return &StorageServiceNodesLeavingGetOK{} -} - -/* -StorageServiceNodesLeavingGetOK handles this case with default header values. - -Success -*/ -type StorageServiceNodesLeavingGetOK struct { - Payload []string -} - -func (o *StorageServiceNodesLeavingGetOK) GetPayload() []string { - return o.Payload -} - -func (o *StorageServiceNodesLeavingGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceNodesLeavingGetDefault creates a StorageServiceNodesLeavingGetDefault with default headers values -func NewStorageServiceNodesLeavingGetDefault(code int) *StorageServiceNodesLeavingGetDefault { - return &StorageServiceNodesLeavingGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceNodesLeavingGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceNodesLeavingGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service nodes leaving get default response -func (o *StorageServiceNodesLeavingGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceNodesLeavingGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceNodesLeavingGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceNodesLeavingGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_nodes_moving_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_nodes_moving_get_parameters.go deleted file mode 100644 index be9eeb4699..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_nodes_moving_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceNodesMovingGetParams creates a new StorageServiceNodesMovingGetParams object -// with the default values initialized. -func NewStorageServiceNodesMovingGetParams() *StorageServiceNodesMovingGetParams { - - return &StorageServiceNodesMovingGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceNodesMovingGetParamsWithTimeout creates a new StorageServiceNodesMovingGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceNodesMovingGetParamsWithTimeout(timeout time.Duration) *StorageServiceNodesMovingGetParams { - - return &StorageServiceNodesMovingGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceNodesMovingGetParamsWithContext creates a new StorageServiceNodesMovingGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceNodesMovingGetParamsWithContext(ctx context.Context) *StorageServiceNodesMovingGetParams { - - return &StorageServiceNodesMovingGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceNodesMovingGetParamsWithHTTPClient creates a new StorageServiceNodesMovingGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceNodesMovingGetParamsWithHTTPClient(client *http.Client) *StorageServiceNodesMovingGetParams { - - return &StorageServiceNodesMovingGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceNodesMovingGetParams contains all the parameters to send to the API endpoint -for the storage service nodes moving get operation typically these are written to a http.Request -*/ -type StorageServiceNodesMovingGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service nodes moving get params -func (o *StorageServiceNodesMovingGetParams) WithTimeout(timeout time.Duration) *StorageServiceNodesMovingGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service nodes moving get params -func (o *StorageServiceNodesMovingGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service nodes moving get params -func (o *StorageServiceNodesMovingGetParams) WithContext(ctx context.Context) *StorageServiceNodesMovingGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service nodes moving get params -func (o *StorageServiceNodesMovingGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service nodes moving get params -func (o *StorageServiceNodesMovingGetParams) WithHTTPClient(client *http.Client) *StorageServiceNodesMovingGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service nodes moving get params -func (o *StorageServiceNodesMovingGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceNodesMovingGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_nodes_moving_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_nodes_moving_get_responses.go deleted file mode 100644 index 72b2e1acbc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_nodes_moving_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceNodesMovingGetReader is a Reader for the StorageServiceNodesMovingGet structure. -type StorageServiceNodesMovingGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceNodesMovingGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceNodesMovingGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceNodesMovingGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceNodesMovingGetOK creates a StorageServiceNodesMovingGetOK with default headers values -func NewStorageServiceNodesMovingGetOK() *StorageServiceNodesMovingGetOK { - return &StorageServiceNodesMovingGetOK{} -} - -/* -StorageServiceNodesMovingGetOK handles this case with default header values. - -Success -*/ -type StorageServiceNodesMovingGetOK struct { - Payload []string -} - -func (o *StorageServiceNodesMovingGetOK) GetPayload() []string { - return o.Payload -} - -func (o *StorageServiceNodesMovingGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceNodesMovingGetDefault creates a StorageServiceNodesMovingGetDefault with default headers values -func NewStorageServiceNodesMovingGetDefault(code int) *StorageServiceNodesMovingGetDefault { - return &StorageServiceNodesMovingGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceNodesMovingGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceNodesMovingGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service nodes moving get default response -func (o *StorageServiceNodesMovingGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceNodesMovingGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceNodesMovingGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceNodesMovingGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_operation_mode_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_operation_mode_get_parameters.go deleted file mode 100644 index 0306bcae1c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_operation_mode_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceOperationModeGetParams creates a new StorageServiceOperationModeGetParams object -// with the default values initialized. -func NewStorageServiceOperationModeGetParams() *StorageServiceOperationModeGetParams { - - return &StorageServiceOperationModeGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceOperationModeGetParamsWithTimeout creates a new StorageServiceOperationModeGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceOperationModeGetParamsWithTimeout(timeout time.Duration) *StorageServiceOperationModeGetParams { - - return &StorageServiceOperationModeGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceOperationModeGetParamsWithContext creates a new StorageServiceOperationModeGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceOperationModeGetParamsWithContext(ctx context.Context) *StorageServiceOperationModeGetParams { - - return &StorageServiceOperationModeGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceOperationModeGetParamsWithHTTPClient creates a new StorageServiceOperationModeGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceOperationModeGetParamsWithHTTPClient(client *http.Client) *StorageServiceOperationModeGetParams { - - return &StorageServiceOperationModeGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceOperationModeGetParams contains all the parameters to send to the API endpoint -for the storage service operation mode get operation typically these are written to a http.Request -*/ -type StorageServiceOperationModeGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service operation mode get params -func (o *StorageServiceOperationModeGetParams) WithTimeout(timeout time.Duration) *StorageServiceOperationModeGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service operation mode get params -func (o *StorageServiceOperationModeGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service operation mode get params -func (o *StorageServiceOperationModeGetParams) WithContext(ctx context.Context) *StorageServiceOperationModeGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service operation mode get params -func (o *StorageServiceOperationModeGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service operation mode get params -func (o *StorageServiceOperationModeGetParams) WithHTTPClient(client *http.Client) *StorageServiceOperationModeGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service operation mode get params -func (o *StorageServiceOperationModeGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceOperationModeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_operation_mode_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_operation_mode_get_responses.go deleted file mode 100644 index e2171a2f3f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_operation_mode_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceOperationModeGetReader is a Reader for the StorageServiceOperationModeGet structure. -type StorageServiceOperationModeGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceOperationModeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceOperationModeGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceOperationModeGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceOperationModeGetOK creates a StorageServiceOperationModeGetOK with default headers values -func NewStorageServiceOperationModeGetOK() *StorageServiceOperationModeGetOK { - return &StorageServiceOperationModeGetOK{} -} - -/* -StorageServiceOperationModeGetOK handles this case with default header values. - -Success -*/ -type StorageServiceOperationModeGetOK struct { - Payload string -} - -func (o *StorageServiceOperationModeGetOK) GetPayload() string { - return o.Payload -} - -func (o *StorageServiceOperationModeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceOperationModeGetDefault creates a StorageServiceOperationModeGetDefault with default headers values -func NewStorageServiceOperationModeGetDefault(code int) *StorageServiceOperationModeGetDefault { - return &StorageServiceOperationModeGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceOperationModeGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceOperationModeGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service operation mode get default response -func (o *StorageServiceOperationModeGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceOperationModeGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceOperationModeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceOperationModeGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_ownership_by_keyspace_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_ownership_by_keyspace_get_parameters.go deleted file mode 100644 index 8eb4fafe61..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_ownership_by_keyspace_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceOwnershipByKeyspaceGetParams creates a new StorageServiceOwnershipByKeyspaceGetParams object -// with the default values initialized. -func NewStorageServiceOwnershipByKeyspaceGetParams() *StorageServiceOwnershipByKeyspaceGetParams { - var () - return &StorageServiceOwnershipByKeyspaceGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceOwnershipByKeyspaceGetParamsWithTimeout creates a new StorageServiceOwnershipByKeyspaceGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceOwnershipByKeyspaceGetParamsWithTimeout(timeout time.Duration) *StorageServiceOwnershipByKeyspaceGetParams { - var () - return &StorageServiceOwnershipByKeyspaceGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceOwnershipByKeyspaceGetParamsWithContext creates a new StorageServiceOwnershipByKeyspaceGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceOwnershipByKeyspaceGetParamsWithContext(ctx context.Context) *StorageServiceOwnershipByKeyspaceGetParams { - var () - return &StorageServiceOwnershipByKeyspaceGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceOwnershipByKeyspaceGetParamsWithHTTPClient creates a new StorageServiceOwnershipByKeyspaceGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceOwnershipByKeyspaceGetParamsWithHTTPClient(client *http.Client) *StorageServiceOwnershipByKeyspaceGetParams { - var () - return &StorageServiceOwnershipByKeyspaceGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceOwnershipByKeyspaceGetParams contains all the parameters to send to the API endpoint -for the storage service ownership by keyspace get operation typically these are written to a http.Request -*/ -type StorageServiceOwnershipByKeyspaceGetParams struct { - - /*Keyspace - The keyspace to fetch information about - - */ - Keyspace string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service ownership by keyspace get params -func (o *StorageServiceOwnershipByKeyspaceGetParams) WithTimeout(timeout time.Duration) *StorageServiceOwnershipByKeyspaceGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service ownership by keyspace get params -func (o *StorageServiceOwnershipByKeyspaceGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service ownership by keyspace get params -func (o *StorageServiceOwnershipByKeyspaceGetParams) WithContext(ctx context.Context) *StorageServiceOwnershipByKeyspaceGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service ownership by keyspace get params -func (o *StorageServiceOwnershipByKeyspaceGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service ownership by keyspace get params -func (o *StorageServiceOwnershipByKeyspaceGetParams) WithHTTPClient(client *http.Client) *StorageServiceOwnershipByKeyspaceGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service ownership by keyspace get params -func (o *StorageServiceOwnershipByKeyspaceGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithKeyspace adds the keyspace to the storage service ownership by keyspace get params -func (o *StorageServiceOwnershipByKeyspaceGetParams) WithKeyspace(keyspace string) *StorageServiceOwnershipByKeyspaceGetParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the storage service ownership by keyspace get params -func (o *StorageServiceOwnershipByKeyspaceGetParams) SetKeyspace(keyspace string) { - o.Keyspace = keyspace -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceOwnershipByKeyspaceGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param keyspace - if err := r.SetPathParam("keyspace", o.Keyspace); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_ownership_by_keyspace_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_ownership_by_keyspace_get_responses.go deleted file mode 100644 index 467b23fdc6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_ownership_by_keyspace_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceOwnershipByKeyspaceGetReader is a Reader for the StorageServiceOwnershipByKeyspaceGet structure. -type StorageServiceOwnershipByKeyspaceGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceOwnershipByKeyspaceGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceOwnershipByKeyspaceGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceOwnershipByKeyspaceGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceOwnershipByKeyspaceGetOK creates a StorageServiceOwnershipByKeyspaceGetOK with default headers values -func NewStorageServiceOwnershipByKeyspaceGetOK() *StorageServiceOwnershipByKeyspaceGetOK { - return &StorageServiceOwnershipByKeyspaceGetOK{} -} - -/* -StorageServiceOwnershipByKeyspaceGetOK handles this case with default header values. - -Success -*/ -type StorageServiceOwnershipByKeyspaceGetOK struct { - Payload []*models.Mapper -} - -func (o *StorageServiceOwnershipByKeyspaceGetOK) GetPayload() []*models.Mapper { - return o.Payload -} - -func (o *StorageServiceOwnershipByKeyspaceGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceOwnershipByKeyspaceGetDefault creates a StorageServiceOwnershipByKeyspaceGetDefault with default headers values -func NewStorageServiceOwnershipByKeyspaceGetDefault(code int) *StorageServiceOwnershipByKeyspaceGetDefault { - return &StorageServiceOwnershipByKeyspaceGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceOwnershipByKeyspaceGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceOwnershipByKeyspaceGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service ownership by keyspace get default response -func (o *StorageServiceOwnershipByKeyspaceGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceOwnershipByKeyspaceGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceOwnershipByKeyspaceGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceOwnershipByKeyspaceGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_ownership_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_ownership_get_parameters.go deleted file mode 100644 index 0c680737cb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_ownership_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceOwnershipGetParams creates a new StorageServiceOwnershipGetParams object -// with the default values initialized. -func NewStorageServiceOwnershipGetParams() *StorageServiceOwnershipGetParams { - - return &StorageServiceOwnershipGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceOwnershipGetParamsWithTimeout creates a new StorageServiceOwnershipGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceOwnershipGetParamsWithTimeout(timeout time.Duration) *StorageServiceOwnershipGetParams { - - return &StorageServiceOwnershipGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceOwnershipGetParamsWithContext creates a new StorageServiceOwnershipGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceOwnershipGetParamsWithContext(ctx context.Context) *StorageServiceOwnershipGetParams { - - return &StorageServiceOwnershipGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceOwnershipGetParamsWithHTTPClient creates a new StorageServiceOwnershipGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceOwnershipGetParamsWithHTTPClient(client *http.Client) *StorageServiceOwnershipGetParams { - - return &StorageServiceOwnershipGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceOwnershipGetParams contains all the parameters to send to the API endpoint -for the storage service ownership get operation typically these are written to a http.Request -*/ -type StorageServiceOwnershipGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service ownership get params -func (o *StorageServiceOwnershipGetParams) WithTimeout(timeout time.Duration) *StorageServiceOwnershipGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service ownership get params -func (o *StorageServiceOwnershipGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service ownership get params -func (o *StorageServiceOwnershipGetParams) WithContext(ctx context.Context) *StorageServiceOwnershipGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service ownership get params -func (o *StorageServiceOwnershipGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service ownership get params -func (o *StorageServiceOwnershipGetParams) WithHTTPClient(client *http.Client) *StorageServiceOwnershipGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service ownership get params -func (o *StorageServiceOwnershipGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceOwnershipGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_ownership_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_ownership_get_responses.go deleted file mode 100644 index ebe20215d1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_ownership_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceOwnershipGetReader is a Reader for the StorageServiceOwnershipGet structure. -type StorageServiceOwnershipGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceOwnershipGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceOwnershipGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceOwnershipGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceOwnershipGetOK creates a StorageServiceOwnershipGetOK with default headers values -func NewStorageServiceOwnershipGetOK() *StorageServiceOwnershipGetOK { - return &StorageServiceOwnershipGetOK{} -} - -/* -StorageServiceOwnershipGetOK handles this case with default header values. - -Success -*/ -type StorageServiceOwnershipGetOK struct { - Payload []*models.Mapper -} - -func (o *StorageServiceOwnershipGetOK) GetPayload() []*models.Mapper { - return o.Payload -} - -func (o *StorageServiceOwnershipGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceOwnershipGetDefault creates a StorageServiceOwnershipGetDefault with default headers values -func NewStorageServiceOwnershipGetDefault(code int) *StorageServiceOwnershipGetDefault { - return &StorageServiceOwnershipGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceOwnershipGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceOwnershipGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service ownership get default response -func (o *StorageServiceOwnershipGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceOwnershipGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceOwnershipGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceOwnershipGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_partitioner_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_partitioner_name_get_parameters.go deleted file mode 100644 index 63221528df..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_partitioner_name_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServicePartitionerNameGetParams creates a new StorageServicePartitionerNameGetParams object -// with the default values initialized. -func NewStorageServicePartitionerNameGetParams() *StorageServicePartitionerNameGetParams { - - return &StorageServicePartitionerNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServicePartitionerNameGetParamsWithTimeout creates a new StorageServicePartitionerNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServicePartitionerNameGetParamsWithTimeout(timeout time.Duration) *StorageServicePartitionerNameGetParams { - - return &StorageServicePartitionerNameGetParams{ - - timeout: timeout, - } -} - -// NewStorageServicePartitionerNameGetParamsWithContext creates a new StorageServicePartitionerNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServicePartitionerNameGetParamsWithContext(ctx context.Context) *StorageServicePartitionerNameGetParams { - - return &StorageServicePartitionerNameGetParams{ - - Context: ctx, - } -} - -// NewStorageServicePartitionerNameGetParamsWithHTTPClient creates a new StorageServicePartitionerNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServicePartitionerNameGetParamsWithHTTPClient(client *http.Client) *StorageServicePartitionerNameGetParams { - - return &StorageServicePartitionerNameGetParams{ - HTTPClient: client, - } -} - -/* -StorageServicePartitionerNameGetParams contains all the parameters to send to the API endpoint -for the storage service partitioner name get operation typically these are written to a http.Request -*/ -type StorageServicePartitionerNameGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service partitioner name get params -func (o *StorageServicePartitionerNameGetParams) WithTimeout(timeout time.Duration) *StorageServicePartitionerNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service partitioner name get params -func (o *StorageServicePartitionerNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service partitioner name get params -func (o *StorageServicePartitionerNameGetParams) WithContext(ctx context.Context) *StorageServicePartitionerNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service partitioner name get params -func (o *StorageServicePartitionerNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service partitioner name get params -func (o *StorageServicePartitionerNameGetParams) WithHTTPClient(client *http.Client) *StorageServicePartitionerNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service partitioner name get params -func (o *StorageServicePartitionerNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServicePartitionerNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_partitioner_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_partitioner_name_get_responses.go deleted file mode 100644 index 3eeb9e21a6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_partitioner_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServicePartitionerNameGetReader is a Reader for the StorageServicePartitionerNameGet structure. -type StorageServicePartitionerNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServicePartitionerNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServicePartitionerNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServicePartitionerNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServicePartitionerNameGetOK creates a StorageServicePartitionerNameGetOK with default headers values -func NewStorageServicePartitionerNameGetOK() *StorageServicePartitionerNameGetOK { - return &StorageServicePartitionerNameGetOK{} -} - -/* -StorageServicePartitionerNameGetOK handles this case with default header values. - -Success -*/ -type StorageServicePartitionerNameGetOK struct { - Payload string -} - -func (o *StorageServicePartitionerNameGetOK) GetPayload() string { - return o.Payload -} - -func (o *StorageServicePartitionerNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServicePartitionerNameGetDefault creates a StorageServicePartitionerNameGetDefault with default headers values -func NewStorageServicePartitionerNameGetDefault(code int) *StorageServicePartitionerNameGetDefault { - return &StorageServicePartitionerNameGetDefault{ - _statusCode: code, - } -} - -/* -StorageServicePartitionerNameGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServicePartitionerNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service partitioner name get default response -func (o *StorageServicePartitionerNameGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServicePartitionerNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServicePartitionerNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServicePartitionerNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_pending_range_by_keyspace_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_pending_range_by_keyspace_get_parameters.go deleted file mode 100644 index 59745aaab9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_pending_range_by_keyspace_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServicePendingRangeByKeyspaceGetParams creates a new StorageServicePendingRangeByKeyspaceGetParams object -// with the default values initialized. -func NewStorageServicePendingRangeByKeyspaceGetParams() *StorageServicePendingRangeByKeyspaceGetParams { - var () - return &StorageServicePendingRangeByKeyspaceGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServicePendingRangeByKeyspaceGetParamsWithTimeout creates a new StorageServicePendingRangeByKeyspaceGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServicePendingRangeByKeyspaceGetParamsWithTimeout(timeout time.Duration) *StorageServicePendingRangeByKeyspaceGetParams { - var () - return &StorageServicePendingRangeByKeyspaceGetParams{ - - timeout: timeout, - } -} - -// NewStorageServicePendingRangeByKeyspaceGetParamsWithContext creates a new StorageServicePendingRangeByKeyspaceGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServicePendingRangeByKeyspaceGetParamsWithContext(ctx context.Context) *StorageServicePendingRangeByKeyspaceGetParams { - var () - return &StorageServicePendingRangeByKeyspaceGetParams{ - - Context: ctx, - } -} - -// NewStorageServicePendingRangeByKeyspaceGetParamsWithHTTPClient creates a new StorageServicePendingRangeByKeyspaceGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServicePendingRangeByKeyspaceGetParamsWithHTTPClient(client *http.Client) *StorageServicePendingRangeByKeyspaceGetParams { - var () - return &StorageServicePendingRangeByKeyspaceGetParams{ - HTTPClient: client, - } -} - -/* -StorageServicePendingRangeByKeyspaceGetParams contains all the parameters to send to the API endpoint -for the storage service pending range by keyspace get operation typically these are written to a http.Request -*/ -type StorageServicePendingRangeByKeyspaceGetParams struct { - - /*Keyspace - The keyspace to query about - - */ - Keyspace string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service pending range by keyspace get params -func (o *StorageServicePendingRangeByKeyspaceGetParams) WithTimeout(timeout time.Duration) *StorageServicePendingRangeByKeyspaceGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service pending range by keyspace get params -func (o *StorageServicePendingRangeByKeyspaceGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service pending range by keyspace get params -func (o *StorageServicePendingRangeByKeyspaceGetParams) WithContext(ctx context.Context) *StorageServicePendingRangeByKeyspaceGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service pending range by keyspace get params -func (o *StorageServicePendingRangeByKeyspaceGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service pending range by keyspace get params -func (o *StorageServicePendingRangeByKeyspaceGetParams) WithHTTPClient(client *http.Client) *StorageServicePendingRangeByKeyspaceGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service pending range by keyspace get params -func (o *StorageServicePendingRangeByKeyspaceGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithKeyspace adds the keyspace to the storage service pending range by keyspace get params -func (o *StorageServicePendingRangeByKeyspaceGetParams) WithKeyspace(keyspace string) *StorageServicePendingRangeByKeyspaceGetParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the storage service pending range by keyspace get params -func (o *StorageServicePendingRangeByKeyspaceGetParams) SetKeyspace(keyspace string) { - o.Keyspace = keyspace -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServicePendingRangeByKeyspaceGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param keyspace - if err := r.SetPathParam("keyspace", o.Keyspace); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_pending_range_by_keyspace_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_pending_range_by_keyspace_get_responses.go deleted file mode 100644 index 67a3f877dc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_pending_range_by_keyspace_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServicePendingRangeByKeyspaceGetReader is a Reader for the StorageServicePendingRangeByKeyspaceGet structure. -type StorageServicePendingRangeByKeyspaceGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServicePendingRangeByKeyspaceGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServicePendingRangeByKeyspaceGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServicePendingRangeByKeyspaceGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServicePendingRangeByKeyspaceGetOK creates a StorageServicePendingRangeByKeyspaceGetOK with default headers values -func NewStorageServicePendingRangeByKeyspaceGetOK() *StorageServicePendingRangeByKeyspaceGetOK { - return &StorageServicePendingRangeByKeyspaceGetOK{} -} - -/* -StorageServicePendingRangeByKeyspaceGetOK handles this case with default header values. - -Success -*/ -type StorageServicePendingRangeByKeyspaceGetOK struct { - Payload []*models.MaplistMapper -} - -func (o *StorageServicePendingRangeByKeyspaceGetOK) GetPayload() []*models.MaplistMapper { - return o.Payload -} - -func (o *StorageServicePendingRangeByKeyspaceGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServicePendingRangeByKeyspaceGetDefault creates a StorageServicePendingRangeByKeyspaceGetDefault with default headers values -func NewStorageServicePendingRangeByKeyspaceGetDefault(code int) *StorageServicePendingRangeByKeyspaceGetDefault { - return &StorageServicePendingRangeByKeyspaceGetDefault{ - _statusCode: code, - } -} - -/* -StorageServicePendingRangeByKeyspaceGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServicePendingRangeByKeyspaceGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service pending range by keyspace get default response -func (o *StorageServicePendingRangeByKeyspaceGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServicePendingRangeByKeyspaceGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServicePendingRangeByKeyspaceGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServicePendingRangeByKeyspaceGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_range_to_endpoint_map_by_keyspace_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_range_to_endpoint_map_by_keyspace_get_parameters.go deleted file mode 100644 index 10e3b7b518..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_range_to_endpoint_map_by_keyspace_get_parameters.go +++ /dev/null @@ -1,169 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageServiceRangeToEndpointMapByKeyspaceGetParams creates a new StorageServiceRangeToEndpointMapByKeyspaceGetParams object -// with the default values initialized. -func NewStorageServiceRangeToEndpointMapByKeyspaceGetParams() *StorageServiceRangeToEndpointMapByKeyspaceGetParams { - var () - return &StorageServiceRangeToEndpointMapByKeyspaceGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceRangeToEndpointMapByKeyspaceGetParamsWithTimeout creates a new StorageServiceRangeToEndpointMapByKeyspaceGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceRangeToEndpointMapByKeyspaceGetParamsWithTimeout(timeout time.Duration) *StorageServiceRangeToEndpointMapByKeyspaceGetParams { - var () - return &StorageServiceRangeToEndpointMapByKeyspaceGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceRangeToEndpointMapByKeyspaceGetParamsWithContext creates a new StorageServiceRangeToEndpointMapByKeyspaceGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceRangeToEndpointMapByKeyspaceGetParamsWithContext(ctx context.Context) *StorageServiceRangeToEndpointMapByKeyspaceGetParams { - var () - return &StorageServiceRangeToEndpointMapByKeyspaceGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceRangeToEndpointMapByKeyspaceGetParamsWithHTTPClient creates a new StorageServiceRangeToEndpointMapByKeyspaceGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceRangeToEndpointMapByKeyspaceGetParamsWithHTTPClient(client *http.Client) *StorageServiceRangeToEndpointMapByKeyspaceGetParams { - var () - return &StorageServiceRangeToEndpointMapByKeyspaceGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceRangeToEndpointMapByKeyspaceGetParams contains all the parameters to send to the API endpoint -for the storage service range to endpoint map by keyspace get operation typically these are written to a http.Request -*/ -type StorageServiceRangeToEndpointMapByKeyspaceGetParams struct { - - /*Keyspace - The keyspace to query about - - */ - Keyspace string - /*RPC - When set to true, return the rpc address - - */ - RPC *bool - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service range to endpoint map by keyspace get params -func (o *StorageServiceRangeToEndpointMapByKeyspaceGetParams) WithTimeout(timeout time.Duration) *StorageServiceRangeToEndpointMapByKeyspaceGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service range to endpoint map by keyspace get params -func (o *StorageServiceRangeToEndpointMapByKeyspaceGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service range to endpoint map by keyspace get params -func (o *StorageServiceRangeToEndpointMapByKeyspaceGetParams) WithContext(ctx context.Context) *StorageServiceRangeToEndpointMapByKeyspaceGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service range to endpoint map by keyspace get params -func (o *StorageServiceRangeToEndpointMapByKeyspaceGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service range to endpoint map by keyspace get params -func (o *StorageServiceRangeToEndpointMapByKeyspaceGetParams) WithHTTPClient(client *http.Client) *StorageServiceRangeToEndpointMapByKeyspaceGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service range to endpoint map by keyspace get params -func (o *StorageServiceRangeToEndpointMapByKeyspaceGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithKeyspace adds the keyspace to the storage service range to endpoint map by keyspace get params -func (o *StorageServiceRangeToEndpointMapByKeyspaceGetParams) WithKeyspace(keyspace string) *StorageServiceRangeToEndpointMapByKeyspaceGetParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the storage service range to endpoint map by keyspace get params -func (o *StorageServiceRangeToEndpointMapByKeyspaceGetParams) SetKeyspace(keyspace string) { - o.Keyspace = keyspace -} - -// WithRPC adds the rpc to the storage service range to endpoint map by keyspace get params -func (o *StorageServiceRangeToEndpointMapByKeyspaceGetParams) WithRPC(rpc *bool) *StorageServiceRangeToEndpointMapByKeyspaceGetParams { - o.SetRPC(rpc) - return o -} - -// SetRPC adds the rpc to the storage service range to endpoint map by keyspace get params -func (o *StorageServiceRangeToEndpointMapByKeyspaceGetParams) SetRPC(rpc *bool) { - o.RPC = rpc -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceRangeToEndpointMapByKeyspaceGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param keyspace - if err := r.SetPathParam("keyspace", o.Keyspace); err != nil { - return err - } - - if o.RPC != nil { - - // query param rpc - var qrRPC bool - if o.RPC != nil { - qrRPC = *o.RPC - } - qRPC := swag.FormatBool(qrRPC) - if qRPC != "" { - if err := r.SetQueryParam("rpc", qRPC); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_range_to_endpoint_map_by_keyspace_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_range_to_endpoint_map_by_keyspace_get_responses.go deleted file mode 100644 index 6610a29472..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_range_to_endpoint_map_by_keyspace_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceRangeToEndpointMapByKeyspaceGetReader is a Reader for the StorageServiceRangeToEndpointMapByKeyspaceGet structure. -type StorageServiceRangeToEndpointMapByKeyspaceGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceRangeToEndpointMapByKeyspaceGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceRangeToEndpointMapByKeyspaceGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceRangeToEndpointMapByKeyspaceGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceRangeToEndpointMapByKeyspaceGetOK creates a StorageServiceRangeToEndpointMapByKeyspaceGetOK with default headers values -func NewStorageServiceRangeToEndpointMapByKeyspaceGetOK() *StorageServiceRangeToEndpointMapByKeyspaceGetOK { - return &StorageServiceRangeToEndpointMapByKeyspaceGetOK{} -} - -/* -StorageServiceRangeToEndpointMapByKeyspaceGetOK handles this case with default header values. - -Success -*/ -type StorageServiceRangeToEndpointMapByKeyspaceGetOK struct { - Payload []*models.MaplistMapper -} - -func (o *StorageServiceRangeToEndpointMapByKeyspaceGetOK) GetPayload() []*models.MaplistMapper { - return o.Payload -} - -func (o *StorageServiceRangeToEndpointMapByKeyspaceGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceRangeToEndpointMapByKeyspaceGetDefault creates a StorageServiceRangeToEndpointMapByKeyspaceGetDefault with default headers values -func NewStorageServiceRangeToEndpointMapByKeyspaceGetDefault(code int) *StorageServiceRangeToEndpointMapByKeyspaceGetDefault { - return &StorageServiceRangeToEndpointMapByKeyspaceGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceRangeToEndpointMapByKeyspaceGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceRangeToEndpointMapByKeyspaceGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service range to endpoint map by keyspace get default response -func (o *StorageServiceRangeToEndpointMapByKeyspaceGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceRangeToEndpointMapByKeyspaceGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceRangeToEndpointMapByKeyspaceGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceRangeToEndpointMapByKeyspaceGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rebuild_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rebuild_post_parameters.go deleted file mode 100644 index f4853c9281..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rebuild_post_parameters.go +++ /dev/null @@ -1,147 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceRebuildPostParams creates a new StorageServiceRebuildPostParams object -// with the default values initialized. -func NewStorageServiceRebuildPostParams() *StorageServiceRebuildPostParams { - var () - return &StorageServiceRebuildPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceRebuildPostParamsWithTimeout creates a new StorageServiceRebuildPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceRebuildPostParamsWithTimeout(timeout time.Duration) *StorageServiceRebuildPostParams { - var () - return &StorageServiceRebuildPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceRebuildPostParamsWithContext creates a new StorageServiceRebuildPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceRebuildPostParamsWithContext(ctx context.Context) *StorageServiceRebuildPostParams { - var () - return &StorageServiceRebuildPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceRebuildPostParamsWithHTTPClient creates a new StorageServiceRebuildPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceRebuildPostParamsWithHTTPClient(client *http.Client) *StorageServiceRebuildPostParams { - var () - return &StorageServiceRebuildPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceRebuildPostParams contains all the parameters to send to the API endpoint -for the storage service rebuild post operation typically these are written to a http.Request -*/ -type StorageServiceRebuildPostParams struct { - - /*SourceDc - Name of DC from which to select sources for streaming or none to pick any node - - */ - SourceDc *string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service rebuild post params -func (o *StorageServiceRebuildPostParams) WithTimeout(timeout time.Duration) *StorageServiceRebuildPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service rebuild post params -func (o *StorageServiceRebuildPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service rebuild post params -func (o *StorageServiceRebuildPostParams) WithContext(ctx context.Context) *StorageServiceRebuildPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service rebuild post params -func (o *StorageServiceRebuildPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service rebuild post params -func (o *StorageServiceRebuildPostParams) WithHTTPClient(client *http.Client) *StorageServiceRebuildPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service rebuild post params -func (o *StorageServiceRebuildPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithSourceDc adds the sourceDc to the storage service rebuild post params -func (o *StorageServiceRebuildPostParams) WithSourceDc(sourceDc *string) *StorageServiceRebuildPostParams { - o.SetSourceDc(sourceDc) - return o -} - -// SetSourceDc adds the sourceDc to the storage service rebuild post params -func (o *StorageServiceRebuildPostParams) SetSourceDc(sourceDc *string) { - o.SourceDc = sourceDc -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceRebuildPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.SourceDc != nil { - - // query param source_dc - var qrSourceDc string - if o.SourceDc != nil { - qrSourceDc = *o.SourceDc - } - qSourceDc := qrSourceDc - if qSourceDc != "" { - if err := r.SetQueryParam("source_dc", qSourceDc); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rebuild_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rebuild_post_responses.go deleted file mode 100644 index b433f62afc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rebuild_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceRebuildPostReader is a Reader for the StorageServiceRebuildPost structure. -type StorageServiceRebuildPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceRebuildPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceRebuildPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceRebuildPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceRebuildPostOK creates a StorageServiceRebuildPostOK with default headers values -func NewStorageServiceRebuildPostOK() *StorageServiceRebuildPostOK { - return &StorageServiceRebuildPostOK{} -} - -/* -StorageServiceRebuildPostOK handles this case with default header values. - -Success -*/ -type StorageServiceRebuildPostOK struct { -} - -func (o *StorageServiceRebuildPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceRebuildPostDefault creates a StorageServiceRebuildPostDefault with default headers values -func NewStorageServiceRebuildPostDefault(code int) *StorageServiceRebuildPostDefault { - return &StorageServiceRebuildPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceRebuildPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceRebuildPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service rebuild post default response -func (o *StorageServiceRebuildPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceRebuildPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceRebuildPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceRebuildPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_release_version_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_release_version_get_parameters.go deleted file mode 100644 index ba74ad2f46..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_release_version_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceReleaseVersionGetParams creates a new StorageServiceReleaseVersionGetParams object -// with the default values initialized. -func NewStorageServiceReleaseVersionGetParams() *StorageServiceReleaseVersionGetParams { - - return &StorageServiceReleaseVersionGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceReleaseVersionGetParamsWithTimeout creates a new StorageServiceReleaseVersionGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceReleaseVersionGetParamsWithTimeout(timeout time.Duration) *StorageServiceReleaseVersionGetParams { - - return &StorageServiceReleaseVersionGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceReleaseVersionGetParamsWithContext creates a new StorageServiceReleaseVersionGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceReleaseVersionGetParamsWithContext(ctx context.Context) *StorageServiceReleaseVersionGetParams { - - return &StorageServiceReleaseVersionGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceReleaseVersionGetParamsWithHTTPClient creates a new StorageServiceReleaseVersionGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceReleaseVersionGetParamsWithHTTPClient(client *http.Client) *StorageServiceReleaseVersionGetParams { - - return &StorageServiceReleaseVersionGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceReleaseVersionGetParams contains all the parameters to send to the API endpoint -for the storage service release version get operation typically these are written to a http.Request -*/ -type StorageServiceReleaseVersionGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service release version get params -func (o *StorageServiceReleaseVersionGetParams) WithTimeout(timeout time.Duration) *StorageServiceReleaseVersionGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service release version get params -func (o *StorageServiceReleaseVersionGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service release version get params -func (o *StorageServiceReleaseVersionGetParams) WithContext(ctx context.Context) *StorageServiceReleaseVersionGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service release version get params -func (o *StorageServiceReleaseVersionGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service release version get params -func (o *StorageServiceReleaseVersionGetParams) WithHTTPClient(client *http.Client) *StorageServiceReleaseVersionGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service release version get params -func (o *StorageServiceReleaseVersionGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceReleaseVersionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_release_version_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_release_version_get_responses.go deleted file mode 100644 index a8e2b11a82..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_release_version_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceReleaseVersionGetReader is a Reader for the StorageServiceReleaseVersionGet structure. -type StorageServiceReleaseVersionGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceReleaseVersionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceReleaseVersionGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceReleaseVersionGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceReleaseVersionGetOK creates a StorageServiceReleaseVersionGetOK with default headers values -func NewStorageServiceReleaseVersionGetOK() *StorageServiceReleaseVersionGetOK { - return &StorageServiceReleaseVersionGetOK{} -} - -/* -StorageServiceReleaseVersionGetOK handles this case with default header values. - -Success -*/ -type StorageServiceReleaseVersionGetOK struct { - Payload string -} - -func (o *StorageServiceReleaseVersionGetOK) GetPayload() string { - return o.Payload -} - -func (o *StorageServiceReleaseVersionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceReleaseVersionGetDefault creates a StorageServiceReleaseVersionGetDefault with default headers values -func NewStorageServiceReleaseVersionGetDefault(code int) *StorageServiceReleaseVersionGetDefault { - return &StorageServiceReleaseVersionGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceReleaseVersionGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceReleaseVersionGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service release version get default response -func (o *StorageServiceReleaseVersionGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceReleaseVersionGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceReleaseVersionGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceReleaseVersionGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_relocal_schema_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_relocal_schema_post_parameters.go deleted file mode 100644 index 2d97124b80..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_relocal_schema_post_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceRelocalSchemaPostParams creates a new StorageServiceRelocalSchemaPostParams object -// with the default values initialized. -func NewStorageServiceRelocalSchemaPostParams() *StorageServiceRelocalSchemaPostParams { - - return &StorageServiceRelocalSchemaPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceRelocalSchemaPostParamsWithTimeout creates a new StorageServiceRelocalSchemaPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceRelocalSchemaPostParamsWithTimeout(timeout time.Duration) *StorageServiceRelocalSchemaPostParams { - - return &StorageServiceRelocalSchemaPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceRelocalSchemaPostParamsWithContext creates a new StorageServiceRelocalSchemaPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceRelocalSchemaPostParamsWithContext(ctx context.Context) *StorageServiceRelocalSchemaPostParams { - - return &StorageServiceRelocalSchemaPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceRelocalSchemaPostParamsWithHTTPClient creates a new StorageServiceRelocalSchemaPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceRelocalSchemaPostParamsWithHTTPClient(client *http.Client) *StorageServiceRelocalSchemaPostParams { - - return &StorageServiceRelocalSchemaPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceRelocalSchemaPostParams contains all the parameters to send to the API endpoint -for the storage service relocal schema post operation typically these are written to a http.Request -*/ -type StorageServiceRelocalSchemaPostParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service relocal schema post params -func (o *StorageServiceRelocalSchemaPostParams) WithTimeout(timeout time.Duration) *StorageServiceRelocalSchemaPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service relocal schema post params -func (o *StorageServiceRelocalSchemaPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service relocal schema post params -func (o *StorageServiceRelocalSchemaPostParams) WithContext(ctx context.Context) *StorageServiceRelocalSchemaPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service relocal schema post params -func (o *StorageServiceRelocalSchemaPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service relocal schema post params -func (o *StorageServiceRelocalSchemaPostParams) WithHTTPClient(client *http.Client) *StorageServiceRelocalSchemaPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service relocal schema post params -func (o *StorageServiceRelocalSchemaPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceRelocalSchemaPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_relocal_schema_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_relocal_schema_post_responses.go deleted file mode 100644 index 502b058fbb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_relocal_schema_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceRelocalSchemaPostReader is a Reader for the StorageServiceRelocalSchemaPost structure. -type StorageServiceRelocalSchemaPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceRelocalSchemaPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceRelocalSchemaPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceRelocalSchemaPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceRelocalSchemaPostOK creates a StorageServiceRelocalSchemaPostOK with default headers values -func NewStorageServiceRelocalSchemaPostOK() *StorageServiceRelocalSchemaPostOK { - return &StorageServiceRelocalSchemaPostOK{} -} - -/* -StorageServiceRelocalSchemaPostOK handles this case with default header values. - -Success -*/ -type StorageServiceRelocalSchemaPostOK struct { -} - -func (o *StorageServiceRelocalSchemaPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceRelocalSchemaPostDefault creates a StorageServiceRelocalSchemaPostDefault with default headers values -func NewStorageServiceRelocalSchemaPostDefault(code int) *StorageServiceRelocalSchemaPostDefault { - return &StorageServiceRelocalSchemaPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceRelocalSchemaPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceRelocalSchemaPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service relocal schema post default response -func (o *StorageServiceRelocalSchemaPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceRelocalSchemaPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceRelocalSchemaPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceRelocalSchemaPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_removal_status_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_removal_status_get_parameters.go deleted file mode 100644 index 235e573f4a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_removal_status_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceRemovalStatusGetParams creates a new StorageServiceRemovalStatusGetParams object -// with the default values initialized. -func NewStorageServiceRemovalStatusGetParams() *StorageServiceRemovalStatusGetParams { - - return &StorageServiceRemovalStatusGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceRemovalStatusGetParamsWithTimeout creates a new StorageServiceRemovalStatusGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceRemovalStatusGetParamsWithTimeout(timeout time.Duration) *StorageServiceRemovalStatusGetParams { - - return &StorageServiceRemovalStatusGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceRemovalStatusGetParamsWithContext creates a new StorageServiceRemovalStatusGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceRemovalStatusGetParamsWithContext(ctx context.Context) *StorageServiceRemovalStatusGetParams { - - return &StorageServiceRemovalStatusGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceRemovalStatusGetParamsWithHTTPClient creates a new StorageServiceRemovalStatusGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceRemovalStatusGetParamsWithHTTPClient(client *http.Client) *StorageServiceRemovalStatusGetParams { - - return &StorageServiceRemovalStatusGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceRemovalStatusGetParams contains all the parameters to send to the API endpoint -for the storage service removal status get operation typically these are written to a http.Request -*/ -type StorageServiceRemovalStatusGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service removal status get params -func (o *StorageServiceRemovalStatusGetParams) WithTimeout(timeout time.Duration) *StorageServiceRemovalStatusGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service removal status get params -func (o *StorageServiceRemovalStatusGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service removal status get params -func (o *StorageServiceRemovalStatusGetParams) WithContext(ctx context.Context) *StorageServiceRemovalStatusGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service removal status get params -func (o *StorageServiceRemovalStatusGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service removal status get params -func (o *StorageServiceRemovalStatusGetParams) WithHTTPClient(client *http.Client) *StorageServiceRemovalStatusGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service removal status get params -func (o *StorageServiceRemovalStatusGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceRemovalStatusGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_removal_status_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_removal_status_get_responses.go deleted file mode 100644 index 41923ee362..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_removal_status_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceRemovalStatusGetReader is a Reader for the StorageServiceRemovalStatusGet structure. -type StorageServiceRemovalStatusGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceRemovalStatusGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceRemovalStatusGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceRemovalStatusGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceRemovalStatusGetOK creates a StorageServiceRemovalStatusGetOK with default headers values -func NewStorageServiceRemovalStatusGetOK() *StorageServiceRemovalStatusGetOK { - return &StorageServiceRemovalStatusGetOK{} -} - -/* -StorageServiceRemovalStatusGetOK handles this case with default header values. - -Success -*/ -type StorageServiceRemovalStatusGetOK struct { - Payload string -} - -func (o *StorageServiceRemovalStatusGetOK) GetPayload() string { - return o.Payload -} - -func (o *StorageServiceRemovalStatusGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceRemovalStatusGetDefault creates a StorageServiceRemovalStatusGetDefault with default headers values -func NewStorageServiceRemovalStatusGetDefault(code int) *StorageServiceRemovalStatusGetDefault { - return &StorageServiceRemovalStatusGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceRemovalStatusGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceRemovalStatusGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service removal status get default response -func (o *StorageServiceRemovalStatusGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceRemovalStatusGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceRemovalStatusGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceRemovalStatusGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_remove_node_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_remove_node_post_parameters.go deleted file mode 100644 index 708be26ee4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_remove_node_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceRemoveNodePostParams creates a new StorageServiceRemoveNodePostParams object -// with the default values initialized. -func NewStorageServiceRemoveNodePostParams() *StorageServiceRemoveNodePostParams { - var () - return &StorageServiceRemoveNodePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceRemoveNodePostParamsWithTimeout creates a new StorageServiceRemoveNodePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceRemoveNodePostParamsWithTimeout(timeout time.Duration) *StorageServiceRemoveNodePostParams { - var () - return &StorageServiceRemoveNodePostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceRemoveNodePostParamsWithContext creates a new StorageServiceRemoveNodePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceRemoveNodePostParamsWithContext(ctx context.Context) *StorageServiceRemoveNodePostParams { - var () - return &StorageServiceRemoveNodePostParams{ - - Context: ctx, - } -} - -// NewStorageServiceRemoveNodePostParamsWithHTTPClient creates a new StorageServiceRemoveNodePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceRemoveNodePostParamsWithHTTPClient(client *http.Client) *StorageServiceRemoveNodePostParams { - var () - return &StorageServiceRemoveNodePostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceRemoveNodePostParams contains all the parameters to send to the API endpoint -for the storage service remove node post operation typically these are written to a http.Request -*/ -type StorageServiceRemoveNodePostParams struct { - - /*HostID - Remove the node with host_id from the cluster - - */ - HostID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service remove node post params -func (o *StorageServiceRemoveNodePostParams) WithTimeout(timeout time.Duration) *StorageServiceRemoveNodePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service remove node post params -func (o *StorageServiceRemoveNodePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service remove node post params -func (o *StorageServiceRemoveNodePostParams) WithContext(ctx context.Context) *StorageServiceRemoveNodePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service remove node post params -func (o *StorageServiceRemoveNodePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service remove node post params -func (o *StorageServiceRemoveNodePostParams) WithHTTPClient(client *http.Client) *StorageServiceRemoveNodePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service remove node post params -func (o *StorageServiceRemoveNodePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithHostID adds the hostID to the storage service remove node post params -func (o *StorageServiceRemoveNodePostParams) WithHostID(hostID string) *StorageServiceRemoveNodePostParams { - o.SetHostID(hostID) - return o -} - -// SetHostID adds the hostId to the storage service remove node post params -func (o *StorageServiceRemoveNodePostParams) SetHostID(hostID string) { - o.HostID = hostID -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceRemoveNodePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param host_id - qrHostID := o.HostID - qHostID := qrHostID - if qHostID != "" { - if err := r.SetQueryParam("host_id", qHostID); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_remove_node_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_remove_node_post_responses.go deleted file mode 100644 index 97fb90700d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_remove_node_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceRemoveNodePostReader is a Reader for the StorageServiceRemoveNodePost structure. -type StorageServiceRemoveNodePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceRemoveNodePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceRemoveNodePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceRemoveNodePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceRemoveNodePostOK creates a StorageServiceRemoveNodePostOK with default headers values -func NewStorageServiceRemoveNodePostOK() *StorageServiceRemoveNodePostOK { - return &StorageServiceRemoveNodePostOK{} -} - -/* -StorageServiceRemoveNodePostOK handles this case with default header values. - -Success -*/ -type StorageServiceRemoveNodePostOK struct { -} - -func (o *StorageServiceRemoveNodePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceRemoveNodePostDefault creates a StorageServiceRemoveNodePostDefault with default headers values -func NewStorageServiceRemoveNodePostDefault(code int) *StorageServiceRemoveNodePostDefault { - return &StorageServiceRemoveNodePostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceRemoveNodePostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceRemoveNodePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service remove node post default response -func (o *StorageServiceRemoveNodePostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceRemoveNodePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceRemoveNodePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceRemoveNodePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_repair_async_by_keyspace_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_repair_async_by_keyspace_get_parameters.go deleted file mode 100644 index fbd9f705cd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_repair_async_by_keyspace_get_parameters.go +++ /dev/null @@ -1,162 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageServiceRepairAsyncByKeyspaceGetParams creates a new StorageServiceRepairAsyncByKeyspaceGetParams object -// with the default values initialized. -func NewStorageServiceRepairAsyncByKeyspaceGetParams() *StorageServiceRepairAsyncByKeyspaceGetParams { - var () - return &StorageServiceRepairAsyncByKeyspaceGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceRepairAsyncByKeyspaceGetParamsWithTimeout creates a new StorageServiceRepairAsyncByKeyspaceGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceRepairAsyncByKeyspaceGetParamsWithTimeout(timeout time.Duration) *StorageServiceRepairAsyncByKeyspaceGetParams { - var () - return &StorageServiceRepairAsyncByKeyspaceGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceRepairAsyncByKeyspaceGetParamsWithContext creates a new StorageServiceRepairAsyncByKeyspaceGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceRepairAsyncByKeyspaceGetParamsWithContext(ctx context.Context) *StorageServiceRepairAsyncByKeyspaceGetParams { - var () - return &StorageServiceRepairAsyncByKeyspaceGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceRepairAsyncByKeyspaceGetParamsWithHTTPClient creates a new StorageServiceRepairAsyncByKeyspaceGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceRepairAsyncByKeyspaceGetParamsWithHTTPClient(client *http.Client) *StorageServiceRepairAsyncByKeyspaceGetParams { - var () - return &StorageServiceRepairAsyncByKeyspaceGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceRepairAsyncByKeyspaceGetParams contains all the parameters to send to the API endpoint -for the storage service repair async by keyspace get operation typically these are written to a http.Request -*/ -type StorageServiceRepairAsyncByKeyspaceGetParams struct { - - /*ID - The repair ID to check for status - - */ - ID int32 - /*Keyspace - The keyspace repair is running on - - */ - Keyspace string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service repair async by keyspace get params -func (o *StorageServiceRepairAsyncByKeyspaceGetParams) WithTimeout(timeout time.Duration) *StorageServiceRepairAsyncByKeyspaceGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service repair async by keyspace get params -func (o *StorageServiceRepairAsyncByKeyspaceGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service repair async by keyspace get params -func (o *StorageServiceRepairAsyncByKeyspaceGetParams) WithContext(ctx context.Context) *StorageServiceRepairAsyncByKeyspaceGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service repair async by keyspace get params -func (o *StorageServiceRepairAsyncByKeyspaceGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service repair async by keyspace get params -func (o *StorageServiceRepairAsyncByKeyspaceGetParams) WithHTTPClient(client *http.Client) *StorageServiceRepairAsyncByKeyspaceGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service repair async by keyspace get params -func (o *StorageServiceRepairAsyncByKeyspaceGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithID adds the id to the storage service repair async by keyspace get params -func (o *StorageServiceRepairAsyncByKeyspaceGetParams) WithID(id int32) *StorageServiceRepairAsyncByKeyspaceGetParams { - o.SetID(id) - return o -} - -// SetID adds the id to the storage service repair async by keyspace get params -func (o *StorageServiceRepairAsyncByKeyspaceGetParams) SetID(id int32) { - o.ID = id -} - -// WithKeyspace adds the keyspace to the storage service repair async by keyspace get params -func (o *StorageServiceRepairAsyncByKeyspaceGetParams) WithKeyspace(keyspace string) *StorageServiceRepairAsyncByKeyspaceGetParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the storage service repair async by keyspace get params -func (o *StorageServiceRepairAsyncByKeyspaceGetParams) SetKeyspace(keyspace string) { - o.Keyspace = keyspace -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceRepairAsyncByKeyspaceGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param id - qrID := o.ID - qID := swag.FormatInt32(qrID) - if qID != "" { - if err := r.SetQueryParam("id", qID); err != nil { - return err - } - } - - // path param keyspace - if err := r.SetPathParam("keyspace", o.Keyspace); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_repair_async_by_keyspace_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_repair_async_by_keyspace_get_responses.go deleted file mode 100644 index 7601759450..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_repair_async_by_keyspace_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceRepairAsyncByKeyspaceGetReader is a Reader for the StorageServiceRepairAsyncByKeyspaceGet structure. -type StorageServiceRepairAsyncByKeyspaceGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceRepairAsyncByKeyspaceGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceRepairAsyncByKeyspaceGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceRepairAsyncByKeyspaceGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceRepairAsyncByKeyspaceGetOK creates a StorageServiceRepairAsyncByKeyspaceGetOK with default headers values -func NewStorageServiceRepairAsyncByKeyspaceGetOK() *StorageServiceRepairAsyncByKeyspaceGetOK { - return &StorageServiceRepairAsyncByKeyspaceGetOK{} -} - -/* -StorageServiceRepairAsyncByKeyspaceGetOK handles this case with default header values. - -Success -*/ -type StorageServiceRepairAsyncByKeyspaceGetOK struct { - Payload models.RepairAsyncStatusResponse -} - -func (o *StorageServiceRepairAsyncByKeyspaceGetOK) GetPayload() models.RepairAsyncStatusResponse { - return o.Payload -} - -func (o *StorageServiceRepairAsyncByKeyspaceGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceRepairAsyncByKeyspaceGetDefault creates a StorageServiceRepairAsyncByKeyspaceGetDefault with default headers values -func NewStorageServiceRepairAsyncByKeyspaceGetDefault(code int) *StorageServiceRepairAsyncByKeyspaceGetDefault { - return &StorageServiceRepairAsyncByKeyspaceGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceRepairAsyncByKeyspaceGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceRepairAsyncByKeyspaceGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service repair async by keyspace get default response -func (o *StorageServiceRepairAsyncByKeyspaceGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceRepairAsyncByKeyspaceGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceRepairAsyncByKeyspaceGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceRepairAsyncByKeyspaceGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_repair_async_by_keyspace_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_repair_async_by_keyspace_post_parameters.go deleted file mode 100644 index 6f2cd14a16..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_repair_async_by_keyspace_post_parameters.go +++ /dev/null @@ -1,584 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceRepairAsyncByKeyspacePostParams creates a new StorageServiceRepairAsyncByKeyspacePostParams object -// with the default values initialized. -func NewStorageServiceRepairAsyncByKeyspacePostParams() *StorageServiceRepairAsyncByKeyspacePostParams { - var () - return &StorageServiceRepairAsyncByKeyspacePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceRepairAsyncByKeyspacePostParamsWithTimeout creates a new StorageServiceRepairAsyncByKeyspacePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceRepairAsyncByKeyspacePostParamsWithTimeout(timeout time.Duration) *StorageServiceRepairAsyncByKeyspacePostParams { - var () - return &StorageServiceRepairAsyncByKeyspacePostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceRepairAsyncByKeyspacePostParamsWithContext creates a new StorageServiceRepairAsyncByKeyspacePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceRepairAsyncByKeyspacePostParamsWithContext(ctx context.Context) *StorageServiceRepairAsyncByKeyspacePostParams { - var () - return &StorageServiceRepairAsyncByKeyspacePostParams{ - - Context: ctx, - } -} - -// NewStorageServiceRepairAsyncByKeyspacePostParamsWithHTTPClient creates a new StorageServiceRepairAsyncByKeyspacePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceRepairAsyncByKeyspacePostParamsWithHTTPClient(client *http.Client) *StorageServiceRepairAsyncByKeyspacePostParams { - var () - return &StorageServiceRepairAsyncByKeyspacePostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceRepairAsyncByKeyspacePostParams contains all the parameters to send to the API endpoint -for the storage service repair async by keyspace post operation typically these are written to a http.Request -*/ -type StorageServiceRepairAsyncByKeyspacePostParams struct { - - /*ColumnFamilies - Which column families to repair in the given keyspace. Multiple columns families can be named separated by commas. If this option is missing, all column families in the keyspace are repaired. - - */ - ColumnFamilies *string - /*DataCenters - Which data centers are to participate in this repair. Multiple data centers can be listed separated by commas. - - */ - DataCenters *string - /*EndToken - Token on which to end repair - - */ - EndToken *string - /*Hosts - Which hosts are to participate in this repair. Multiple hosts can be listed separated by commas. - - */ - Hosts *string - /*IgnoreNodes - Which hosts are to ignore in this repair. Multiple hosts can be listed separated by commas. - - */ - IgnoreNodes *string - /*Incremental - If the value is the string 'true' with any capitalization, perform incremental repair. - - */ - Incremental *string - /*JobThreads - An integer specifying the parallelism on each node. - - */ - JobThreads *string - /*Keyspace - The keyspace to repair - - */ - Keyspace string - /*Parallelism - Repair parallelism, can be 0 (sequential), 1 (parallel) or 2 (datacenter-aware). - - */ - Parallelism *string - /*PrimaryRange - If the value is the string 'true' with any capitalization, repair only the first range returned by the partitioner. - - */ - PrimaryRange *string - /*Ranges - An explicit list of ranges to repair, overriding the default choice. Each range is expressed as token1:token2, and multiple ranges can be given as a comma separated list. - - */ - Ranges *string - /*RangesParallelism - An integer specifying the number of ranges to repair in parallel by user request. If this number is bigger than the max_repair_ranges_in_parallel calculated by Scylla core, the smaller one will be used. - - */ - RangesParallelism *string - /*SmallTableOptimization - If the value is the string 'true' with any capitalization, perform small table optimization. When this option is enabled, user can send the repair request to any of the nodes in the cluster. There is no need to send repair requests to multiple nodes. All token ranges for the table will be repaired automatically. - - */ - SmallTableOptimization *string - /*StartToken - Token on which to begin repair - - */ - StartToken *string - /*Trace - If the value is the string 'true' with any capitalization, enable tracing of the repair. - - */ - Trace *string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) WithTimeout(timeout time.Duration) *StorageServiceRepairAsyncByKeyspacePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) WithContext(ctx context.Context) *StorageServiceRepairAsyncByKeyspacePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) WithHTTPClient(client *http.Client) *StorageServiceRepairAsyncByKeyspacePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithColumnFamilies adds the columnFamilies to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) WithColumnFamilies(columnFamilies *string) *StorageServiceRepairAsyncByKeyspacePostParams { - o.SetColumnFamilies(columnFamilies) - return o -} - -// SetColumnFamilies adds the columnFamilies to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) SetColumnFamilies(columnFamilies *string) { - o.ColumnFamilies = columnFamilies -} - -// WithDataCenters adds the dataCenters to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) WithDataCenters(dataCenters *string) *StorageServiceRepairAsyncByKeyspacePostParams { - o.SetDataCenters(dataCenters) - return o -} - -// SetDataCenters adds the dataCenters to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) SetDataCenters(dataCenters *string) { - o.DataCenters = dataCenters -} - -// WithEndToken adds the endToken to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) WithEndToken(endToken *string) *StorageServiceRepairAsyncByKeyspacePostParams { - o.SetEndToken(endToken) - return o -} - -// SetEndToken adds the endToken to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) SetEndToken(endToken *string) { - o.EndToken = endToken -} - -// WithHosts adds the hosts to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) WithHosts(hosts *string) *StorageServiceRepairAsyncByKeyspacePostParams { - o.SetHosts(hosts) - return o -} - -// SetHosts adds the hosts to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) SetHosts(hosts *string) { - o.Hosts = hosts -} - -// WithIgnoreNodes adds the ignoreNodes to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) WithIgnoreNodes(ignoreNodes *string) *StorageServiceRepairAsyncByKeyspacePostParams { - o.SetIgnoreNodes(ignoreNodes) - return o -} - -// SetIgnoreNodes adds the ignoreNodes to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) SetIgnoreNodes(ignoreNodes *string) { - o.IgnoreNodes = ignoreNodes -} - -// WithIncremental adds the incremental to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) WithIncremental(incremental *string) *StorageServiceRepairAsyncByKeyspacePostParams { - o.SetIncremental(incremental) - return o -} - -// SetIncremental adds the incremental to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) SetIncremental(incremental *string) { - o.Incremental = incremental -} - -// WithJobThreads adds the jobThreads to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) WithJobThreads(jobThreads *string) *StorageServiceRepairAsyncByKeyspacePostParams { - o.SetJobThreads(jobThreads) - return o -} - -// SetJobThreads adds the jobThreads to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) SetJobThreads(jobThreads *string) { - o.JobThreads = jobThreads -} - -// WithKeyspace adds the keyspace to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) WithKeyspace(keyspace string) *StorageServiceRepairAsyncByKeyspacePostParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) SetKeyspace(keyspace string) { - o.Keyspace = keyspace -} - -// WithParallelism adds the parallelism to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) WithParallelism(parallelism *string) *StorageServiceRepairAsyncByKeyspacePostParams { - o.SetParallelism(parallelism) - return o -} - -// SetParallelism adds the parallelism to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) SetParallelism(parallelism *string) { - o.Parallelism = parallelism -} - -// WithPrimaryRange adds the primaryRange to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) WithPrimaryRange(primaryRange *string) *StorageServiceRepairAsyncByKeyspacePostParams { - o.SetPrimaryRange(primaryRange) - return o -} - -// SetPrimaryRange adds the primaryRange to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) SetPrimaryRange(primaryRange *string) { - o.PrimaryRange = primaryRange -} - -// WithRanges adds the ranges to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) WithRanges(ranges *string) *StorageServiceRepairAsyncByKeyspacePostParams { - o.SetRanges(ranges) - return o -} - -// SetRanges adds the ranges to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) SetRanges(ranges *string) { - o.Ranges = ranges -} - -// WithRangesParallelism adds the rangesParallelism to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) WithRangesParallelism(rangesParallelism *string) *StorageServiceRepairAsyncByKeyspacePostParams { - o.SetRangesParallelism(rangesParallelism) - return o -} - -// SetRangesParallelism adds the rangesParallelism to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) SetRangesParallelism(rangesParallelism *string) { - o.RangesParallelism = rangesParallelism -} - -// WithSmallTableOptimization adds the smallTableOptimization to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) WithSmallTableOptimization(smallTableOptimization *string) *StorageServiceRepairAsyncByKeyspacePostParams { - o.SetSmallTableOptimization(smallTableOptimization) - return o -} - -// SetSmallTableOptimization adds the smallTableOptimization to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) SetSmallTableOptimization(smallTableOptimization *string) { - o.SmallTableOptimization = smallTableOptimization -} - -// WithStartToken adds the startToken to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) WithStartToken(startToken *string) *StorageServiceRepairAsyncByKeyspacePostParams { - o.SetStartToken(startToken) - return o -} - -// SetStartToken adds the startToken to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) SetStartToken(startToken *string) { - o.StartToken = startToken -} - -// WithTrace adds the trace to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) WithTrace(trace *string) *StorageServiceRepairAsyncByKeyspacePostParams { - o.SetTrace(trace) - return o -} - -// SetTrace adds the trace to the storage service repair async by keyspace post params -func (o *StorageServiceRepairAsyncByKeyspacePostParams) SetTrace(trace *string) { - o.Trace = trace -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceRepairAsyncByKeyspacePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.ColumnFamilies != nil { - - // query param columnFamilies - var qrColumnFamilies string - if o.ColumnFamilies != nil { - qrColumnFamilies = *o.ColumnFamilies - } - qColumnFamilies := qrColumnFamilies - if qColumnFamilies != "" { - if err := r.SetQueryParam("columnFamilies", qColumnFamilies); err != nil { - return err - } - } - - } - - if o.DataCenters != nil { - - // query param dataCenters - var qrDataCenters string - if o.DataCenters != nil { - qrDataCenters = *o.DataCenters - } - qDataCenters := qrDataCenters - if qDataCenters != "" { - if err := r.SetQueryParam("dataCenters", qDataCenters); err != nil { - return err - } - } - - } - - if o.EndToken != nil { - - // query param endToken - var qrEndToken string - if o.EndToken != nil { - qrEndToken = *o.EndToken - } - qEndToken := qrEndToken - if qEndToken != "" { - if err := r.SetQueryParam("endToken", qEndToken); err != nil { - return err - } - } - - } - - if o.Hosts != nil { - - // query param hosts - var qrHosts string - if o.Hosts != nil { - qrHosts = *o.Hosts - } - qHosts := qrHosts - if qHosts != "" { - if err := r.SetQueryParam("hosts", qHosts); err != nil { - return err - } - } - - } - - if o.IgnoreNodes != nil { - - // query param ignore_nodes - var qrIgnoreNodes string - if o.IgnoreNodes != nil { - qrIgnoreNodes = *o.IgnoreNodes - } - qIgnoreNodes := qrIgnoreNodes - if qIgnoreNodes != "" { - if err := r.SetQueryParam("ignore_nodes", qIgnoreNodes); err != nil { - return err - } - } - - } - - if o.Incremental != nil { - - // query param incremental - var qrIncremental string - if o.Incremental != nil { - qrIncremental = *o.Incremental - } - qIncremental := qrIncremental - if qIncremental != "" { - if err := r.SetQueryParam("incremental", qIncremental); err != nil { - return err - } - } - - } - - if o.JobThreads != nil { - - // query param jobThreads - var qrJobThreads string - if o.JobThreads != nil { - qrJobThreads = *o.JobThreads - } - qJobThreads := qrJobThreads - if qJobThreads != "" { - if err := r.SetQueryParam("jobThreads", qJobThreads); err != nil { - return err - } - } - - } - - // path param keyspace - if err := r.SetPathParam("keyspace", o.Keyspace); err != nil { - return err - } - - if o.Parallelism != nil { - - // query param parallelism - var qrParallelism string - if o.Parallelism != nil { - qrParallelism = *o.Parallelism - } - qParallelism := qrParallelism - if qParallelism != "" { - if err := r.SetQueryParam("parallelism", qParallelism); err != nil { - return err - } - } - - } - - if o.PrimaryRange != nil { - - // query param primaryRange - var qrPrimaryRange string - if o.PrimaryRange != nil { - qrPrimaryRange = *o.PrimaryRange - } - qPrimaryRange := qrPrimaryRange - if qPrimaryRange != "" { - if err := r.SetQueryParam("primaryRange", qPrimaryRange); err != nil { - return err - } - } - - } - - if o.Ranges != nil { - - // query param ranges - var qrRanges string - if o.Ranges != nil { - qrRanges = *o.Ranges - } - qRanges := qrRanges - if qRanges != "" { - if err := r.SetQueryParam("ranges", qRanges); err != nil { - return err - } - } - - } - - if o.RangesParallelism != nil { - - // query param ranges_parallelism - var qrRangesParallelism string - if o.RangesParallelism != nil { - qrRangesParallelism = *o.RangesParallelism - } - qRangesParallelism := qrRangesParallelism - if qRangesParallelism != "" { - if err := r.SetQueryParam("ranges_parallelism", qRangesParallelism); err != nil { - return err - } - } - - } - - if o.SmallTableOptimization != nil { - - // query param small_table_optimization - var qrSmallTableOptimization string - if o.SmallTableOptimization != nil { - qrSmallTableOptimization = *o.SmallTableOptimization - } - qSmallTableOptimization := qrSmallTableOptimization - if qSmallTableOptimization != "" { - if err := r.SetQueryParam("small_table_optimization", qSmallTableOptimization); err != nil { - return err - } - } - - } - - if o.StartToken != nil { - - // query param startToken - var qrStartToken string - if o.StartToken != nil { - qrStartToken = *o.StartToken - } - qStartToken := qrStartToken - if qStartToken != "" { - if err := r.SetQueryParam("startToken", qStartToken); err != nil { - return err - } - } - - } - - if o.Trace != nil { - - // query param trace - var qrTrace string - if o.Trace != nil { - qrTrace = *o.Trace - } - qTrace := qrTrace - if qTrace != "" { - if err := r.SetQueryParam("trace", qTrace); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_repair_async_by_keyspace_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_repair_async_by_keyspace_post_responses.go deleted file mode 100644 index cb0b212e0d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_repair_async_by_keyspace_post_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceRepairAsyncByKeyspacePostReader is a Reader for the StorageServiceRepairAsyncByKeyspacePost structure. -type StorageServiceRepairAsyncByKeyspacePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceRepairAsyncByKeyspacePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceRepairAsyncByKeyspacePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceRepairAsyncByKeyspacePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceRepairAsyncByKeyspacePostOK creates a StorageServiceRepairAsyncByKeyspacePostOK with default headers values -func NewStorageServiceRepairAsyncByKeyspacePostOK() *StorageServiceRepairAsyncByKeyspacePostOK { - return &StorageServiceRepairAsyncByKeyspacePostOK{} -} - -/* -StorageServiceRepairAsyncByKeyspacePostOK handles this case with default header values. - -Success -*/ -type StorageServiceRepairAsyncByKeyspacePostOK struct { - Payload int32 -} - -func (o *StorageServiceRepairAsyncByKeyspacePostOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageServiceRepairAsyncByKeyspacePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceRepairAsyncByKeyspacePostDefault creates a StorageServiceRepairAsyncByKeyspacePostDefault with default headers values -func NewStorageServiceRepairAsyncByKeyspacePostDefault(code int) *StorageServiceRepairAsyncByKeyspacePostDefault { - return &StorageServiceRepairAsyncByKeyspacePostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceRepairAsyncByKeyspacePostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceRepairAsyncByKeyspacePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service repair async by keyspace post default response -func (o *StorageServiceRepairAsyncByKeyspacePostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceRepairAsyncByKeyspacePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceRepairAsyncByKeyspacePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceRepairAsyncByKeyspacePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_repair_status_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_repair_status_parameters.go deleted file mode 100644 index 32d8e62964..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_repair_status_parameters.go +++ /dev/null @@ -1,173 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageServiceRepairStatusParams creates a new StorageServiceRepairStatusParams object -// with the default values initialized. -func NewStorageServiceRepairStatusParams() *StorageServiceRepairStatusParams { - var () - return &StorageServiceRepairStatusParams{ - - requestTimeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceRepairStatusParamsWithTimeout creates a new StorageServiceRepairStatusParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceRepairStatusParamsWithTimeout(timeout time.Duration) *StorageServiceRepairStatusParams { - var () - return &StorageServiceRepairStatusParams{ - - requestTimeout: timeout, - } -} - -// NewStorageServiceRepairStatusParamsWithContext creates a new StorageServiceRepairStatusParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceRepairStatusParamsWithContext(ctx context.Context) *StorageServiceRepairStatusParams { - var () - return &StorageServiceRepairStatusParams{ - - Context: ctx, - } -} - -// NewStorageServiceRepairStatusParamsWithHTTPClient creates a new StorageServiceRepairStatusParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceRepairStatusParamsWithHTTPClient(client *http.Client) *StorageServiceRepairStatusParams { - var () - return &StorageServiceRepairStatusParams{ - HTTPClient: client, - } -} - -/* -StorageServiceRepairStatusParams contains all the parameters to send to the API endpoint -for the storage service repair status operation typically these are written to a http.Request -*/ -type StorageServiceRepairStatusParams struct { - - /*ID - The repair ID to check for status - - */ - ID int32 - /*Timeout - Seconds to wait before the query returns even if the repair is not finished. The value -1 or not providing this parameter means no timeout - - */ - Timeout *int64 - - requestTimeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithRequestTimeout adds the timeout to the storage service repair status params -func (o *StorageServiceRepairStatusParams) WithRequestTimeout(timeout time.Duration) *StorageServiceRepairStatusParams { - o.SetRequestTimeout(timeout) - return o -} - -// SetRequestTimeout adds the timeout to the storage service repair status params -func (o *StorageServiceRepairStatusParams) SetRequestTimeout(timeout time.Duration) { - o.requestTimeout = timeout -} - -// WithContext adds the context to the storage service repair status params -func (o *StorageServiceRepairStatusParams) WithContext(ctx context.Context) *StorageServiceRepairStatusParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service repair status params -func (o *StorageServiceRepairStatusParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service repair status params -func (o *StorageServiceRepairStatusParams) WithHTTPClient(client *http.Client) *StorageServiceRepairStatusParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service repair status params -func (o *StorageServiceRepairStatusParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithID adds the id to the storage service repair status params -func (o *StorageServiceRepairStatusParams) WithID(id int32) *StorageServiceRepairStatusParams { - o.SetID(id) - return o -} - -// SetID adds the id to the storage service repair status params -func (o *StorageServiceRepairStatusParams) SetID(id int32) { - o.ID = id -} - -// WithTimeout adds the timeout to the storage service repair status params -func (o *StorageServiceRepairStatusParams) WithTimeout(timeout *int64) *StorageServiceRepairStatusParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service repair status params -func (o *StorageServiceRepairStatusParams) SetTimeout(timeout *int64) { - o.Timeout = timeout -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceRepairStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.requestTimeout); err != nil { - return err - } - var res []error - - // query param id - qrID := o.ID - qID := swag.FormatInt32(qrID) - if qID != "" { - if err := r.SetQueryParam("id", qID); err != nil { - return err - } - } - - if o.Timeout != nil { - - // query param timeout - var qrTimeout int64 - if o.Timeout != nil { - qrTimeout = *o.Timeout - } - qTimeout := swag.FormatInt64(qrTimeout) - if qTimeout != "" { - if err := r.SetQueryParam("timeout", qTimeout); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_repair_status_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_repair_status_responses.go deleted file mode 100644 index f3d224cd48..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_repair_status_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceRepairStatusReader is a Reader for the StorageServiceRepairStatus structure. -type StorageServiceRepairStatusReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceRepairStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceRepairStatusOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceRepairStatusDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceRepairStatusOK creates a StorageServiceRepairStatusOK with default headers values -func NewStorageServiceRepairStatusOK() *StorageServiceRepairStatusOK { - return &StorageServiceRepairStatusOK{} -} - -/* -StorageServiceRepairStatusOK handles this case with default header values. - -Repair status value -*/ -type StorageServiceRepairStatusOK struct { - Payload models.RepairAsyncStatusResponse -} - -func (o *StorageServiceRepairStatusOK) GetPayload() models.RepairAsyncStatusResponse { - return o.Payload -} - -func (o *StorageServiceRepairStatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceRepairStatusDefault creates a StorageServiceRepairStatusDefault with default headers values -func NewStorageServiceRepairStatusDefault(code int) *StorageServiceRepairStatusDefault { - return &StorageServiceRepairStatusDefault{ - _statusCode: code, - } -} - -/* -StorageServiceRepairStatusDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceRepairStatusDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service repair status default response -func (o *StorageServiceRepairStatusDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceRepairStatusDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceRepairStatusDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceRepairStatusDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_reschedule_failed_deletions_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_reschedule_failed_deletions_post_parameters.go deleted file mode 100644 index 094ac4e684..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_reschedule_failed_deletions_post_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceRescheduleFailedDeletionsPostParams creates a new StorageServiceRescheduleFailedDeletionsPostParams object -// with the default values initialized. -func NewStorageServiceRescheduleFailedDeletionsPostParams() *StorageServiceRescheduleFailedDeletionsPostParams { - - return &StorageServiceRescheduleFailedDeletionsPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceRescheduleFailedDeletionsPostParamsWithTimeout creates a new StorageServiceRescheduleFailedDeletionsPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceRescheduleFailedDeletionsPostParamsWithTimeout(timeout time.Duration) *StorageServiceRescheduleFailedDeletionsPostParams { - - return &StorageServiceRescheduleFailedDeletionsPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceRescheduleFailedDeletionsPostParamsWithContext creates a new StorageServiceRescheduleFailedDeletionsPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceRescheduleFailedDeletionsPostParamsWithContext(ctx context.Context) *StorageServiceRescheduleFailedDeletionsPostParams { - - return &StorageServiceRescheduleFailedDeletionsPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceRescheduleFailedDeletionsPostParamsWithHTTPClient creates a new StorageServiceRescheduleFailedDeletionsPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceRescheduleFailedDeletionsPostParamsWithHTTPClient(client *http.Client) *StorageServiceRescheduleFailedDeletionsPostParams { - - return &StorageServiceRescheduleFailedDeletionsPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceRescheduleFailedDeletionsPostParams contains all the parameters to send to the API endpoint -for the storage service reschedule failed deletions post operation typically these are written to a http.Request -*/ -type StorageServiceRescheduleFailedDeletionsPostParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service reschedule failed deletions post params -func (o *StorageServiceRescheduleFailedDeletionsPostParams) WithTimeout(timeout time.Duration) *StorageServiceRescheduleFailedDeletionsPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service reschedule failed deletions post params -func (o *StorageServiceRescheduleFailedDeletionsPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service reschedule failed deletions post params -func (o *StorageServiceRescheduleFailedDeletionsPostParams) WithContext(ctx context.Context) *StorageServiceRescheduleFailedDeletionsPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service reschedule failed deletions post params -func (o *StorageServiceRescheduleFailedDeletionsPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service reschedule failed deletions post params -func (o *StorageServiceRescheduleFailedDeletionsPostParams) WithHTTPClient(client *http.Client) *StorageServiceRescheduleFailedDeletionsPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service reschedule failed deletions post params -func (o *StorageServiceRescheduleFailedDeletionsPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceRescheduleFailedDeletionsPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_reschedule_failed_deletions_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_reschedule_failed_deletions_post_responses.go deleted file mode 100644 index 747d18db56..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_reschedule_failed_deletions_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceRescheduleFailedDeletionsPostReader is a Reader for the StorageServiceRescheduleFailedDeletionsPost structure. -type StorageServiceRescheduleFailedDeletionsPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceRescheduleFailedDeletionsPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceRescheduleFailedDeletionsPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceRescheduleFailedDeletionsPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceRescheduleFailedDeletionsPostOK creates a StorageServiceRescheduleFailedDeletionsPostOK with default headers values -func NewStorageServiceRescheduleFailedDeletionsPostOK() *StorageServiceRescheduleFailedDeletionsPostOK { - return &StorageServiceRescheduleFailedDeletionsPostOK{} -} - -/* -StorageServiceRescheduleFailedDeletionsPostOK handles this case with default header values. - -Success -*/ -type StorageServiceRescheduleFailedDeletionsPostOK struct { -} - -func (o *StorageServiceRescheduleFailedDeletionsPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceRescheduleFailedDeletionsPostDefault creates a StorageServiceRescheduleFailedDeletionsPostDefault with default headers values -func NewStorageServiceRescheduleFailedDeletionsPostDefault(code int) *StorageServiceRescheduleFailedDeletionsPostDefault { - return &StorageServiceRescheduleFailedDeletionsPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceRescheduleFailedDeletionsPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceRescheduleFailedDeletionsPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service reschedule failed deletions post default response -func (o *StorageServiceRescheduleFailedDeletionsPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceRescheduleFailedDeletionsPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceRescheduleFailedDeletionsPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceRescheduleFailedDeletionsPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_restore_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_restore_post_parameters.go deleted file mode 100644 index 3838fbfd03..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_restore_post_parameters.go +++ /dev/null @@ -1,327 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageServiceRestorePostParams creates a new StorageServiceRestorePostParams object -// with the default values initialized. -func NewStorageServiceRestorePostParams() *StorageServiceRestorePostParams { - var () - return &StorageServiceRestorePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceRestorePostParamsWithTimeout creates a new StorageServiceRestorePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceRestorePostParamsWithTimeout(timeout time.Duration) *StorageServiceRestorePostParams { - var () - return &StorageServiceRestorePostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceRestorePostParamsWithContext creates a new StorageServiceRestorePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceRestorePostParamsWithContext(ctx context.Context) *StorageServiceRestorePostParams { - var () - return &StorageServiceRestorePostParams{ - - Context: ctx, - } -} - -// NewStorageServiceRestorePostParamsWithHTTPClient creates a new StorageServiceRestorePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceRestorePostParamsWithHTTPClient(client *http.Client) *StorageServiceRestorePostParams { - var () - return &StorageServiceRestorePostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceRestorePostParams contains all the parameters to send to the API endpoint -for the storage service restore post operation typically these are written to a http.Request -*/ -type StorageServiceRestorePostParams struct { - - /*Bucket - Name of the bucket to read SSTables from - - */ - Bucket string - /*Endpoint - ID of the configured object storage endpoint to copy SSTables from - - */ - Endpoint string - /*Keyspace - Name of a keyspace to copy SSTables to - - */ - Keyspace string - /*Prefix - The prefix of the object keys for the backuped SSTables - - */ - Prefix string - /*PrimaryReplicaOnly - Load the sstables and stream to the primary replica node within the scope, if one is specified. If not, stream to the global primary replica. - - */ - PrimaryReplicaOnly *bool - /*Scope - Defines the set of nodes to which mutations can be streamed - - */ - Scope *string - /*Sstables - The list of the object keys of the TOC component of the SSTables to be restored - - */ - Sstables []string - /*Table - Name of a table to copy SSTables to - - */ - Table string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service restore post params -func (o *StorageServiceRestorePostParams) WithTimeout(timeout time.Duration) *StorageServiceRestorePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service restore post params -func (o *StorageServiceRestorePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service restore post params -func (o *StorageServiceRestorePostParams) WithContext(ctx context.Context) *StorageServiceRestorePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service restore post params -func (o *StorageServiceRestorePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service restore post params -func (o *StorageServiceRestorePostParams) WithHTTPClient(client *http.Client) *StorageServiceRestorePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service restore post params -func (o *StorageServiceRestorePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithBucket adds the bucket to the storage service restore post params -func (o *StorageServiceRestorePostParams) WithBucket(bucket string) *StorageServiceRestorePostParams { - o.SetBucket(bucket) - return o -} - -// SetBucket adds the bucket to the storage service restore post params -func (o *StorageServiceRestorePostParams) SetBucket(bucket string) { - o.Bucket = bucket -} - -// WithEndpoint adds the endpoint to the storage service restore post params -func (o *StorageServiceRestorePostParams) WithEndpoint(endpoint string) *StorageServiceRestorePostParams { - o.SetEndpoint(endpoint) - return o -} - -// SetEndpoint adds the endpoint to the storage service restore post params -func (o *StorageServiceRestorePostParams) SetEndpoint(endpoint string) { - o.Endpoint = endpoint -} - -// WithKeyspace adds the keyspace to the storage service restore post params -func (o *StorageServiceRestorePostParams) WithKeyspace(keyspace string) *StorageServiceRestorePostParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the storage service restore post params -func (o *StorageServiceRestorePostParams) SetKeyspace(keyspace string) { - o.Keyspace = keyspace -} - -// WithPrefix adds the prefix to the storage service restore post params -func (o *StorageServiceRestorePostParams) WithPrefix(prefix string) *StorageServiceRestorePostParams { - o.SetPrefix(prefix) - return o -} - -// SetPrefix adds the prefix to the storage service restore post params -func (o *StorageServiceRestorePostParams) SetPrefix(prefix string) { - o.Prefix = prefix -} - -// WithPrimaryReplicaOnly adds the primaryReplicaOnly to the storage service restore post params -func (o *StorageServiceRestorePostParams) WithPrimaryReplicaOnly(primaryReplicaOnly *bool) *StorageServiceRestorePostParams { - o.SetPrimaryReplicaOnly(primaryReplicaOnly) - return o -} - -// SetPrimaryReplicaOnly adds the primaryReplicaOnly to the storage service restore post params -func (o *StorageServiceRestorePostParams) SetPrimaryReplicaOnly(primaryReplicaOnly *bool) { - o.PrimaryReplicaOnly = primaryReplicaOnly -} - -// WithScope adds the scope to the storage service restore post params -func (o *StorageServiceRestorePostParams) WithScope(scope *string) *StorageServiceRestorePostParams { - o.SetScope(scope) - return o -} - -// SetScope adds the scope to the storage service restore post params -func (o *StorageServiceRestorePostParams) SetScope(scope *string) { - o.Scope = scope -} - -// WithSstables adds the sstables to the storage service restore post params -func (o *StorageServiceRestorePostParams) WithSstables(sstables []string) *StorageServiceRestorePostParams { - o.SetSstables(sstables) - return o -} - -// SetSstables adds the sstables to the storage service restore post params -func (o *StorageServiceRestorePostParams) SetSstables(sstables []string) { - o.Sstables = sstables -} - -// WithTable adds the table to the storage service restore post params -func (o *StorageServiceRestorePostParams) WithTable(table string) *StorageServiceRestorePostParams { - o.SetTable(table) - return o -} - -// SetTable adds the table to the storage service restore post params -func (o *StorageServiceRestorePostParams) SetTable(table string) { - o.Table = table -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceRestorePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param bucket - qrBucket := o.Bucket - qBucket := qrBucket - if qBucket != "" { - if err := r.SetQueryParam("bucket", qBucket); err != nil { - return err - } - } - - // query param endpoint - qrEndpoint := o.Endpoint - qEndpoint := qrEndpoint - if qEndpoint != "" { - if err := r.SetQueryParam("endpoint", qEndpoint); err != nil { - return err - } - } - - // query param keyspace - qrKeyspace := o.Keyspace - qKeyspace := qrKeyspace - if qKeyspace != "" { - if err := r.SetQueryParam("keyspace", qKeyspace); err != nil { - return err - } - } - - // query param prefix - qrPrefix := o.Prefix - qPrefix := qrPrefix - if qPrefix != "" { - if err := r.SetQueryParam("prefix", qPrefix); err != nil { - return err - } - } - - if o.PrimaryReplicaOnly != nil { - - // query param primary_replica_only - var qrPrimaryReplicaOnly bool - if o.PrimaryReplicaOnly != nil { - qrPrimaryReplicaOnly = *o.PrimaryReplicaOnly - } - qPrimaryReplicaOnly := swag.FormatBool(qrPrimaryReplicaOnly) - if qPrimaryReplicaOnly != "" { - if err := r.SetQueryParam("primary_replica_only", qPrimaryReplicaOnly); err != nil { - return err - } - } - - } - - if o.Scope != nil { - - // query param scope - var qrScope string - if o.Scope != nil { - qrScope = *o.Scope - } - qScope := qrScope - if qScope != "" { - if err := r.SetQueryParam("scope", qScope); err != nil { - return err - } - } - - } - - if o.Sstables != nil { - if err := r.SetBodyParam(o.Sstables); err != nil { - return err - } - } - - // query param table - qrTable := o.Table - qTable := qrTable - if qTable != "" { - if err := r.SetQueryParam("table", qTable); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_restore_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_restore_post_responses.go deleted file mode 100644 index 10edb2f607..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_restore_post_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceRestorePostReader is a Reader for the StorageServiceRestorePost structure. -type StorageServiceRestorePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceRestorePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceRestorePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceRestorePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceRestorePostOK creates a StorageServiceRestorePostOK with default headers values -func NewStorageServiceRestorePostOK() *StorageServiceRestorePostOK { - return &StorageServiceRestorePostOK{} -} - -/* -StorageServiceRestorePostOK handles this case with default header values. - -Task ID that can be used with Task Manager service -*/ -type StorageServiceRestorePostOK struct { - Payload string -} - -func (o *StorageServiceRestorePostOK) GetPayload() string { - return o.Payload -} - -func (o *StorageServiceRestorePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceRestorePostDefault creates a StorageServiceRestorePostDefault with default headers values -func NewStorageServiceRestorePostDefault(code int) *StorageServiceRestorePostDefault { - return &StorageServiceRestorePostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceRestorePostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceRestorePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service restore post default response -func (o *StorageServiceRestorePostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceRestorePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceRestorePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceRestorePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rpc_server_delete_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rpc_server_delete_parameters.go deleted file mode 100644 index 01805f5ffd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rpc_server_delete_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceRPCServerDeleteParams creates a new StorageServiceRPCServerDeleteParams object -// with the default values initialized. -func NewStorageServiceRPCServerDeleteParams() *StorageServiceRPCServerDeleteParams { - - return &StorageServiceRPCServerDeleteParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceRPCServerDeleteParamsWithTimeout creates a new StorageServiceRPCServerDeleteParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceRPCServerDeleteParamsWithTimeout(timeout time.Duration) *StorageServiceRPCServerDeleteParams { - - return &StorageServiceRPCServerDeleteParams{ - - timeout: timeout, - } -} - -// NewStorageServiceRPCServerDeleteParamsWithContext creates a new StorageServiceRPCServerDeleteParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceRPCServerDeleteParamsWithContext(ctx context.Context) *StorageServiceRPCServerDeleteParams { - - return &StorageServiceRPCServerDeleteParams{ - - Context: ctx, - } -} - -// NewStorageServiceRPCServerDeleteParamsWithHTTPClient creates a new StorageServiceRPCServerDeleteParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceRPCServerDeleteParamsWithHTTPClient(client *http.Client) *StorageServiceRPCServerDeleteParams { - - return &StorageServiceRPCServerDeleteParams{ - HTTPClient: client, - } -} - -/* -StorageServiceRPCServerDeleteParams contains all the parameters to send to the API endpoint -for the storage service Rpc server delete operation typically these are written to a http.Request -*/ -type StorageServiceRPCServerDeleteParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service Rpc server delete params -func (o *StorageServiceRPCServerDeleteParams) WithTimeout(timeout time.Duration) *StorageServiceRPCServerDeleteParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service Rpc server delete params -func (o *StorageServiceRPCServerDeleteParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service Rpc server delete params -func (o *StorageServiceRPCServerDeleteParams) WithContext(ctx context.Context) *StorageServiceRPCServerDeleteParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service Rpc server delete params -func (o *StorageServiceRPCServerDeleteParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service Rpc server delete params -func (o *StorageServiceRPCServerDeleteParams) WithHTTPClient(client *http.Client) *StorageServiceRPCServerDeleteParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service Rpc server delete params -func (o *StorageServiceRPCServerDeleteParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceRPCServerDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rpc_server_delete_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rpc_server_delete_responses.go deleted file mode 100644 index 74b2ee53db..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rpc_server_delete_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceRPCServerDeleteReader is a Reader for the StorageServiceRPCServerDelete structure. -type StorageServiceRPCServerDeleteReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceRPCServerDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceRPCServerDeleteOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceRPCServerDeleteDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceRPCServerDeleteOK creates a StorageServiceRPCServerDeleteOK with default headers values -func NewStorageServiceRPCServerDeleteOK() *StorageServiceRPCServerDeleteOK { - return &StorageServiceRPCServerDeleteOK{} -} - -/* -StorageServiceRPCServerDeleteOK handles this case with default header values. - -Success -*/ -type StorageServiceRPCServerDeleteOK struct { -} - -func (o *StorageServiceRPCServerDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceRPCServerDeleteDefault creates a StorageServiceRPCServerDeleteDefault with default headers values -func NewStorageServiceRPCServerDeleteDefault(code int) *StorageServiceRPCServerDeleteDefault { - return &StorageServiceRPCServerDeleteDefault{ - _statusCode: code, - } -} - -/* -StorageServiceRPCServerDeleteDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceRPCServerDeleteDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service Rpc server delete default response -func (o *StorageServiceRPCServerDeleteDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceRPCServerDeleteDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceRPCServerDeleteDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceRPCServerDeleteDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rpc_server_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rpc_server_get_parameters.go deleted file mode 100644 index 1c3a0ea581..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rpc_server_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceRPCServerGetParams creates a new StorageServiceRPCServerGetParams object -// with the default values initialized. -func NewStorageServiceRPCServerGetParams() *StorageServiceRPCServerGetParams { - - return &StorageServiceRPCServerGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceRPCServerGetParamsWithTimeout creates a new StorageServiceRPCServerGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceRPCServerGetParamsWithTimeout(timeout time.Duration) *StorageServiceRPCServerGetParams { - - return &StorageServiceRPCServerGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceRPCServerGetParamsWithContext creates a new StorageServiceRPCServerGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceRPCServerGetParamsWithContext(ctx context.Context) *StorageServiceRPCServerGetParams { - - return &StorageServiceRPCServerGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceRPCServerGetParamsWithHTTPClient creates a new StorageServiceRPCServerGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceRPCServerGetParamsWithHTTPClient(client *http.Client) *StorageServiceRPCServerGetParams { - - return &StorageServiceRPCServerGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceRPCServerGetParams contains all the parameters to send to the API endpoint -for the storage service Rpc server get operation typically these are written to a http.Request -*/ -type StorageServiceRPCServerGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service Rpc server get params -func (o *StorageServiceRPCServerGetParams) WithTimeout(timeout time.Duration) *StorageServiceRPCServerGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service Rpc server get params -func (o *StorageServiceRPCServerGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service Rpc server get params -func (o *StorageServiceRPCServerGetParams) WithContext(ctx context.Context) *StorageServiceRPCServerGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service Rpc server get params -func (o *StorageServiceRPCServerGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service Rpc server get params -func (o *StorageServiceRPCServerGetParams) WithHTTPClient(client *http.Client) *StorageServiceRPCServerGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service Rpc server get params -func (o *StorageServiceRPCServerGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceRPCServerGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rpc_server_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rpc_server_get_responses.go deleted file mode 100644 index 841a23ed6a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rpc_server_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceRPCServerGetReader is a Reader for the StorageServiceRPCServerGet structure. -type StorageServiceRPCServerGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceRPCServerGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceRPCServerGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceRPCServerGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceRPCServerGetOK creates a StorageServiceRPCServerGetOK with default headers values -func NewStorageServiceRPCServerGetOK() *StorageServiceRPCServerGetOK { - return &StorageServiceRPCServerGetOK{} -} - -/* -StorageServiceRPCServerGetOK handles this case with default header values. - -Success -*/ -type StorageServiceRPCServerGetOK struct { - Payload bool -} - -func (o *StorageServiceRPCServerGetOK) GetPayload() bool { - return o.Payload -} - -func (o *StorageServiceRPCServerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceRPCServerGetDefault creates a StorageServiceRPCServerGetDefault with default headers values -func NewStorageServiceRPCServerGetDefault(code int) *StorageServiceRPCServerGetDefault { - return &StorageServiceRPCServerGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceRPCServerGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceRPCServerGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service Rpc server get default response -func (o *StorageServiceRPCServerGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceRPCServerGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceRPCServerGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceRPCServerGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rpc_server_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rpc_server_post_parameters.go deleted file mode 100644 index 33b7f87d7c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rpc_server_post_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceRPCServerPostParams creates a new StorageServiceRPCServerPostParams object -// with the default values initialized. -func NewStorageServiceRPCServerPostParams() *StorageServiceRPCServerPostParams { - - return &StorageServiceRPCServerPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceRPCServerPostParamsWithTimeout creates a new StorageServiceRPCServerPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceRPCServerPostParamsWithTimeout(timeout time.Duration) *StorageServiceRPCServerPostParams { - - return &StorageServiceRPCServerPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceRPCServerPostParamsWithContext creates a new StorageServiceRPCServerPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceRPCServerPostParamsWithContext(ctx context.Context) *StorageServiceRPCServerPostParams { - - return &StorageServiceRPCServerPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceRPCServerPostParamsWithHTTPClient creates a new StorageServiceRPCServerPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceRPCServerPostParamsWithHTTPClient(client *http.Client) *StorageServiceRPCServerPostParams { - - return &StorageServiceRPCServerPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceRPCServerPostParams contains all the parameters to send to the API endpoint -for the storage service Rpc server post operation typically these are written to a http.Request -*/ -type StorageServiceRPCServerPostParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service Rpc server post params -func (o *StorageServiceRPCServerPostParams) WithTimeout(timeout time.Duration) *StorageServiceRPCServerPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service Rpc server post params -func (o *StorageServiceRPCServerPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service Rpc server post params -func (o *StorageServiceRPCServerPostParams) WithContext(ctx context.Context) *StorageServiceRPCServerPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service Rpc server post params -func (o *StorageServiceRPCServerPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service Rpc server post params -func (o *StorageServiceRPCServerPostParams) WithHTTPClient(client *http.Client) *StorageServiceRPCServerPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service Rpc server post params -func (o *StorageServiceRPCServerPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceRPCServerPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rpc_server_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rpc_server_post_responses.go deleted file mode 100644 index fe01555e69..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_rpc_server_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceRPCServerPostReader is a Reader for the StorageServiceRPCServerPost structure. -type StorageServiceRPCServerPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceRPCServerPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceRPCServerPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceRPCServerPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceRPCServerPostOK creates a StorageServiceRPCServerPostOK with default headers values -func NewStorageServiceRPCServerPostOK() *StorageServiceRPCServerPostOK { - return &StorageServiceRPCServerPostOK{} -} - -/* -StorageServiceRPCServerPostOK handles this case with default header values. - -Success -*/ -type StorageServiceRPCServerPostOK struct { -} - -func (o *StorageServiceRPCServerPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceRPCServerPostDefault creates a StorageServiceRPCServerPostDefault with default headers values -func NewStorageServiceRPCServerPostDefault(code int) *StorageServiceRPCServerPostDefault { - return &StorageServiceRPCServerPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceRPCServerPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceRPCServerPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service Rpc server post default response -func (o *StorageServiceRPCServerPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceRPCServerPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceRPCServerPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceRPCServerPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_sample_key_range_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_sample_key_range_get_parameters.go deleted file mode 100644 index 2f5f5557f4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_sample_key_range_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceSampleKeyRangeGetParams creates a new StorageServiceSampleKeyRangeGetParams object -// with the default values initialized. -func NewStorageServiceSampleKeyRangeGetParams() *StorageServiceSampleKeyRangeGetParams { - - return &StorageServiceSampleKeyRangeGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceSampleKeyRangeGetParamsWithTimeout creates a new StorageServiceSampleKeyRangeGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceSampleKeyRangeGetParamsWithTimeout(timeout time.Duration) *StorageServiceSampleKeyRangeGetParams { - - return &StorageServiceSampleKeyRangeGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceSampleKeyRangeGetParamsWithContext creates a new StorageServiceSampleKeyRangeGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceSampleKeyRangeGetParamsWithContext(ctx context.Context) *StorageServiceSampleKeyRangeGetParams { - - return &StorageServiceSampleKeyRangeGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceSampleKeyRangeGetParamsWithHTTPClient creates a new StorageServiceSampleKeyRangeGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceSampleKeyRangeGetParamsWithHTTPClient(client *http.Client) *StorageServiceSampleKeyRangeGetParams { - - return &StorageServiceSampleKeyRangeGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceSampleKeyRangeGetParams contains all the parameters to send to the API endpoint -for the storage service sample key range get operation typically these are written to a http.Request -*/ -type StorageServiceSampleKeyRangeGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service sample key range get params -func (o *StorageServiceSampleKeyRangeGetParams) WithTimeout(timeout time.Duration) *StorageServiceSampleKeyRangeGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service sample key range get params -func (o *StorageServiceSampleKeyRangeGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service sample key range get params -func (o *StorageServiceSampleKeyRangeGetParams) WithContext(ctx context.Context) *StorageServiceSampleKeyRangeGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service sample key range get params -func (o *StorageServiceSampleKeyRangeGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service sample key range get params -func (o *StorageServiceSampleKeyRangeGetParams) WithHTTPClient(client *http.Client) *StorageServiceSampleKeyRangeGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service sample key range get params -func (o *StorageServiceSampleKeyRangeGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceSampleKeyRangeGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_sample_key_range_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_sample_key_range_get_responses.go deleted file mode 100644 index 3da0c7914f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_sample_key_range_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceSampleKeyRangeGetReader is a Reader for the StorageServiceSampleKeyRangeGet structure. -type StorageServiceSampleKeyRangeGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceSampleKeyRangeGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceSampleKeyRangeGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceSampleKeyRangeGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceSampleKeyRangeGetOK creates a StorageServiceSampleKeyRangeGetOK with default headers values -func NewStorageServiceSampleKeyRangeGetOK() *StorageServiceSampleKeyRangeGetOK { - return &StorageServiceSampleKeyRangeGetOK{} -} - -/* -StorageServiceSampleKeyRangeGetOK handles this case with default header values. - -Success -*/ -type StorageServiceSampleKeyRangeGetOK struct { - Payload []string -} - -func (o *StorageServiceSampleKeyRangeGetOK) GetPayload() []string { - return o.Payload -} - -func (o *StorageServiceSampleKeyRangeGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceSampleKeyRangeGetDefault creates a StorageServiceSampleKeyRangeGetDefault with default headers values -func NewStorageServiceSampleKeyRangeGetDefault(code int) *StorageServiceSampleKeyRangeGetDefault { - return &StorageServiceSampleKeyRangeGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceSampleKeyRangeGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceSampleKeyRangeGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service sample key range get default response -func (o *StorageServiceSampleKeyRangeGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceSampleKeyRangeGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceSampleKeyRangeGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceSampleKeyRangeGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_saved_caches_location_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_saved_caches_location_get_parameters.go deleted file mode 100644 index f216a226aa..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_saved_caches_location_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceSavedCachesLocationGetParams creates a new StorageServiceSavedCachesLocationGetParams object -// with the default values initialized. -func NewStorageServiceSavedCachesLocationGetParams() *StorageServiceSavedCachesLocationGetParams { - - return &StorageServiceSavedCachesLocationGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceSavedCachesLocationGetParamsWithTimeout creates a new StorageServiceSavedCachesLocationGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceSavedCachesLocationGetParamsWithTimeout(timeout time.Duration) *StorageServiceSavedCachesLocationGetParams { - - return &StorageServiceSavedCachesLocationGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceSavedCachesLocationGetParamsWithContext creates a new StorageServiceSavedCachesLocationGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceSavedCachesLocationGetParamsWithContext(ctx context.Context) *StorageServiceSavedCachesLocationGetParams { - - return &StorageServiceSavedCachesLocationGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceSavedCachesLocationGetParamsWithHTTPClient creates a new StorageServiceSavedCachesLocationGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceSavedCachesLocationGetParamsWithHTTPClient(client *http.Client) *StorageServiceSavedCachesLocationGetParams { - - return &StorageServiceSavedCachesLocationGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceSavedCachesLocationGetParams contains all the parameters to send to the API endpoint -for the storage service saved caches location get operation typically these are written to a http.Request -*/ -type StorageServiceSavedCachesLocationGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service saved caches location get params -func (o *StorageServiceSavedCachesLocationGetParams) WithTimeout(timeout time.Duration) *StorageServiceSavedCachesLocationGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service saved caches location get params -func (o *StorageServiceSavedCachesLocationGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service saved caches location get params -func (o *StorageServiceSavedCachesLocationGetParams) WithContext(ctx context.Context) *StorageServiceSavedCachesLocationGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service saved caches location get params -func (o *StorageServiceSavedCachesLocationGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service saved caches location get params -func (o *StorageServiceSavedCachesLocationGetParams) WithHTTPClient(client *http.Client) *StorageServiceSavedCachesLocationGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service saved caches location get params -func (o *StorageServiceSavedCachesLocationGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceSavedCachesLocationGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_saved_caches_location_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_saved_caches_location_get_responses.go deleted file mode 100644 index f9d56ad2d7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_saved_caches_location_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceSavedCachesLocationGetReader is a Reader for the StorageServiceSavedCachesLocationGet structure. -type StorageServiceSavedCachesLocationGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceSavedCachesLocationGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceSavedCachesLocationGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceSavedCachesLocationGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceSavedCachesLocationGetOK creates a StorageServiceSavedCachesLocationGetOK with default headers values -func NewStorageServiceSavedCachesLocationGetOK() *StorageServiceSavedCachesLocationGetOK { - return &StorageServiceSavedCachesLocationGetOK{} -} - -/* -StorageServiceSavedCachesLocationGetOK handles this case with default header values. - -Success -*/ -type StorageServiceSavedCachesLocationGetOK struct { - Payload string -} - -func (o *StorageServiceSavedCachesLocationGetOK) GetPayload() string { - return o.Payload -} - -func (o *StorageServiceSavedCachesLocationGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceSavedCachesLocationGetDefault creates a StorageServiceSavedCachesLocationGetDefault with default headers values -func NewStorageServiceSavedCachesLocationGetDefault(code int) *StorageServiceSavedCachesLocationGetDefault { - return &StorageServiceSavedCachesLocationGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceSavedCachesLocationGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceSavedCachesLocationGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service saved caches location get default response -func (o *StorageServiceSavedCachesLocationGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceSavedCachesLocationGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceSavedCachesLocationGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceSavedCachesLocationGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_schema_version_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_schema_version_get_parameters.go deleted file mode 100644 index 4050f48863..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_schema_version_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceSchemaVersionGetParams creates a new StorageServiceSchemaVersionGetParams object -// with the default values initialized. -func NewStorageServiceSchemaVersionGetParams() *StorageServiceSchemaVersionGetParams { - - return &StorageServiceSchemaVersionGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceSchemaVersionGetParamsWithTimeout creates a new StorageServiceSchemaVersionGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceSchemaVersionGetParamsWithTimeout(timeout time.Duration) *StorageServiceSchemaVersionGetParams { - - return &StorageServiceSchemaVersionGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceSchemaVersionGetParamsWithContext creates a new StorageServiceSchemaVersionGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceSchemaVersionGetParamsWithContext(ctx context.Context) *StorageServiceSchemaVersionGetParams { - - return &StorageServiceSchemaVersionGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceSchemaVersionGetParamsWithHTTPClient creates a new StorageServiceSchemaVersionGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceSchemaVersionGetParamsWithHTTPClient(client *http.Client) *StorageServiceSchemaVersionGetParams { - - return &StorageServiceSchemaVersionGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceSchemaVersionGetParams contains all the parameters to send to the API endpoint -for the storage service schema version get operation typically these are written to a http.Request -*/ -type StorageServiceSchemaVersionGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service schema version get params -func (o *StorageServiceSchemaVersionGetParams) WithTimeout(timeout time.Duration) *StorageServiceSchemaVersionGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service schema version get params -func (o *StorageServiceSchemaVersionGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service schema version get params -func (o *StorageServiceSchemaVersionGetParams) WithContext(ctx context.Context) *StorageServiceSchemaVersionGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service schema version get params -func (o *StorageServiceSchemaVersionGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service schema version get params -func (o *StorageServiceSchemaVersionGetParams) WithHTTPClient(client *http.Client) *StorageServiceSchemaVersionGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service schema version get params -func (o *StorageServiceSchemaVersionGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceSchemaVersionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_schema_version_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_schema_version_get_responses.go deleted file mode 100644 index f7c12a6634..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_schema_version_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceSchemaVersionGetReader is a Reader for the StorageServiceSchemaVersionGet structure. -type StorageServiceSchemaVersionGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceSchemaVersionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceSchemaVersionGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceSchemaVersionGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceSchemaVersionGetOK creates a StorageServiceSchemaVersionGetOK with default headers values -func NewStorageServiceSchemaVersionGetOK() *StorageServiceSchemaVersionGetOK { - return &StorageServiceSchemaVersionGetOK{} -} - -/* -StorageServiceSchemaVersionGetOK handles this case with default header values. - -Success -*/ -type StorageServiceSchemaVersionGetOK struct { - Payload string -} - -func (o *StorageServiceSchemaVersionGetOK) GetPayload() string { - return o.Payload -} - -func (o *StorageServiceSchemaVersionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceSchemaVersionGetDefault creates a StorageServiceSchemaVersionGetDefault with default headers values -func NewStorageServiceSchemaVersionGetDefault(code int) *StorageServiceSchemaVersionGetDefault { - return &StorageServiceSchemaVersionGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceSchemaVersionGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceSchemaVersionGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service schema version get default response -func (o *StorageServiceSchemaVersionGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceSchemaVersionGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceSchemaVersionGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceSchemaVersionGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_scylla_release_version_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_scylla_release_version_get_parameters.go deleted file mode 100644 index 4298278f55..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_scylla_release_version_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceScyllaReleaseVersionGetParams creates a new StorageServiceScyllaReleaseVersionGetParams object -// with the default values initialized. -func NewStorageServiceScyllaReleaseVersionGetParams() *StorageServiceScyllaReleaseVersionGetParams { - - return &StorageServiceScyllaReleaseVersionGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceScyllaReleaseVersionGetParamsWithTimeout creates a new StorageServiceScyllaReleaseVersionGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceScyllaReleaseVersionGetParamsWithTimeout(timeout time.Duration) *StorageServiceScyllaReleaseVersionGetParams { - - return &StorageServiceScyllaReleaseVersionGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceScyllaReleaseVersionGetParamsWithContext creates a new StorageServiceScyllaReleaseVersionGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceScyllaReleaseVersionGetParamsWithContext(ctx context.Context) *StorageServiceScyllaReleaseVersionGetParams { - - return &StorageServiceScyllaReleaseVersionGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceScyllaReleaseVersionGetParamsWithHTTPClient creates a new StorageServiceScyllaReleaseVersionGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceScyllaReleaseVersionGetParamsWithHTTPClient(client *http.Client) *StorageServiceScyllaReleaseVersionGetParams { - - return &StorageServiceScyllaReleaseVersionGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceScyllaReleaseVersionGetParams contains all the parameters to send to the API endpoint -for the storage service scylla release version get operation typically these are written to a http.Request -*/ -type StorageServiceScyllaReleaseVersionGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service scylla release version get params -func (o *StorageServiceScyllaReleaseVersionGetParams) WithTimeout(timeout time.Duration) *StorageServiceScyllaReleaseVersionGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service scylla release version get params -func (o *StorageServiceScyllaReleaseVersionGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service scylla release version get params -func (o *StorageServiceScyllaReleaseVersionGetParams) WithContext(ctx context.Context) *StorageServiceScyllaReleaseVersionGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service scylla release version get params -func (o *StorageServiceScyllaReleaseVersionGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service scylla release version get params -func (o *StorageServiceScyllaReleaseVersionGetParams) WithHTTPClient(client *http.Client) *StorageServiceScyllaReleaseVersionGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service scylla release version get params -func (o *StorageServiceScyllaReleaseVersionGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceScyllaReleaseVersionGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_scylla_release_version_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_scylla_release_version_get_responses.go deleted file mode 100644 index 6ebb9a2450..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_scylla_release_version_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceScyllaReleaseVersionGetReader is a Reader for the StorageServiceScyllaReleaseVersionGet structure. -type StorageServiceScyllaReleaseVersionGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceScyllaReleaseVersionGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceScyllaReleaseVersionGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceScyllaReleaseVersionGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceScyllaReleaseVersionGetOK creates a StorageServiceScyllaReleaseVersionGetOK with default headers values -func NewStorageServiceScyllaReleaseVersionGetOK() *StorageServiceScyllaReleaseVersionGetOK { - return &StorageServiceScyllaReleaseVersionGetOK{} -} - -/* -StorageServiceScyllaReleaseVersionGetOK handles this case with default header values. - -Success -*/ -type StorageServiceScyllaReleaseVersionGetOK struct { - Payload string -} - -func (o *StorageServiceScyllaReleaseVersionGetOK) GetPayload() string { - return o.Payload -} - -func (o *StorageServiceScyllaReleaseVersionGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceScyllaReleaseVersionGetDefault creates a StorageServiceScyllaReleaseVersionGetDefault with default headers values -func NewStorageServiceScyllaReleaseVersionGetDefault(code int) *StorageServiceScyllaReleaseVersionGetDefault { - return &StorageServiceScyllaReleaseVersionGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceScyllaReleaseVersionGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceScyllaReleaseVersionGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service scylla release version get default response -func (o *StorageServiceScyllaReleaseVersionGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceScyllaReleaseVersionGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceScyllaReleaseVersionGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceScyllaReleaseVersionGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_slow_query_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_slow_query_get_parameters.go deleted file mode 100644 index 5809eac4b0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_slow_query_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceSlowQueryGetParams creates a new StorageServiceSlowQueryGetParams object -// with the default values initialized. -func NewStorageServiceSlowQueryGetParams() *StorageServiceSlowQueryGetParams { - - return &StorageServiceSlowQueryGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceSlowQueryGetParamsWithTimeout creates a new StorageServiceSlowQueryGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceSlowQueryGetParamsWithTimeout(timeout time.Duration) *StorageServiceSlowQueryGetParams { - - return &StorageServiceSlowQueryGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceSlowQueryGetParamsWithContext creates a new StorageServiceSlowQueryGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceSlowQueryGetParamsWithContext(ctx context.Context) *StorageServiceSlowQueryGetParams { - - return &StorageServiceSlowQueryGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceSlowQueryGetParamsWithHTTPClient creates a new StorageServiceSlowQueryGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceSlowQueryGetParamsWithHTTPClient(client *http.Client) *StorageServiceSlowQueryGetParams { - - return &StorageServiceSlowQueryGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceSlowQueryGetParams contains all the parameters to send to the API endpoint -for the storage service slow query get operation typically these are written to a http.Request -*/ -type StorageServiceSlowQueryGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service slow query get params -func (o *StorageServiceSlowQueryGetParams) WithTimeout(timeout time.Duration) *StorageServiceSlowQueryGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service slow query get params -func (o *StorageServiceSlowQueryGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service slow query get params -func (o *StorageServiceSlowQueryGetParams) WithContext(ctx context.Context) *StorageServiceSlowQueryGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service slow query get params -func (o *StorageServiceSlowQueryGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service slow query get params -func (o *StorageServiceSlowQueryGetParams) WithHTTPClient(client *http.Client) *StorageServiceSlowQueryGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service slow query get params -func (o *StorageServiceSlowQueryGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceSlowQueryGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_slow_query_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_slow_query_get_responses.go deleted file mode 100644 index d63ee9057f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_slow_query_get_responses.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceSlowQueryGetReader is a Reader for the StorageServiceSlowQueryGet structure. -type StorageServiceSlowQueryGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceSlowQueryGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceSlowQueryGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceSlowQueryGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceSlowQueryGetOK creates a StorageServiceSlowQueryGetOK with default headers values -func NewStorageServiceSlowQueryGetOK() *StorageServiceSlowQueryGetOK { - return &StorageServiceSlowQueryGetOK{} -} - -/* -StorageServiceSlowQueryGetOK handles this case with default header values. - -Success -*/ -type StorageServiceSlowQueryGetOK struct { - Payload *models.SlowQueryInfo -} - -func (o *StorageServiceSlowQueryGetOK) GetPayload() *models.SlowQueryInfo { - return o.Payload -} - -func (o *StorageServiceSlowQueryGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.SlowQueryInfo) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceSlowQueryGetDefault creates a StorageServiceSlowQueryGetDefault with default headers values -func NewStorageServiceSlowQueryGetDefault(code int) *StorageServiceSlowQueryGetDefault { - return &StorageServiceSlowQueryGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceSlowQueryGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceSlowQueryGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service slow query get default response -func (o *StorageServiceSlowQueryGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceSlowQueryGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceSlowQueryGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceSlowQueryGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_slow_query_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_slow_query_post_parameters.go deleted file mode 100644 index 48c9347ceb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_slow_query_post_parameters.go +++ /dev/null @@ -1,212 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageServiceSlowQueryPostParams creates a new StorageServiceSlowQueryPostParams object -// with the default values initialized. -func NewStorageServiceSlowQueryPostParams() *StorageServiceSlowQueryPostParams { - var () - return &StorageServiceSlowQueryPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceSlowQueryPostParamsWithTimeout creates a new StorageServiceSlowQueryPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceSlowQueryPostParamsWithTimeout(timeout time.Duration) *StorageServiceSlowQueryPostParams { - var () - return &StorageServiceSlowQueryPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceSlowQueryPostParamsWithContext creates a new StorageServiceSlowQueryPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceSlowQueryPostParamsWithContext(ctx context.Context) *StorageServiceSlowQueryPostParams { - var () - return &StorageServiceSlowQueryPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceSlowQueryPostParamsWithHTTPClient creates a new StorageServiceSlowQueryPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceSlowQueryPostParamsWithHTTPClient(client *http.Client) *StorageServiceSlowQueryPostParams { - var () - return &StorageServiceSlowQueryPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceSlowQueryPostParams contains all the parameters to send to the API endpoint -for the storage service slow query post operation typically these are written to a http.Request -*/ -type StorageServiceSlowQueryPostParams struct { - - /*Enable - set it to true to enable, anything else to disable - - */ - Enable *bool - /*Threshold - Slow query record threshold in microseconds - - */ - Threshold *string - /*TTL - TTL in seconds - - */ - TTL *string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service slow query post params -func (o *StorageServiceSlowQueryPostParams) WithTimeout(timeout time.Duration) *StorageServiceSlowQueryPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service slow query post params -func (o *StorageServiceSlowQueryPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service slow query post params -func (o *StorageServiceSlowQueryPostParams) WithContext(ctx context.Context) *StorageServiceSlowQueryPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service slow query post params -func (o *StorageServiceSlowQueryPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service slow query post params -func (o *StorageServiceSlowQueryPostParams) WithHTTPClient(client *http.Client) *StorageServiceSlowQueryPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service slow query post params -func (o *StorageServiceSlowQueryPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithEnable adds the enable to the storage service slow query post params -func (o *StorageServiceSlowQueryPostParams) WithEnable(enable *bool) *StorageServiceSlowQueryPostParams { - o.SetEnable(enable) - return o -} - -// SetEnable adds the enable to the storage service slow query post params -func (o *StorageServiceSlowQueryPostParams) SetEnable(enable *bool) { - o.Enable = enable -} - -// WithThreshold adds the threshold to the storage service slow query post params -func (o *StorageServiceSlowQueryPostParams) WithThreshold(threshold *string) *StorageServiceSlowQueryPostParams { - o.SetThreshold(threshold) - return o -} - -// SetThreshold adds the threshold to the storage service slow query post params -func (o *StorageServiceSlowQueryPostParams) SetThreshold(threshold *string) { - o.Threshold = threshold -} - -// WithTTL adds the ttl to the storage service slow query post params -func (o *StorageServiceSlowQueryPostParams) WithTTL(ttl *string) *StorageServiceSlowQueryPostParams { - o.SetTTL(ttl) - return o -} - -// SetTTL adds the ttl to the storage service slow query post params -func (o *StorageServiceSlowQueryPostParams) SetTTL(ttl *string) { - o.TTL = ttl -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceSlowQueryPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Enable != nil { - - // query param enable - var qrEnable bool - if o.Enable != nil { - qrEnable = *o.Enable - } - qEnable := swag.FormatBool(qrEnable) - if qEnable != "" { - if err := r.SetQueryParam("enable", qEnable); err != nil { - return err - } - } - - } - - if o.Threshold != nil { - - // query param threshold - var qrThreshold string - if o.Threshold != nil { - qrThreshold = *o.Threshold - } - qThreshold := qrThreshold - if qThreshold != "" { - if err := r.SetQueryParam("threshold", qThreshold); err != nil { - return err - } - } - - } - - if o.TTL != nil { - - // query param ttl - var qrTTL string - if o.TTL != nil { - qrTTL = *o.TTL - } - qTTL := qrTTL - if qTTL != "" { - if err := r.SetQueryParam("ttl", qTTL); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_slow_query_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_slow_query_post_responses.go deleted file mode 100644 index 1fd31e358c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_slow_query_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceSlowQueryPostReader is a Reader for the StorageServiceSlowQueryPost structure. -type StorageServiceSlowQueryPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceSlowQueryPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceSlowQueryPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceSlowQueryPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceSlowQueryPostOK creates a StorageServiceSlowQueryPostOK with default headers values -func NewStorageServiceSlowQueryPostOK() *StorageServiceSlowQueryPostOK { - return &StorageServiceSlowQueryPostOK{} -} - -/* -StorageServiceSlowQueryPostOK handles this case with default header values. - -Success -*/ -type StorageServiceSlowQueryPostOK struct { -} - -func (o *StorageServiceSlowQueryPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceSlowQueryPostDefault creates a StorageServiceSlowQueryPostDefault with default headers values -func NewStorageServiceSlowQueryPostDefault(code int) *StorageServiceSlowQueryPostDefault { - return &StorageServiceSlowQueryPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceSlowQueryPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceSlowQueryPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service slow query post default response -func (o *StorageServiceSlowQueryPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceSlowQueryPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceSlowQueryPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceSlowQueryPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_delete_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_delete_parameters.go deleted file mode 100644 index 2d442506b5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_delete_parameters.go +++ /dev/null @@ -1,211 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceSnapshotsDeleteParams creates a new StorageServiceSnapshotsDeleteParams object -// with the default values initialized. -func NewStorageServiceSnapshotsDeleteParams() *StorageServiceSnapshotsDeleteParams { - var () - return &StorageServiceSnapshotsDeleteParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceSnapshotsDeleteParamsWithTimeout creates a new StorageServiceSnapshotsDeleteParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceSnapshotsDeleteParamsWithTimeout(timeout time.Duration) *StorageServiceSnapshotsDeleteParams { - var () - return &StorageServiceSnapshotsDeleteParams{ - - timeout: timeout, - } -} - -// NewStorageServiceSnapshotsDeleteParamsWithContext creates a new StorageServiceSnapshotsDeleteParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceSnapshotsDeleteParamsWithContext(ctx context.Context) *StorageServiceSnapshotsDeleteParams { - var () - return &StorageServiceSnapshotsDeleteParams{ - - Context: ctx, - } -} - -// NewStorageServiceSnapshotsDeleteParamsWithHTTPClient creates a new StorageServiceSnapshotsDeleteParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceSnapshotsDeleteParamsWithHTTPClient(client *http.Client) *StorageServiceSnapshotsDeleteParams { - var () - return &StorageServiceSnapshotsDeleteParams{ - HTTPClient: client, - } -} - -/* -StorageServiceSnapshotsDeleteParams contains all the parameters to send to the API endpoint -for the storage service snapshots delete operation typically these are written to a http.Request -*/ -type StorageServiceSnapshotsDeleteParams struct { - - /*Cf - an optional table name that its snapshot will be deleted - - */ - Cf *string - /*Kn - Comma seperated keyspaces name to snapshot - - */ - Kn *string - /*Tag - the tag given to the snapshot - - */ - Tag *string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service snapshots delete params -func (o *StorageServiceSnapshotsDeleteParams) WithTimeout(timeout time.Duration) *StorageServiceSnapshotsDeleteParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service snapshots delete params -func (o *StorageServiceSnapshotsDeleteParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service snapshots delete params -func (o *StorageServiceSnapshotsDeleteParams) WithContext(ctx context.Context) *StorageServiceSnapshotsDeleteParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service snapshots delete params -func (o *StorageServiceSnapshotsDeleteParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service snapshots delete params -func (o *StorageServiceSnapshotsDeleteParams) WithHTTPClient(client *http.Client) *StorageServiceSnapshotsDeleteParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service snapshots delete params -func (o *StorageServiceSnapshotsDeleteParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCf adds the cf to the storage service snapshots delete params -func (o *StorageServiceSnapshotsDeleteParams) WithCf(cf *string) *StorageServiceSnapshotsDeleteParams { - o.SetCf(cf) - return o -} - -// SetCf adds the cf to the storage service snapshots delete params -func (o *StorageServiceSnapshotsDeleteParams) SetCf(cf *string) { - o.Cf = cf -} - -// WithKn adds the kn to the storage service snapshots delete params -func (o *StorageServiceSnapshotsDeleteParams) WithKn(kn *string) *StorageServiceSnapshotsDeleteParams { - o.SetKn(kn) - return o -} - -// SetKn adds the kn to the storage service snapshots delete params -func (o *StorageServiceSnapshotsDeleteParams) SetKn(kn *string) { - o.Kn = kn -} - -// WithTag adds the tag to the storage service snapshots delete params -func (o *StorageServiceSnapshotsDeleteParams) WithTag(tag *string) *StorageServiceSnapshotsDeleteParams { - o.SetTag(tag) - return o -} - -// SetTag adds the tag to the storage service snapshots delete params -func (o *StorageServiceSnapshotsDeleteParams) SetTag(tag *string) { - o.Tag = tag -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceSnapshotsDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Cf != nil { - - // query param cf - var qrCf string - if o.Cf != nil { - qrCf = *o.Cf - } - qCf := qrCf - if qCf != "" { - if err := r.SetQueryParam("cf", qCf); err != nil { - return err - } - } - - } - - if o.Kn != nil { - - // query param kn - var qrKn string - if o.Kn != nil { - qrKn = *o.Kn - } - qKn := qrKn - if qKn != "" { - if err := r.SetQueryParam("kn", qKn); err != nil { - return err - } - } - - } - - if o.Tag != nil { - - // query param tag - var qrTag string - if o.Tag != nil { - qrTag = *o.Tag - } - qTag := qrTag - if qTag != "" { - if err := r.SetQueryParam("tag", qTag); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_delete_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_delete_responses.go deleted file mode 100644 index 1423834d18..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_delete_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceSnapshotsDeleteReader is a Reader for the StorageServiceSnapshotsDelete structure. -type StorageServiceSnapshotsDeleteReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceSnapshotsDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceSnapshotsDeleteOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceSnapshotsDeleteDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceSnapshotsDeleteOK creates a StorageServiceSnapshotsDeleteOK with default headers values -func NewStorageServiceSnapshotsDeleteOK() *StorageServiceSnapshotsDeleteOK { - return &StorageServiceSnapshotsDeleteOK{} -} - -/* -StorageServiceSnapshotsDeleteOK handles this case with default header values. - -Success -*/ -type StorageServiceSnapshotsDeleteOK struct { -} - -func (o *StorageServiceSnapshotsDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceSnapshotsDeleteDefault creates a StorageServiceSnapshotsDeleteDefault with default headers values -func NewStorageServiceSnapshotsDeleteDefault(code int) *StorageServiceSnapshotsDeleteDefault { - return &StorageServiceSnapshotsDeleteDefault{ - _statusCode: code, - } -} - -/* -StorageServiceSnapshotsDeleteDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceSnapshotsDeleteDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service snapshots delete default response -func (o *StorageServiceSnapshotsDeleteDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceSnapshotsDeleteDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceSnapshotsDeleteDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceSnapshotsDeleteDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_get_parameters.go deleted file mode 100644 index 0b826f2db9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceSnapshotsGetParams creates a new StorageServiceSnapshotsGetParams object -// with the default values initialized. -func NewStorageServiceSnapshotsGetParams() *StorageServiceSnapshotsGetParams { - - return &StorageServiceSnapshotsGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceSnapshotsGetParamsWithTimeout creates a new StorageServiceSnapshotsGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceSnapshotsGetParamsWithTimeout(timeout time.Duration) *StorageServiceSnapshotsGetParams { - - return &StorageServiceSnapshotsGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceSnapshotsGetParamsWithContext creates a new StorageServiceSnapshotsGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceSnapshotsGetParamsWithContext(ctx context.Context) *StorageServiceSnapshotsGetParams { - - return &StorageServiceSnapshotsGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceSnapshotsGetParamsWithHTTPClient creates a new StorageServiceSnapshotsGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceSnapshotsGetParamsWithHTTPClient(client *http.Client) *StorageServiceSnapshotsGetParams { - - return &StorageServiceSnapshotsGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceSnapshotsGetParams contains all the parameters to send to the API endpoint -for the storage service snapshots get operation typically these are written to a http.Request -*/ -type StorageServiceSnapshotsGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service snapshots get params -func (o *StorageServiceSnapshotsGetParams) WithTimeout(timeout time.Duration) *StorageServiceSnapshotsGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service snapshots get params -func (o *StorageServiceSnapshotsGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service snapshots get params -func (o *StorageServiceSnapshotsGetParams) WithContext(ctx context.Context) *StorageServiceSnapshotsGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service snapshots get params -func (o *StorageServiceSnapshotsGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service snapshots get params -func (o *StorageServiceSnapshotsGetParams) WithHTTPClient(client *http.Client) *StorageServiceSnapshotsGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service snapshots get params -func (o *StorageServiceSnapshotsGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceSnapshotsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_get_responses.go deleted file mode 100644 index cbd784d1c1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceSnapshotsGetReader is a Reader for the StorageServiceSnapshotsGet structure. -type StorageServiceSnapshotsGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceSnapshotsGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceSnapshotsGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceSnapshotsGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceSnapshotsGetOK creates a StorageServiceSnapshotsGetOK with default headers values -func NewStorageServiceSnapshotsGetOK() *StorageServiceSnapshotsGetOK { - return &StorageServiceSnapshotsGetOK{} -} - -/* -StorageServiceSnapshotsGetOK handles this case with default header values. - -Success -*/ -type StorageServiceSnapshotsGetOK struct { - Payload []*models.Snapshots -} - -func (o *StorageServiceSnapshotsGetOK) GetPayload() []*models.Snapshots { - return o.Payload -} - -func (o *StorageServiceSnapshotsGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceSnapshotsGetDefault creates a StorageServiceSnapshotsGetDefault with default headers values -func NewStorageServiceSnapshotsGetDefault(code int) *StorageServiceSnapshotsGetDefault { - return &StorageServiceSnapshotsGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceSnapshotsGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceSnapshotsGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service snapshots get default response -func (o *StorageServiceSnapshotsGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceSnapshotsGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceSnapshotsGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceSnapshotsGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_post_parameters.go deleted file mode 100644 index 169a3a9ba1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_post_parameters.go +++ /dev/null @@ -1,211 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceSnapshotsPostParams creates a new StorageServiceSnapshotsPostParams object -// with the default values initialized. -func NewStorageServiceSnapshotsPostParams() *StorageServiceSnapshotsPostParams { - var () - return &StorageServiceSnapshotsPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceSnapshotsPostParamsWithTimeout creates a new StorageServiceSnapshotsPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceSnapshotsPostParamsWithTimeout(timeout time.Duration) *StorageServiceSnapshotsPostParams { - var () - return &StorageServiceSnapshotsPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceSnapshotsPostParamsWithContext creates a new StorageServiceSnapshotsPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceSnapshotsPostParamsWithContext(ctx context.Context) *StorageServiceSnapshotsPostParams { - var () - return &StorageServiceSnapshotsPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceSnapshotsPostParamsWithHTTPClient creates a new StorageServiceSnapshotsPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceSnapshotsPostParamsWithHTTPClient(client *http.Client) *StorageServiceSnapshotsPostParams { - var () - return &StorageServiceSnapshotsPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceSnapshotsPostParams contains all the parameters to send to the API endpoint -for the storage service snapshots post operation typically these are written to a http.Request -*/ -type StorageServiceSnapshotsPostParams struct { - - /*Cf - the column family to snapshot - - */ - Cf *string - /*Kn - Comma seperated keyspaces name to snapshot - - */ - Kn *string - /*Tag - the tag given to the snapshot - - */ - Tag *string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service snapshots post params -func (o *StorageServiceSnapshotsPostParams) WithTimeout(timeout time.Duration) *StorageServiceSnapshotsPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service snapshots post params -func (o *StorageServiceSnapshotsPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service snapshots post params -func (o *StorageServiceSnapshotsPostParams) WithContext(ctx context.Context) *StorageServiceSnapshotsPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service snapshots post params -func (o *StorageServiceSnapshotsPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service snapshots post params -func (o *StorageServiceSnapshotsPostParams) WithHTTPClient(client *http.Client) *StorageServiceSnapshotsPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service snapshots post params -func (o *StorageServiceSnapshotsPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCf adds the cf to the storage service snapshots post params -func (o *StorageServiceSnapshotsPostParams) WithCf(cf *string) *StorageServiceSnapshotsPostParams { - o.SetCf(cf) - return o -} - -// SetCf adds the cf to the storage service snapshots post params -func (o *StorageServiceSnapshotsPostParams) SetCf(cf *string) { - o.Cf = cf -} - -// WithKn adds the kn to the storage service snapshots post params -func (o *StorageServiceSnapshotsPostParams) WithKn(kn *string) *StorageServiceSnapshotsPostParams { - o.SetKn(kn) - return o -} - -// SetKn adds the kn to the storage service snapshots post params -func (o *StorageServiceSnapshotsPostParams) SetKn(kn *string) { - o.Kn = kn -} - -// WithTag adds the tag to the storage service snapshots post params -func (o *StorageServiceSnapshotsPostParams) WithTag(tag *string) *StorageServiceSnapshotsPostParams { - o.SetTag(tag) - return o -} - -// SetTag adds the tag to the storage service snapshots post params -func (o *StorageServiceSnapshotsPostParams) SetTag(tag *string) { - o.Tag = tag -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceSnapshotsPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Cf != nil { - - // query param cf - var qrCf string - if o.Cf != nil { - qrCf = *o.Cf - } - qCf := qrCf - if qCf != "" { - if err := r.SetQueryParam("cf", qCf); err != nil { - return err - } - } - - } - - if o.Kn != nil { - - // query param kn - var qrKn string - if o.Kn != nil { - qrKn = *o.Kn - } - qKn := qrKn - if qKn != "" { - if err := r.SetQueryParam("kn", qKn); err != nil { - return err - } - } - - } - - if o.Tag != nil { - - // query param tag - var qrTag string - if o.Tag != nil { - qrTag = *o.Tag - } - qTag := qrTag - if qTag != "" { - if err := r.SetQueryParam("tag", qTag); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_post_responses.go deleted file mode 100644 index f35738ccfb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceSnapshotsPostReader is a Reader for the StorageServiceSnapshotsPost structure. -type StorageServiceSnapshotsPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceSnapshotsPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceSnapshotsPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceSnapshotsPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceSnapshotsPostOK creates a StorageServiceSnapshotsPostOK with default headers values -func NewStorageServiceSnapshotsPostOK() *StorageServiceSnapshotsPostOK { - return &StorageServiceSnapshotsPostOK{} -} - -/* -StorageServiceSnapshotsPostOK handles this case with default header values. - -Success -*/ -type StorageServiceSnapshotsPostOK struct { -} - -func (o *StorageServiceSnapshotsPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceSnapshotsPostDefault creates a StorageServiceSnapshotsPostDefault with default headers values -func NewStorageServiceSnapshotsPostDefault(code int) *StorageServiceSnapshotsPostDefault { - return &StorageServiceSnapshotsPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceSnapshotsPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceSnapshotsPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service snapshots post default response -func (o *StorageServiceSnapshotsPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceSnapshotsPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceSnapshotsPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceSnapshotsPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_size_true_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_size_true_get_parameters.go deleted file mode 100644 index 209ba42253..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_size_true_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceSnapshotsSizeTrueGetParams creates a new StorageServiceSnapshotsSizeTrueGetParams object -// with the default values initialized. -func NewStorageServiceSnapshotsSizeTrueGetParams() *StorageServiceSnapshotsSizeTrueGetParams { - - return &StorageServiceSnapshotsSizeTrueGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceSnapshotsSizeTrueGetParamsWithTimeout creates a new StorageServiceSnapshotsSizeTrueGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceSnapshotsSizeTrueGetParamsWithTimeout(timeout time.Duration) *StorageServiceSnapshotsSizeTrueGetParams { - - return &StorageServiceSnapshotsSizeTrueGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceSnapshotsSizeTrueGetParamsWithContext creates a new StorageServiceSnapshotsSizeTrueGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceSnapshotsSizeTrueGetParamsWithContext(ctx context.Context) *StorageServiceSnapshotsSizeTrueGetParams { - - return &StorageServiceSnapshotsSizeTrueGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceSnapshotsSizeTrueGetParamsWithHTTPClient creates a new StorageServiceSnapshotsSizeTrueGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceSnapshotsSizeTrueGetParamsWithHTTPClient(client *http.Client) *StorageServiceSnapshotsSizeTrueGetParams { - - return &StorageServiceSnapshotsSizeTrueGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceSnapshotsSizeTrueGetParams contains all the parameters to send to the API endpoint -for the storage service snapshots size true get operation typically these are written to a http.Request -*/ -type StorageServiceSnapshotsSizeTrueGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service snapshots size true get params -func (o *StorageServiceSnapshotsSizeTrueGetParams) WithTimeout(timeout time.Duration) *StorageServiceSnapshotsSizeTrueGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service snapshots size true get params -func (o *StorageServiceSnapshotsSizeTrueGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service snapshots size true get params -func (o *StorageServiceSnapshotsSizeTrueGetParams) WithContext(ctx context.Context) *StorageServiceSnapshotsSizeTrueGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service snapshots size true get params -func (o *StorageServiceSnapshotsSizeTrueGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service snapshots size true get params -func (o *StorageServiceSnapshotsSizeTrueGetParams) WithHTTPClient(client *http.Client) *StorageServiceSnapshotsSizeTrueGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service snapshots size true get params -func (o *StorageServiceSnapshotsSizeTrueGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceSnapshotsSizeTrueGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_size_true_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_size_true_get_responses.go deleted file mode 100644 index 4dc4063012..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_snapshots_size_true_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceSnapshotsSizeTrueGetReader is a Reader for the StorageServiceSnapshotsSizeTrueGet structure. -type StorageServiceSnapshotsSizeTrueGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceSnapshotsSizeTrueGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceSnapshotsSizeTrueGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceSnapshotsSizeTrueGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceSnapshotsSizeTrueGetOK creates a StorageServiceSnapshotsSizeTrueGetOK with default headers values -func NewStorageServiceSnapshotsSizeTrueGetOK() *StorageServiceSnapshotsSizeTrueGetOK { - return &StorageServiceSnapshotsSizeTrueGetOK{} -} - -/* -StorageServiceSnapshotsSizeTrueGetOK handles this case with default header values. - -Success -*/ -type StorageServiceSnapshotsSizeTrueGetOK struct { - Payload interface{} -} - -func (o *StorageServiceSnapshotsSizeTrueGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageServiceSnapshotsSizeTrueGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceSnapshotsSizeTrueGetDefault creates a StorageServiceSnapshotsSizeTrueGetDefault with default headers values -func NewStorageServiceSnapshotsSizeTrueGetDefault(code int) *StorageServiceSnapshotsSizeTrueGetDefault { - return &StorageServiceSnapshotsSizeTrueGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceSnapshotsSizeTrueGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceSnapshotsSizeTrueGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service snapshots size true get default response -func (o *StorageServiceSnapshotsSizeTrueGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceSnapshotsSizeTrueGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceSnapshotsSizeTrueGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceSnapshotsSizeTrueGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_sstables_by_keyspace_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_sstables_by_keyspace_post_parameters.go deleted file mode 100644 index 90c7ac7e3c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_sstables_by_keyspace_post_parameters.go +++ /dev/null @@ -1,322 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageServiceSstablesByKeyspacePostParams creates a new StorageServiceSstablesByKeyspacePostParams object -// with the default values initialized. -func NewStorageServiceSstablesByKeyspacePostParams() *StorageServiceSstablesByKeyspacePostParams { - var () - return &StorageServiceSstablesByKeyspacePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceSstablesByKeyspacePostParamsWithTimeout creates a new StorageServiceSstablesByKeyspacePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceSstablesByKeyspacePostParamsWithTimeout(timeout time.Duration) *StorageServiceSstablesByKeyspacePostParams { - var () - return &StorageServiceSstablesByKeyspacePostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceSstablesByKeyspacePostParamsWithContext creates a new StorageServiceSstablesByKeyspacePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceSstablesByKeyspacePostParamsWithContext(ctx context.Context) *StorageServiceSstablesByKeyspacePostParams { - var () - return &StorageServiceSstablesByKeyspacePostParams{ - - Context: ctx, - } -} - -// NewStorageServiceSstablesByKeyspacePostParamsWithHTTPClient creates a new StorageServiceSstablesByKeyspacePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceSstablesByKeyspacePostParamsWithHTTPClient(client *http.Client) *StorageServiceSstablesByKeyspacePostParams { - var () - return &StorageServiceSstablesByKeyspacePostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceSstablesByKeyspacePostParams contains all the parameters to send to the API endpoint -for the storage service sstables by keyspace post operation typically these are written to a http.Request -*/ -type StorageServiceSstablesByKeyspacePostParams struct { - - /*Cf - Column family name - - */ - Cf string - /*Keyspace - The keyspace - - */ - Keyspace string - /*LoadAndStream - Load the sstables and stream to all replica nodes that owns the data - - */ - LoadAndStream *bool - /*PrimaryReplicaOnly - Load the sstables and stream to primary replica node that owns the data. Repair is needed after the load and stream process - - */ - PrimaryReplicaOnly *bool - /*Scope - Defines the set of nodes to which mutations can be streamed - - */ - Scope *string - /*SkipCleanup - Don't cleanup keys from loaded sstables. Invalid if load_and_stream is true - - */ - SkipCleanup *bool - /*SkipReshape - Don't reshape loaded sstables. Invalid if load_and_stream is true - - */ - SkipReshape *bool - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) WithTimeout(timeout time.Duration) *StorageServiceSstablesByKeyspacePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) WithContext(ctx context.Context) *StorageServiceSstablesByKeyspacePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) WithHTTPClient(client *http.Client) *StorageServiceSstablesByKeyspacePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCf adds the cf to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) WithCf(cf string) *StorageServiceSstablesByKeyspacePostParams { - o.SetCf(cf) - return o -} - -// SetCf adds the cf to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) SetCf(cf string) { - o.Cf = cf -} - -// WithKeyspace adds the keyspace to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) WithKeyspace(keyspace string) *StorageServiceSstablesByKeyspacePostParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) SetKeyspace(keyspace string) { - o.Keyspace = keyspace -} - -// WithLoadAndStream adds the loadAndStream to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) WithLoadAndStream(loadAndStream *bool) *StorageServiceSstablesByKeyspacePostParams { - o.SetLoadAndStream(loadAndStream) - return o -} - -// SetLoadAndStream adds the loadAndStream to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) SetLoadAndStream(loadAndStream *bool) { - o.LoadAndStream = loadAndStream -} - -// WithPrimaryReplicaOnly adds the primaryReplicaOnly to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) WithPrimaryReplicaOnly(primaryReplicaOnly *bool) *StorageServiceSstablesByKeyspacePostParams { - o.SetPrimaryReplicaOnly(primaryReplicaOnly) - return o -} - -// SetPrimaryReplicaOnly adds the primaryReplicaOnly to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) SetPrimaryReplicaOnly(primaryReplicaOnly *bool) { - o.PrimaryReplicaOnly = primaryReplicaOnly -} - -// WithScope adds the scope to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) WithScope(scope *string) *StorageServiceSstablesByKeyspacePostParams { - o.SetScope(scope) - return o -} - -// SetScope adds the scope to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) SetScope(scope *string) { - o.Scope = scope -} - -// WithSkipCleanup adds the skipCleanup to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) WithSkipCleanup(skipCleanup *bool) *StorageServiceSstablesByKeyspacePostParams { - o.SetSkipCleanup(skipCleanup) - return o -} - -// SetSkipCleanup adds the skipCleanup to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) SetSkipCleanup(skipCleanup *bool) { - o.SkipCleanup = skipCleanup -} - -// WithSkipReshape adds the skipReshape to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) WithSkipReshape(skipReshape *bool) *StorageServiceSstablesByKeyspacePostParams { - o.SetSkipReshape(skipReshape) - return o -} - -// SetSkipReshape adds the skipReshape to the storage service sstables by keyspace post params -func (o *StorageServiceSstablesByKeyspacePostParams) SetSkipReshape(skipReshape *bool) { - o.SkipReshape = skipReshape -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceSstablesByKeyspacePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param cf - qrCf := o.Cf - qCf := qrCf - if qCf != "" { - if err := r.SetQueryParam("cf", qCf); err != nil { - return err - } - } - - // path param keyspace - if err := r.SetPathParam("keyspace", o.Keyspace); err != nil { - return err - } - - if o.LoadAndStream != nil { - - // query param load_and_stream - var qrLoadAndStream bool - if o.LoadAndStream != nil { - qrLoadAndStream = *o.LoadAndStream - } - qLoadAndStream := swag.FormatBool(qrLoadAndStream) - if qLoadAndStream != "" { - if err := r.SetQueryParam("load_and_stream", qLoadAndStream); err != nil { - return err - } - } - - } - - if o.PrimaryReplicaOnly != nil { - - // query param primary_replica_only - var qrPrimaryReplicaOnly bool - if o.PrimaryReplicaOnly != nil { - qrPrimaryReplicaOnly = *o.PrimaryReplicaOnly - } - qPrimaryReplicaOnly := swag.FormatBool(qrPrimaryReplicaOnly) - if qPrimaryReplicaOnly != "" { - if err := r.SetQueryParam("primary_replica_only", qPrimaryReplicaOnly); err != nil { - return err - } - } - - } - - if o.Scope != nil { - - // query param scope - var qrScope string - if o.Scope != nil { - qrScope = *o.Scope - } - qScope := qrScope - if qScope != "" { - if err := r.SetQueryParam("scope", qScope); err != nil { - return err - } - } - - } - - if o.SkipCleanup != nil { - - // query param skip_cleanup - var qrSkipCleanup bool - if o.SkipCleanup != nil { - qrSkipCleanup = *o.SkipCleanup - } - qSkipCleanup := swag.FormatBool(qrSkipCleanup) - if qSkipCleanup != "" { - if err := r.SetQueryParam("skip_cleanup", qSkipCleanup); err != nil { - return err - } - } - - } - - if o.SkipReshape != nil { - - // query param skip_reshape - var qrSkipReshape bool - if o.SkipReshape != nil { - qrSkipReshape = *o.SkipReshape - } - qSkipReshape := swag.FormatBool(qrSkipReshape) - if qSkipReshape != "" { - if err := r.SetQueryParam("skip_reshape", qSkipReshape); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_sstables_by_keyspace_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_sstables_by_keyspace_post_responses.go deleted file mode 100644 index 0c0c3037e1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_sstables_by_keyspace_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceSstablesByKeyspacePostReader is a Reader for the StorageServiceSstablesByKeyspacePost structure. -type StorageServiceSstablesByKeyspacePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceSstablesByKeyspacePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceSstablesByKeyspacePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceSstablesByKeyspacePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceSstablesByKeyspacePostOK creates a StorageServiceSstablesByKeyspacePostOK with default headers values -func NewStorageServiceSstablesByKeyspacePostOK() *StorageServiceSstablesByKeyspacePostOK { - return &StorageServiceSstablesByKeyspacePostOK{} -} - -/* -StorageServiceSstablesByKeyspacePostOK handles this case with default header values. - -Success -*/ -type StorageServiceSstablesByKeyspacePostOK struct { -} - -func (o *StorageServiceSstablesByKeyspacePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceSstablesByKeyspacePostDefault creates a StorageServiceSstablesByKeyspacePostDefault with default headers values -func NewStorageServiceSstablesByKeyspacePostDefault(code int) *StorageServiceSstablesByKeyspacePostDefault { - return &StorageServiceSstablesByKeyspacePostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceSstablesByKeyspacePostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceSstablesByKeyspacePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service sstables by keyspace post default response -func (o *StorageServiceSstablesByKeyspacePostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceSstablesByKeyspacePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceSstablesByKeyspacePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceSstablesByKeyspacePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_stop_daemon_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_stop_daemon_post_parameters.go deleted file mode 100644 index 07572379cf..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_stop_daemon_post_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceStopDaemonPostParams creates a new StorageServiceStopDaemonPostParams object -// with the default values initialized. -func NewStorageServiceStopDaemonPostParams() *StorageServiceStopDaemonPostParams { - - return &StorageServiceStopDaemonPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceStopDaemonPostParamsWithTimeout creates a new StorageServiceStopDaemonPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceStopDaemonPostParamsWithTimeout(timeout time.Duration) *StorageServiceStopDaemonPostParams { - - return &StorageServiceStopDaemonPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceStopDaemonPostParamsWithContext creates a new StorageServiceStopDaemonPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceStopDaemonPostParamsWithContext(ctx context.Context) *StorageServiceStopDaemonPostParams { - - return &StorageServiceStopDaemonPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceStopDaemonPostParamsWithHTTPClient creates a new StorageServiceStopDaemonPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceStopDaemonPostParamsWithHTTPClient(client *http.Client) *StorageServiceStopDaemonPostParams { - - return &StorageServiceStopDaemonPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceStopDaemonPostParams contains all the parameters to send to the API endpoint -for the storage service stop daemon post operation typically these are written to a http.Request -*/ -type StorageServiceStopDaemonPostParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service stop daemon post params -func (o *StorageServiceStopDaemonPostParams) WithTimeout(timeout time.Duration) *StorageServiceStopDaemonPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service stop daemon post params -func (o *StorageServiceStopDaemonPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service stop daemon post params -func (o *StorageServiceStopDaemonPostParams) WithContext(ctx context.Context) *StorageServiceStopDaemonPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service stop daemon post params -func (o *StorageServiceStopDaemonPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service stop daemon post params -func (o *StorageServiceStopDaemonPostParams) WithHTTPClient(client *http.Client) *StorageServiceStopDaemonPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service stop daemon post params -func (o *StorageServiceStopDaemonPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceStopDaemonPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_stop_daemon_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_stop_daemon_post_responses.go deleted file mode 100644 index e0686eb1eb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_stop_daemon_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceStopDaemonPostReader is a Reader for the StorageServiceStopDaemonPost structure. -type StorageServiceStopDaemonPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceStopDaemonPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceStopDaemonPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceStopDaemonPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceStopDaemonPostOK creates a StorageServiceStopDaemonPostOK with default headers values -func NewStorageServiceStopDaemonPostOK() *StorageServiceStopDaemonPostOK { - return &StorageServiceStopDaemonPostOK{} -} - -/* -StorageServiceStopDaemonPostOK handles this case with default header values. - -Success -*/ -type StorageServiceStopDaemonPostOK struct { -} - -func (o *StorageServiceStopDaemonPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceStopDaemonPostDefault creates a StorageServiceStopDaemonPostDefault with default headers values -func NewStorageServiceStopDaemonPostDefault(code int) *StorageServiceStopDaemonPostDefault { - return &StorageServiceStopDaemonPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceStopDaemonPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceStopDaemonPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service stop daemon post default response -func (o *StorageServiceStopDaemonPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceStopDaemonPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceStopDaemonPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceStopDaemonPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_stream_throughput_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_stream_throughput_get_parameters.go deleted file mode 100644 index 581005330a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_stream_throughput_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceStreamThroughputGetParams creates a new StorageServiceStreamThroughputGetParams object -// with the default values initialized. -func NewStorageServiceStreamThroughputGetParams() *StorageServiceStreamThroughputGetParams { - - return &StorageServiceStreamThroughputGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceStreamThroughputGetParamsWithTimeout creates a new StorageServiceStreamThroughputGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceStreamThroughputGetParamsWithTimeout(timeout time.Duration) *StorageServiceStreamThroughputGetParams { - - return &StorageServiceStreamThroughputGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceStreamThroughputGetParamsWithContext creates a new StorageServiceStreamThroughputGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceStreamThroughputGetParamsWithContext(ctx context.Context) *StorageServiceStreamThroughputGetParams { - - return &StorageServiceStreamThroughputGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceStreamThroughputGetParamsWithHTTPClient creates a new StorageServiceStreamThroughputGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceStreamThroughputGetParamsWithHTTPClient(client *http.Client) *StorageServiceStreamThroughputGetParams { - - return &StorageServiceStreamThroughputGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceStreamThroughputGetParams contains all the parameters to send to the API endpoint -for the storage service stream throughput get operation typically these are written to a http.Request -*/ -type StorageServiceStreamThroughputGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service stream throughput get params -func (o *StorageServiceStreamThroughputGetParams) WithTimeout(timeout time.Duration) *StorageServiceStreamThroughputGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service stream throughput get params -func (o *StorageServiceStreamThroughputGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service stream throughput get params -func (o *StorageServiceStreamThroughputGetParams) WithContext(ctx context.Context) *StorageServiceStreamThroughputGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service stream throughput get params -func (o *StorageServiceStreamThroughputGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service stream throughput get params -func (o *StorageServiceStreamThroughputGetParams) WithHTTPClient(client *http.Client) *StorageServiceStreamThroughputGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service stream throughput get params -func (o *StorageServiceStreamThroughputGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceStreamThroughputGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_stream_throughput_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_stream_throughput_get_responses.go deleted file mode 100644 index 094c63d709..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_stream_throughput_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceStreamThroughputGetReader is a Reader for the StorageServiceStreamThroughputGet structure. -type StorageServiceStreamThroughputGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceStreamThroughputGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceStreamThroughputGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceStreamThroughputGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceStreamThroughputGetOK creates a StorageServiceStreamThroughputGetOK with default headers values -func NewStorageServiceStreamThroughputGetOK() *StorageServiceStreamThroughputGetOK { - return &StorageServiceStreamThroughputGetOK{} -} - -/* -StorageServiceStreamThroughputGetOK handles this case with default header values. - -Success -*/ -type StorageServiceStreamThroughputGetOK struct { - Payload int32 -} - -func (o *StorageServiceStreamThroughputGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageServiceStreamThroughputGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceStreamThroughputGetDefault creates a StorageServiceStreamThroughputGetDefault with default headers values -func NewStorageServiceStreamThroughputGetDefault(code int) *StorageServiceStreamThroughputGetDefault { - return &StorageServiceStreamThroughputGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceStreamThroughputGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceStreamThroughputGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service stream throughput get default response -func (o *StorageServiceStreamThroughputGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceStreamThroughputGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceStreamThroughputGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceStreamThroughputGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_stream_throughput_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_stream_throughput_post_parameters.go deleted file mode 100644 index 9ec5bf7205..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_stream_throughput_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageServiceStreamThroughputPostParams creates a new StorageServiceStreamThroughputPostParams object -// with the default values initialized. -func NewStorageServiceStreamThroughputPostParams() *StorageServiceStreamThroughputPostParams { - var () - return &StorageServiceStreamThroughputPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceStreamThroughputPostParamsWithTimeout creates a new StorageServiceStreamThroughputPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceStreamThroughputPostParamsWithTimeout(timeout time.Duration) *StorageServiceStreamThroughputPostParams { - var () - return &StorageServiceStreamThroughputPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceStreamThroughputPostParamsWithContext creates a new StorageServiceStreamThroughputPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceStreamThroughputPostParamsWithContext(ctx context.Context) *StorageServiceStreamThroughputPostParams { - var () - return &StorageServiceStreamThroughputPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceStreamThroughputPostParamsWithHTTPClient creates a new StorageServiceStreamThroughputPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceStreamThroughputPostParamsWithHTTPClient(client *http.Client) *StorageServiceStreamThroughputPostParams { - var () - return &StorageServiceStreamThroughputPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceStreamThroughputPostParams contains all the parameters to send to the API endpoint -for the storage service stream throughput post operation typically these are written to a http.Request -*/ -type StorageServiceStreamThroughputPostParams struct { - - /*Value - Stream throughput - - */ - Value int32 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service stream throughput post params -func (o *StorageServiceStreamThroughputPostParams) WithTimeout(timeout time.Duration) *StorageServiceStreamThroughputPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service stream throughput post params -func (o *StorageServiceStreamThroughputPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service stream throughput post params -func (o *StorageServiceStreamThroughputPostParams) WithContext(ctx context.Context) *StorageServiceStreamThroughputPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service stream throughput post params -func (o *StorageServiceStreamThroughputPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service stream throughput post params -func (o *StorageServiceStreamThroughputPostParams) WithHTTPClient(client *http.Client) *StorageServiceStreamThroughputPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service stream throughput post params -func (o *StorageServiceStreamThroughputPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithValue adds the value to the storage service stream throughput post params -func (o *StorageServiceStreamThroughputPostParams) WithValue(value int32) *StorageServiceStreamThroughputPostParams { - o.SetValue(value) - return o -} - -// SetValue adds the value to the storage service stream throughput post params -func (o *StorageServiceStreamThroughputPostParams) SetValue(value int32) { - o.Value = value -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceStreamThroughputPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param value - qrValue := o.Value - qValue := swag.FormatInt32(qrValue) - if qValue != "" { - if err := r.SetQueryParam("value", qValue); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_stream_throughput_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_stream_throughput_post_responses.go deleted file mode 100644 index 2aea7b6c38..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_stream_throughput_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceStreamThroughputPostReader is a Reader for the StorageServiceStreamThroughputPost structure. -type StorageServiceStreamThroughputPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceStreamThroughputPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceStreamThroughputPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceStreamThroughputPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceStreamThroughputPostOK creates a StorageServiceStreamThroughputPostOK with default headers values -func NewStorageServiceStreamThroughputPostOK() *StorageServiceStreamThroughputPostOK { - return &StorageServiceStreamThroughputPostOK{} -} - -/* -StorageServiceStreamThroughputPostOK handles this case with default header values. - -Success -*/ -type StorageServiceStreamThroughputPostOK struct { -} - -func (o *StorageServiceStreamThroughputPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceStreamThroughputPostDefault creates a StorageServiceStreamThroughputPostDefault with default headers values -func NewStorageServiceStreamThroughputPostDefault(code int) *StorageServiceStreamThroughputPostDefault { - return &StorageServiceStreamThroughputPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceStreamThroughputPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceStreamThroughputPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service stream throughput post default response -func (o *StorageServiceStreamThroughputPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceStreamThroughputPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceStreamThroughputPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceStreamThroughputPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tablets_balancing_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tablets_balancing_post_parameters.go deleted file mode 100644 index 6e2e1948e0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tablets_balancing_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageServiceTabletsBalancingPostParams creates a new StorageServiceTabletsBalancingPostParams object -// with the default values initialized. -func NewStorageServiceTabletsBalancingPostParams() *StorageServiceTabletsBalancingPostParams { - var () - return &StorageServiceTabletsBalancingPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceTabletsBalancingPostParamsWithTimeout creates a new StorageServiceTabletsBalancingPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceTabletsBalancingPostParamsWithTimeout(timeout time.Duration) *StorageServiceTabletsBalancingPostParams { - var () - return &StorageServiceTabletsBalancingPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceTabletsBalancingPostParamsWithContext creates a new StorageServiceTabletsBalancingPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceTabletsBalancingPostParamsWithContext(ctx context.Context) *StorageServiceTabletsBalancingPostParams { - var () - return &StorageServiceTabletsBalancingPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceTabletsBalancingPostParamsWithHTTPClient creates a new StorageServiceTabletsBalancingPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceTabletsBalancingPostParamsWithHTTPClient(client *http.Client) *StorageServiceTabletsBalancingPostParams { - var () - return &StorageServiceTabletsBalancingPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceTabletsBalancingPostParams contains all the parameters to send to the API endpoint -for the storage service tablets balancing post operation typically these are written to a http.Request -*/ -type StorageServiceTabletsBalancingPostParams struct { - - /*Enabled - When set to false, tablet load balancing is disabled - - */ - Enabled bool - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service tablets balancing post params -func (o *StorageServiceTabletsBalancingPostParams) WithTimeout(timeout time.Duration) *StorageServiceTabletsBalancingPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service tablets balancing post params -func (o *StorageServiceTabletsBalancingPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service tablets balancing post params -func (o *StorageServiceTabletsBalancingPostParams) WithContext(ctx context.Context) *StorageServiceTabletsBalancingPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service tablets balancing post params -func (o *StorageServiceTabletsBalancingPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service tablets balancing post params -func (o *StorageServiceTabletsBalancingPostParams) WithHTTPClient(client *http.Client) *StorageServiceTabletsBalancingPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service tablets balancing post params -func (o *StorageServiceTabletsBalancingPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithEnabled adds the enabled to the storage service tablets balancing post params -func (o *StorageServiceTabletsBalancingPostParams) WithEnabled(enabled bool) *StorageServiceTabletsBalancingPostParams { - o.SetEnabled(enabled) - return o -} - -// SetEnabled adds the enabled to the storage service tablets balancing post params -func (o *StorageServiceTabletsBalancingPostParams) SetEnabled(enabled bool) { - o.Enabled = enabled -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceTabletsBalancingPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param enabled - qrEnabled := o.Enabled - qEnabled := swag.FormatBool(qrEnabled) - if qEnabled != "" { - if err := r.SetQueryParam("enabled", qEnabled); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tablets_balancing_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tablets_balancing_post_responses.go deleted file mode 100644 index 0426d4b6c6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tablets_balancing_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceTabletsBalancingPostReader is a Reader for the StorageServiceTabletsBalancingPost structure. -type StorageServiceTabletsBalancingPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceTabletsBalancingPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceTabletsBalancingPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceTabletsBalancingPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceTabletsBalancingPostOK creates a StorageServiceTabletsBalancingPostOK with default headers values -func NewStorageServiceTabletsBalancingPostOK() *StorageServiceTabletsBalancingPostOK { - return &StorageServiceTabletsBalancingPostOK{} -} - -/* -StorageServiceTabletsBalancingPostOK handles this case with default header values. - -Success -*/ -type StorageServiceTabletsBalancingPostOK struct { -} - -func (o *StorageServiceTabletsBalancingPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceTabletsBalancingPostDefault creates a StorageServiceTabletsBalancingPostDefault with default headers values -func NewStorageServiceTabletsBalancingPostDefault(code int) *StorageServiceTabletsBalancingPostDefault { - return &StorageServiceTabletsBalancingPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceTabletsBalancingPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceTabletsBalancingPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service tablets balancing post default response -func (o *StorageServiceTabletsBalancingPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceTabletsBalancingPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceTabletsBalancingPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceTabletsBalancingPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tablets_repair_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tablets_repair_post_parameters.go deleted file mode 100644 index 28a3a23ab7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tablets_repair_post_parameters.go +++ /dev/null @@ -1,318 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceTabletsRepairPostParams creates a new StorageServiceTabletsRepairPostParams object -// with the default values initialized. -func NewStorageServiceTabletsRepairPostParams() *StorageServiceTabletsRepairPostParams { - var () - return &StorageServiceTabletsRepairPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceTabletsRepairPostParamsWithTimeout creates a new StorageServiceTabletsRepairPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceTabletsRepairPostParamsWithTimeout(timeout time.Duration) *StorageServiceTabletsRepairPostParams { - var () - return &StorageServiceTabletsRepairPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceTabletsRepairPostParamsWithContext creates a new StorageServiceTabletsRepairPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceTabletsRepairPostParamsWithContext(ctx context.Context) *StorageServiceTabletsRepairPostParams { - var () - return &StorageServiceTabletsRepairPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceTabletsRepairPostParamsWithHTTPClient creates a new StorageServiceTabletsRepairPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceTabletsRepairPostParamsWithHTTPClient(client *http.Client) *StorageServiceTabletsRepairPostParams { - var () - return &StorageServiceTabletsRepairPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceTabletsRepairPostParams contains all the parameters to send to the API endpoint -for the storage service tablets repair post operation typically these are written to a http.Request -*/ -type StorageServiceTabletsRepairPostParams struct { - - /*AwaitCompletion - Set true to wait for the repair to complete. Set false to skip waiting for the repair to complete. When the option is not provided, it defaults to false. - - */ - AwaitCompletion *string - /*DcsFilter - Repair replicas listed in the comma-separated DC list - - */ - DcsFilter *string - /*HostsFilter - Repair replicas listed in the comma-separated host_id list. - - */ - HostsFilter *string - /*IncrementalMode - Set the incremental repair mode. Can be 'disabled', 'incremental', or 'full'. 'incremental': The incremental repair logic is enabled. Unrepaired sstables will be included for repair. Repaired sstables will be skipped. The incremental repair states will be updated after repair. 'full': The incremental repair logic is enabled. Both repaired and unrepaired sstables will be included for repair. The incremental repair states will be updated after repair. 'disabled': The incremental repair logic is disabled completely. The incremental repair states, e.g., repaired_at in sstables and sstables_repaired_at in the system.tablets table, will not be updated after repair. When the option is not provided, it defaults to 'incremental'. - - */ - IncrementalMode *string - /*Ks - Keyspace name to repair - - */ - Ks string - /*Table - Table name to repair - - */ - Table string - /*Tokens - Tokens owned by the tablets to repair. Multiple tokens can be provided using a comma-separated list. When set to the special word 'all', all tablets will be repaired - - */ - Tokens string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) WithTimeout(timeout time.Duration) *StorageServiceTabletsRepairPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) WithContext(ctx context.Context) *StorageServiceTabletsRepairPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) WithHTTPClient(client *http.Client) *StorageServiceTabletsRepairPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithAwaitCompletion adds the awaitCompletion to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) WithAwaitCompletion(awaitCompletion *string) *StorageServiceTabletsRepairPostParams { - o.SetAwaitCompletion(awaitCompletion) - return o -} - -// SetAwaitCompletion adds the awaitCompletion to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) SetAwaitCompletion(awaitCompletion *string) { - o.AwaitCompletion = awaitCompletion -} - -// WithDcsFilter adds the dcsFilter to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) WithDcsFilter(dcsFilter *string) *StorageServiceTabletsRepairPostParams { - o.SetDcsFilter(dcsFilter) - return o -} - -// SetDcsFilter adds the dcsFilter to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) SetDcsFilter(dcsFilter *string) { - o.DcsFilter = dcsFilter -} - -// WithHostsFilter adds the hostsFilter to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) WithHostsFilter(hostsFilter *string) *StorageServiceTabletsRepairPostParams { - o.SetHostsFilter(hostsFilter) - return o -} - -// SetHostsFilter adds the hostsFilter to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) SetHostsFilter(hostsFilter *string) { - o.HostsFilter = hostsFilter -} - -// WithIncrementalMode adds the incrementalMode to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) WithIncrementalMode(incrementalMode *string) *StorageServiceTabletsRepairPostParams { - o.SetIncrementalMode(incrementalMode) - return o -} - -// SetIncrementalMode adds the incrementalMode to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) SetIncrementalMode(incrementalMode *string) { - o.IncrementalMode = incrementalMode -} - -// WithKs adds the ks to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) WithKs(ks string) *StorageServiceTabletsRepairPostParams { - o.SetKs(ks) - return o -} - -// SetKs adds the ks to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) SetKs(ks string) { - o.Ks = ks -} - -// WithTable adds the table to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) WithTable(table string) *StorageServiceTabletsRepairPostParams { - o.SetTable(table) - return o -} - -// SetTable adds the table to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) SetTable(table string) { - o.Table = table -} - -// WithTokens adds the tokens to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) WithTokens(tokens string) *StorageServiceTabletsRepairPostParams { - o.SetTokens(tokens) - return o -} - -// SetTokens adds the tokens to the storage service tablets repair post params -func (o *StorageServiceTabletsRepairPostParams) SetTokens(tokens string) { - o.Tokens = tokens -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceTabletsRepairPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.AwaitCompletion != nil { - - // query param await_completion - var qrAwaitCompletion string - if o.AwaitCompletion != nil { - qrAwaitCompletion = *o.AwaitCompletion - } - qAwaitCompletion := qrAwaitCompletion - if qAwaitCompletion != "" { - if err := r.SetQueryParam("await_completion", qAwaitCompletion); err != nil { - return err - } - } - - } - - if o.DcsFilter != nil { - - // query param dcs_filter - var qrDcsFilter string - if o.DcsFilter != nil { - qrDcsFilter = *o.DcsFilter - } - qDcsFilter := qrDcsFilter - if qDcsFilter != "" { - if err := r.SetQueryParam("dcs_filter", qDcsFilter); err != nil { - return err - } - } - - } - - if o.HostsFilter != nil { - - // query param hosts_filter - var qrHostsFilter string - if o.HostsFilter != nil { - qrHostsFilter = *o.HostsFilter - } - qHostsFilter := qrHostsFilter - if qHostsFilter != "" { - if err := r.SetQueryParam("hosts_filter", qHostsFilter); err != nil { - return err - } - } - - } - - if o.IncrementalMode != nil { - - // query param incremental_mode - var qrIncrementalMode string - if o.IncrementalMode != nil { - qrIncrementalMode = *o.IncrementalMode - } - qIncrementalMode := qrIncrementalMode - if qIncrementalMode != "" { - if err := r.SetQueryParam("incremental_mode", qIncrementalMode); err != nil { - return err - } - } - - } - - // query param ks - qrKs := o.Ks - qKs := qrKs - if qKs != "" { - if err := r.SetQueryParam("ks", qKs); err != nil { - return err - } - } - - // query param table - qrTable := o.Table - qTable := qrTable - if qTable != "" { - if err := r.SetQueryParam("table", qTable); err != nil { - return err - } - } - - // query param tokens - qrTokens := o.Tokens - qTokens := qrTokens - if qTokens != "" { - if err := r.SetQueryParam("tokens", qTokens); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tablets_repair_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tablets_repair_post_responses.go deleted file mode 100644 index a199eac678..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tablets_repair_post_responses.go +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceTabletsRepairPostReader is a Reader for the StorageServiceTabletsRepairPost structure. -type StorageServiceTabletsRepairPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceTabletsRepairPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceTabletsRepairPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceTabletsRepairPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceTabletsRepairPostOK creates a StorageServiceTabletsRepairPostOK with default headers values -func NewStorageServiceTabletsRepairPostOK() *StorageServiceTabletsRepairPostOK { - return &StorageServiceTabletsRepairPostOK{} -} - -/* -StorageServiceTabletsRepairPostOK handles this case with default header values. - -Tablet task ID -*/ -type StorageServiceTabletsRepairPostOK struct { - Payload *StorageServiceTabletsRepairPostOKBody -} - -func (o *StorageServiceTabletsRepairPostOK) GetPayload() *StorageServiceTabletsRepairPostOKBody { - return o.Payload -} - -func (o *StorageServiceTabletsRepairPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(StorageServiceTabletsRepairPostOKBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceTabletsRepairPostDefault creates a StorageServiceTabletsRepairPostDefault with default headers values -func NewStorageServiceTabletsRepairPostDefault(code int) *StorageServiceTabletsRepairPostDefault { - return &StorageServiceTabletsRepairPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceTabletsRepairPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceTabletsRepairPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service tablets repair post default response -func (o *StorageServiceTabletsRepairPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceTabletsRepairPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceTabletsRepairPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceTabletsRepairPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} - -/* -StorageServiceTabletsRepairPostOKBody storage service tablets repair post o k body -swagger:model StorageServiceTabletsRepairPostOKBody -*/ -type StorageServiceTabletsRepairPostOKBody struct { - - // Tablet task ID - TabletTaskID string `json:"tablet_task_id,omitempty"` -} - -// Validate validates this storage service tablets repair post o k body -func (o *StorageServiceTabletsRepairPostOKBody) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *StorageServiceTabletsRepairPostOKBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *StorageServiceTabletsRepairPostOKBody) UnmarshalBinary(b []byte) error { - var res StorageServiceTabletsRepairPostOKBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tokens_by_endpoint_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tokens_by_endpoint_get_parameters.go deleted file mode 100644 index 08332b224e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tokens_by_endpoint_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceTokensByEndpointGetParams creates a new StorageServiceTokensByEndpointGetParams object -// with the default values initialized. -func NewStorageServiceTokensByEndpointGetParams() *StorageServiceTokensByEndpointGetParams { - var () - return &StorageServiceTokensByEndpointGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceTokensByEndpointGetParamsWithTimeout creates a new StorageServiceTokensByEndpointGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceTokensByEndpointGetParamsWithTimeout(timeout time.Duration) *StorageServiceTokensByEndpointGetParams { - var () - return &StorageServiceTokensByEndpointGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceTokensByEndpointGetParamsWithContext creates a new StorageServiceTokensByEndpointGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceTokensByEndpointGetParamsWithContext(ctx context.Context) *StorageServiceTokensByEndpointGetParams { - var () - return &StorageServiceTokensByEndpointGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceTokensByEndpointGetParamsWithHTTPClient creates a new StorageServiceTokensByEndpointGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceTokensByEndpointGetParamsWithHTTPClient(client *http.Client) *StorageServiceTokensByEndpointGetParams { - var () - return &StorageServiceTokensByEndpointGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceTokensByEndpointGetParams contains all the parameters to send to the API endpoint -for the storage service tokens by endpoint get operation typically these are written to a http.Request -*/ -type StorageServiceTokensByEndpointGetParams struct { - - /*Endpoint - The endpoint - - */ - Endpoint string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service tokens by endpoint get params -func (o *StorageServiceTokensByEndpointGetParams) WithTimeout(timeout time.Duration) *StorageServiceTokensByEndpointGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service tokens by endpoint get params -func (o *StorageServiceTokensByEndpointGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service tokens by endpoint get params -func (o *StorageServiceTokensByEndpointGetParams) WithContext(ctx context.Context) *StorageServiceTokensByEndpointGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service tokens by endpoint get params -func (o *StorageServiceTokensByEndpointGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service tokens by endpoint get params -func (o *StorageServiceTokensByEndpointGetParams) WithHTTPClient(client *http.Client) *StorageServiceTokensByEndpointGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service tokens by endpoint get params -func (o *StorageServiceTokensByEndpointGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithEndpoint adds the endpoint to the storage service tokens by endpoint get params -func (o *StorageServiceTokensByEndpointGetParams) WithEndpoint(endpoint string) *StorageServiceTokensByEndpointGetParams { - o.SetEndpoint(endpoint) - return o -} - -// SetEndpoint adds the endpoint to the storage service tokens by endpoint get params -func (o *StorageServiceTokensByEndpointGetParams) SetEndpoint(endpoint string) { - o.Endpoint = endpoint -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceTokensByEndpointGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param endpoint - if err := r.SetPathParam("endpoint", o.Endpoint); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tokens_by_endpoint_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tokens_by_endpoint_get_responses.go deleted file mode 100644 index 1a16a90a56..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tokens_by_endpoint_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceTokensByEndpointGetReader is a Reader for the StorageServiceTokensByEndpointGet structure. -type StorageServiceTokensByEndpointGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceTokensByEndpointGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceTokensByEndpointGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceTokensByEndpointGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceTokensByEndpointGetOK creates a StorageServiceTokensByEndpointGetOK with default headers values -func NewStorageServiceTokensByEndpointGetOK() *StorageServiceTokensByEndpointGetOK { - return &StorageServiceTokensByEndpointGetOK{} -} - -/* -StorageServiceTokensByEndpointGetOK handles this case with default header values. - -Success -*/ -type StorageServiceTokensByEndpointGetOK struct { - Payload []string -} - -func (o *StorageServiceTokensByEndpointGetOK) GetPayload() []string { - return o.Payload -} - -func (o *StorageServiceTokensByEndpointGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceTokensByEndpointGetDefault creates a StorageServiceTokensByEndpointGetDefault with default headers values -func NewStorageServiceTokensByEndpointGetDefault(code int) *StorageServiceTokensByEndpointGetDefault { - return &StorageServiceTokensByEndpointGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceTokensByEndpointGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceTokensByEndpointGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service tokens by endpoint get default response -func (o *StorageServiceTokensByEndpointGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceTokensByEndpointGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceTokensByEndpointGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceTokensByEndpointGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tokens_endpoint_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tokens_endpoint_get_parameters.go deleted file mode 100644 index 79f625bb7b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tokens_endpoint_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceTokensEndpointGetParams creates a new StorageServiceTokensEndpointGetParams object -// with the default values initialized. -func NewStorageServiceTokensEndpointGetParams() *StorageServiceTokensEndpointGetParams { - - return &StorageServiceTokensEndpointGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceTokensEndpointGetParamsWithTimeout creates a new StorageServiceTokensEndpointGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceTokensEndpointGetParamsWithTimeout(timeout time.Duration) *StorageServiceTokensEndpointGetParams { - - return &StorageServiceTokensEndpointGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceTokensEndpointGetParamsWithContext creates a new StorageServiceTokensEndpointGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceTokensEndpointGetParamsWithContext(ctx context.Context) *StorageServiceTokensEndpointGetParams { - - return &StorageServiceTokensEndpointGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceTokensEndpointGetParamsWithHTTPClient creates a new StorageServiceTokensEndpointGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceTokensEndpointGetParamsWithHTTPClient(client *http.Client) *StorageServiceTokensEndpointGetParams { - - return &StorageServiceTokensEndpointGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceTokensEndpointGetParams contains all the parameters to send to the API endpoint -for the storage service tokens endpoint get operation typically these are written to a http.Request -*/ -type StorageServiceTokensEndpointGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service tokens endpoint get params -func (o *StorageServiceTokensEndpointGetParams) WithTimeout(timeout time.Duration) *StorageServiceTokensEndpointGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service tokens endpoint get params -func (o *StorageServiceTokensEndpointGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service tokens endpoint get params -func (o *StorageServiceTokensEndpointGetParams) WithContext(ctx context.Context) *StorageServiceTokensEndpointGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service tokens endpoint get params -func (o *StorageServiceTokensEndpointGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service tokens endpoint get params -func (o *StorageServiceTokensEndpointGetParams) WithHTTPClient(client *http.Client) *StorageServiceTokensEndpointGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service tokens endpoint get params -func (o *StorageServiceTokensEndpointGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceTokensEndpointGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tokens_endpoint_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tokens_endpoint_get_responses.go deleted file mode 100644 index 73c60f941a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tokens_endpoint_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceTokensEndpointGetReader is a Reader for the StorageServiceTokensEndpointGet structure. -type StorageServiceTokensEndpointGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceTokensEndpointGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceTokensEndpointGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceTokensEndpointGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceTokensEndpointGetOK creates a StorageServiceTokensEndpointGetOK with default headers values -func NewStorageServiceTokensEndpointGetOK() *StorageServiceTokensEndpointGetOK { - return &StorageServiceTokensEndpointGetOK{} -} - -/* -StorageServiceTokensEndpointGetOK handles this case with default header values. - -Success -*/ -type StorageServiceTokensEndpointGetOK struct { - Payload []*models.Mapper -} - -func (o *StorageServiceTokensEndpointGetOK) GetPayload() []*models.Mapper { - return o.Payload -} - -func (o *StorageServiceTokensEndpointGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceTokensEndpointGetDefault creates a StorageServiceTokensEndpointGetDefault with default headers values -func NewStorageServiceTokensEndpointGetDefault(code int) *StorageServiceTokensEndpointGetDefault { - return &StorageServiceTokensEndpointGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceTokensEndpointGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceTokensEndpointGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service tokens endpoint get default response -func (o *StorageServiceTokensEndpointGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceTokensEndpointGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceTokensEndpointGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceTokensEndpointGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tokens_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tokens_get_parameters.go deleted file mode 100644 index 8a7efa2cdb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tokens_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceTokensGetParams creates a new StorageServiceTokensGetParams object -// with the default values initialized. -func NewStorageServiceTokensGetParams() *StorageServiceTokensGetParams { - - return &StorageServiceTokensGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceTokensGetParamsWithTimeout creates a new StorageServiceTokensGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceTokensGetParamsWithTimeout(timeout time.Duration) *StorageServiceTokensGetParams { - - return &StorageServiceTokensGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceTokensGetParamsWithContext creates a new StorageServiceTokensGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceTokensGetParamsWithContext(ctx context.Context) *StorageServiceTokensGetParams { - - return &StorageServiceTokensGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceTokensGetParamsWithHTTPClient creates a new StorageServiceTokensGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceTokensGetParamsWithHTTPClient(client *http.Client) *StorageServiceTokensGetParams { - - return &StorageServiceTokensGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceTokensGetParams contains all the parameters to send to the API endpoint -for the storage service tokens get operation typically these are written to a http.Request -*/ -type StorageServiceTokensGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service tokens get params -func (o *StorageServiceTokensGetParams) WithTimeout(timeout time.Duration) *StorageServiceTokensGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service tokens get params -func (o *StorageServiceTokensGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service tokens get params -func (o *StorageServiceTokensGetParams) WithContext(ctx context.Context) *StorageServiceTokensGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service tokens get params -func (o *StorageServiceTokensGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service tokens get params -func (o *StorageServiceTokensGetParams) WithHTTPClient(client *http.Client) *StorageServiceTokensGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service tokens get params -func (o *StorageServiceTokensGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceTokensGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tokens_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tokens_get_responses.go deleted file mode 100644 index 71c4dcd3e1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tokens_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceTokensGetReader is a Reader for the StorageServiceTokensGet structure. -type StorageServiceTokensGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceTokensGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceTokensGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceTokensGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceTokensGetOK creates a StorageServiceTokensGetOK with default headers values -func NewStorageServiceTokensGetOK() *StorageServiceTokensGetOK { - return &StorageServiceTokensGetOK{} -} - -/* -StorageServiceTokensGetOK handles this case with default header values. - -Success -*/ -type StorageServiceTokensGetOK struct { - Payload []string -} - -func (o *StorageServiceTokensGetOK) GetPayload() []string { - return o.Payload -} - -func (o *StorageServiceTokensGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceTokensGetDefault creates a StorageServiceTokensGetDefault with default headers values -func NewStorageServiceTokensGetDefault(code int) *StorageServiceTokensGetDefault { - return &StorageServiceTokensGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceTokensGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceTokensGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service tokens get default response -func (o *StorageServiceTokensGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceTokensGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceTokensGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceTokensGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_failure_threshold_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_failure_threshold_get_parameters.go deleted file mode 100644 index 4cb08c1d81..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_failure_threshold_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceTombstoneFailureThresholdGetParams creates a new StorageServiceTombstoneFailureThresholdGetParams object -// with the default values initialized. -func NewStorageServiceTombstoneFailureThresholdGetParams() *StorageServiceTombstoneFailureThresholdGetParams { - - return &StorageServiceTombstoneFailureThresholdGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceTombstoneFailureThresholdGetParamsWithTimeout creates a new StorageServiceTombstoneFailureThresholdGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceTombstoneFailureThresholdGetParamsWithTimeout(timeout time.Duration) *StorageServiceTombstoneFailureThresholdGetParams { - - return &StorageServiceTombstoneFailureThresholdGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceTombstoneFailureThresholdGetParamsWithContext creates a new StorageServiceTombstoneFailureThresholdGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceTombstoneFailureThresholdGetParamsWithContext(ctx context.Context) *StorageServiceTombstoneFailureThresholdGetParams { - - return &StorageServiceTombstoneFailureThresholdGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceTombstoneFailureThresholdGetParamsWithHTTPClient creates a new StorageServiceTombstoneFailureThresholdGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceTombstoneFailureThresholdGetParamsWithHTTPClient(client *http.Client) *StorageServiceTombstoneFailureThresholdGetParams { - - return &StorageServiceTombstoneFailureThresholdGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceTombstoneFailureThresholdGetParams contains all the parameters to send to the API endpoint -for the storage service tombstone failure threshold get operation typically these are written to a http.Request -*/ -type StorageServiceTombstoneFailureThresholdGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service tombstone failure threshold get params -func (o *StorageServiceTombstoneFailureThresholdGetParams) WithTimeout(timeout time.Duration) *StorageServiceTombstoneFailureThresholdGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service tombstone failure threshold get params -func (o *StorageServiceTombstoneFailureThresholdGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service tombstone failure threshold get params -func (o *StorageServiceTombstoneFailureThresholdGetParams) WithContext(ctx context.Context) *StorageServiceTombstoneFailureThresholdGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service tombstone failure threshold get params -func (o *StorageServiceTombstoneFailureThresholdGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service tombstone failure threshold get params -func (o *StorageServiceTombstoneFailureThresholdGetParams) WithHTTPClient(client *http.Client) *StorageServiceTombstoneFailureThresholdGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service tombstone failure threshold get params -func (o *StorageServiceTombstoneFailureThresholdGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceTombstoneFailureThresholdGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_failure_threshold_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_failure_threshold_get_responses.go deleted file mode 100644 index 0eaea9895c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_failure_threshold_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceTombstoneFailureThresholdGetReader is a Reader for the StorageServiceTombstoneFailureThresholdGet structure. -type StorageServiceTombstoneFailureThresholdGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceTombstoneFailureThresholdGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceTombstoneFailureThresholdGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceTombstoneFailureThresholdGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceTombstoneFailureThresholdGetOK creates a StorageServiceTombstoneFailureThresholdGetOK with default headers values -func NewStorageServiceTombstoneFailureThresholdGetOK() *StorageServiceTombstoneFailureThresholdGetOK { - return &StorageServiceTombstoneFailureThresholdGetOK{} -} - -/* -StorageServiceTombstoneFailureThresholdGetOK handles this case with default header values. - -Success -*/ -type StorageServiceTombstoneFailureThresholdGetOK struct { - Payload int32 -} - -func (o *StorageServiceTombstoneFailureThresholdGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageServiceTombstoneFailureThresholdGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceTombstoneFailureThresholdGetDefault creates a StorageServiceTombstoneFailureThresholdGetDefault with default headers values -func NewStorageServiceTombstoneFailureThresholdGetDefault(code int) *StorageServiceTombstoneFailureThresholdGetDefault { - return &StorageServiceTombstoneFailureThresholdGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceTombstoneFailureThresholdGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceTombstoneFailureThresholdGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service tombstone failure threshold get default response -func (o *StorageServiceTombstoneFailureThresholdGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceTombstoneFailureThresholdGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceTombstoneFailureThresholdGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceTombstoneFailureThresholdGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_failure_threshold_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_failure_threshold_post_parameters.go deleted file mode 100644 index 3084d0f871..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_failure_threshold_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageServiceTombstoneFailureThresholdPostParams creates a new StorageServiceTombstoneFailureThresholdPostParams object -// with the default values initialized. -func NewStorageServiceTombstoneFailureThresholdPostParams() *StorageServiceTombstoneFailureThresholdPostParams { - var () - return &StorageServiceTombstoneFailureThresholdPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceTombstoneFailureThresholdPostParamsWithTimeout creates a new StorageServiceTombstoneFailureThresholdPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceTombstoneFailureThresholdPostParamsWithTimeout(timeout time.Duration) *StorageServiceTombstoneFailureThresholdPostParams { - var () - return &StorageServiceTombstoneFailureThresholdPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceTombstoneFailureThresholdPostParamsWithContext creates a new StorageServiceTombstoneFailureThresholdPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceTombstoneFailureThresholdPostParamsWithContext(ctx context.Context) *StorageServiceTombstoneFailureThresholdPostParams { - var () - return &StorageServiceTombstoneFailureThresholdPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceTombstoneFailureThresholdPostParamsWithHTTPClient creates a new StorageServiceTombstoneFailureThresholdPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceTombstoneFailureThresholdPostParamsWithHTTPClient(client *http.Client) *StorageServiceTombstoneFailureThresholdPostParams { - var () - return &StorageServiceTombstoneFailureThresholdPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceTombstoneFailureThresholdPostParams contains all the parameters to send to the API endpoint -for the storage service tombstone failure threshold post operation typically these are written to a http.Request -*/ -type StorageServiceTombstoneFailureThresholdPostParams struct { - - /*TombstoneDebugThreshold - tombstone debug threshold - - */ - TombstoneDebugThreshold int32 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service tombstone failure threshold post params -func (o *StorageServiceTombstoneFailureThresholdPostParams) WithTimeout(timeout time.Duration) *StorageServiceTombstoneFailureThresholdPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service tombstone failure threshold post params -func (o *StorageServiceTombstoneFailureThresholdPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service tombstone failure threshold post params -func (o *StorageServiceTombstoneFailureThresholdPostParams) WithContext(ctx context.Context) *StorageServiceTombstoneFailureThresholdPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service tombstone failure threshold post params -func (o *StorageServiceTombstoneFailureThresholdPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service tombstone failure threshold post params -func (o *StorageServiceTombstoneFailureThresholdPostParams) WithHTTPClient(client *http.Client) *StorageServiceTombstoneFailureThresholdPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service tombstone failure threshold post params -func (o *StorageServiceTombstoneFailureThresholdPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithTombstoneDebugThreshold adds the tombstoneDebugThreshold to the storage service tombstone failure threshold post params -func (o *StorageServiceTombstoneFailureThresholdPostParams) WithTombstoneDebugThreshold(tombstoneDebugThreshold int32) *StorageServiceTombstoneFailureThresholdPostParams { - o.SetTombstoneDebugThreshold(tombstoneDebugThreshold) - return o -} - -// SetTombstoneDebugThreshold adds the tombstoneDebugThreshold to the storage service tombstone failure threshold post params -func (o *StorageServiceTombstoneFailureThresholdPostParams) SetTombstoneDebugThreshold(tombstoneDebugThreshold int32) { - o.TombstoneDebugThreshold = tombstoneDebugThreshold -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceTombstoneFailureThresholdPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param tombstone_debug_threshold - qrTombstoneDebugThreshold := o.TombstoneDebugThreshold - qTombstoneDebugThreshold := swag.FormatInt32(qrTombstoneDebugThreshold) - if qTombstoneDebugThreshold != "" { - if err := r.SetQueryParam("tombstone_debug_threshold", qTombstoneDebugThreshold); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_failure_threshold_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_failure_threshold_post_responses.go deleted file mode 100644 index a663727123..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_failure_threshold_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceTombstoneFailureThresholdPostReader is a Reader for the StorageServiceTombstoneFailureThresholdPost structure. -type StorageServiceTombstoneFailureThresholdPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceTombstoneFailureThresholdPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceTombstoneFailureThresholdPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceTombstoneFailureThresholdPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceTombstoneFailureThresholdPostOK creates a StorageServiceTombstoneFailureThresholdPostOK with default headers values -func NewStorageServiceTombstoneFailureThresholdPostOK() *StorageServiceTombstoneFailureThresholdPostOK { - return &StorageServiceTombstoneFailureThresholdPostOK{} -} - -/* -StorageServiceTombstoneFailureThresholdPostOK handles this case with default header values. - -Success -*/ -type StorageServiceTombstoneFailureThresholdPostOK struct { -} - -func (o *StorageServiceTombstoneFailureThresholdPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceTombstoneFailureThresholdPostDefault creates a StorageServiceTombstoneFailureThresholdPostDefault with default headers values -func NewStorageServiceTombstoneFailureThresholdPostDefault(code int) *StorageServiceTombstoneFailureThresholdPostDefault { - return &StorageServiceTombstoneFailureThresholdPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceTombstoneFailureThresholdPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceTombstoneFailureThresholdPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service tombstone failure threshold post default response -func (o *StorageServiceTombstoneFailureThresholdPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceTombstoneFailureThresholdPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceTombstoneFailureThresholdPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceTombstoneFailureThresholdPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_warn_threshold_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_warn_threshold_get_parameters.go deleted file mode 100644 index cf1bba0dd1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_warn_threshold_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceTombstoneWarnThresholdGetParams creates a new StorageServiceTombstoneWarnThresholdGetParams object -// with the default values initialized. -func NewStorageServiceTombstoneWarnThresholdGetParams() *StorageServiceTombstoneWarnThresholdGetParams { - - return &StorageServiceTombstoneWarnThresholdGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceTombstoneWarnThresholdGetParamsWithTimeout creates a new StorageServiceTombstoneWarnThresholdGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceTombstoneWarnThresholdGetParamsWithTimeout(timeout time.Duration) *StorageServiceTombstoneWarnThresholdGetParams { - - return &StorageServiceTombstoneWarnThresholdGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceTombstoneWarnThresholdGetParamsWithContext creates a new StorageServiceTombstoneWarnThresholdGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceTombstoneWarnThresholdGetParamsWithContext(ctx context.Context) *StorageServiceTombstoneWarnThresholdGetParams { - - return &StorageServiceTombstoneWarnThresholdGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceTombstoneWarnThresholdGetParamsWithHTTPClient creates a new StorageServiceTombstoneWarnThresholdGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceTombstoneWarnThresholdGetParamsWithHTTPClient(client *http.Client) *StorageServiceTombstoneWarnThresholdGetParams { - - return &StorageServiceTombstoneWarnThresholdGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceTombstoneWarnThresholdGetParams contains all the parameters to send to the API endpoint -for the storage service tombstone warn threshold get operation typically these are written to a http.Request -*/ -type StorageServiceTombstoneWarnThresholdGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service tombstone warn threshold get params -func (o *StorageServiceTombstoneWarnThresholdGetParams) WithTimeout(timeout time.Duration) *StorageServiceTombstoneWarnThresholdGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service tombstone warn threshold get params -func (o *StorageServiceTombstoneWarnThresholdGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service tombstone warn threshold get params -func (o *StorageServiceTombstoneWarnThresholdGetParams) WithContext(ctx context.Context) *StorageServiceTombstoneWarnThresholdGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service tombstone warn threshold get params -func (o *StorageServiceTombstoneWarnThresholdGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service tombstone warn threshold get params -func (o *StorageServiceTombstoneWarnThresholdGetParams) WithHTTPClient(client *http.Client) *StorageServiceTombstoneWarnThresholdGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service tombstone warn threshold get params -func (o *StorageServiceTombstoneWarnThresholdGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceTombstoneWarnThresholdGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_warn_threshold_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_warn_threshold_get_responses.go deleted file mode 100644 index 1dc27ec9f0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_warn_threshold_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceTombstoneWarnThresholdGetReader is a Reader for the StorageServiceTombstoneWarnThresholdGet structure. -type StorageServiceTombstoneWarnThresholdGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceTombstoneWarnThresholdGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceTombstoneWarnThresholdGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceTombstoneWarnThresholdGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceTombstoneWarnThresholdGetOK creates a StorageServiceTombstoneWarnThresholdGetOK with default headers values -func NewStorageServiceTombstoneWarnThresholdGetOK() *StorageServiceTombstoneWarnThresholdGetOK { - return &StorageServiceTombstoneWarnThresholdGetOK{} -} - -/* -StorageServiceTombstoneWarnThresholdGetOK handles this case with default header values. - -Success -*/ -type StorageServiceTombstoneWarnThresholdGetOK struct { - Payload int32 -} - -func (o *StorageServiceTombstoneWarnThresholdGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StorageServiceTombstoneWarnThresholdGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceTombstoneWarnThresholdGetDefault creates a StorageServiceTombstoneWarnThresholdGetDefault with default headers values -func NewStorageServiceTombstoneWarnThresholdGetDefault(code int) *StorageServiceTombstoneWarnThresholdGetDefault { - return &StorageServiceTombstoneWarnThresholdGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceTombstoneWarnThresholdGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceTombstoneWarnThresholdGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service tombstone warn threshold get default response -func (o *StorageServiceTombstoneWarnThresholdGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceTombstoneWarnThresholdGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceTombstoneWarnThresholdGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceTombstoneWarnThresholdGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_warn_threshold_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_warn_threshold_post_parameters.go deleted file mode 100644 index e1fcf893ca..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_warn_threshold_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageServiceTombstoneWarnThresholdPostParams creates a new StorageServiceTombstoneWarnThresholdPostParams object -// with the default values initialized. -func NewStorageServiceTombstoneWarnThresholdPostParams() *StorageServiceTombstoneWarnThresholdPostParams { - var () - return &StorageServiceTombstoneWarnThresholdPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceTombstoneWarnThresholdPostParamsWithTimeout creates a new StorageServiceTombstoneWarnThresholdPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceTombstoneWarnThresholdPostParamsWithTimeout(timeout time.Duration) *StorageServiceTombstoneWarnThresholdPostParams { - var () - return &StorageServiceTombstoneWarnThresholdPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceTombstoneWarnThresholdPostParamsWithContext creates a new StorageServiceTombstoneWarnThresholdPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceTombstoneWarnThresholdPostParamsWithContext(ctx context.Context) *StorageServiceTombstoneWarnThresholdPostParams { - var () - return &StorageServiceTombstoneWarnThresholdPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceTombstoneWarnThresholdPostParamsWithHTTPClient creates a new StorageServiceTombstoneWarnThresholdPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceTombstoneWarnThresholdPostParamsWithHTTPClient(client *http.Client) *StorageServiceTombstoneWarnThresholdPostParams { - var () - return &StorageServiceTombstoneWarnThresholdPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceTombstoneWarnThresholdPostParams contains all the parameters to send to the API endpoint -for the storage service tombstone warn threshold post operation typically these are written to a http.Request -*/ -type StorageServiceTombstoneWarnThresholdPostParams struct { - - /*DebugThreshold - tombstone debug threshold - - */ - DebugThreshold int32 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service tombstone warn threshold post params -func (o *StorageServiceTombstoneWarnThresholdPostParams) WithTimeout(timeout time.Duration) *StorageServiceTombstoneWarnThresholdPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service tombstone warn threshold post params -func (o *StorageServiceTombstoneWarnThresholdPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service tombstone warn threshold post params -func (o *StorageServiceTombstoneWarnThresholdPostParams) WithContext(ctx context.Context) *StorageServiceTombstoneWarnThresholdPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service tombstone warn threshold post params -func (o *StorageServiceTombstoneWarnThresholdPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service tombstone warn threshold post params -func (o *StorageServiceTombstoneWarnThresholdPostParams) WithHTTPClient(client *http.Client) *StorageServiceTombstoneWarnThresholdPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service tombstone warn threshold post params -func (o *StorageServiceTombstoneWarnThresholdPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithDebugThreshold adds the debugThreshold to the storage service tombstone warn threshold post params -func (o *StorageServiceTombstoneWarnThresholdPostParams) WithDebugThreshold(debugThreshold int32) *StorageServiceTombstoneWarnThresholdPostParams { - o.SetDebugThreshold(debugThreshold) - return o -} - -// SetDebugThreshold adds the debugThreshold to the storage service tombstone warn threshold post params -func (o *StorageServiceTombstoneWarnThresholdPostParams) SetDebugThreshold(debugThreshold int32) { - o.DebugThreshold = debugThreshold -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceTombstoneWarnThresholdPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param debug_threshold - qrDebugThreshold := o.DebugThreshold - qDebugThreshold := swag.FormatInt32(qrDebugThreshold) - if qDebugThreshold != "" { - if err := r.SetQueryParam("debug_threshold", qDebugThreshold); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_warn_threshold_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_warn_threshold_post_responses.go deleted file mode 100644 index f11dcefb44..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_tombstone_warn_threshold_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceTombstoneWarnThresholdPostReader is a Reader for the StorageServiceTombstoneWarnThresholdPost structure. -type StorageServiceTombstoneWarnThresholdPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceTombstoneWarnThresholdPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceTombstoneWarnThresholdPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceTombstoneWarnThresholdPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceTombstoneWarnThresholdPostOK creates a StorageServiceTombstoneWarnThresholdPostOK with default headers values -func NewStorageServiceTombstoneWarnThresholdPostOK() *StorageServiceTombstoneWarnThresholdPostOK { - return &StorageServiceTombstoneWarnThresholdPostOK{} -} - -/* -StorageServiceTombstoneWarnThresholdPostOK handles this case with default header values. - -Success -*/ -type StorageServiceTombstoneWarnThresholdPostOK struct { -} - -func (o *StorageServiceTombstoneWarnThresholdPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceTombstoneWarnThresholdPostDefault creates a StorageServiceTombstoneWarnThresholdPostDefault with default headers values -func NewStorageServiceTombstoneWarnThresholdPostDefault(code int) *StorageServiceTombstoneWarnThresholdPostDefault { - return &StorageServiceTombstoneWarnThresholdPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceTombstoneWarnThresholdPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceTombstoneWarnThresholdPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service tombstone warn threshold post default response -func (o *StorageServiceTombstoneWarnThresholdPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceTombstoneWarnThresholdPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceTombstoneWarnThresholdPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceTombstoneWarnThresholdPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_trace_probability_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_trace_probability_get_parameters.go deleted file mode 100644 index 4299566074..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_trace_probability_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceTraceProbabilityGetParams creates a new StorageServiceTraceProbabilityGetParams object -// with the default values initialized. -func NewStorageServiceTraceProbabilityGetParams() *StorageServiceTraceProbabilityGetParams { - - return &StorageServiceTraceProbabilityGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceTraceProbabilityGetParamsWithTimeout creates a new StorageServiceTraceProbabilityGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceTraceProbabilityGetParamsWithTimeout(timeout time.Duration) *StorageServiceTraceProbabilityGetParams { - - return &StorageServiceTraceProbabilityGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceTraceProbabilityGetParamsWithContext creates a new StorageServiceTraceProbabilityGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceTraceProbabilityGetParamsWithContext(ctx context.Context) *StorageServiceTraceProbabilityGetParams { - - return &StorageServiceTraceProbabilityGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceTraceProbabilityGetParamsWithHTTPClient creates a new StorageServiceTraceProbabilityGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceTraceProbabilityGetParamsWithHTTPClient(client *http.Client) *StorageServiceTraceProbabilityGetParams { - - return &StorageServiceTraceProbabilityGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceTraceProbabilityGetParams contains all the parameters to send to the API endpoint -for the storage service trace probability get operation typically these are written to a http.Request -*/ -type StorageServiceTraceProbabilityGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service trace probability get params -func (o *StorageServiceTraceProbabilityGetParams) WithTimeout(timeout time.Duration) *StorageServiceTraceProbabilityGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service trace probability get params -func (o *StorageServiceTraceProbabilityGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service trace probability get params -func (o *StorageServiceTraceProbabilityGetParams) WithContext(ctx context.Context) *StorageServiceTraceProbabilityGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service trace probability get params -func (o *StorageServiceTraceProbabilityGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service trace probability get params -func (o *StorageServiceTraceProbabilityGetParams) WithHTTPClient(client *http.Client) *StorageServiceTraceProbabilityGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service trace probability get params -func (o *StorageServiceTraceProbabilityGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceTraceProbabilityGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_trace_probability_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_trace_probability_get_responses.go deleted file mode 100644 index 90e872d3e8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_trace_probability_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceTraceProbabilityGetReader is a Reader for the StorageServiceTraceProbabilityGet structure. -type StorageServiceTraceProbabilityGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceTraceProbabilityGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceTraceProbabilityGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceTraceProbabilityGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceTraceProbabilityGetOK creates a StorageServiceTraceProbabilityGetOK with default headers values -func NewStorageServiceTraceProbabilityGetOK() *StorageServiceTraceProbabilityGetOK { - return &StorageServiceTraceProbabilityGetOK{} -} - -/* -StorageServiceTraceProbabilityGetOK handles this case with default header values. - -Success -*/ -type StorageServiceTraceProbabilityGetOK struct { - Payload interface{} -} - -func (o *StorageServiceTraceProbabilityGetOK) GetPayload() interface{} { - return o.Payload -} - -func (o *StorageServiceTraceProbabilityGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceTraceProbabilityGetDefault creates a StorageServiceTraceProbabilityGetDefault with default headers values -func NewStorageServiceTraceProbabilityGetDefault(code int) *StorageServiceTraceProbabilityGetDefault { - return &StorageServiceTraceProbabilityGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceTraceProbabilityGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceTraceProbabilityGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service trace probability get default response -func (o *StorageServiceTraceProbabilityGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceTraceProbabilityGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceTraceProbabilityGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceTraceProbabilityGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_trace_probability_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_trace_probability_post_parameters.go deleted file mode 100644 index f0fb066b1d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_trace_probability_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceTraceProbabilityPostParams creates a new StorageServiceTraceProbabilityPostParams object -// with the default values initialized. -func NewStorageServiceTraceProbabilityPostParams() *StorageServiceTraceProbabilityPostParams { - var () - return &StorageServiceTraceProbabilityPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceTraceProbabilityPostParamsWithTimeout creates a new StorageServiceTraceProbabilityPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceTraceProbabilityPostParamsWithTimeout(timeout time.Duration) *StorageServiceTraceProbabilityPostParams { - var () - return &StorageServiceTraceProbabilityPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceTraceProbabilityPostParamsWithContext creates a new StorageServiceTraceProbabilityPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceTraceProbabilityPostParamsWithContext(ctx context.Context) *StorageServiceTraceProbabilityPostParams { - var () - return &StorageServiceTraceProbabilityPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceTraceProbabilityPostParamsWithHTTPClient creates a new StorageServiceTraceProbabilityPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceTraceProbabilityPostParamsWithHTTPClient(client *http.Client) *StorageServiceTraceProbabilityPostParams { - var () - return &StorageServiceTraceProbabilityPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceTraceProbabilityPostParams contains all the parameters to send to the API endpoint -for the storage service trace probability post operation typically these are written to a http.Request -*/ -type StorageServiceTraceProbabilityPostParams struct { - - /*Probability - [0,1] will enable tracing on a partial number of requests with the provided probability. 0 will disable tracing and 1 will enable tracing for all requests (which mich severely cripple the system) - - */ - Probability string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service trace probability post params -func (o *StorageServiceTraceProbabilityPostParams) WithTimeout(timeout time.Duration) *StorageServiceTraceProbabilityPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service trace probability post params -func (o *StorageServiceTraceProbabilityPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service trace probability post params -func (o *StorageServiceTraceProbabilityPostParams) WithContext(ctx context.Context) *StorageServiceTraceProbabilityPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service trace probability post params -func (o *StorageServiceTraceProbabilityPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service trace probability post params -func (o *StorageServiceTraceProbabilityPostParams) WithHTTPClient(client *http.Client) *StorageServiceTraceProbabilityPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service trace probability post params -func (o *StorageServiceTraceProbabilityPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithProbability adds the probability to the storage service trace probability post params -func (o *StorageServiceTraceProbabilityPostParams) WithProbability(probability string) *StorageServiceTraceProbabilityPostParams { - o.SetProbability(probability) - return o -} - -// SetProbability adds the probability to the storage service trace probability post params -func (o *StorageServiceTraceProbabilityPostParams) SetProbability(probability string) { - o.Probability = probability -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceTraceProbabilityPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param probability - qrProbability := o.Probability - qProbability := qrProbability - if qProbability != "" { - if err := r.SetQueryParam("probability", qProbability); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_trace_probability_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_trace_probability_post_responses.go deleted file mode 100644 index ac922c2adc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_trace_probability_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceTraceProbabilityPostReader is a Reader for the StorageServiceTraceProbabilityPost structure. -type StorageServiceTraceProbabilityPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceTraceProbabilityPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceTraceProbabilityPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceTraceProbabilityPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceTraceProbabilityPostOK creates a StorageServiceTraceProbabilityPostOK with default headers values -func NewStorageServiceTraceProbabilityPostOK() *StorageServiceTraceProbabilityPostOK { - return &StorageServiceTraceProbabilityPostOK{} -} - -/* -StorageServiceTraceProbabilityPostOK handles this case with default header values. - -Success -*/ -type StorageServiceTraceProbabilityPostOK struct { -} - -func (o *StorageServiceTraceProbabilityPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceTraceProbabilityPostDefault creates a StorageServiceTraceProbabilityPostDefault with default headers values -func NewStorageServiceTraceProbabilityPostDefault(code int) *StorageServiceTraceProbabilityPostDefault { - return &StorageServiceTraceProbabilityPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceTraceProbabilityPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceTraceProbabilityPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service trace probability post default response -func (o *StorageServiceTraceProbabilityPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceTraceProbabilityPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceTraceProbabilityPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceTraceProbabilityPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_truncate_by_keyspace_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_truncate_by_keyspace_post_parameters.go deleted file mode 100644 index 3cdc0cb784..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_truncate_by_keyspace_post_parameters.go +++ /dev/null @@ -1,168 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceTruncateByKeyspacePostParams creates a new StorageServiceTruncateByKeyspacePostParams object -// with the default values initialized. -func NewStorageServiceTruncateByKeyspacePostParams() *StorageServiceTruncateByKeyspacePostParams { - var () - return &StorageServiceTruncateByKeyspacePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceTruncateByKeyspacePostParamsWithTimeout creates a new StorageServiceTruncateByKeyspacePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceTruncateByKeyspacePostParamsWithTimeout(timeout time.Duration) *StorageServiceTruncateByKeyspacePostParams { - var () - return &StorageServiceTruncateByKeyspacePostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceTruncateByKeyspacePostParamsWithContext creates a new StorageServiceTruncateByKeyspacePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceTruncateByKeyspacePostParamsWithContext(ctx context.Context) *StorageServiceTruncateByKeyspacePostParams { - var () - return &StorageServiceTruncateByKeyspacePostParams{ - - Context: ctx, - } -} - -// NewStorageServiceTruncateByKeyspacePostParamsWithHTTPClient creates a new StorageServiceTruncateByKeyspacePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceTruncateByKeyspacePostParamsWithHTTPClient(client *http.Client) *StorageServiceTruncateByKeyspacePostParams { - var () - return &StorageServiceTruncateByKeyspacePostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceTruncateByKeyspacePostParams contains all the parameters to send to the API endpoint -for the storage service truncate by keyspace post operation typically these are written to a http.Request -*/ -type StorageServiceTruncateByKeyspacePostParams struct { - - /*Cf - Column family name - - */ - Cf *string - /*Keyspace - The keyspace - - */ - Keyspace string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service truncate by keyspace post params -func (o *StorageServiceTruncateByKeyspacePostParams) WithTimeout(timeout time.Duration) *StorageServiceTruncateByKeyspacePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service truncate by keyspace post params -func (o *StorageServiceTruncateByKeyspacePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service truncate by keyspace post params -func (o *StorageServiceTruncateByKeyspacePostParams) WithContext(ctx context.Context) *StorageServiceTruncateByKeyspacePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service truncate by keyspace post params -func (o *StorageServiceTruncateByKeyspacePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service truncate by keyspace post params -func (o *StorageServiceTruncateByKeyspacePostParams) WithHTTPClient(client *http.Client) *StorageServiceTruncateByKeyspacePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service truncate by keyspace post params -func (o *StorageServiceTruncateByKeyspacePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithCf adds the cf to the storage service truncate by keyspace post params -func (o *StorageServiceTruncateByKeyspacePostParams) WithCf(cf *string) *StorageServiceTruncateByKeyspacePostParams { - o.SetCf(cf) - return o -} - -// SetCf adds the cf to the storage service truncate by keyspace post params -func (o *StorageServiceTruncateByKeyspacePostParams) SetCf(cf *string) { - o.Cf = cf -} - -// WithKeyspace adds the keyspace to the storage service truncate by keyspace post params -func (o *StorageServiceTruncateByKeyspacePostParams) WithKeyspace(keyspace string) *StorageServiceTruncateByKeyspacePostParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the storage service truncate by keyspace post params -func (o *StorageServiceTruncateByKeyspacePostParams) SetKeyspace(keyspace string) { - o.Keyspace = keyspace -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceTruncateByKeyspacePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Cf != nil { - - // query param cf - var qrCf string - if o.Cf != nil { - qrCf = *o.Cf - } - qCf := qrCf - if qCf != "" { - if err := r.SetQueryParam("cf", qCf); err != nil { - return err - } - } - - } - - // path param keyspace - if err := r.SetPathParam("keyspace", o.Keyspace); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_truncate_by_keyspace_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_truncate_by_keyspace_post_responses.go deleted file mode 100644 index a6def4a087..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_truncate_by_keyspace_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceTruncateByKeyspacePostReader is a Reader for the StorageServiceTruncateByKeyspacePost structure. -type StorageServiceTruncateByKeyspacePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceTruncateByKeyspacePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceTruncateByKeyspacePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceTruncateByKeyspacePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceTruncateByKeyspacePostOK creates a StorageServiceTruncateByKeyspacePostOK with default headers values -func NewStorageServiceTruncateByKeyspacePostOK() *StorageServiceTruncateByKeyspacePostOK { - return &StorageServiceTruncateByKeyspacePostOK{} -} - -/* -StorageServiceTruncateByKeyspacePostOK handles this case with default header values. - -Success -*/ -type StorageServiceTruncateByKeyspacePostOK struct { -} - -func (o *StorageServiceTruncateByKeyspacePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceTruncateByKeyspacePostDefault creates a StorageServiceTruncateByKeyspacePostDefault with default headers values -func NewStorageServiceTruncateByKeyspacePostDefault(code int) *StorageServiceTruncateByKeyspacePostDefault { - return &StorageServiceTruncateByKeyspacePostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceTruncateByKeyspacePostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceTruncateByKeyspacePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service truncate by keyspace post default response -func (o *StorageServiceTruncateByKeyspacePostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceTruncateByKeyspacePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceTruncateByKeyspacePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceTruncateByKeyspacePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_update_snitch_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_update_snitch_post_parameters.go deleted file mode 100644 index 2a3f2a59da..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_update_snitch_post_parameters.go +++ /dev/null @@ -1,262 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewStorageServiceUpdateSnitchPostParams creates a new StorageServiceUpdateSnitchPostParams object -// with the default values initialized. -func NewStorageServiceUpdateSnitchPostParams() *StorageServiceUpdateSnitchPostParams { - var () - return &StorageServiceUpdateSnitchPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceUpdateSnitchPostParamsWithTimeout creates a new StorageServiceUpdateSnitchPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceUpdateSnitchPostParamsWithTimeout(timeout time.Duration) *StorageServiceUpdateSnitchPostParams { - var () - return &StorageServiceUpdateSnitchPostParams{ - - timeout: timeout, - } -} - -// NewStorageServiceUpdateSnitchPostParamsWithContext creates a new StorageServiceUpdateSnitchPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceUpdateSnitchPostParamsWithContext(ctx context.Context) *StorageServiceUpdateSnitchPostParams { - var () - return &StorageServiceUpdateSnitchPostParams{ - - Context: ctx, - } -} - -// NewStorageServiceUpdateSnitchPostParamsWithHTTPClient creates a new StorageServiceUpdateSnitchPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceUpdateSnitchPostParamsWithHTTPClient(client *http.Client) *StorageServiceUpdateSnitchPostParams { - var () - return &StorageServiceUpdateSnitchPostParams{ - HTTPClient: client, - } -} - -/* -StorageServiceUpdateSnitchPostParams contains all the parameters to send to the API endpoint -for the storage service update snitch post operation typically these are written to a http.Request -*/ -type StorageServiceUpdateSnitchPostParams struct { - - /*Dynamic - When true dynamicsnitch is used - - */ - Dynamic bool - /*DynamicBadnessThreshold - Dynamic badness threshold, (default 0.0) - - */ - DynamicBadnessThreshold *string - /*DynamicResetInterval - integer, in ms (default 600,000) - - */ - DynamicResetInterval *int32 - /*DynamicUpdateInterval - integer, in ms (default 100) - - */ - DynamicUpdateInterval *int32 - /*EpSnitchClassName - The canonical path name for a class implementing IEndpointSnitch - - */ - EpSnitchClassName string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service update snitch post params -func (o *StorageServiceUpdateSnitchPostParams) WithTimeout(timeout time.Duration) *StorageServiceUpdateSnitchPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service update snitch post params -func (o *StorageServiceUpdateSnitchPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service update snitch post params -func (o *StorageServiceUpdateSnitchPostParams) WithContext(ctx context.Context) *StorageServiceUpdateSnitchPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service update snitch post params -func (o *StorageServiceUpdateSnitchPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service update snitch post params -func (o *StorageServiceUpdateSnitchPostParams) WithHTTPClient(client *http.Client) *StorageServiceUpdateSnitchPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service update snitch post params -func (o *StorageServiceUpdateSnitchPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithDynamic adds the dynamic to the storage service update snitch post params -func (o *StorageServiceUpdateSnitchPostParams) WithDynamic(dynamic bool) *StorageServiceUpdateSnitchPostParams { - o.SetDynamic(dynamic) - return o -} - -// SetDynamic adds the dynamic to the storage service update snitch post params -func (o *StorageServiceUpdateSnitchPostParams) SetDynamic(dynamic bool) { - o.Dynamic = dynamic -} - -// WithDynamicBadnessThreshold adds the dynamicBadnessThreshold to the storage service update snitch post params -func (o *StorageServiceUpdateSnitchPostParams) WithDynamicBadnessThreshold(dynamicBadnessThreshold *string) *StorageServiceUpdateSnitchPostParams { - o.SetDynamicBadnessThreshold(dynamicBadnessThreshold) - return o -} - -// SetDynamicBadnessThreshold adds the dynamicBadnessThreshold to the storage service update snitch post params -func (o *StorageServiceUpdateSnitchPostParams) SetDynamicBadnessThreshold(dynamicBadnessThreshold *string) { - o.DynamicBadnessThreshold = dynamicBadnessThreshold -} - -// WithDynamicResetInterval adds the dynamicResetInterval to the storage service update snitch post params -func (o *StorageServiceUpdateSnitchPostParams) WithDynamicResetInterval(dynamicResetInterval *int32) *StorageServiceUpdateSnitchPostParams { - o.SetDynamicResetInterval(dynamicResetInterval) - return o -} - -// SetDynamicResetInterval adds the dynamicResetInterval to the storage service update snitch post params -func (o *StorageServiceUpdateSnitchPostParams) SetDynamicResetInterval(dynamicResetInterval *int32) { - o.DynamicResetInterval = dynamicResetInterval -} - -// WithDynamicUpdateInterval adds the dynamicUpdateInterval to the storage service update snitch post params -func (o *StorageServiceUpdateSnitchPostParams) WithDynamicUpdateInterval(dynamicUpdateInterval *int32) *StorageServiceUpdateSnitchPostParams { - o.SetDynamicUpdateInterval(dynamicUpdateInterval) - return o -} - -// SetDynamicUpdateInterval adds the dynamicUpdateInterval to the storage service update snitch post params -func (o *StorageServiceUpdateSnitchPostParams) SetDynamicUpdateInterval(dynamicUpdateInterval *int32) { - o.DynamicUpdateInterval = dynamicUpdateInterval -} - -// WithEpSnitchClassName adds the epSnitchClassName to the storage service update snitch post params -func (o *StorageServiceUpdateSnitchPostParams) WithEpSnitchClassName(epSnitchClassName string) *StorageServiceUpdateSnitchPostParams { - o.SetEpSnitchClassName(epSnitchClassName) - return o -} - -// SetEpSnitchClassName adds the epSnitchClassName to the storage service update snitch post params -func (o *StorageServiceUpdateSnitchPostParams) SetEpSnitchClassName(epSnitchClassName string) { - o.EpSnitchClassName = epSnitchClassName -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceUpdateSnitchPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param dynamic - qrDynamic := o.Dynamic - qDynamic := swag.FormatBool(qrDynamic) - if qDynamic != "" { - if err := r.SetQueryParam("dynamic", qDynamic); err != nil { - return err - } - } - - if o.DynamicBadnessThreshold != nil { - - // query param dynamic_badness_threshold - var qrDynamicBadnessThreshold string - if o.DynamicBadnessThreshold != nil { - qrDynamicBadnessThreshold = *o.DynamicBadnessThreshold - } - qDynamicBadnessThreshold := qrDynamicBadnessThreshold - if qDynamicBadnessThreshold != "" { - if err := r.SetQueryParam("dynamic_badness_threshold", qDynamicBadnessThreshold); err != nil { - return err - } - } - - } - - if o.DynamicResetInterval != nil { - - // query param dynamic_reset_interval - var qrDynamicResetInterval int32 - if o.DynamicResetInterval != nil { - qrDynamicResetInterval = *o.DynamicResetInterval - } - qDynamicResetInterval := swag.FormatInt32(qrDynamicResetInterval) - if qDynamicResetInterval != "" { - if err := r.SetQueryParam("dynamic_reset_interval", qDynamicResetInterval); err != nil { - return err - } - } - - } - - if o.DynamicUpdateInterval != nil { - - // query param dynamic_update_interval - var qrDynamicUpdateInterval int32 - if o.DynamicUpdateInterval != nil { - qrDynamicUpdateInterval = *o.DynamicUpdateInterval - } - qDynamicUpdateInterval := swag.FormatInt32(qrDynamicUpdateInterval) - if qDynamicUpdateInterval != "" { - if err := r.SetQueryParam("dynamic_update_interval", qDynamicUpdateInterval); err != nil { - return err - } - } - - } - - // query param ep_snitch_class_name - qrEpSnitchClassName := o.EpSnitchClassName - qEpSnitchClassName := qrEpSnitchClassName - if qEpSnitchClassName != "" { - if err := r.SetQueryParam("ep_snitch_class_name", qEpSnitchClassName); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_update_snitch_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_update_snitch_post_responses.go deleted file mode 100644 index d9da748800..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_update_snitch_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceUpdateSnitchPostReader is a Reader for the StorageServiceUpdateSnitchPost structure. -type StorageServiceUpdateSnitchPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceUpdateSnitchPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceUpdateSnitchPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceUpdateSnitchPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceUpdateSnitchPostOK creates a StorageServiceUpdateSnitchPostOK with default headers values -func NewStorageServiceUpdateSnitchPostOK() *StorageServiceUpdateSnitchPostOK { - return &StorageServiceUpdateSnitchPostOK{} -} - -/* -StorageServiceUpdateSnitchPostOK handles this case with default header values. - -Success -*/ -type StorageServiceUpdateSnitchPostOK struct { -} - -func (o *StorageServiceUpdateSnitchPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewStorageServiceUpdateSnitchPostDefault creates a StorageServiceUpdateSnitchPostDefault with default headers values -func NewStorageServiceUpdateSnitchPostDefault(code int) *StorageServiceUpdateSnitchPostDefault { - return &StorageServiceUpdateSnitchPostDefault{ - _statusCode: code, - } -} - -/* -StorageServiceUpdateSnitchPostDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceUpdateSnitchPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service update snitch post default response -func (o *StorageServiceUpdateSnitchPostDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceUpdateSnitchPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceUpdateSnitchPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceUpdateSnitchPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_view_build_statuses_by_keyspace_and_view_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_view_build_statuses_by_keyspace_and_view_get_parameters.go deleted file mode 100644 index 01bd82b472..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_view_build_statuses_by_keyspace_and_view_get_parameters.go +++ /dev/null @@ -1,157 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStorageServiceViewBuildStatusesByKeyspaceAndViewGetParams creates a new StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams object -// with the default values initialized. -func NewStorageServiceViewBuildStatusesByKeyspaceAndViewGetParams() *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams { - var () - return &StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStorageServiceViewBuildStatusesByKeyspaceAndViewGetParamsWithTimeout creates a new StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStorageServiceViewBuildStatusesByKeyspaceAndViewGetParamsWithTimeout(timeout time.Duration) *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams { - var () - return &StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams{ - - timeout: timeout, - } -} - -// NewStorageServiceViewBuildStatusesByKeyspaceAndViewGetParamsWithContext creates a new StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStorageServiceViewBuildStatusesByKeyspaceAndViewGetParamsWithContext(ctx context.Context) *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams { - var () - return &StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams{ - - Context: ctx, - } -} - -// NewStorageServiceViewBuildStatusesByKeyspaceAndViewGetParamsWithHTTPClient creates a new StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStorageServiceViewBuildStatusesByKeyspaceAndViewGetParamsWithHTTPClient(client *http.Client) *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams { - var () - return &StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams{ - HTTPClient: client, - } -} - -/* -StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams contains all the parameters to send to the API endpoint -for the storage service view build statuses by keyspace and view get operation typically these are written to a http.Request -*/ -type StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams struct { - - /*Keyspace - The keyspace - - */ - Keyspace string - /*View - View name - - */ - View string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the storage service view build statuses by keyspace and view get params -func (o *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams) WithTimeout(timeout time.Duration) *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the storage service view build statuses by keyspace and view get params -func (o *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the storage service view build statuses by keyspace and view get params -func (o *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams) WithContext(ctx context.Context) *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the storage service view build statuses by keyspace and view get params -func (o *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the storage service view build statuses by keyspace and view get params -func (o *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams) WithHTTPClient(client *http.Client) *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the storage service view build statuses by keyspace and view get params -func (o *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithKeyspace adds the keyspace to the storage service view build statuses by keyspace and view get params -func (o *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams) WithKeyspace(keyspace string) *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the storage service view build statuses by keyspace and view get params -func (o *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams) SetKeyspace(keyspace string) { - o.Keyspace = keyspace -} - -// WithView adds the view to the storage service view build statuses by keyspace and view get params -func (o *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams) WithView(view string) *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams { - o.SetView(view) - return o -} - -// SetView adds the view to the storage service view build statuses by keyspace and view get params -func (o *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams) SetView(view string) { - o.View = view -} - -// WriteToRequest writes these params to a swagger request -func (o *StorageServiceViewBuildStatusesByKeyspaceAndViewGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param keyspace - if err := r.SetPathParam("keyspace", o.Keyspace); err != nil { - return err - } - - // path param view - if err := r.SetPathParam("view", o.View); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_view_build_statuses_by_keyspace_and_view_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_view_build_statuses_by_keyspace_and_view_get_responses.go deleted file mode 100644 index 6a9f27ec52..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/storage_service_view_build_statuses_by_keyspace_and_view_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StorageServiceViewBuildStatusesByKeyspaceAndViewGetReader is a Reader for the StorageServiceViewBuildStatusesByKeyspaceAndViewGet structure. -type StorageServiceViewBuildStatusesByKeyspaceAndViewGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StorageServiceViewBuildStatusesByKeyspaceAndViewGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStorageServiceViewBuildStatusesByKeyspaceAndViewGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStorageServiceViewBuildStatusesByKeyspaceAndViewGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStorageServiceViewBuildStatusesByKeyspaceAndViewGetOK creates a StorageServiceViewBuildStatusesByKeyspaceAndViewGetOK with default headers values -func NewStorageServiceViewBuildStatusesByKeyspaceAndViewGetOK() *StorageServiceViewBuildStatusesByKeyspaceAndViewGetOK { - return &StorageServiceViewBuildStatusesByKeyspaceAndViewGetOK{} -} - -/* -StorageServiceViewBuildStatusesByKeyspaceAndViewGetOK handles this case with default header values. - -Success -*/ -type StorageServiceViewBuildStatusesByKeyspaceAndViewGetOK struct { - Payload []*models.Mapper -} - -func (o *StorageServiceViewBuildStatusesByKeyspaceAndViewGetOK) GetPayload() []*models.Mapper { - return o.Payload -} - -func (o *StorageServiceViewBuildStatusesByKeyspaceAndViewGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStorageServiceViewBuildStatusesByKeyspaceAndViewGetDefault creates a StorageServiceViewBuildStatusesByKeyspaceAndViewGetDefault with default headers values -func NewStorageServiceViewBuildStatusesByKeyspaceAndViewGetDefault(code int) *StorageServiceViewBuildStatusesByKeyspaceAndViewGetDefault { - return &StorageServiceViewBuildStatusesByKeyspaceAndViewGetDefault{ - _statusCode: code, - } -} - -/* -StorageServiceViewBuildStatusesByKeyspaceAndViewGetDefault handles this case with default header values. - -internal server error -*/ -type StorageServiceViewBuildStatusesByKeyspaceAndViewGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the storage service view build statuses by keyspace and view get default response -func (o *StorageServiceViewBuildStatusesByKeyspaceAndViewGetDefault) Code() int { - return o._statusCode -} - -func (o *StorageServiceViewBuildStatusesByKeyspaceAndViewGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StorageServiceViewBuildStatusesByKeyspaceAndViewGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StorageServiceViewBuildStatusesByKeyspaceAndViewGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_get_parameters.go deleted file mode 100644 index 57bf515d03..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStreamManagerGetParams creates a new StreamManagerGetParams object -// with the default values initialized. -func NewStreamManagerGetParams() *StreamManagerGetParams { - - return &StreamManagerGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStreamManagerGetParamsWithTimeout creates a new StreamManagerGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStreamManagerGetParamsWithTimeout(timeout time.Duration) *StreamManagerGetParams { - - return &StreamManagerGetParams{ - - timeout: timeout, - } -} - -// NewStreamManagerGetParamsWithContext creates a new StreamManagerGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStreamManagerGetParamsWithContext(ctx context.Context) *StreamManagerGetParams { - - return &StreamManagerGetParams{ - - Context: ctx, - } -} - -// NewStreamManagerGetParamsWithHTTPClient creates a new StreamManagerGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStreamManagerGetParamsWithHTTPClient(client *http.Client) *StreamManagerGetParams { - - return &StreamManagerGetParams{ - HTTPClient: client, - } -} - -/* -StreamManagerGetParams contains all the parameters to send to the API endpoint -for the stream manager get operation typically these are written to a http.Request -*/ -type StreamManagerGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the stream manager get params -func (o *StreamManagerGetParams) WithTimeout(timeout time.Duration) *StreamManagerGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the stream manager get params -func (o *StreamManagerGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the stream manager get params -func (o *StreamManagerGetParams) WithContext(ctx context.Context) *StreamManagerGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the stream manager get params -func (o *StreamManagerGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the stream manager get params -func (o *StreamManagerGetParams) WithHTTPClient(client *http.Client) *StreamManagerGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the stream manager get params -func (o *StreamManagerGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StreamManagerGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_get_responses.go deleted file mode 100644 index 3ac7909dbd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StreamManagerGetReader is a Reader for the StreamManagerGet structure. -type StreamManagerGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StreamManagerGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStreamManagerGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStreamManagerGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStreamManagerGetOK creates a StreamManagerGetOK with default headers values -func NewStreamManagerGetOK() *StreamManagerGetOK { - return &StreamManagerGetOK{} -} - -/* -StreamManagerGetOK handles this case with default header values. - -Success -*/ -type StreamManagerGetOK struct { - Payload []*models.StreamState -} - -func (o *StreamManagerGetOK) GetPayload() []*models.StreamState { - return o.Payload -} - -func (o *StreamManagerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStreamManagerGetDefault creates a StreamManagerGetDefault with default headers values -func NewStreamManagerGetDefault(code int) *StreamManagerGetDefault { - return &StreamManagerGetDefault{ - _statusCode: code, - } -} - -/* -StreamManagerGetDefault handles this case with default header values. - -internal server error -*/ -type StreamManagerGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the stream manager get default response -func (o *StreamManagerGetDefault) Code() int { - return o._statusCode -} - -func (o *StreamManagerGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StreamManagerGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StreamManagerGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_incoming_by_peer_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_incoming_by_peer_get_parameters.go deleted file mode 100644 index 8800970c18..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_incoming_by_peer_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStreamManagerMetricsIncomingByPeerGetParams creates a new StreamManagerMetricsIncomingByPeerGetParams object -// with the default values initialized. -func NewStreamManagerMetricsIncomingByPeerGetParams() *StreamManagerMetricsIncomingByPeerGetParams { - var () - return &StreamManagerMetricsIncomingByPeerGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStreamManagerMetricsIncomingByPeerGetParamsWithTimeout creates a new StreamManagerMetricsIncomingByPeerGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStreamManagerMetricsIncomingByPeerGetParamsWithTimeout(timeout time.Duration) *StreamManagerMetricsIncomingByPeerGetParams { - var () - return &StreamManagerMetricsIncomingByPeerGetParams{ - - timeout: timeout, - } -} - -// NewStreamManagerMetricsIncomingByPeerGetParamsWithContext creates a new StreamManagerMetricsIncomingByPeerGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStreamManagerMetricsIncomingByPeerGetParamsWithContext(ctx context.Context) *StreamManagerMetricsIncomingByPeerGetParams { - var () - return &StreamManagerMetricsIncomingByPeerGetParams{ - - Context: ctx, - } -} - -// NewStreamManagerMetricsIncomingByPeerGetParamsWithHTTPClient creates a new StreamManagerMetricsIncomingByPeerGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStreamManagerMetricsIncomingByPeerGetParamsWithHTTPClient(client *http.Client) *StreamManagerMetricsIncomingByPeerGetParams { - var () - return &StreamManagerMetricsIncomingByPeerGetParams{ - HTTPClient: client, - } -} - -/* -StreamManagerMetricsIncomingByPeerGetParams contains all the parameters to send to the API endpoint -for the stream manager metrics incoming by peer get operation typically these are written to a http.Request -*/ -type StreamManagerMetricsIncomingByPeerGetParams struct { - - /*Peer - The stream peer - - */ - Peer string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the stream manager metrics incoming by peer get params -func (o *StreamManagerMetricsIncomingByPeerGetParams) WithTimeout(timeout time.Duration) *StreamManagerMetricsIncomingByPeerGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the stream manager metrics incoming by peer get params -func (o *StreamManagerMetricsIncomingByPeerGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the stream manager metrics incoming by peer get params -func (o *StreamManagerMetricsIncomingByPeerGetParams) WithContext(ctx context.Context) *StreamManagerMetricsIncomingByPeerGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the stream manager metrics incoming by peer get params -func (o *StreamManagerMetricsIncomingByPeerGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the stream manager metrics incoming by peer get params -func (o *StreamManagerMetricsIncomingByPeerGetParams) WithHTTPClient(client *http.Client) *StreamManagerMetricsIncomingByPeerGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the stream manager metrics incoming by peer get params -func (o *StreamManagerMetricsIncomingByPeerGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithPeer adds the peer to the stream manager metrics incoming by peer get params -func (o *StreamManagerMetricsIncomingByPeerGetParams) WithPeer(peer string) *StreamManagerMetricsIncomingByPeerGetParams { - o.SetPeer(peer) - return o -} - -// SetPeer adds the peer to the stream manager metrics incoming by peer get params -func (o *StreamManagerMetricsIncomingByPeerGetParams) SetPeer(peer string) { - o.Peer = peer -} - -// WriteToRequest writes these params to a swagger request -func (o *StreamManagerMetricsIncomingByPeerGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param peer - if err := r.SetPathParam("peer", o.Peer); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_incoming_by_peer_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_incoming_by_peer_get_responses.go deleted file mode 100644 index de5e5679e7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_incoming_by_peer_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StreamManagerMetricsIncomingByPeerGetReader is a Reader for the StreamManagerMetricsIncomingByPeerGet structure. -type StreamManagerMetricsIncomingByPeerGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StreamManagerMetricsIncomingByPeerGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStreamManagerMetricsIncomingByPeerGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStreamManagerMetricsIncomingByPeerGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStreamManagerMetricsIncomingByPeerGetOK creates a StreamManagerMetricsIncomingByPeerGetOK with default headers values -func NewStreamManagerMetricsIncomingByPeerGetOK() *StreamManagerMetricsIncomingByPeerGetOK { - return &StreamManagerMetricsIncomingByPeerGetOK{} -} - -/* -StreamManagerMetricsIncomingByPeerGetOK handles this case with default header values. - -Success -*/ -type StreamManagerMetricsIncomingByPeerGetOK struct { - Payload int32 -} - -func (o *StreamManagerMetricsIncomingByPeerGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StreamManagerMetricsIncomingByPeerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStreamManagerMetricsIncomingByPeerGetDefault creates a StreamManagerMetricsIncomingByPeerGetDefault with default headers values -func NewStreamManagerMetricsIncomingByPeerGetDefault(code int) *StreamManagerMetricsIncomingByPeerGetDefault { - return &StreamManagerMetricsIncomingByPeerGetDefault{ - _statusCode: code, - } -} - -/* -StreamManagerMetricsIncomingByPeerGetDefault handles this case with default header values. - -internal server error -*/ -type StreamManagerMetricsIncomingByPeerGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the stream manager metrics incoming by peer get default response -func (o *StreamManagerMetricsIncomingByPeerGetDefault) Code() int { - return o._statusCode -} - -func (o *StreamManagerMetricsIncomingByPeerGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StreamManagerMetricsIncomingByPeerGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StreamManagerMetricsIncomingByPeerGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_incoming_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_incoming_get_parameters.go deleted file mode 100644 index 8bafb284fd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_incoming_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStreamManagerMetricsIncomingGetParams creates a new StreamManagerMetricsIncomingGetParams object -// with the default values initialized. -func NewStreamManagerMetricsIncomingGetParams() *StreamManagerMetricsIncomingGetParams { - - return &StreamManagerMetricsIncomingGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStreamManagerMetricsIncomingGetParamsWithTimeout creates a new StreamManagerMetricsIncomingGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStreamManagerMetricsIncomingGetParamsWithTimeout(timeout time.Duration) *StreamManagerMetricsIncomingGetParams { - - return &StreamManagerMetricsIncomingGetParams{ - - timeout: timeout, - } -} - -// NewStreamManagerMetricsIncomingGetParamsWithContext creates a new StreamManagerMetricsIncomingGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStreamManagerMetricsIncomingGetParamsWithContext(ctx context.Context) *StreamManagerMetricsIncomingGetParams { - - return &StreamManagerMetricsIncomingGetParams{ - - Context: ctx, - } -} - -// NewStreamManagerMetricsIncomingGetParamsWithHTTPClient creates a new StreamManagerMetricsIncomingGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStreamManagerMetricsIncomingGetParamsWithHTTPClient(client *http.Client) *StreamManagerMetricsIncomingGetParams { - - return &StreamManagerMetricsIncomingGetParams{ - HTTPClient: client, - } -} - -/* -StreamManagerMetricsIncomingGetParams contains all the parameters to send to the API endpoint -for the stream manager metrics incoming get operation typically these are written to a http.Request -*/ -type StreamManagerMetricsIncomingGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the stream manager metrics incoming get params -func (o *StreamManagerMetricsIncomingGetParams) WithTimeout(timeout time.Duration) *StreamManagerMetricsIncomingGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the stream manager metrics incoming get params -func (o *StreamManagerMetricsIncomingGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the stream manager metrics incoming get params -func (o *StreamManagerMetricsIncomingGetParams) WithContext(ctx context.Context) *StreamManagerMetricsIncomingGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the stream manager metrics incoming get params -func (o *StreamManagerMetricsIncomingGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the stream manager metrics incoming get params -func (o *StreamManagerMetricsIncomingGetParams) WithHTTPClient(client *http.Client) *StreamManagerMetricsIncomingGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the stream manager metrics incoming get params -func (o *StreamManagerMetricsIncomingGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StreamManagerMetricsIncomingGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_incoming_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_incoming_get_responses.go deleted file mode 100644 index 9469907ee7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_incoming_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StreamManagerMetricsIncomingGetReader is a Reader for the StreamManagerMetricsIncomingGet structure. -type StreamManagerMetricsIncomingGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StreamManagerMetricsIncomingGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStreamManagerMetricsIncomingGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStreamManagerMetricsIncomingGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStreamManagerMetricsIncomingGetOK creates a StreamManagerMetricsIncomingGetOK with default headers values -func NewStreamManagerMetricsIncomingGetOK() *StreamManagerMetricsIncomingGetOK { - return &StreamManagerMetricsIncomingGetOK{} -} - -/* -StreamManagerMetricsIncomingGetOK handles this case with default header values. - -Success -*/ -type StreamManagerMetricsIncomingGetOK struct { - Payload int32 -} - -func (o *StreamManagerMetricsIncomingGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StreamManagerMetricsIncomingGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStreamManagerMetricsIncomingGetDefault creates a StreamManagerMetricsIncomingGetDefault with default headers values -func NewStreamManagerMetricsIncomingGetDefault(code int) *StreamManagerMetricsIncomingGetDefault { - return &StreamManagerMetricsIncomingGetDefault{ - _statusCode: code, - } -} - -/* -StreamManagerMetricsIncomingGetDefault handles this case with default header values. - -internal server error -*/ -type StreamManagerMetricsIncomingGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the stream manager metrics incoming get default response -func (o *StreamManagerMetricsIncomingGetDefault) Code() int { - return o._statusCode -} - -func (o *StreamManagerMetricsIncomingGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StreamManagerMetricsIncomingGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StreamManagerMetricsIncomingGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_outbound_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_outbound_get_parameters.go deleted file mode 100644 index fef090ab38..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_outbound_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStreamManagerMetricsOutboundGetParams creates a new StreamManagerMetricsOutboundGetParams object -// with the default values initialized. -func NewStreamManagerMetricsOutboundGetParams() *StreamManagerMetricsOutboundGetParams { - - return &StreamManagerMetricsOutboundGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStreamManagerMetricsOutboundGetParamsWithTimeout creates a new StreamManagerMetricsOutboundGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStreamManagerMetricsOutboundGetParamsWithTimeout(timeout time.Duration) *StreamManagerMetricsOutboundGetParams { - - return &StreamManagerMetricsOutboundGetParams{ - - timeout: timeout, - } -} - -// NewStreamManagerMetricsOutboundGetParamsWithContext creates a new StreamManagerMetricsOutboundGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStreamManagerMetricsOutboundGetParamsWithContext(ctx context.Context) *StreamManagerMetricsOutboundGetParams { - - return &StreamManagerMetricsOutboundGetParams{ - - Context: ctx, - } -} - -// NewStreamManagerMetricsOutboundGetParamsWithHTTPClient creates a new StreamManagerMetricsOutboundGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStreamManagerMetricsOutboundGetParamsWithHTTPClient(client *http.Client) *StreamManagerMetricsOutboundGetParams { - - return &StreamManagerMetricsOutboundGetParams{ - HTTPClient: client, - } -} - -/* -StreamManagerMetricsOutboundGetParams contains all the parameters to send to the API endpoint -for the stream manager metrics outbound get operation typically these are written to a http.Request -*/ -type StreamManagerMetricsOutboundGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the stream manager metrics outbound get params -func (o *StreamManagerMetricsOutboundGetParams) WithTimeout(timeout time.Duration) *StreamManagerMetricsOutboundGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the stream manager metrics outbound get params -func (o *StreamManagerMetricsOutboundGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the stream manager metrics outbound get params -func (o *StreamManagerMetricsOutboundGetParams) WithContext(ctx context.Context) *StreamManagerMetricsOutboundGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the stream manager metrics outbound get params -func (o *StreamManagerMetricsOutboundGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the stream manager metrics outbound get params -func (o *StreamManagerMetricsOutboundGetParams) WithHTTPClient(client *http.Client) *StreamManagerMetricsOutboundGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the stream manager metrics outbound get params -func (o *StreamManagerMetricsOutboundGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StreamManagerMetricsOutboundGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_outbound_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_outbound_get_responses.go deleted file mode 100644 index ec2cb11906..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_outbound_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StreamManagerMetricsOutboundGetReader is a Reader for the StreamManagerMetricsOutboundGet structure. -type StreamManagerMetricsOutboundGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StreamManagerMetricsOutboundGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStreamManagerMetricsOutboundGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStreamManagerMetricsOutboundGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStreamManagerMetricsOutboundGetOK creates a StreamManagerMetricsOutboundGetOK with default headers values -func NewStreamManagerMetricsOutboundGetOK() *StreamManagerMetricsOutboundGetOK { - return &StreamManagerMetricsOutboundGetOK{} -} - -/* -StreamManagerMetricsOutboundGetOK handles this case with default header values. - -Success -*/ -type StreamManagerMetricsOutboundGetOK struct { - Payload int32 -} - -func (o *StreamManagerMetricsOutboundGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StreamManagerMetricsOutboundGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStreamManagerMetricsOutboundGetDefault creates a StreamManagerMetricsOutboundGetDefault with default headers values -func NewStreamManagerMetricsOutboundGetDefault(code int) *StreamManagerMetricsOutboundGetDefault { - return &StreamManagerMetricsOutboundGetDefault{ - _statusCode: code, - } -} - -/* -StreamManagerMetricsOutboundGetDefault handles this case with default header values. - -internal server error -*/ -type StreamManagerMetricsOutboundGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the stream manager metrics outbound get default response -func (o *StreamManagerMetricsOutboundGetDefault) Code() int { - return o._statusCode -} - -func (o *StreamManagerMetricsOutboundGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StreamManagerMetricsOutboundGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StreamManagerMetricsOutboundGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_outgoing_by_peer_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_outgoing_by_peer_get_parameters.go deleted file mode 100644 index 0b2c4fddd4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_outgoing_by_peer_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStreamManagerMetricsOutgoingByPeerGetParams creates a new StreamManagerMetricsOutgoingByPeerGetParams object -// with the default values initialized. -func NewStreamManagerMetricsOutgoingByPeerGetParams() *StreamManagerMetricsOutgoingByPeerGetParams { - var () - return &StreamManagerMetricsOutgoingByPeerGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStreamManagerMetricsOutgoingByPeerGetParamsWithTimeout creates a new StreamManagerMetricsOutgoingByPeerGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStreamManagerMetricsOutgoingByPeerGetParamsWithTimeout(timeout time.Duration) *StreamManagerMetricsOutgoingByPeerGetParams { - var () - return &StreamManagerMetricsOutgoingByPeerGetParams{ - - timeout: timeout, - } -} - -// NewStreamManagerMetricsOutgoingByPeerGetParamsWithContext creates a new StreamManagerMetricsOutgoingByPeerGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStreamManagerMetricsOutgoingByPeerGetParamsWithContext(ctx context.Context) *StreamManagerMetricsOutgoingByPeerGetParams { - var () - return &StreamManagerMetricsOutgoingByPeerGetParams{ - - Context: ctx, - } -} - -// NewStreamManagerMetricsOutgoingByPeerGetParamsWithHTTPClient creates a new StreamManagerMetricsOutgoingByPeerGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStreamManagerMetricsOutgoingByPeerGetParamsWithHTTPClient(client *http.Client) *StreamManagerMetricsOutgoingByPeerGetParams { - var () - return &StreamManagerMetricsOutgoingByPeerGetParams{ - HTTPClient: client, - } -} - -/* -StreamManagerMetricsOutgoingByPeerGetParams contains all the parameters to send to the API endpoint -for the stream manager metrics outgoing by peer get operation typically these are written to a http.Request -*/ -type StreamManagerMetricsOutgoingByPeerGetParams struct { - - /*Peer - The stream peer - - */ - Peer string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the stream manager metrics outgoing by peer get params -func (o *StreamManagerMetricsOutgoingByPeerGetParams) WithTimeout(timeout time.Duration) *StreamManagerMetricsOutgoingByPeerGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the stream manager metrics outgoing by peer get params -func (o *StreamManagerMetricsOutgoingByPeerGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the stream manager metrics outgoing by peer get params -func (o *StreamManagerMetricsOutgoingByPeerGetParams) WithContext(ctx context.Context) *StreamManagerMetricsOutgoingByPeerGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the stream manager metrics outgoing by peer get params -func (o *StreamManagerMetricsOutgoingByPeerGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the stream manager metrics outgoing by peer get params -func (o *StreamManagerMetricsOutgoingByPeerGetParams) WithHTTPClient(client *http.Client) *StreamManagerMetricsOutgoingByPeerGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the stream manager metrics outgoing by peer get params -func (o *StreamManagerMetricsOutgoingByPeerGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithPeer adds the peer to the stream manager metrics outgoing by peer get params -func (o *StreamManagerMetricsOutgoingByPeerGetParams) WithPeer(peer string) *StreamManagerMetricsOutgoingByPeerGetParams { - o.SetPeer(peer) - return o -} - -// SetPeer adds the peer to the stream manager metrics outgoing by peer get params -func (o *StreamManagerMetricsOutgoingByPeerGetParams) SetPeer(peer string) { - o.Peer = peer -} - -// WriteToRequest writes these params to a swagger request -func (o *StreamManagerMetricsOutgoingByPeerGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param peer - if err := r.SetPathParam("peer", o.Peer); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_outgoing_by_peer_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_outgoing_by_peer_get_responses.go deleted file mode 100644 index c9a23f42dd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_outgoing_by_peer_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StreamManagerMetricsOutgoingByPeerGetReader is a Reader for the StreamManagerMetricsOutgoingByPeerGet structure. -type StreamManagerMetricsOutgoingByPeerGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StreamManagerMetricsOutgoingByPeerGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStreamManagerMetricsOutgoingByPeerGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStreamManagerMetricsOutgoingByPeerGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStreamManagerMetricsOutgoingByPeerGetOK creates a StreamManagerMetricsOutgoingByPeerGetOK with default headers values -func NewStreamManagerMetricsOutgoingByPeerGetOK() *StreamManagerMetricsOutgoingByPeerGetOK { - return &StreamManagerMetricsOutgoingByPeerGetOK{} -} - -/* -StreamManagerMetricsOutgoingByPeerGetOK handles this case with default header values. - -Success -*/ -type StreamManagerMetricsOutgoingByPeerGetOK struct { - Payload int32 -} - -func (o *StreamManagerMetricsOutgoingByPeerGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StreamManagerMetricsOutgoingByPeerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStreamManagerMetricsOutgoingByPeerGetDefault creates a StreamManagerMetricsOutgoingByPeerGetDefault with default headers values -func NewStreamManagerMetricsOutgoingByPeerGetDefault(code int) *StreamManagerMetricsOutgoingByPeerGetDefault { - return &StreamManagerMetricsOutgoingByPeerGetDefault{ - _statusCode: code, - } -} - -/* -StreamManagerMetricsOutgoingByPeerGetDefault handles this case with default header values. - -internal server error -*/ -type StreamManagerMetricsOutgoingByPeerGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the stream manager metrics outgoing by peer get default response -func (o *StreamManagerMetricsOutgoingByPeerGetDefault) Code() int { - return o._statusCode -} - -func (o *StreamManagerMetricsOutgoingByPeerGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StreamManagerMetricsOutgoingByPeerGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StreamManagerMetricsOutgoingByPeerGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_outgoing_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_outgoing_get_parameters.go deleted file mode 100644 index b7f963d4c5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_outgoing_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewStreamManagerMetricsOutgoingGetParams creates a new StreamManagerMetricsOutgoingGetParams object -// with the default values initialized. -func NewStreamManagerMetricsOutgoingGetParams() *StreamManagerMetricsOutgoingGetParams { - - return &StreamManagerMetricsOutgoingGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewStreamManagerMetricsOutgoingGetParamsWithTimeout creates a new StreamManagerMetricsOutgoingGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewStreamManagerMetricsOutgoingGetParamsWithTimeout(timeout time.Duration) *StreamManagerMetricsOutgoingGetParams { - - return &StreamManagerMetricsOutgoingGetParams{ - - timeout: timeout, - } -} - -// NewStreamManagerMetricsOutgoingGetParamsWithContext creates a new StreamManagerMetricsOutgoingGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewStreamManagerMetricsOutgoingGetParamsWithContext(ctx context.Context) *StreamManagerMetricsOutgoingGetParams { - - return &StreamManagerMetricsOutgoingGetParams{ - - Context: ctx, - } -} - -// NewStreamManagerMetricsOutgoingGetParamsWithHTTPClient creates a new StreamManagerMetricsOutgoingGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewStreamManagerMetricsOutgoingGetParamsWithHTTPClient(client *http.Client) *StreamManagerMetricsOutgoingGetParams { - - return &StreamManagerMetricsOutgoingGetParams{ - HTTPClient: client, - } -} - -/* -StreamManagerMetricsOutgoingGetParams contains all the parameters to send to the API endpoint -for the stream manager metrics outgoing get operation typically these are written to a http.Request -*/ -type StreamManagerMetricsOutgoingGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the stream manager metrics outgoing get params -func (o *StreamManagerMetricsOutgoingGetParams) WithTimeout(timeout time.Duration) *StreamManagerMetricsOutgoingGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the stream manager metrics outgoing get params -func (o *StreamManagerMetricsOutgoingGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the stream manager metrics outgoing get params -func (o *StreamManagerMetricsOutgoingGetParams) WithContext(ctx context.Context) *StreamManagerMetricsOutgoingGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the stream manager metrics outgoing get params -func (o *StreamManagerMetricsOutgoingGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the stream manager metrics outgoing get params -func (o *StreamManagerMetricsOutgoingGetParams) WithHTTPClient(client *http.Client) *StreamManagerMetricsOutgoingGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the stream manager metrics outgoing get params -func (o *StreamManagerMetricsOutgoingGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *StreamManagerMetricsOutgoingGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_outgoing_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_outgoing_get_responses.go deleted file mode 100644 index 26124af916..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/stream_manager_metrics_outgoing_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// StreamManagerMetricsOutgoingGetReader is a Reader for the StreamManagerMetricsOutgoingGet structure. -type StreamManagerMetricsOutgoingGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *StreamManagerMetricsOutgoingGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewStreamManagerMetricsOutgoingGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewStreamManagerMetricsOutgoingGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewStreamManagerMetricsOutgoingGetOK creates a StreamManagerMetricsOutgoingGetOK with default headers values -func NewStreamManagerMetricsOutgoingGetOK() *StreamManagerMetricsOutgoingGetOK { - return &StreamManagerMetricsOutgoingGetOK{} -} - -/* -StreamManagerMetricsOutgoingGetOK handles this case with default header values. - -Success -*/ -type StreamManagerMetricsOutgoingGetOK struct { - Payload int32 -} - -func (o *StreamManagerMetricsOutgoingGetOK) GetPayload() int32 { - return o.Payload -} - -func (o *StreamManagerMetricsOutgoingGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewStreamManagerMetricsOutgoingGetDefault creates a StreamManagerMetricsOutgoingGetDefault with default headers values -func NewStreamManagerMetricsOutgoingGetDefault(code int) *StreamManagerMetricsOutgoingGetDefault { - return &StreamManagerMetricsOutgoingGetDefault{ - _statusCode: code, - } -} - -/* -StreamManagerMetricsOutgoingGetDefault handles this case with default header values. - -internal server error -*/ -type StreamManagerMetricsOutgoingGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the stream manager metrics outgoing get default response -func (o *StreamManagerMetricsOutgoingGetDefault) Code() int { - return o._statusCode -} - -func (o *StreamManagerMetricsOutgoingGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *StreamManagerMetricsOutgoingGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *StreamManagerMetricsOutgoingGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_by_name_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_by_name_get_parameters.go deleted file mode 100644 index 5e0a082c56..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_by_name_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewSystemLoggerByNameGetParams creates a new SystemLoggerByNameGetParams object -// with the default values initialized. -func NewSystemLoggerByNameGetParams() *SystemLoggerByNameGetParams { - var () - return &SystemLoggerByNameGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewSystemLoggerByNameGetParamsWithTimeout creates a new SystemLoggerByNameGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewSystemLoggerByNameGetParamsWithTimeout(timeout time.Duration) *SystemLoggerByNameGetParams { - var () - return &SystemLoggerByNameGetParams{ - - timeout: timeout, - } -} - -// NewSystemLoggerByNameGetParamsWithContext creates a new SystemLoggerByNameGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewSystemLoggerByNameGetParamsWithContext(ctx context.Context) *SystemLoggerByNameGetParams { - var () - return &SystemLoggerByNameGetParams{ - - Context: ctx, - } -} - -// NewSystemLoggerByNameGetParamsWithHTTPClient creates a new SystemLoggerByNameGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewSystemLoggerByNameGetParamsWithHTTPClient(client *http.Client) *SystemLoggerByNameGetParams { - var () - return &SystemLoggerByNameGetParams{ - HTTPClient: client, - } -} - -/* -SystemLoggerByNameGetParams contains all the parameters to send to the API endpoint -for the system logger by name get operation typically these are written to a http.Request -*/ -type SystemLoggerByNameGetParams struct { - - /*Name - The logger to query about - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the system logger by name get params -func (o *SystemLoggerByNameGetParams) WithTimeout(timeout time.Duration) *SystemLoggerByNameGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the system logger by name get params -func (o *SystemLoggerByNameGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the system logger by name get params -func (o *SystemLoggerByNameGetParams) WithContext(ctx context.Context) *SystemLoggerByNameGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the system logger by name get params -func (o *SystemLoggerByNameGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the system logger by name get params -func (o *SystemLoggerByNameGetParams) WithHTTPClient(client *http.Client) *SystemLoggerByNameGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the system logger by name get params -func (o *SystemLoggerByNameGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithName adds the name to the system logger by name get params -func (o *SystemLoggerByNameGetParams) WithName(name string) *SystemLoggerByNameGetParams { - o.SetName(name) - return o -} - -// SetName adds the name to the system logger by name get params -func (o *SystemLoggerByNameGetParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *SystemLoggerByNameGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_by_name_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_by_name_get_responses.go deleted file mode 100644 index afc8b57db7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_by_name_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// SystemLoggerByNameGetReader is a Reader for the SystemLoggerByNameGet structure. -type SystemLoggerByNameGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *SystemLoggerByNameGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewSystemLoggerByNameGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewSystemLoggerByNameGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewSystemLoggerByNameGetOK creates a SystemLoggerByNameGetOK with default headers values -func NewSystemLoggerByNameGetOK() *SystemLoggerByNameGetOK { - return &SystemLoggerByNameGetOK{} -} - -/* -SystemLoggerByNameGetOK handles this case with default header values. - -Success -*/ -type SystemLoggerByNameGetOK struct { - Payload string -} - -func (o *SystemLoggerByNameGetOK) GetPayload() string { - return o.Payload -} - -func (o *SystemLoggerByNameGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewSystemLoggerByNameGetDefault creates a SystemLoggerByNameGetDefault with default headers values -func NewSystemLoggerByNameGetDefault(code int) *SystemLoggerByNameGetDefault { - return &SystemLoggerByNameGetDefault{ - _statusCode: code, - } -} - -/* -SystemLoggerByNameGetDefault handles this case with default header values. - -internal server error -*/ -type SystemLoggerByNameGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the system logger by name get default response -func (o *SystemLoggerByNameGetDefault) Code() int { - return o._statusCode -} - -func (o *SystemLoggerByNameGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *SystemLoggerByNameGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *SystemLoggerByNameGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_by_name_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_by_name_post_parameters.go deleted file mode 100644 index 65db85ad8c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_by_name_post_parameters.go +++ /dev/null @@ -1,161 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewSystemLoggerByNamePostParams creates a new SystemLoggerByNamePostParams object -// with the default values initialized. -func NewSystemLoggerByNamePostParams() *SystemLoggerByNamePostParams { - var () - return &SystemLoggerByNamePostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewSystemLoggerByNamePostParamsWithTimeout creates a new SystemLoggerByNamePostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewSystemLoggerByNamePostParamsWithTimeout(timeout time.Duration) *SystemLoggerByNamePostParams { - var () - return &SystemLoggerByNamePostParams{ - - timeout: timeout, - } -} - -// NewSystemLoggerByNamePostParamsWithContext creates a new SystemLoggerByNamePostParams object -// with the default values initialized, and the ability to set a context for a request -func NewSystemLoggerByNamePostParamsWithContext(ctx context.Context) *SystemLoggerByNamePostParams { - var () - return &SystemLoggerByNamePostParams{ - - Context: ctx, - } -} - -// NewSystemLoggerByNamePostParamsWithHTTPClient creates a new SystemLoggerByNamePostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewSystemLoggerByNamePostParamsWithHTTPClient(client *http.Client) *SystemLoggerByNamePostParams { - var () - return &SystemLoggerByNamePostParams{ - HTTPClient: client, - } -} - -/* -SystemLoggerByNamePostParams contains all the parameters to send to the API endpoint -for the system logger by name post operation typically these are written to a http.Request -*/ -type SystemLoggerByNamePostParams struct { - - /*Level - The new log level - - */ - Level string - /*Name - The logger to query about - - */ - Name string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the system logger by name post params -func (o *SystemLoggerByNamePostParams) WithTimeout(timeout time.Duration) *SystemLoggerByNamePostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the system logger by name post params -func (o *SystemLoggerByNamePostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the system logger by name post params -func (o *SystemLoggerByNamePostParams) WithContext(ctx context.Context) *SystemLoggerByNamePostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the system logger by name post params -func (o *SystemLoggerByNamePostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the system logger by name post params -func (o *SystemLoggerByNamePostParams) WithHTTPClient(client *http.Client) *SystemLoggerByNamePostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the system logger by name post params -func (o *SystemLoggerByNamePostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithLevel adds the level to the system logger by name post params -func (o *SystemLoggerByNamePostParams) WithLevel(level string) *SystemLoggerByNamePostParams { - o.SetLevel(level) - return o -} - -// SetLevel adds the level to the system logger by name post params -func (o *SystemLoggerByNamePostParams) SetLevel(level string) { - o.Level = level -} - -// WithName adds the name to the system logger by name post params -func (o *SystemLoggerByNamePostParams) WithName(name string) *SystemLoggerByNamePostParams { - o.SetName(name) - return o -} - -// SetName adds the name to the system logger by name post params -func (o *SystemLoggerByNamePostParams) SetName(name string) { - o.Name = name -} - -// WriteToRequest writes these params to a swagger request -func (o *SystemLoggerByNamePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param level - qrLevel := o.Level - qLevel := qrLevel - if qLevel != "" { - if err := r.SetQueryParam("level", qLevel); err != nil { - return err - } - } - - // path param name - if err := r.SetPathParam("name", o.Name); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_by_name_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_by_name_post_responses.go deleted file mode 100644 index 4215ecaad6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_by_name_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// SystemLoggerByNamePostReader is a Reader for the SystemLoggerByNamePost structure. -type SystemLoggerByNamePostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *SystemLoggerByNamePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewSystemLoggerByNamePostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewSystemLoggerByNamePostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewSystemLoggerByNamePostOK creates a SystemLoggerByNamePostOK with default headers values -func NewSystemLoggerByNamePostOK() *SystemLoggerByNamePostOK { - return &SystemLoggerByNamePostOK{} -} - -/* -SystemLoggerByNamePostOK handles this case with default header values. - -Success -*/ -type SystemLoggerByNamePostOK struct { -} - -func (o *SystemLoggerByNamePostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewSystemLoggerByNamePostDefault creates a SystemLoggerByNamePostDefault with default headers values -func NewSystemLoggerByNamePostDefault(code int) *SystemLoggerByNamePostDefault { - return &SystemLoggerByNamePostDefault{ - _statusCode: code, - } -} - -/* -SystemLoggerByNamePostDefault handles this case with default header values. - -internal server error -*/ -type SystemLoggerByNamePostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the system logger by name post default response -func (o *SystemLoggerByNamePostDefault) Code() int { - return o._statusCode -} - -func (o *SystemLoggerByNamePostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *SystemLoggerByNamePostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *SystemLoggerByNamePostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_get_parameters.go deleted file mode 100644 index f70d1eea53..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewSystemLoggerGetParams creates a new SystemLoggerGetParams object -// with the default values initialized. -func NewSystemLoggerGetParams() *SystemLoggerGetParams { - - return &SystemLoggerGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewSystemLoggerGetParamsWithTimeout creates a new SystemLoggerGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewSystemLoggerGetParamsWithTimeout(timeout time.Duration) *SystemLoggerGetParams { - - return &SystemLoggerGetParams{ - - timeout: timeout, - } -} - -// NewSystemLoggerGetParamsWithContext creates a new SystemLoggerGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewSystemLoggerGetParamsWithContext(ctx context.Context) *SystemLoggerGetParams { - - return &SystemLoggerGetParams{ - - Context: ctx, - } -} - -// NewSystemLoggerGetParamsWithHTTPClient creates a new SystemLoggerGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewSystemLoggerGetParamsWithHTTPClient(client *http.Client) *SystemLoggerGetParams { - - return &SystemLoggerGetParams{ - HTTPClient: client, - } -} - -/* -SystemLoggerGetParams contains all the parameters to send to the API endpoint -for the system logger get operation typically these are written to a http.Request -*/ -type SystemLoggerGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the system logger get params -func (o *SystemLoggerGetParams) WithTimeout(timeout time.Duration) *SystemLoggerGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the system logger get params -func (o *SystemLoggerGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the system logger get params -func (o *SystemLoggerGetParams) WithContext(ctx context.Context) *SystemLoggerGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the system logger get params -func (o *SystemLoggerGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the system logger get params -func (o *SystemLoggerGetParams) WithHTTPClient(client *http.Client) *SystemLoggerGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the system logger get params -func (o *SystemLoggerGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *SystemLoggerGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_get_responses.go deleted file mode 100644 index 36a0c46fb6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// SystemLoggerGetReader is a Reader for the SystemLoggerGet structure. -type SystemLoggerGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *SystemLoggerGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewSystemLoggerGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewSystemLoggerGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewSystemLoggerGetOK creates a SystemLoggerGetOK with default headers values -func NewSystemLoggerGetOK() *SystemLoggerGetOK { - return &SystemLoggerGetOK{} -} - -/* -SystemLoggerGetOK handles this case with default header values. - -Success -*/ -type SystemLoggerGetOK struct { - Payload []string -} - -func (o *SystemLoggerGetOK) GetPayload() []string { - return o.Payload -} - -func (o *SystemLoggerGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewSystemLoggerGetDefault creates a SystemLoggerGetDefault with default headers values -func NewSystemLoggerGetDefault(code int) *SystemLoggerGetDefault { - return &SystemLoggerGetDefault{ - _statusCode: code, - } -} - -/* -SystemLoggerGetDefault handles this case with default header values. - -internal server error -*/ -type SystemLoggerGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the system logger get default response -func (o *SystemLoggerGetDefault) Code() int { - return o._statusCode -} - -func (o *SystemLoggerGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *SystemLoggerGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *SystemLoggerGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_post_parameters.go deleted file mode 100644 index 4106bce392..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_post_parameters.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewSystemLoggerPostParams creates a new SystemLoggerPostParams object -// with the default values initialized. -func NewSystemLoggerPostParams() *SystemLoggerPostParams { - var () - return &SystemLoggerPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewSystemLoggerPostParamsWithTimeout creates a new SystemLoggerPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewSystemLoggerPostParamsWithTimeout(timeout time.Duration) *SystemLoggerPostParams { - var () - return &SystemLoggerPostParams{ - - timeout: timeout, - } -} - -// NewSystemLoggerPostParamsWithContext creates a new SystemLoggerPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewSystemLoggerPostParamsWithContext(ctx context.Context) *SystemLoggerPostParams { - var () - return &SystemLoggerPostParams{ - - Context: ctx, - } -} - -// NewSystemLoggerPostParamsWithHTTPClient creates a new SystemLoggerPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewSystemLoggerPostParamsWithHTTPClient(client *http.Client) *SystemLoggerPostParams { - var () - return &SystemLoggerPostParams{ - HTTPClient: client, - } -} - -/* -SystemLoggerPostParams contains all the parameters to send to the API endpoint -for the system logger post operation typically these are written to a http.Request -*/ -type SystemLoggerPostParams struct { - - /*Level - The new log level - - */ - Level string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the system logger post params -func (o *SystemLoggerPostParams) WithTimeout(timeout time.Duration) *SystemLoggerPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the system logger post params -func (o *SystemLoggerPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the system logger post params -func (o *SystemLoggerPostParams) WithContext(ctx context.Context) *SystemLoggerPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the system logger post params -func (o *SystemLoggerPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the system logger post params -func (o *SystemLoggerPostParams) WithHTTPClient(client *http.Client) *SystemLoggerPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the system logger post params -func (o *SystemLoggerPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithLevel adds the level to the system logger post params -func (o *SystemLoggerPostParams) WithLevel(level string) *SystemLoggerPostParams { - o.SetLevel(level) - return o -} - -// SetLevel adds the level to the system logger post params -func (o *SystemLoggerPostParams) SetLevel(level string) { - o.Level = level -} - -// WriteToRequest writes these params to a swagger request -func (o *SystemLoggerPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param level - qrLevel := o.Level - qLevel := qrLevel - if qLevel != "" { - if err := r.SetQueryParam("level", qLevel); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_post_responses.go deleted file mode 100644 index 849bd9a313..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/system_logger_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// SystemLoggerPostReader is a Reader for the SystemLoggerPost structure. -type SystemLoggerPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *SystemLoggerPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewSystemLoggerPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewSystemLoggerPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewSystemLoggerPostOK creates a SystemLoggerPostOK with default headers values -func NewSystemLoggerPostOK() *SystemLoggerPostOK { - return &SystemLoggerPostOK{} -} - -/* -SystemLoggerPostOK handles this case with default header values. - -Success -*/ -type SystemLoggerPostOK struct { -} - -func (o *SystemLoggerPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewSystemLoggerPostDefault creates a SystemLoggerPostDefault with default headers values -func NewSystemLoggerPostDefault(code int) *SystemLoggerPostDefault { - return &SystemLoggerPostDefault{ - _statusCode: code, - } -} - -/* -SystemLoggerPostDefault handles this case with default header values. - -internal server error -*/ -type SystemLoggerPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the system logger post default response -func (o *SystemLoggerPostDefault) Code() int { - return o._statusCode -} - -func (o *SystemLoggerPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *SystemLoggerPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *SystemLoggerPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_abort_task_task_id_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_abort_task_task_id_post_parameters.go deleted file mode 100644 index af4f1f231a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_abort_task_task_id_post_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewTaskManagerAbortTaskTaskIDPostParams creates a new TaskManagerAbortTaskTaskIDPostParams object -// with the default values initialized. -func NewTaskManagerAbortTaskTaskIDPostParams() *TaskManagerAbortTaskTaskIDPostParams { - var () - return &TaskManagerAbortTaskTaskIDPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewTaskManagerAbortTaskTaskIDPostParamsWithTimeout creates a new TaskManagerAbortTaskTaskIDPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewTaskManagerAbortTaskTaskIDPostParamsWithTimeout(timeout time.Duration) *TaskManagerAbortTaskTaskIDPostParams { - var () - return &TaskManagerAbortTaskTaskIDPostParams{ - - timeout: timeout, - } -} - -// NewTaskManagerAbortTaskTaskIDPostParamsWithContext creates a new TaskManagerAbortTaskTaskIDPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewTaskManagerAbortTaskTaskIDPostParamsWithContext(ctx context.Context) *TaskManagerAbortTaskTaskIDPostParams { - var () - return &TaskManagerAbortTaskTaskIDPostParams{ - - Context: ctx, - } -} - -// NewTaskManagerAbortTaskTaskIDPostParamsWithHTTPClient creates a new TaskManagerAbortTaskTaskIDPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewTaskManagerAbortTaskTaskIDPostParamsWithHTTPClient(client *http.Client) *TaskManagerAbortTaskTaskIDPostParams { - var () - return &TaskManagerAbortTaskTaskIDPostParams{ - HTTPClient: client, - } -} - -/* -TaskManagerAbortTaskTaskIDPostParams contains all the parameters to send to the API endpoint -for the task manager abort task task Id post operation typically these are written to a http.Request -*/ -type TaskManagerAbortTaskTaskIDPostParams struct { - - /*TaskID - The uuid of a task to abort; if the task is not abortable, 403 status code is returned - - */ - TaskID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the task manager abort task task Id post params -func (o *TaskManagerAbortTaskTaskIDPostParams) WithTimeout(timeout time.Duration) *TaskManagerAbortTaskTaskIDPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the task manager abort task task Id post params -func (o *TaskManagerAbortTaskTaskIDPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the task manager abort task task Id post params -func (o *TaskManagerAbortTaskTaskIDPostParams) WithContext(ctx context.Context) *TaskManagerAbortTaskTaskIDPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the task manager abort task task Id post params -func (o *TaskManagerAbortTaskTaskIDPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the task manager abort task task Id post params -func (o *TaskManagerAbortTaskTaskIDPostParams) WithHTTPClient(client *http.Client) *TaskManagerAbortTaskTaskIDPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the task manager abort task task Id post params -func (o *TaskManagerAbortTaskTaskIDPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithTaskID adds the taskID to the task manager abort task task Id post params -func (o *TaskManagerAbortTaskTaskIDPostParams) WithTaskID(taskID string) *TaskManagerAbortTaskTaskIDPostParams { - o.SetTaskID(taskID) - return o -} - -// SetTaskID adds the taskId to the task manager abort task task Id post params -func (o *TaskManagerAbortTaskTaskIDPostParams) SetTaskID(taskID string) { - o.TaskID = taskID -} - -// WriteToRequest writes these params to a swagger request -func (o *TaskManagerAbortTaskTaskIDPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param task_id - if err := r.SetPathParam("task_id", o.TaskID); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_abort_task_task_id_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_abort_task_task_id_post_responses.go deleted file mode 100644 index 73df4a1769..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_abort_task_task_id_post_responses.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// TaskManagerAbortTaskTaskIDPostReader is a Reader for the TaskManagerAbortTaskTaskIDPost structure. -type TaskManagerAbortTaskTaskIDPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *TaskManagerAbortTaskTaskIDPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewTaskManagerAbortTaskTaskIDPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewTaskManagerAbortTaskTaskIDPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewTaskManagerAbortTaskTaskIDPostOK creates a TaskManagerAbortTaskTaskIDPostOK with default headers values -func NewTaskManagerAbortTaskTaskIDPostOK() *TaskManagerAbortTaskTaskIDPostOK { - return &TaskManagerAbortTaskTaskIDPostOK{} -} - -/* -TaskManagerAbortTaskTaskIDPostOK handles this case with default header values. - -Success -*/ -type TaskManagerAbortTaskTaskIDPostOK struct { -} - -func (o *TaskManagerAbortTaskTaskIDPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} - -// NewTaskManagerAbortTaskTaskIDPostDefault creates a TaskManagerAbortTaskTaskIDPostDefault with default headers values -func NewTaskManagerAbortTaskTaskIDPostDefault(code int) *TaskManagerAbortTaskTaskIDPostDefault { - return &TaskManagerAbortTaskTaskIDPostDefault{ - _statusCode: code, - } -} - -/* -TaskManagerAbortTaskTaskIDPostDefault handles this case with default header values. - -internal server error -*/ -type TaskManagerAbortTaskTaskIDPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the task manager abort task task Id post default response -func (o *TaskManagerAbortTaskTaskIDPostDefault) Code() int { - return o._statusCode -} - -func (o *TaskManagerAbortTaskTaskIDPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *TaskManagerAbortTaskTaskIDPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *TaskManagerAbortTaskTaskIDPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_list_module_tasks_module_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_list_module_tasks_module_get_parameters.go deleted file mode 100644 index 024420d74b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_list_module_tasks_module_get_parameters.go +++ /dev/null @@ -1,233 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewTaskManagerListModuleTasksModuleGetParams creates a new TaskManagerListModuleTasksModuleGetParams object -// with the default values initialized. -func NewTaskManagerListModuleTasksModuleGetParams() *TaskManagerListModuleTasksModuleGetParams { - var () - return &TaskManagerListModuleTasksModuleGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewTaskManagerListModuleTasksModuleGetParamsWithTimeout creates a new TaskManagerListModuleTasksModuleGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewTaskManagerListModuleTasksModuleGetParamsWithTimeout(timeout time.Duration) *TaskManagerListModuleTasksModuleGetParams { - var () - return &TaskManagerListModuleTasksModuleGetParams{ - - timeout: timeout, - } -} - -// NewTaskManagerListModuleTasksModuleGetParamsWithContext creates a new TaskManagerListModuleTasksModuleGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewTaskManagerListModuleTasksModuleGetParamsWithContext(ctx context.Context) *TaskManagerListModuleTasksModuleGetParams { - var () - return &TaskManagerListModuleTasksModuleGetParams{ - - Context: ctx, - } -} - -// NewTaskManagerListModuleTasksModuleGetParamsWithHTTPClient creates a new TaskManagerListModuleTasksModuleGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewTaskManagerListModuleTasksModuleGetParamsWithHTTPClient(client *http.Client) *TaskManagerListModuleTasksModuleGetParams { - var () - return &TaskManagerListModuleTasksModuleGetParams{ - HTTPClient: client, - } -} - -/* -TaskManagerListModuleTasksModuleGetParams contains all the parameters to send to the API endpoint -for the task manager list module tasks module get operation typically these are written to a http.Request -*/ -type TaskManagerListModuleTasksModuleGetParams struct { - - /*Internal - Boolean flag indicating whether internal tasks should be shown (false by default) - - */ - Internal *bool - /*Keyspace - The keyspace to query about - - */ - Keyspace *string - /*Module - The module to query about - - */ - Module string - /*Table - The table to query about - - */ - Table *string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the task manager list module tasks module get params -func (o *TaskManagerListModuleTasksModuleGetParams) WithTimeout(timeout time.Duration) *TaskManagerListModuleTasksModuleGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the task manager list module tasks module get params -func (o *TaskManagerListModuleTasksModuleGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the task manager list module tasks module get params -func (o *TaskManagerListModuleTasksModuleGetParams) WithContext(ctx context.Context) *TaskManagerListModuleTasksModuleGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the task manager list module tasks module get params -func (o *TaskManagerListModuleTasksModuleGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the task manager list module tasks module get params -func (o *TaskManagerListModuleTasksModuleGetParams) WithHTTPClient(client *http.Client) *TaskManagerListModuleTasksModuleGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the task manager list module tasks module get params -func (o *TaskManagerListModuleTasksModuleGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithInternal adds the internal to the task manager list module tasks module get params -func (o *TaskManagerListModuleTasksModuleGetParams) WithInternal(internal *bool) *TaskManagerListModuleTasksModuleGetParams { - o.SetInternal(internal) - return o -} - -// SetInternal adds the internal to the task manager list module tasks module get params -func (o *TaskManagerListModuleTasksModuleGetParams) SetInternal(internal *bool) { - o.Internal = internal -} - -// WithKeyspace adds the keyspace to the task manager list module tasks module get params -func (o *TaskManagerListModuleTasksModuleGetParams) WithKeyspace(keyspace *string) *TaskManagerListModuleTasksModuleGetParams { - o.SetKeyspace(keyspace) - return o -} - -// SetKeyspace adds the keyspace to the task manager list module tasks module get params -func (o *TaskManagerListModuleTasksModuleGetParams) SetKeyspace(keyspace *string) { - o.Keyspace = keyspace -} - -// WithModule adds the module to the task manager list module tasks module get params -func (o *TaskManagerListModuleTasksModuleGetParams) WithModule(module string) *TaskManagerListModuleTasksModuleGetParams { - o.SetModule(module) - return o -} - -// SetModule adds the module to the task manager list module tasks module get params -func (o *TaskManagerListModuleTasksModuleGetParams) SetModule(module string) { - o.Module = module -} - -// WithTable adds the table to the task manager list module tasks module get params -func (o *TaskManagerListModuleTasksModuleGetParams) WithTable(table *string) *TaskManagerListModuleTasksModuleGetParams { - o.SetTable(table) - return o -} - -// SetTable adds the table to the task manager list module tasks module get params -func (o *TaskManagerListModuleTasksModuleGetParams) SetTable(table *string) { - o.Table = table -} - -// WriteToRequest writes these params to a swagger request -func (o *TaskManagerListModuleTasksModuleGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if o.Internal != nil { - - // query param internal - var qrInternal bool - if o.Internal != nil { - qrInternal = *o.Internal - } - qInternal := swag.FormatBool(qrInternal) - if qInternal != "" { - if err := r.SetQueryParam("internal", qInternal); err != nil { - return err - } - } - - } - - if o.Keyspace != nil { - - // query param keyspace - var qrKeyspace string - if o.Keyspace != nil { - qrKeyspace = *o.Keyspace - } - qKeyspace := qrKeyspace - if qKeyspace != "" { - if err := r.SetQueryParam("keyspace", qKeyspace); err != nil { - return err - } - } - - } - - // path param module - if err := r.SetPathParam("module", o.Module); err != nil { - return err - } - - if o.Table != nil { - - // query param table - var qrTable string - if o.Table != nil { - qrTable = *o.Table - } - qTable := qrTable - if qTable != "" { - if err := r.SetQueryParam("table", qTable); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_list_module_tasks_module_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_list_module_tasks_module_get_responses.go deleted file mode 100644 index 99d4e4d4aa..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_list_module_tasks_module_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// TaskManagerListModuleTasksModuleGetReader is a Reader for the TaskManagerListModuleTasksModuleGet structure. -type TaskManagerListModuleTasksModuleGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *TaskManagerListModuleTasksModuleGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewTaskManagerListModuleTasksModuleGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewTaskManagerListModuleTasksModuleGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewTaskManagerListModuleTasksModuleGetOK creates a TaskManagerListModuleTasksModuleGetOK with default headers values -func NewTaskManagerListModuleTasksModuleGetOK() *TaskManagerListModuleTasksModuleGetOK { - return &TaskManagerListModuleTasksModuleGetOK{} -} - -/* -TaskManagerListModuleTasksModuleGetOK handles this case with default header values. - -Success -*/ -type TaskManagerListModuleTasksModuleGetOK struct { - Payload []*models.TaskStats -} - -func (o *TaskManagerListModuleTasksModuleGetOK) GetPayload() []*models.TaskStats { - return o.Payload -} - -func (o *TaskManagerListModuleTasksModuleGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewTaskManagerListModuleTasksModuleGetDefault creates a TaskManagerListModuleTasksModuleGetDefault with default headers values -func NewTaskManagerListModuleTasksModuleGetDefault(code int) *TaskManagerListModuleTasksModuleGetDefault { - return &TaskManagerListModuleTasksModuleGetDefault{ - _statusCode: code, - } -} - -/* -TaskManagerListModuleTasksModuleGetDefault handles this case with default header values. - -internal server error -*/ -type TaskManagerListModuleTasksModuleGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the task manager list module tasks module get default response -func (o *TaskManagerListModuleTasksModuleGetDefault) Code() int { - return o._statusCode -} - -func (o *TaskManagerListModuleTasksModuleGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *TaskManagerListModuleTasksModuleGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *TaskManagerListModuleTasksModuleGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_list_modules_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_list_modules_get_parameters.go deleted file mode 100644 index 3898feaaa5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_list_modules_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewTaskManagerListModulesGetParams creates a new TaskManagerListModulesGetParams object -// with the default values initialized. -func NewTaskManagerListModulesGetParams() *TaskManagerListModulesGetParams { - - return &TaskManagerListModulesGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewTaskManagerListModulesGetParamsWithTimeout creates a new TaskManagerListModulesGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewTaskManagerListModulesGetParamsWithTimeout(timeout time.Duration) *TaskManagerListModulesGetParams { - - return &TaskManagerListModulesGetParams{ - - timeout: timeout, - } -} - -// NewTaskManagerListModulesGetParamsWithContext creates a new TaskManagerListModulesGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewTaskManagerListModulesGetParamsWithContext(ctx context.Context) *TaskManagerListModulesGetParams { - - return &TaskManagerListModulesGetParams{ - - Context: ctx, - } -} - -// NewTaskManagerListModulesGetParamsWithHTTPClient creates a new TaskManagerListModulesGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewTaskManagerListModulesGetParamsWithHTTPClient(client *http.Client) *TaskManagerListModulesGetParams { - - return &TaskManagerListModulesGetParams{ - HTTPClient: client, - } -} - -/* -TaskManagerListModulesGetParams contains all the parameters to send to the API endpoint -for the task manager list modules get operation typically these are written to a http.Request -*/ -type TaskManagerListModulesGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the task manager list modules get params -func (o *TaskManagerListModulesGetParams) WithTimeout(timeout time.Duration) *TaskManagerListModulesGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the task manager list modules get params -func (o *TaskManagerListModulesGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the task manager list modules get params -func (o *TaskManagerListModulesGetParams) WithContext(ctx context.Context) *TaskManagerListModulesGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the task manager list modules get params -func (o *TaskManagerListModulesGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the task manager list modules get params -func (o *TaskManagerListModulesGetParams) WithHTTPClient(client *http.Client) *TaskManagerListModulesGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the task manager list modules get params -func (o *TaskManagerListModulesGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *TaskManagerListModulesGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_list_modules_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_list_modules_get_responses.go deleted file mode 100644 index 09b42c8fb8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_list_modules_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// TaskManagerListModulesGetReader is a Reader for the TaskManagerListModulesGet structure. -type TaskManagerListModulesGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *TaskManagerListModulesGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewTaskManagerListModulesGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewTaskManagerListModulesGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewTaskManagerListModulesGetOK creates a TaskManagerListModulesGetOK with default headers values -func NewTaskManagerListModulesGetOK() *TaskManagerListModulesGetOK { - return &TaskManagerListModulesGetOK{} -} - -/* -TaskManagerListModulesGetOK handles this case with default header values. - -Success -*/ -type TaskManagerListModulesGetOK struct { - Payload []string -} - -func (o *TaskManagerListModulesGetOK) GetPayload() []string { - return o.Payload -} - -func (o *TaskManagerListModulesGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewTaskManagerListModulesGetDefault creates a TaskManagerListModulesGetDefault with default headers values -func NewTaskManagerListModulesGetDefault(code int) *TaskManagerListModulesGetDefault { - return &TaskManagerListModulesGetDefault{ - _statusCode: code, - } -} - -/* -TaskManagerListModulesGetDefault handles this case with default header values. - -internal server error -*/ -type TaskManagerListModulesGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the task manager list modules get default response -func (o *TaskManagerListModulesGetDefault) Code() int { - return o._statusCode -} - -func (o *TaskManagerListModulesGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *TaskManagerListModulesGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *TaskManagerListModulesGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_task_status_recursive_task_id_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_task_status_recursive_task_id_get_parameters.go deleted file mode 100644 index 1af2ed9bfa..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_task_status_recursive_task_id_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewTaskManagerTaskStatusRecursiveTaskIDGetParams creates a new TaskManagerTaskStatusRecursiveTaskIDGetParams object -// with the default values initialized. -func NewTaskManagerTaskStatusRecursiveTaskIDGetParams() *TaskManagerTaskStatusRecursiveTaskIDGetParams { - var () - return &TaskManagerTaskStatusRecursiveTaskIDGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewTaskManagerTaskStatusRecursiveTaskIDGetParamsWithTimeout creates a new TaskManagerTaskStatusRecursiveTaskIDGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewTaskManagerTaskStatusRecursiveTaskIDGetParamsWithTimeout(timeout time.Duration) *TaskManagerTaskStatusRecursiveTaskIDGetParams { - var () - return &TaskManagerTaskStatusRecursiveTaskIDGetParams{ - - timeout: timeout, - } -} - -// NewTaskManagerTaskStatusRecursiveTaskIDGetParamsWithContext creates a new TaskManagerTaskStatusRecursiveTaskIDGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewTaskManagerTaskStatusRecursiveTaskIDGetParamsWithContext(ctx context.Context) *TaskManagerTaskStatusRecursiveTaskIDGetParams { - var () - return &TaskManagerTaskStatusRecursiveTaskIDGetParams{ - - Context: ctx, - } -} - -// NewTaskManagerTaskStatusRecursiveTaskIDGetParamsWithHTTPClient creates a new TaskManagerTaskStatusRecursiveTaskIDGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewTaskManagerTaskStatusRecursiveTaskIDGetParamsWithHTTPClient(client *http.Client) *TaskManagerTaskStatusRecursiveTaskIDGetParams { - var () - return &TaskManagerTaskStatusRecursiveTaskIDGetParams{ - HTTPClient: client, - } -} - -/* -TaskManagerTaskStatusRecursiveTaskIDGetParams contains all the parameters to send to the API endpoint -for the task manager task status recursive task Id get operation typically these are written to a http.Request -*/ -type TaskManagerTaskStatusRecursiveTaskIDGetParams struct { - - /*TaskID - The uuid of a task to query about - - */ - TaskID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the task manager task status recursive task Id get params -func (o *TaskManagerTaskStatusRecursiveTaskIDGetParams) WithTimeout(timeout time.Duration) *TaskManagerTaskStatusRecursiveTaskIDGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the task manager task status recursive task Id get params -func (o *TaskManagerTaskStatusRecursiveTaskIDGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the task manager task status recursive task Id get params -func (o *TaskManagerTaskStatusRecursiveTaskIDGetParams) WithContext(ctx context.Context) *TaskManagerTaskStatusRecursiveTaskIDGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the task manager task status recursive task Id get params -func (o *TaskManagerTaskStatusRecursiveTaskIDGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the task manager task status recursive task Id get params -func (o *TaskManagerTaskStatusRecursiveTaskIDGetParams) WithHTTPClient(client *http.Client) *TaskManagerTaskStatusRecursiveTaskIDGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the task manager task status recursive task Id get params -func (o *TaskManagerTaskStatusRecursiveTaskIDGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithTaskID adds the taskID to the task manager task status recursive task Id get params -func (o *TaskManagerTaskStatusRecursiveTaskIDGetParams) WithTaskID(taskID string) *TaskManagerTaskStatusRecursiveTaskIDGetParams { - o.SetTaskID(taskID) - return o -} - -// SetTaskID adds the taskId to the task manager task status recursive task Id get params -func (o *TaskManagerTaskStatusRecursiveTaskIDGetParams) SetTaskID(taskID string) { - o.TaskID = taskID -} - -// WriteToRequest writes these params to a swagger request -func (o *TaskManagerTaskStatusRecursiveTaskIDGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param task_id - if err := r.SetPathParam("task_id", o.TaskID); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_task_status_recursive_task_id_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_task_status_recursive_task_id_get_responses.go deleted file mode 100644 index 6c9b93b9c5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_task_status_recursive_task_id_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// TaskManagerTaskStatusRecursiveTaskIDGetReader is a Reader for the TaskManagerTaskStatusRecursiveTaskIDGet structure. -type TaskManagerTaskStatusRecursiveTaskIDGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *TaskManagerTaskStatusRecursiveTaskIDGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewTaskManagerTaskStatusRecursiveTaskIDGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewTaskManagerTaskStatusRecursiveTaskIDGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewTaskManagerTaskStatusRecursiveTaskIDGetOK creates a TaskManagerTaskStatusRecursiveTaskIDGetOK with default headers values -func NewTaskManagerTaskStatusRecursiveTaskIDGetOK() *TaskManagerTaskStatusRecursiveTaskIDGetOK { - return &TaskManagerTaskStatusRecursiveTaskIDGetOK{} -} - -/* -TaskManagerTaskStatusRecursiveTaskIDGetOK handles this case with default header values. - -Success -*/ -type TaskManagerTaskStatusRecursiveTaskIDGetOK struct { - Payload []*models.TaskStatus -} - -func (o *TaskManagerTaskStatusRecursiveTaskIDGetOK) GetPayload() []*models.TaskStatus { - return o.Payload -} - -func (o *TaskManagerTaskStatusRecursiveTaskIDGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewTaskManagerTaskStatusRecursiveTaskIDGetDefault creates a TaskManagerTaskStatusRecursiveTaskIDGetDefault with default headers values -func NewTaskManagerTaskStatusRecursiveTaskIDGetDefault(code int) *TaskManagerTaskStatusRecursiveTaskIDGetDefault { - return &TaskManagerTaskStatusRecursiveTaskIDGetDefault{ - _statusCode: code, - } -} - -/* -TaskManagerTaskStatusRecursiveTaskIDGetDefault handles this case with default header values. - -internal server error -*/ -type TaskManagerTaskStatusRecursiveTaskIDGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the task manager task status recursive task Id get default response -func (o *TaskManagerTaskStatusRecursiveTaskIDGetDefault) Code() int { - return o._statusCode -} - -func (o *TaskManagerTaskStatusRecursiveTaskIDGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *TaskManagerTaskStatusRecursiveTaskIDGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *TaskManagerTaskStatusRecursiveTaskIDGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_task_status_task_id_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_task_status_task_id_get_parameters.go deleted file mode 100644 index 795b029a07..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_task_status_task_id_get_parameters.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewTaskManagerTaskStatusTaskIDGetParams creates a new TaskManagerTaskStatusTaskIDGetParams object -// with the default values initialized. -func NewTaskManagerTaskStatusTaskIDGetParams() *TaskManagerTaskStatusTaskIDGetParams { - var () - return &TaskManagerTaskStatusTaskIDGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewTaskManagerTaskStatusTaskIDGetParamsWithTimeout creates a new TaskManagerTaskStatusTaskIDGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewTaskManagerTaskStatusTaskIDGetParamsWithTimeout(timeout time.Duration) *TaskManagerTaskStatusTaskIDGetParams { - var () - return &TaskManagerTaskStatusTaskIDGetParams{ - - timeout: timeout, - } -} - -// NewTaskManagerTaskStatusTaskIDGetParamsWithContext creates a new TaskManagerTaskStatusTaskIDGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewTaskManagerTaskStatusTaskIDGetParamsWithContext(ctx context.Context) *TaskManagerTaskStatusTaskIDGetParams { - var () - return &TaskManagerTaskStatusTaskIDGetParams{ - - Context: ctx, - } -} - -// NewTaskManagerTaskStatusTaskIDGetParamsWithHTTPClient creates a new TaskManagerTaskStatusTaskIDGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewTaskManagerTaskStatusTaskIDGetParamsWithHTTPClient(client *http.Client) *TaskManagerTaskStatusTaskIDGetParams { - var () - return &TaskManagerTaskStatusTaskIDGetParams{ - HTTPClient: client, - } -} - -/* -TaskManagerTaskStatusTaskIDGetParams contains all the parameters to send to the API endpoint -for the task manager task status task Id get operation typically these are written to a http.Request -*/ -type TaskManagerTaskStatusTaskIDGetParams struct { - - /*TaskID - The uuid of a task to query about - - */ - TaskID string - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the task manager task status task Id get params -func (o *TaskManagerTaskStatusTaskIDGetParams) WithTimeout(timeout time.Duration) *TaskManagerTaskStatusTaskIDGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the task manager task status task Id get params -func (o *TaskManagerTaskStatusTaskIDGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the task manager task status task Id get params -func (o *TaskManagerTaskStatusTaskIDGetParams) WithContext(ctx context.Context) *TaskManagerTaskStatusTaskIDGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the task manager task status task Id get params -func (o *TaskManagerTaskStatusTaskIDGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the task manager task status task Id get params -func (o *TaskManagerTaskStatusTaskIDGetParams) WithHTTPClient(client *http.Client) *TaskManagerTaskStatusTaskIDGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the task manager task status task Id get params -func (o *TaskManagerTaskStatusTaskIDGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithTaskID adds the taskID to the task manager task status task Id get params -func (o *TaskManagerTaskStatusTaskIDGetParams) WithTaskID(taskID string) *TaskManagerTaskStatusTaskIDGetParams { - o.SetTaskID(taskID) - return o -} - -// SetTaskID adds the taskId to the task manager task status task Id get params -func (o *TaskManagerTaskStatusTaskIDGetParams) SetTaskID(taskID string) { - o.TaskID = taskID -} - -// WriteToRequest writes these params to a swagger request -func (o *TaskManagerTaskStatusTaskIDGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // path param task_id - if err := r.SetPathParam("task_id", o.TaskID); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_task_status_task_id_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_task_status_task_id_get_responses.go deleted file mode 100644 index b3978d2891..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_task_status_task_id_get_responses.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// TaskManagerTaskStatusTaskIDGetReader is a Reader for the TaskManagerTaskStatusTaskIDGet structure. -type TaskManagerTaskStatusTaskIDGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *TaskManagerTaskStatusTaskIDGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewTaskManagerTaskStatusTaskIDGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewTaskManagerTaskStatusTaskIDGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewTaskManagerTaskStatusTaskIDGetOK creates a TaskManagerTaskStatusTaskIDGetOK with default headers values -func NewTaskManagerTaskStatusTaskIDGetOK() *TaskManagerTaskStatusTaskIDGetOK { - return &TaskManagerTaskStatusTaskIDGetOK{} -} - -/* -TaskManagerTaskStatusTaskIDGetOK handles this case with default header values. - -Success -*/ -type TaskManagerTaskStatusTaskIDGetOK struct { - Payload *models.TaskStatus -} - -func (o *TaskManagerTaskStatusTaskIDGetOK) GetPayload() *models.TaskStatus { - return o.Payload -} - -func (o *TaskManagerTaskStatusTaskIDGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.TaskStatus) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewTaskManagerTaskStatusTaskIDGetDefault creates a TaskManagerTaskStatusTaskIDGetDefault with default headers values -func NewTaskManagerTaskStatusTaskIDGetDefault(code int) *TaskManagerTaskStatusTaskIDGetDefault { - return &TaskManagerTaskStatusTaskIDGetDefault{ - _statusCode: code, - } -} - -/* -TaskManagerTaskStatusTaskIDGetDefault handles this case with default header values. - -internal server error -*/ -type TaskManagerTaskStatusTaskIDGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the task manager task status task Id get default response -func (o *TaskManagerTaskStatusTaskIDGetDefault) Code() int { - return o._statusCode -} - -func (o *TaskManagerTaskStatusTaskIDGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *TaskManagerTaskStatusTaskIDGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *TaskManagerTaskStatusTaskIDGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_ttl_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_ttl_get_parameters.go deleted file mode 100644 index 71753eba22..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_ttl_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewTaskManagerTTLGetParams creates a new TaskManagerTTLGetParams object -// with the default values initialized. -func NewTaskManagerTTLGetParams() *TaskManagerTTLGetParams { - - return &TaskManagerTTLGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewTaskManagerTTLGetParamsWithTimeout creates a new TaskManagerTTLGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewTaskManagerTTLGetParamsWithTimeout(timeout time.Duration) *TaskManagerTTLGetParams { - - return &TaskManagerTTLGetParams{ - - timeout: timeout, - } -} - -// NewTaskManagerTTLGetParamsWithContext creates a new TaskManagerTTLGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewTaskManagerTTLGetParamsWithContext(ctx context.Context) *TaskManagerTTLGetParams { - - return &TaskManagerTTLGetParams{ - - Context: ctx, - } -} - -// NewTaskManagerTTLGetParamsWithHTTPClient creates a new TaskManagerTTLGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewTaskManagerTTLGetParamsWithHTTPClient(client *http.Client) *TaskManagerTTLGetParams { - - return &TaskManagerTTLGetParams{ - HTTPClient: client, - } -} - -/* -TaskManagerTTLGetParams contains all the parameters to send to the API endpoint -for the task manager Ttl get operation typically these are written to a http.Request -*/ -type TaskManagerTTLGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the task manager Ttl get params -func (o *TaskManagerTTLGetParams) WithTimeout(timeout time.Duration) *TaskManagerTTLGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the task manager Ttl get params -func (o *TaskManagerTTLGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the task manager Ttl get params -func (o *TaskManagerTTLGetParams) WithContext(ctx context.Context) *TaskManagerTTLGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the task manager Ttl get params -func (o *TaskManagerTTLGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the task manager Ttl get params -func (o *TaskManagerTTLGetParams) WithHTTPClient(client *http.Client) *TaskManagerTTLGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the task manager Ttl get params -func (o *TaskManagerTTLGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *TaskManagerTTLGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_ttl_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_ttl_get_responses.go deleted file mode 100644 index 8fcb7ea5bf..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_ttl_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// TaskManagerTTLGetReader is a Reader for the TaskManagerTTLGet structure. -type TaskManagerTTLGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *TaskManagerTTLGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewTaskManagerTTLGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewTaskManagerTTLGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewTaskManagerTTLGetOK creates a TaskManagerTTLGetOK with default headers values -func NewTaskManagerTTLGetOK() *TaskManagerTTLGetOK { - return &TaskManagerTTLGetOK{} -} - -/* -TaskManagerTTLGetOK handles this case with default header values. - -Success -*/ -type TaskManagerTTLGetOK struct { - Payload int64 -} - -func (o *TaskManagerTTLGetOK) GetPayload() int64 { - return o.Payload -} - -func (o *TaskManagerTTLGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewTaskManagerTTLGetDefault creates a TaskManagerTTLGetDefault with default headers values -func NewTaskManagerTTLGetDefault(code int) *TaskManagerTTLGetDefault { - return &TaskManagerTTLGetDefault{ - _statusCode: code, - } -} - -/* -TaskManagerTTLGetDefault handles this case with default header values. - -internal server error -*/ -type TaskManagerTTLGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the task manager Ttl get default response -func (o *TaskManagerTTLGetDefault) Code() int { - return o._statusCode -} - -func (o *TaskManagerTTLGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *TaskManagerTTLGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *TaskManagerTTLGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_ttl_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_ttl_post_parameters.go deleted file mode 100644 index 1cc0c2323d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_ttl_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewTaskManagerTTLPostParams creates a new TaskManagerTTLPostParams object -// with the default values initialized. -func NewTaskManagerTTLPostParams() *TaskManagerTTLPostParams { - var () - return &TaskManagerTTLPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewTaskManagerTTLPostParamsWithTimeout creates a new TaskManagerTTLPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewTaskManagerTTLPostParamsWithTimeout(timeout time.Duration) *TaskManagerTTLPostParams { - var () - return &TaskManagerTTLPostParams{ - - timeout: timeout, - } -} - -// NewTaskManagerTTLPostParamsWithContext creates a new TaskManagerTTLPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewTaskManagerTTLPostParamsWithContext(ctx context.Context) *TaskManagerTTLPostParams { - var () - return &TaskManagerTTLPostParams{ - - Context: ctx, - } -} - -// NewTaskManagerTTLPostParamsWithHTTPClient creates a new TaskManagerTTLPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewTaskManagerTTLPostParamsWithHTTPClient(client *http.Client) *TaskManagerTTLPostParams { - var () - return &TaskManagerTTLPostParams{ - HTTPClient: client, - } -} - -/* -TaskManagerTTLPostParams contains all the parameters to send to the API endpoint -for the task manager Ttl post operation typically these are written to a http.Request -*/ -type TaskManagerTTLPostParams struct { - - /*TTL - The number of seconds for which the task started internally will be kept in memory after it finishes - - */ - TTL int64 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the task manager Ttl post params -func (o *TaskManagerTTLPostParams) WithTimeout(timeout time.Duration) *TaskManagerTTLPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the task manager Ttl post params -func (o *TaskManagerTTLPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the task manager Ttl post params -func (o *TaskManagerTTLPostParams) WithContext(ctx context.Context) *TaskManagerTTLPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the task manager Ttl post params -func (o *TaskManagerTTLPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the task manager Ttl post params -func (o *TaskManagerTTLPostParams) WithHTTPClient(client *http.Client) *TaskManagerTTLPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the task manager Ttl post params -func (o *TaskManagerTTLPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithTTL adds the ttl to the task manager Ttl post params -func (o *TaskManagerTTLPostParams) WithTTL(ttl int64) *TaskManagerTTLPostParams { - o.SetTTL(ttl) - return o -} - -// SetTTL adds the ttl to the task manager Ttl post params -func (o *TaskManagerTTLPostParams) SetTTL(ttl int64) { - o.TTL = ttl -} - -// WriteToRequest writes these params to a swagger request -func (o *TaskManagerTTLPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param ttl - qrTTL := o.TTL - qTTL := swag.FormatInt64(qrTTL) - if qTTL != "" { - if err := r.SetQueryParam("ttl", qTTL); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_ttl_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_ttl_post_responses.go deleted file mode 100644 index 80d97579d1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_ttl_post_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// TaskManagerTTLPostReader is a Reader for the TaskManagerTTLPost structure. -type TaskManagerTTLPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *TaskManagerTTLPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewTaskManagerTTLPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewTaskManagerTTLPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewTaskManagerTTLPostOK creates a TaskManagerTTLPostOK with default headers values -func NewTaskManagerTTLPostOK() *TaskManagerTTLPostOK { - return &TaskManagerTTLPostOK{} -} - -/* -TaskManagerTTLPostOK handles this case with default header values. - -Success -*/ -type TaskManagerTTLPostOK struct { - Payload int64 -} - -func (o *TaskManagerTTLPostOK) GetPayload() int64 { - return o.Payload -} - -func (o *TaskManagerTTLPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewTaskManagerTTLPostDefault creates a TaskManagerTTLPostDefault with default headers values -func NewTaskManagerTTLPostDefault(code int) *TaskManagerTTLPostDefault { - return &TaskManagerTTLPostDefault{ - _statusCode: code, - } -} - -/* -TaskManagerTTLPostDefault handles this case with default header values. - -internal server error -*/ -type TaskManagerTTLPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the task manager Ttl post default response -func (o *TaskManagerTTLPostDefault) Code() int { - return o._statusCode -} - -func (o *TaskManagerTTLPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *TaskManagerTTLPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *TaskManagerTTLPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_user_ttl_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_user_ttl_get_parameters.go deleted file mode 100644 index e7cee5769f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_user_ttl_get_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewTaskManagerUserTTLGetParams creates a new TaskManagerUserTTLGetParams object -// with the default values initialized. -func NewTaskManagerUserTTLGetParams() *TaskManagerUserTTLGetParams { - - return &TaskManagerUserTTLGetParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewTaskManagerUserTTLGetParamsWithTimeout creates a new TaskManagerUserTTLGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewTaskManagerUserTTLGetParamsWithTimeout(timeout time.Duration) *TaskManagerUserTTLGetParams { - - return &TaskManagerUserTTLGetParams{ - - timeout: timeout, - } -} - -// NewTaskManagerUserTTLGetParamsWithContext creates a new TaskManagerUserTTLGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewTaskManagerUserTTLGetParamsWithContext(ctx context.Context) *TaskManagerUserTTLGetParams { - - return &TaskManagerUserTTLGetParams{ - - Context: ctx, - } -} - -// NewTaskManagerUserTTLGetParamsWithHTTPClient creates a new TaskManagerUserTTLGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewTaskManagerUserTTLGetParamsWithHTTPClient(client *http.Client) *TaskManagerUserTTLGetParams { - - return &TaskManagerUserTTLGetParams{ - HTTPClient: client, - } -} - -/* -TaskManagerUserTTLGetParams contains all the parameters to send to the API endpoint -for the task manager user Ttl get operation typically these are written to a http.Request -*/ -type TaskManagerUserTTLGetParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the task manager user Ttl get params -func (o *TaskManagerUserTTLGetParams) WithTimeout(timeout time.Duration) *TaskManagerUserTTLGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the task manager user Ttl get params -func (o *TaskManagerUserTTLGetParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the task manager user Ttl get params -func (o *TaskManagerUserTTLGetParams) WithContext(ctx context.Context) *TaskManagerUserTTLGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the task manager user Ttl get params -func (o *TaskManagerUserTTLGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the task manager user Ttl get params -func (o *TaskManagerUserTTLGetParams) WithHTTPClient(client *http.Client) *TaskManagerUserTTLGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the task manager user Ttl get params -func (o *TaskManagerUserTTLGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *TaskManagerUserTTLGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_user_ttl_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_user_ttl_get_responses.go deleted file mode 100644 index 0a18a610a4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_user_ttl_get_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// TaskManagerUserTTLGetReader is a Reader for the TaskManagerUserTTLGet structure. -type TaskManagerUserTTLGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *TaskManagerUserTTLGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewTaskManagerUserTTLGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewTaskManagerUserTTLGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewTaskManagerUserTTLGetOK creates a TaskManagerUserTTLGetOK with default headers values -func NewTaskManagerUserTTLGetOK() *TaskManagerUserTTLGetOK { - return &TaskManagerUserTTLGetOK{} -} - -/* -TaskManagerUserTTLGetOK handles this case with default header values. - -Success -*/ -type TaskManagerUserTTLGetOK struct { - Payload int64 -} - -func (o *TaskManagerUserTTLGetOK) GetPayload() int64 { - return o.Payload -} - -func (o *TaskManagerUserTTLGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewTaskManagerUserTTLGetDefault creates a TaskManagerUserTTLGetDefault with default headers values -func NewTaskManagerUserTTLGetDefault(code int) *TaskManagerUserTTLGetDefault { - return &TaskManagerUserTTLGetDefault{ - _statusCode: code, - } -} - -/* -TaskManagerUserTTLGetDefault handles this case with default header values. - -internal server error -*/ -type TaskManagerUserTTLGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the task manager user Ttl get default response -func (o *TaskManagerUserTTLGetDefault) Code() int { - return o._statusCode -} - -func (o *TaskManagerUserTTLGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *TaskManagerUserTTLGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *TaskManagerUserTTLGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_user_ttl_post_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_user_ttl_post_parameters.go deleted file mode 100644 index bb1fe813bd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_user_ttl_post_parameters.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewTaskManagerUserTTLPostParams creates a new TaskManagerUserTTLPostParams object -// with the default values initialized. -func NewTaskManagerUserTTLPostParams() *TaskManagerUserTTLPostParams { - var () - return &TaskManagerUserTTLPostParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewTaskManagerUserTTLPostParamsWithTimeout creates a new TaskManagerUserTTLPostParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewTaskManagerUserTTLPostParamsWithTimeout(timeout time.Duration) *TaskManagerUserTTLPostParams { - var () - return &TaskManagerUserTTLPostParams{ - - timeout: timeout, - } -} - -// NewTaskManagerUserTTLPostParamsWithContext creates a new TaskManagerUserTTLPostParams object -// with the default values initialized, and the ability to set a context for a request -func NewTaskManagerUserTTLPostParamsWithContext(ctx context.Context) *TaskManagerUserTTLPostParams { - var () - return &TaskManagerUserTTLPostParams{ - - Context: ctx, - } -} - -// NewTaskManagerUserTTLPostParamsWithHTTPClient creates a new TaskManagerUserTTLPostParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewTaskManagerUserTTLPostParamsWithHTTPClient(client *http.Client) *TaskManagerUserTTLPostParams { - var () - return &TaskManagerUserTTLPostParams{ - HTTPClient: client, - } -} - -/* -TaskManagerUserTTLPostParams contains all the parameters to send to the API endpoint -for the task manager user Ttl post operation typically these are written to a http.Request -*/ -type TaskManagerUserTTLPostParams struct { - - /*UserTTL - The number of seconds for which the task started by user will be kept in memory after it finishes - - */ - UserTTL int64 - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the task manager user Ttl post params -func (o *TaskManagerUserTTLPostParams) WithTimeout(timeout time.Duration) *TaskManagerUserTTLPostParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the task manager user Ttl post params -func (o *TaskManagerUserTTLPostParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the task manager user Ttl post params -func (o *TaskManagerUserTTLPostParams) WithContext(ctx context.Context) *TaskManagerUserTTLPostParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the task manager user Ttl post params -func (o *TaskManagerUserTTLPostParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the task manager user Ttl post params -func (o *TaskManagerUserTTLPostParams) WithHTTPClient(client *http.Client) *TaskManagerUserTTLPostParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the task manager user Ttl post params -func (o *TaskManagerUserTTLPostParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithUserTTL adds the userTTL to the task manager user Ttl post params -func (o *TaskManagerUserTTLPostParams) WithUserTTL(userTTL int64) *TaskManagerUserTTLPostParams { - o.SetUserTTL(userTTL) - return o -} - -// SetUserTTL adds the userTtl to the task manager user Ttl post params -func (o *TaskManagerUserTTLPostParams) SetUserTTL(userTTL int64) { - o.UserTTL = userTTL -} - -// WriteToRequest writes these params to a swagger request -func (o *TaskManagerUserTTLPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - // query param user_ttl - qrUserTTL := o.UserTTL - qUserTTL := swag.FormatInt64(qrUserTTL) - if qUserTTL != "" { - if err := r.SetQueryParam("user_ttl", qUserTTL); err != nil { - return err - } - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_user_ttl_post_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_user_ttl_post_responses.go deleted file mode 100644 index 3b902ad8d2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_user_ttl_post_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// TaskManagerUserTTLPostReader is a Reader for the TaskManagerUserTTLPost structure. -type TaskManagerUserTTLPostReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *TaskManagerUserTTLPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewTaskManagerUserTTLPostOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewTaskManagerUserTTLPostDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewTaskManagerUserTTLPostOK creates a TaskManagerUserTTLPostOK with default headers values -func NewTaskManagerUserTTLPostOK() *TaskManagerUserTTLPostOK { - return &TaskManagerUserTTLPostOK{} -} - -/* -TaskManagerUserTTLPostOK handles this case with default header values. - -Success -*/ -type TaskManagerUserTTLPostOK struct { - Payload int64 -} - -func (o *TaskManagerUserTTLPostOK) GetPayload() int64 { - return o.Payload -} - -func (o *TaskManagerUserTTLPostOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewTaskManagerUserTTLPostDefault creates a TaskManagerUserTTLPostDefault with default headers values -func NewTaskManagerUserTTLPostDefault(code int) *TaskManagerUserTTLPostDefault { - return &TaskManagerUserTTLPostDefault{ - _statusCode: code, - } -} - -/* -TaskManagerUserTTLPostDefault handles this case with default header values. - -internal server error -*/ -type TaskManagerUserTTLPostDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the task manager user Ttl post default response -func (o *TaskManagerUserTTLPostDefault) Code() int { - return o._statusCode -} - -func (o *TaskManagerUserTTLPostDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *TaskManagerUserTTLPostDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *TaskManagerUserTTLPostDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_wait_task_task_id_get_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_wait_task_task_id_get_parameters.go deleted file mode 100644 index d8b60778ff..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_wait_task_task_id_get_parameters.go +++ /dev/null @@ -1,169 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// NewTaskManagerWaitTaskTaskIDGetParams creates a new TaskManagerWaitTaskTaskIDGetParams object -// with the default values initialized. -func NewTaskManagerWaitTaskTaskIDGetParams() *TaskManagerWaitTaskTaskIDGetParams { - var () - return &TaskManagerWaitTaskTaskIDGetParams{ - - requestTimeout: cr.DefaultTimeout, - } -} - -// NewTaskManagerWaitTaskTaskIDGetParamsWithTimeout creates a new TaskManagerWaitTaskTaskIDGetParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewTaskManagerWaitTaskTaskIDGetParamsWithTimeout(timeout time.Duration) *TaskManagerWaitTaskTaskIDGetParams { - var () - return &TaskManagerWaitTaskTaskIDGetParams{ - - requestTimeout: timeout, - } -} - -// NewTaskManagerWaitTaskTaskIDGetParamsWithContext creates a new TaskManagerWaitTaskTaskIDGetParams object -// with the default values initialized, and the ability to set a context for a request -func NewTaskManagerWaitTaskTaskIDGetParamsWithContext(ctx context.Context) *TaskManagerWaitTaskTaskIDGetParams { - var () - return &TaskManagerWaitTaskTaskIDGetParams{ - - Context: ctx, - } -} - -// NewTaskManagerWaitTaskTaskIDGetParamsWithHTTPClient creates a new TaskManagerWaitTaskTaskIDGetParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewTaskManagerWaitTaskTaskIDGetParamsWithHTTPClient(client *http.Client) *TaskManagerWaitTaskTaskIDGetParams { - var () - return &TaskManagerWaitTaskTaskIDGetParams{ - HTTPClient: client, - } -} - -/* -TaskManagerWaitTaskTaskIDGetParams contains all the parameters to send to the API endpoint -for the task manager wait task task Id get operation typically these are written to a http.Request -*/ -type TaskManagerWaitTaskTaskIDGetParams struct { - - /*TaskID - The uuid of a task to wait for - - */ - TaskID string - /*Timeout - Timeout for waiting; if times out, 408 status code is returned - - */ - Timeout *int64 - - requestTimeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithRequestTimeout adds the timeout to the task manager wait task task Id get params -func (o *TaskManagerWaitTaskTaskIDGetParams) WithRequestTimeout(timeout time.Duration) *TaskManagerWaitTaskTaskIDGetParams { - o.SetRequestTimeout(timeout) - return o -} - -// SetRequestTimeout adds the timeout to the task manager wait task task Id get params -func (o *TaskManagerWaitTaskTaskIDGetParams) SetRequestTimeout(timeout time.Duration) { - o.requestTimeout = timeout -} - -// WithContext adds the context to the task manager wait task task Id get params -func (o *TaskManagerWaitTaskTaskIDGetParams) WithContext(ctx context.Context) *TaskManagerWaitTaskTaskIDGetParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the task manager wait task task Id get params -func (o *TaskManagerWaitTaskTaskIDGetParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the task manager wait task task Id get params -func (o *TaskManagerWaitTaskTaskIDGetParams) WithHTTPClient(client *http.Client) *TaskManagerWaitTaskTaskIDGetParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the task manager wait task task Id get params -func (o *TaskManagerWaitTaskTaskIDGetParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithTaskID adds the taskID to the task manager wait task task Id get params -func (o *TaskManagerWaitTaskTaskIDGetParams) WithTaskID(taskID string) *TaskManagerWaitTaskTaskIDGetParams { - o.SetTaskID(taskID) - return o -} - -// SetTaskID adds the taskId to the task manager wait task task Id get params -func (o *TaskManagerWaitTaskTaskIDGetParams) SetTaskID(taskID string) { - o.TaskID = taskID -} - -// WithTimeout adds the timeout to the task manager wait task task Id get params -func (o *TaskManagerWaitTaskTaskIDGetParams) WithTimeout(timeout *int64) *TaskManagerWaitTaskTaskIDGetParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the task manager wait task task Id get params -func (o *TaskManagerWaitTaskTaskIDGetParams) SetTimeout(timeout *int64) { - o.Timeout = timeout -} - -// WriteToRequest writes these params to a swagger request -func (o *TaskManagerWaitTaskTaskIDGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.requestTimeout); err != nil { - return err - } - var res []error - - // path param task_id - if err := r.SetPathParam("task_id", o.TaskID); err != nil { - return err - } - - if o.Timeout != nil { - - // query param timeout - var qrTimeout int64 - if o.Timeout != nil { - qrTimeout = *o.Timeout - } - qTimeout := swag.FormatInt64(qrTimeout) - if qTimeout != "" { - if err := r.SetQueryParam("timeout", qTimeout); err != nil { - return err - } - } - - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_wait_task_task_id_get_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_wait_task_task_id_get_responses.go deleted file mode 100644 index a64e48d52b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations/task_manager_wait_task_task_id_get_responses.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package operations - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models" -) - -// TaskManagerWaitTaskTaskIDGetReader is a Reader for the TaskManagerWaitTaskTaskIDGet structure. -type TaskManagerWaitTaskTaskIDGetReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *TaskManagerWaitTaskTaskIDGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewTaskManagerWaitTaskTaskIDGetOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewTaskManagerWaitTaskTaskIDGetDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewTaskManagerWaitTaskTaskIDGetOK creates a TaskManagerWaitTaskTaskIDGetOK with default headers values -func NewTaskManagerWaitTaskTaskIDGetOK() *TaskManagerWaitTaskTaskIDGetOK { - return &TaskManagerWaitTaskTaskIDGetOK{} -} - -/* -TaskManagerWaitTaskTaskIDGetOK handles this case with default header values. - -Success -*/ -type TaskManagerWaitTaskTaskIDGetOK struct { - Payload *models.TaskStatus -} - -func (o *TaskManagerWaitTaskTaskIDGetOK) GetPayload() *models.TaskStatus { - return o.Payload -} - -func (o *TaskManagerWaitTaskTaskIDGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.TaskStatus) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewTaskManagerWaitTaskTaskIDGetDefault creates a TaskManagerWaitTaskTaskIDGetDefault with default headers values -func NewTaskManagerWaitTaskTaskIDGetDefault(code int) *TaskManagerWaitTaskTaskIDGetDefault { - return &TaskManagerWaitTaskTaskIDGetDefault{ - _statusCode: code, - } -} - -/* -TaskManagerWaitTaskTaskIDGetDefault handles this case with default header values. - -internal server error -*/ -type TaskManagerWaitTaskTaskIDGetDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the task manager wait task task Id get default response -func (o *TaskManagerWaitTaskTaskIDGetDefault) Code() int { - return o._statusCode -} - -func (o *TaskManagerWaitTaskTaskIDGetDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *TaskManagerWaitTaskTaskIDGetDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *TaskManagerWaitTaskTaskIDGetDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/scylla_v1_client.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/scylla_v1_client.go deleted file mode 100644 index 593127d247..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/scylla_v1_client.go +++ /dev/null @@ -1,111 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package client - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/runtime" - httptransport "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations" -) - -// Default scylla v1 HTTP client. -var Default = NewHTTPClient(nil) - -const ( - // DefaultHost is the default Host - // found in Meta (info) section of spec file - DefaultHost string = "scylla-manager.magic.host" - // DefaultBasePath is the default BasePath - // found in Meta (info) section of spec file - DefaultBasePath string = "/" -) - -// DefaultSchemes are the default schemes found in Meta (info) section of spec file -var DefaultSchemes = []string{"http"} - -// NewHTTPClient creates a new scylla v1 HTTP client. -func NewHTTPClient(formats strfmt.Registry) *ScyllaV1 { - return NewHTTPClientWithConfig(formats, nil) -} - -// NewHTTPClientWithConfig creates a new scylla v1 HTTP client, -// using a customizable transport config. -func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *ScyllaV1 { - // ensure nullable parameters have default - if cfg == nil { - cfg = DefaultTransportConfig() - } - - // create transport and client - transport := httptransport.New(cfg.Host, cfg.BasePath, cfg.Schemes) - return New(transport, formats) -} - -// New creates a new scylla v1 client -func New(transport runtime.ClientTransport, formats strfmt.Registry) *ScyllaV1 { - // ensure nullable parameters have default - if formats == nil { - formats = strfmt.Default - } - - cli := new(ScyllaV1) - cli.Transport = transport - cli.Operations = operations.New(transport, formats) - return cli -} - -// DefaultTransportConfig creates a TransportConfig with the -// default settings taken from the meta section of the spec file. -func DefaultTransportConfig() *TransportConfig { - return &TransportConfig{ - Host: DefaultHost, - BasePath: DefaultBasePath, - Schemes: DefaultSchemes, - } -} - -// TransportConfig contains the transport related info, -// found in the meta section of the spec file. -type TransportConfig struct { - Host string - BasePath string - Schemes []string -} - -// WithHost overrides the default host, -// provided by the meta section of the spec file. -func (cfg *TransportConfig) WithHost(host string) *TransportConfig { - cfg.Host = host - return cfg -} - -// WithBasePath overrides the default basePath, -// provided by the meta section of the spec file. -func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig { - cfg.BasePath = basePath - return cfg -} - -// WithSchemes overrides the default schemes, -// provided by the meta section of the spec file. -func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig { - cfg.Schemes = schemes - return cfg -} - -// ScyllaV1 is a client for scylla v1 -type ScyllaV1 struct { - Operations operations.ClientService - - Transport runtime.ClientTransport -} - -// SetTransport changes the transport on the client and all its subresources -func (c *ScyllaV1) SetTransport(transport runtime.ClientTransport) { - c.Transport = transport - c.Operations.SetTransport(transport) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/collectd_metric_status.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/collectd_metric_status.go deleted file mode 100644 index d2b5d5961e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/collectd_metric_status.go +++ /dev/null @@ -1,76 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// CollectdMetricStatus collectd_metric_status -// -// # Holds a collectd id and an enable flag -// -// swagger:model collectd_metric_status -type CollectdMetricStatus struct { - - // Is the metric enabled - Enable bool `json:"enable,omitempty"` - - // id - ID *TypeInstanceID `json:"id,omitempty"` -} - -// Validate validates this collectd metric status -func (m *CollectdMetricStatus) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateID(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *CollectdMetricStatus) validateID(formats strfmt.Registry) error { - - if swag.IsZero(m.ID) { // not required - return nil - } - - if m.ID != nil { - if err := m.ID.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("id") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (m *CollectdMetricStatus) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *CollectdMetricStatus) UnmarshalBinary(b []byte) error { - var res CollectdMetricStatus - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/collectd_value.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/collectd_value.go deleted file mode 100644 index ef166e52e2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/collectd_value.go +++ /dev/null @@ -1,45 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// CollectdValue collectd_value -// -// # Holds a collectd value -// -// swagger:model collectd_value -type CollectdValue struct { - - // An array of values - Values []interface{} `json:"values"` -} - -// Validate validates this collectd value -func (m *CollectdValue) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *CollectdValue) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *CollectdValue) UnmarshalBinary(b []byte) error { - var res CollectdValue - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/column_family_info.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/column_family_info.go deleted file mode 100644 index 386b8b9908..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/column_family_info.go +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// ColumnFamilyInfo column_family_info -// -// # Information about column family -// -// swagger:model column_family_info -type ColumnFamilyInfo struct { - - // The column family - Cf string `json:"cf,omitempty"` - - // The Keyspace - Ks string `json:"ks,omitempty"` - - // The column family type - Type string `json:"type,omitempty"` -} - -// Validate validates this column family info -func (m *ColumnFamilyInfo) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *ColumnFamilyInfo) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *ColumnFamilyInfo) UnmarshalBinary(b []byte) error { - var res ColumnFamilyInfo - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/compaction_info.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/compaction_info.go deleted file mode 100644 index 2595a70d3c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/compaction_info.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// CompactionInfo compaction_info -// -// # A key value mapping -// -// swagger:model compaction_info -type CompactionInfo struct { - - // The current completed - Completed interface{} `json:"completed,omitempty"` - - // The operation type - OperationType string `json:"operation_type,omitempty"` - - // The total to compact - Total interface{} `json:"total,omitempty"` - - // The compacted unit - Unit string `json:"unit,omitempty"` -} - -// Validate validates this compaction info -func (m *CompactionInfo) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *CompactionInfo) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *CompactionInfo) UnmarshalBinary(b []byte) error { - var res CompactionInfo - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/direction.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/direction.go deleted file mode 100644 index cdb2114628..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/direction.go +++ /dev/null @@ -1,65 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "encoding/json" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/validate" -) - -// Direction Direction -// -// # The file name -// -// swagger:model Direction -type Direction string - -const ( - - // DirectionOUT captures enum value "OUT" - DirectionOUT Direction = "OUT" - - // DirectionIN captures enum value "IN" - DirectionIN Direction = "IN" -) - -// for schema -var directionEnum []interface{} - -func init() { - var res []Direction - if err := json.Unmarshal([]byte(`["OUT","IN"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - directionEnum = append(directionEnum, v) - } -} - -func (m Direction) validateDirectionEnum(path, location string, value Direction) error { - if err := validate.EnumCase(path, location, value, directionEnum, true); err != nil { - return err - } - return nil -} - -// Validate validates this direction -func (m Direction) Validate(formats strfmt.Registry) error { - var res []error - - // value enum - if err := m.validateDirectionEnum("", "body", m); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/endpoint_detail.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/endpoint_detail.go deleted file mode 100644 index 3613a66da1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/endpoint_detail.go +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// EndpointDetail endpoint_detail -// -// # Endpoint detail -// -// swagger:model endpoint_detail -type EndpointDetail struct { - - // The endpoint datacenter - Datacenter string `json:"datacenter,omitempty"` - - // The endpoint host - Host string `json:"host,omitempty"` - - // The endpoint rack - Rack string `json:"rack,omitempty"` -} - -// Validate validates this endpoint detail -func (m *EndpointDetail) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *EndpointDetail) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *EndpointDetail) UnmarshalBinary(b []byte) error { - var res EndpointDetail - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/endpoint_phi_value.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/endpoint_phi_value.go deleted file mode 100644 index 7476f83fda..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/endpoint_phi_value.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// EndpointPhiValue endpoint_phi_value -// -// # Holds phi value for a single end point -// -// swagger:model endpoint_phi_value -type EndpointPhiValue struct { - - // end point address - Endpoint string `json:"endpoint,omitempty"` - - // Phi value - Phi interface{} `json:"phi,omitempty"` -} - -// Validate validates this endpoint phi value -func (m *EndpointPhiValue) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *EndpointPhiValue) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *EndpointPhiValue) UnmarshalBinary(b []byte) error { - var res EndpointPhiValue - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/endpoint_state.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/endpoint_state.go deleted file mode 100644 index 8b93814a6e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/endpoint_state.go +++ /dev/null @@ -1,97 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// EndpointState endpoint_state -// -// # Holds an endpoint state -// -// swagger:model endpoint_state -type EndpointState struct { - - // The endpoint address - Addrs string `json:"addrs,omitempty"` - - // Is the endpoint alive - ApplicationState []*VersionValue `json:"application_state"` - - // The heart beat generation - Generation int32 `json:"generation,omitempty"` - - // Is the endpoint alive - IsAlive bool `json:"is_alive,omitempty"` - - // The update timestamp - UpdateTime interface{} `json:"update_time,omitempty"` - - // The heart beat version - Version int32 `json:"version,omitempty"` -} - -// Validate validates this endpoint state -func (m *EndpointState) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateApplicationState(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *EndpointState) validateApplicationState(formats strfmt.Registry) error { - - if swag.IsZero(m.ApplicationState) { // not required - return nil - } - - for i := 0; i < len(m.ApplicationState); i++ { - if swag.IsZero(m.ApplicationState[i]) { // not required - continue - } - - if m.ApplicationState[i] != nil { - if err := m.ApplicationState[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("application_state" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *EndpointState) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *EndpointState) UnmarshalBinary(b []byte) error { - var res EndpointState - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/error_model.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/error_model.go deleted file mode 100644 index 9887571ce7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/error_model.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// ErrorModel error model -// -// swagger:model ErrorModel -type ErrorModel struct { - - // code - Code int64 `json:"code,omitempty"` - - // message - Message string `json:"message,omitempty"` -} - -// Validate validates this error model -func (m *ErrorModel) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *ErrorModel) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *ErrorModel) UnmarshalBinary(b []byte) error { - var res ErrorModel - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/estimated_histogram.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/estimated_histogram.go deleted file mode 100644 index acccc928e0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/estimated_histogram.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// EstimatedHistogram estimated_histogram -// -// # An estimated histogram values -// -// swagger:model estimated_histogram -type EstimatedHistogram struct { - - // The series of values to which the counts in `buckets` correspond - BucketOffsets []interface{} `json:"bucket_offsets"` - - // The histogram buckets - Buckets []interface{} `json:"buckets"` -} - -// Validate validates this estimated histogram -func (m *EstimatedHistogram) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *EstimatedHistogram) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *EstimatedHistogram) UnmarshalBinary(b []byte) error { - var res EstimatedHistogram - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/histogram.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/histogram.go deleted file mode 100644 index 54b8102a4c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/histogram.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// Histogram histogram -// -// # A histogram values -// -// swagger:model histogram -type Histogram struct { - - // Total count so far - Count interface{} `json:"count,omitempty"` - - // The max so far - Max interface{} `json:"max,omitempty"` - - // The mean - Mean interface{} `json:"mean,omitempty"` - - // The min so far - Min interface{} `json:"min,omitempty"` - - // A sample containing the last n elements - Sample []interface{} `json:"sample"` - - // Total sum so far - Sum interface{} `json:"sum,omitempty"` - - // The variance - Variance interface{} `json:"variance,omitempty"` -} - -// Validate validates this histogram -func (m *Histogram) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *Histogram) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Histogram) UnmarshalBinary(b []byte) error { - var res Histogram - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/history.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/history.go deleted file mode 100644 index 3ea3fff627..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/history.go +++ /dev/null @@ -1,100 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// History history -// -// # Compaction history information -// -// swagger:model history -type History struct { - - // Bytes in - BytesIn interface{} `json:"bytes_in,omitempty"` - - // Bytes out - BytesOut interface{} `json:"bytes_out,omitempty"` - - // The column family name - Cf string `json:"cf,omitempty"` - - // The time of compaction - CompactedAt interface{} `json:"compacted_at,omitempty"` - - // The UUID - ID string `json:"id,omitempty"` - - // The keyspace name - Ks string `json:"ks,omitempty"` - - // The merged rows - RowsMerged []*RowMerged `json:"rows_merged"` -} - -// Validate validates this history -func (m *History) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateRowsMerged(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *History) validateRowsMerged(formats strfmt.Registry) error { - - if swag.IsZero(m.RowsMerged) { // not required - return nil - } - - for i := 0; i < len(m.RowsMerged); i++ { - if swag.IsZero(m.RowsMerged[i]) { // not required - continue - } - - if m.RowsMerged[i] != nil { - if err := m.RowsMerged[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("rows_merged" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *History) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *History) UnmarshalBinary(b []byte) error { - var res History - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/level.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/level.go deleted file mode 100644 index 038a049e2a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/level.go +++ /dev/null @@ -1,72 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "encoding/json" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/validate" -) - -// Level level -// -// swagger:model level -type Level string - -const ( - - // LevelError captures enum value "error" - LevelError Level = "error" - - // LevelWarn captures enum value "warn" - LevelWarn Level = "warn" - - // LevelInfo captures enum value "info" - LevelInfo Level = "info" - - // LevelDebug captures enum value "debug" - LevelDebug Level = "debug" - - // LevelTrace captures enum value "trace" - LevelTrace Level = "trace" -) - -// for schema -var levelEnum []interface{} - -func init() { - var res []Level - if err := json.Unmarshal([]byte(`["error","warn","info","debug","trace"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - levelEnum = append(levelEnum, v) - } -} - -func (m Level) validateLevelEnum(path, location string, value Level) error { - if err := validate.EnumCase(path, location, value, levelEnum, true); err != nil { - return err - } - return nil -} - -// Validate validates this level -func (m Level) Validate(formats strfmt.Registry) error { - var res []error - - // value enum - if err := m.validateLevelEnum("", "body", m); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/map_string_double.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/map_string_double.go deleted file mode 100644 index 133adcb96c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/map_string_double.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// MapStringDouble map_string_double -// -// # A key value mapping between a string and a double -// -// swagger:model map_string_double -type MapStringDouble struct { - - // The key - Key string `json:"key,omitempty"` - - // The value - Value interface{} `json:"value,omitempty"` -} - -// Validate validates this map string double -func (m *MapStringDouble) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *MapStringDouble) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *MapStringDouble) UnmarshalBinary(b []byte) error { - var res MapStringDouble - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/maplist_mapper.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/maplist_mapper.go deleted file mode 100644 index 9d8950b968..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/maplist_mapper.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// MaplistMapper maplist_mapper -// -// # A key value mapping, where key and value are list -// -// swagger:model maplist_mapper -type MaplistMapper struct { - - // The key - Key []string `json:"key"` - - // The value - Value []string `json:"value"` -} - -// Validate validates this maplist mapper -func (m *MaplistMapper) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *MaplistMapper) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *MaplistMapper) UnmarshalBinary(b []byte) error { - var res MaplistMapper - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/mapper.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/mapper.go deleted file mode 100644 index f7b7426538..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/mapper.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// Mapper mapper -// -// # A key value mapping -// -// swagger:model mapper -type Mapper struct { - - // The key - Key string `json:"key,omitempty"` - - // The value - Value string `json:"value,omitempty"` -} - -// Validate validates this mapper -func (m *Mapper) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *Mapper) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Mapper) UnmarshalBinary(b []byte) error { - var res Mapper - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/mapper_list.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/mapper_list.go deleted file mode 100644 index 63295b8850..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/mapper_list.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// MapperList mapper_list -// -// # Holds a key value which is a list -// -// swagger:model mapper_list -type MapperList struct { - - // The key - Key string `json:"key,omitempty"` - - // The value - Value []string `json:"value"` -} - -// Validate validates this mapper list -func (m *MapperList) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *MapperList) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *MapperList) UnmarshalBinary(b []byte) error { - var res MapperList - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/message_counter.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/message_counter.go deleted file mode 100644 index 03f07f79a9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/message_counter.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// MessageCounter message_counter -// -// # Holds command counters -// -// swagger:model message_counter -type MessageCounter struct { - - // key - Key string `json:"key,omitempty"` - - // value - Value interface{} `json:"value,omitempty"` -} - -// Validate validates this message counter -func (m *MessageCounter) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *MessageCounter) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *MessageCounter) UnmarshalBinary(b []byte) error { - var res MessageCounter - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/progress_info.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/progress_info.go deleted file mode 100644 index bf4028c313..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/progress_info.go +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// ProgressInfo progress_info -// -// # File transfer progress -// -// swagger:model progress_info -type ProgressInfo struct { - - // The current bytes - CurrentBytes interface{} `json:"current_bytes,omitempty"` - - // direction - Direction Direction `json:"direction,omitempty"` - - // The file name - FileName string `json:"file_name,omitempty"` - - // The peer address - Peer string `json:"peer,omitempty"` - - // The session index - SessionIndex int32 `json:"session_index,omitempty"` - - // The total bytes - TotalBytes interface{} `json:"total_bytes,omitempty"` -} - -// Validate validates this progress info -func (m *ProgressInfo) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateDirection(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *ProgressInfo) validateDirection(formats strfmt.Registry) error { - - if swag.IsZero(m.Direction) { // not required - return nil - } - - if err := m.Direction.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("direction") - } - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *ProgressInfo) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *ProgressInfo) UnmarshalBinary(b []byte) error { - var res ProgressInfo - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/progress_info_mapper.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/progress_info_mapper.go deleted file mode 100644 index 92a1d86c8a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/progress_info_mapper.go +++ /dev/null @@ -1,76 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// ProgressInfoMapper progress_info_mapper -// -// # A mapping between file and its progress info -// -// swagger:model progress_info_mapper -type ProgressInfoMapper struct { - - // The key - Key string `json:"key,omitempty"` - - // value - Value *ProgressInfo `json:"value,omitempty"` -} - -// Validate validates this progress info mapper -func (m *ProgressInfoMapper) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateValue(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *ProgressInfoMapper) validateValue(formats strfmt.Registry) error { - - if swag.IsZero(m.Value) { // not required - return nil - } - - if m.Value != nil { - if err := m.Value.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("value") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (m *ProgressInfoMapper) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *ProgressInfoMapper) UnmarshalBinary(b []byte) error { - var res ProgressInfoMapper - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/rate_moving_average.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/rate_moving_average.go deleted file mode 100644 index 93eeb6173d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/rate_moving_average.go +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// RateMovingAverage rate_moving_average -// -// # A meter metric which measures mean throughput and one, five, and fifteen-minute exponentially-weighted moving average throughputs -// -// swagger:model rate_moving_average -type RateMovingAverage struct { - - // Total number of events from startup - Count interface{} `json:"count,omitempty"` - - // The mean rate from startup - MeanRate interface{} `json:"mean_rate,omitempty"` - - // One, five and fifteen mintues rates - Rates []interface{} `json:"rates"` -} - -// Validate validates this rate moving average -func (m *RateMovingAverage) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *RateMovingAverage) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *RateMovingAverage) UnmarshalBinary(b []byte) error { - var res RateMovingAverage - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/rate_moving_average_and_histogram.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/rate_moving_average_and_histogram.go deleted file mode 100644 index 5b5a527016..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/rate_moving_average_and_histogram.go +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// RateMovingAverageAndHistogram rate_moving_average_and_histogram -// -// # A timer metric which aggregates timing durations and provides duration statistics, plus throughput statistics -// -// swagger:model rate_moving_average_and_histogram -type RateMovingAverageAndHistogram struct { - - // hist - Hist *Histogram `json:"hist,omitempty"` - - // meter - Meter *RateMovingAverage `json:"meter,omitempty"` -} - -// Validate validates this rate moving average and histogram -func (m *RateMovingAverageAndHistogram) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateHist(formats); err != nil { - res = append(res, err) - } - - if err := m.validateMeter(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *RateMovingAverageAndHistogram) validateHist(formats strfmt.Registry) error { - - if swag.IsZero(m.Hist) { // not required - return nil - } - - if m.Hist != nil { - if err := m.Hist.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("hist") - } - return err - } - } - - return nil -} - -func (m *RateMovingAverageAndHistogram) validateMeter(formats strfmt.Registry) error { - - if swag.IsZero(m.Meter) { // not required - return nil - } - - if m.Meter != nil { - if err := m.Meter.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("meter") - } - return err - } - } - - return nil -} - -// MarshalBinary interface implementation -func (m *RateMovingAverageAndHistogram) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *RateMovingAverageAndHistogram) UnmarshalBinary(b []byte) error { - var res RateMovingAverageAndHistogram - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/repair_async_status_response.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/repair_async_status_response.go deleted file mode 100644 index 3277746666..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/repair_async_status_response.go +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "encoding/json" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/validate" -) - -// RepairAsyncStatusResponse repair_async_statusResponse -// -// swagger:model repair_async_statusResponse -type RepairAsyncStatusResponse string - -const ( - - // RepairAsyncStatusResponseRUNNING captures enum value "RUNNING" - RepairAsyncStatusResponseRUNNING RepairAsyncStatusResponse = "RUNNING" - - // RepairAsyncStatusResponseSUCCESSFUL captures enum value "SUCCESSFUL" - RepairAsyncStatusResponseSUCCESSFUL RepairAsyncStatusResponse = "SUCCESSFUL" - - // RepairAsyncStatusResponseFAILED captures enum value "FAILED" - RepairAsyncStatusResponseFAILED RepairAsyncStatusResponse = "FAILED" -) - -// for schema -var repairAsyncStatusResponseEnum []interface{} - -func init() { - var res []RepairAsyncStatusResponse - if err := json.Unmarshal([]byte(`["RUNNING","SUCCESSFUL","FAILED"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - repairAsyncStatusResponseEnum = append(repairAsyncStatusResponseEnum, v) - } -} - -func (m RepairAsyncStatusResponse) validateRepairAsyncStatusResponseEnum(path, location string, value RepairAsyncStatusResponse) error { - if err := validate.EnumCase(path, location, value, repairAsyncStatusResponseEnum, true); err != nil { - return err - } - return nil -} - -// Validate validates this repair async status response -func (m RepairAsyncStatusResponse) Validate(formats strfmt.Registry) error { - var res []error - - // value enum - if err := m.validateRepairAsyncStatusResponseEnum("", "body", m); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/row_merged.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/row_merged.go deleted file mode 100644 index f24f950ba8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/row_merged.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// RowMerged row_merged -// -// # A row merged information -// -// swagger:model row_merged -type RowMerged struct { - - // The number of sstable - Key int32 `json:"key,omitempty"` - - // The number or row compacted - Value interface{} `json:"value,omitempty"` -} - -// Validate validates this row merged -func (m *RowMerged) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *RowMerged) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *RowMerged) UnmarshalBinary(b []byte) error { - var res RowMerged - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/slow_query_info.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/slow_query_info.go deleted file mode 100644 index 1b0d9ffb31..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/slow_query_info.go +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// SlowQueryInfo slow_query_info -// -// # Slow query triggering information -// -// swagger:model slow_query_info -type SlowQueryInfo struct { - - // Is slow query logging enable or disable - Enable bool `json:"enable,omitempty"` - - // The slow query logging threshold in microseconds. Queries that takes longer, will be logged - Threshold interface{} `json:"threshold,omitempty"` - - // The slow query TTL in seconds - TTL interface{} `json:"ttl,omitempty"` -} - -// Validate validates this slow query info -func (m *SlowQueryInfo) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *SlowQueryInfo) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *SlowQueryInfo) UnmarshalBinary(b []byte) error { - var res SlowQueryInfo - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/snapshot.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/snapshot.go deleted file mode 100644 index f3cdcc1a9f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/snapshot.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// Snapshot snapshot -// -// # Snapshot detail -// -// swagger:model snapshot -type Snapshot struct { - - // The column family - Cf string `json:"cf,omitempty"` - - // The key space snapshot key - Ks string `json:"ks,omitempty"` - - // The live snapshot size - Live interface{} `json:"live,omitempty"` - - // The total snapshot size - Total interface{} `json:"total,omitempty"` -} - -// Validate validates this snapshot -func (m *Snapshot) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *Snapshot) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Snapshot) UnmarshalBinary(b []byte) error { - var res Snapshot - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/snapshots.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/snapshots.go deleted file mode 100644 index b2964b65ef..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/snapshots.go +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// Snapshots snapshots -// -// # List of Snapshot detail -// -// swagger:model snapshots -type Snapshots struct { - - // The snapshot key - Key string `json:"key,omitempty"` - - // The column family - Value []*Snapshot `json:"value"` -} - -// Validate validates this snapshots -func (m *Snapshots) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateValue(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *Snapshots) validateValue(formats strfmt.Registry) error { - - if swag.IsZero(m.Value) { // not required - return nil - } - - for i := 0; i < len(m.Value); i++ { - if swag.IsZero(m.Value[i]) { // not required - continue - } - - if m.Value[i] != nil { - if err := m.Value[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("value" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *Snapshots) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Snapshots) UnmarshalBinary(b []byte) error { - var res Snapshots - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/state.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/state.go deleted file mode 100644 index 15e50640a5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/state.go +++ /dev/null @@ -1,77 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "encoding/json" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/validate" -) - -// State State -// -// # Current session state -// -// swagger:model State -type State string - -const ( - - // StateINITIALIZED captures enum value "INITIALIZED" - StateINITIALIZED State = "INITIALIZED" - - // StatePREPARING captures enum value "PREPARING" - StatePREPARING State = "PREPARING" - - // StateSTREAMING captures enum value "STREAMING" - StateSTREAMING State = "STREAMING" - - // StateWAITCOMPLETE captures enum value "WAIT_COMPLETE" - StateWAITCOMPLETE State = "WAIT_COMPLETE" - - // StateCOMPLETE captures enum value "COMPLETE" - StateCOMPLETE State = "COMPLETE" - - // StateFAILED captures enum value "FAILED" - StateFAILED State = "FAILED" -) - -// for schema -var stateEnum []interface{} - -func init() { - var res []State - if err := json.Unmarshal([]byte(`["INITIALIZED","PREPARING","STREAMING","WAIT_COMPLETE","COMPLETE","FAILED"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - stateEnum = append(stateEnum, v) - } -} - -func (m State) validateStateEnum(path, location string, value State) error { - if err := validate.EnumCase(path, location, value, stateEnum, true); err != nil { - return err - } - return nil -} - -// Validate validates this state -func (m State) Validate(formats strfmt.Registry) error { - var res []error - - // value enum - if err := m.validateStateEnum("", "body", m); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/stream_info.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/stream_info.go deleted file mode 100644 index 11000e7d41..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/stream_info.go +++ /dev/null @@ -1,210 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// StreamInfo stream_info -// -// # Stream session info -// -// swagger:model stream_info -type StreamInfo struct { - - // connecting - Connecting string `json:"connecting,omitempty"` - - // The peer - Peer string `json:"peer,omitempty"` - - // Receiving files - ReceivingFiles []*ProgressInfoMapper `json:"receiving_files"` - - // Receiving summaries - ReceivingSummaries []*StreamSummary `json:"receiving_summaries"` - - // Sending files - SendingFiles []*ProgressInfoMapper `json:"sending_files"` - - // Sending summaries - SendingSummaries []*StreamSummary `json:"sending_summaries"` - - // The session index - SessionIndex int32 `json:"session_index,omitempty"` - - // state - State State `json:"state,omitempty"` -} - -// Validate validates this stream info -func (m *StreamInfo) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateReceivingFiles(formats); err != nil { - res = append(res, err) - } - - if err := m.validateReceivingSummaries(formats); err != nil { - res = append(res, err) - } - - if err := m.validateSendingFiles(formats); err != nil { - res = append(res, err) - } - - if err := m.validateSendingSummaries(formats); err != nil { - res = append(res, err) - } - - if err := m.validateState(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *StreamInfo) validateReceivingFiles(formats strfmt.Registry) error { - - if swag.IsZero(m.ReceivingFiles) { // not required - return nil - } - - for i := 0; i < len(m.ReceivingFiles); i++ { - if swag.IsZero(m.ReceivingFiles[i]) { // not required - continue - } - - if m.ReceivingFiles[i] != nil { - if err := m.ReceivingFiles[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("receiving_files" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -func (m *StreamInfo) validateReceivingSummaries(formats strfmt.Registry) error { - - if swag.IsZero(m.ReceivingSummaries) { // not required - return nil - } - - for i := 0; i < len(m.ReceivingSummaries); i++ { - if swag.IsZero(m.ReceivingSummaries[i]) { // not required - continue - } - - if m.ReceivingSummaries[i] != nil { - if err := m.ReceivingSummaries[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("receiving_summaries" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -func (m *StreamInfo) validateSendingFiles(formats strfmt.Registry) error { - - if swag.IsZero(m.SendingFiles) { // not required - return nil - } - - for i := 0; i < len(m.SendingFiles); i++ { - if swag.IsZero(m.SendingFiles[i]) { // not required - continue - } - - if m.SendingFiles[i] != nil { - if err := m.SendingFiles[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("sending_files" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -func (m *StreamInfo) validateSendingSummaries(formats strfmt.Registry) error { - - if swag.IsZero(m.SendingSummaries) { // not required - return nil - } - - for i := 0; i < len(m.SendingSummaries); i++ { - if swag.IsZero(m.SendingSummaries[i]) { // not required - continue - } - - if m.SendingSummaries[i] != nil { - if err := m.SendingSummaries[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("sending_summaries" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -func (m *StreamInfo) validateState(formats strfmt.Registry) error { - - if swag.IsZero(m.State) { // not required - return nil - } - - if err := m.State.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("state") - } - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *StreamInfo) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *StreamInfo) UnmarshalBinary(b []byte) error { - var res StreamInfo - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/stream_state.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/stream_state.go deleted file mode 100644 index b9ace137ba..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/stream_state.go +++ /dev/null @@ -1,88 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// StreamState stream_state -// -// # Current snapshot of streaming progress -// -// swagger:model stream_state -type StreamState struct { - - // The stream description - Description string `json:"description,omitempty"` - - // Plan UUID - PlanID string `json:"plan_id,omitempty"` - - // The sessions info - Sessions []*StreamInfo `json:"sessions"` -} - -// Validate validates this stream state -func (m *StreamState) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateSessions(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *StreamState) validateSessions(formats strfmt.Registry) error { - - if swag.IsZero(m.Sessions) { // not required - return nil - } - - for i := 0; i < len(m.Sessions); i++ { - if swag.IsZero(m.Sessions[i]) { // not required - continue - } - - if m.Sessions[i] != nil { - if err := m.Sessions[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("sessions" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *StreamState) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *StreamState) UnmarshalBinary(b []byte) error { - var res StreamState - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/stream_summary.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/stream_summary.go deleted file mode 100644 index af9165a576..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/stream_summary.go +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// StreamSummary stream_summary -// -// # Stream summary info -// -// swagger:model stream_summary -type StreamSummary struct { - - // The ID - CfID string `json:"cf_id,omitempty"` - - // Number of files to transfer. Can be 0 if nothing to transfer for some streaming request. - Files int32 `json:"files,omitempty"` - - // total size - TotalSize interface{} `json:"total_size,omitempty"` -} - -// Validate validates this stream summary -func (m *StreamSummary) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *StreamSummary) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *StreamSummary) UnmarshalBinary(b []byte) error { - var res StreamSummary - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/summary.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/summary.go deleted file mode 100644 index 9dddef8016..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/summary.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// Summary summary -// -// # A compaction summary object -// -// swagger:model summary -type Summary struct { - - // The column family name - Cf string `json:"cf,omitempty"` - - // The number of units completed - Completed interface{} `json:"completed,omitempty"` - - // The UUID - ID string `json:"id,omitempty"` - - // The keyspace name - Ks string `json:"ks,omitempty"` - - // The task compaction type - TaskType string `json:"task_type,omitempty"` - - // The total number of units - Total interface{} `json:"total,omitempty"` - - // The units being used - Unit string `json:"unit,omitempty"` -} - -// Validate validates this summary -func (m *Summary) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *Summary) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *Summary) UnmarshalBinary(b []byte) error { - var res Summary - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/task_identity.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/task_identity.go deleted file mode 100644 index eecba4c268..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/task_identity.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// TaskIdentity task_identity -// -// # Id and node of a task -// -// swagger:model task_identity -type TaskIdentity struct { - - // Address of a server on which a task is created - Node string `json:"node,omitempty"` - - // The uuid of a task - TaskID string `json:"task_id,omitempty"` -} - -// Validate validates this task identity -func (m *TaskIdentity) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *TaskIdentity) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *TaskIdentity) UnmarshalBinary(b []byte) error { - var res TaskIdentity - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/task_stats.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/task_stats.go deleted file mode 100644 index ac10aefd25..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/task_stats.go +++ /dev/null @@ -1,180 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "encoding/json" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// TaskStats task_stats -// -// # A task statistics object -// -// swagger:model task_stats -type TaskStats struct { - - // Task-specific entity description - Entity string `json:"entity,omitempty"` - - // The keyspace the task is working on (if applicable) - Keyspace string `json:"keyspace,omitempty"` - - // The kind of a task - // Enum: [node cluster] - Kind string `json:"kind,omitempty"` - - // The scope of the task - Scope string `json:"scope,omitempty"` - - // The running sequence number of the task - SequenceNumber int64 `json:"sequence_number,omitempty"` - - // The state of a task - // Enum: [created running done failed] - State string `json:"state,omitempty"` - - // The table the task is working on (if applicable) - Table string `json:"table,omitempty"` - - // The uuid of a task - TaskID string `json:"task_id,omitempty"` - - // The description of the task - Type string `json:"type,omitempty"` -} - -// Validate validates this task stats -func (m *TaskStats) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateKind(formats); err != nil { - res = append(res, err) - } - - if err := m.validateState(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -var taskStatsTypeKindPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["node","cluster"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - taskStatsTypeKindPropEnum = append(taskStatsTypeKindPropEnum, v) - } -} - -const ( - - // TaskStatsKindNode captures enum value "node" - TaskStatsKindNode string = "node" - - // TaskStatsKindCluster captures enum value "cluster" - TaskStatsKindCluster string = "cluster" -) - -// prop value enum -func (m *TaskStats) validateKindEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, taskStatsTypeKindPropEnum, true); err != nil { - return err - } - return nil -} - -func (m *TaskStats) validateKind(formats strfmt.Registry) error { - - if swag.IsZero(m.Kind) { // not required - return nil - } - - // value enum - if err := m.validateKindEnum("kind", "body", m.Kind); err != nil { - return err - } - - return nil -} - -var taskStatsTypeStatePropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["created","running","done","failed"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - taskStatsTypeStatePropEnum = append(taskStatsTypeStatePropEnum, v) - } -} - -const ( - - // TaskStatsStateCreated captures enum value "created" - TaskStatsStateCreated string = "created" - - // TaskStatsStateRunning captures enum value "running" - TaskStatsStateRunning string = "running" - - // TaskStatsStateDone captures enum value "done" - TaskStatsStateDone string = "done" - - // TaskStatsStateFailed captures enum value "failed" - TaskStatsStateFailed string = "failed" -) - -// prop value enum -func (m *TaskStats) validateStateEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, taskStatsTypeStatePropEnum, true); err != nil { - return err - } - return nil -} - -func (m *TaskStats) validateState(formats strfmt.Registry) error { - - if swag.IsZero(m.State) { // not required - return nil - } - - // value enum - if err := m.validateStateEnum("state", "body", m.State); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *TaskStats) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *TaskStats) UnmarshalBinary(b []byte) error { - var res TaskStats - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/task_status.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/task_status.go deleted file mode 100644 index e53dd2c3e4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/task_status.go +++ /dev/null @@ -1,276 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "encoding/json" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" - "github.com/go-openapi/validate" -) - -// TaskStatus task_status -// -// # A task status object -// -// swagger:model task_status -type TaskStatus struct { - - // Task identities of children of this task - ChildrenIds []*TaskIdentity `json:"children_ids"` - - // The end time of the task (unspecified when the task is not completed) - // Format: date-time - EndTime strfmt.DateTime `json:"end_time,omitempty"` - - // Task-specific entity description - Entity string `json:"entity,omitempty"` - - // Error string, if the task failed - Error string `json:"error,omitempty"` - - // The uuid of the task - ID string `json:"id,omitempty"` - - // Boolean flag indicating whether the task can be aborted - IsAbortable bool `json:"is_abortable,omitempty"` - - // The keyspace the task is working on (if applicable) - Keyspace string `json:"keyspace,omitempty"` - - // The kind of a task - // Enum: [node cluster] - Kind string `json:"kind,omitempty"` - - // The uuid of the parent task - ParentID string `json:"parent_id,omitempty"` - - // The number of units completed so far - ProgressCompleted float64 `json:"progress_completed,omitempty"` - - // The total number of units to complete for the task - ProgressTotal float64 `json:"progress_total,omitempty"` - - // A description of the progress units - ProgressUnits string `json:"progress_units,omitempty"` - - // The scope of the task - Scope string `json:"scope,omitempty"` - - // The running sequence number of the task - SequenceNumber int64 `json:"sequence_number,omitempty"` - - // The number of a shard the task is running on - Shard int64 `json:"shard,omitempty"` - - // The start time of the task - // Format: date-time - StartTime strfmt.DateTime `json:"start_time,omitempty"` - - // The state of the task - // Enum: [created running done failed] - State string `json:"state,omitempty"` - - // The table the task is working on (if applicable) - Table string `json:"table,omitempty"` - - // The description of the task - Type string `json:"type,omitempty"` -} - -// Validate validates this task status -func (m *TaskStatus) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateChildrenIds(formats); err != nil { - res = append(res, err) - } - - if err := m.validateEndTime(formats); err != nil { - res = append(res, err) - } - - if err := m.validateKind(formats); err != nil { - res = append(res, err) - } - - if err := m.validateStartTime(formats); err != nil { - res = append(res, err) - } - - if err := m.validateState(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *TaskStatus) validateChildrenIds(formats strfmt.Registry) error { - - if swag.IsZero(m.ChildrenIds) { // not required - return nil - } - - for i := 0; i < len(m.ChildrenIds); i++ { - if swag.IsZero(m.ChildrenIds[i]) { // not required - continue - } - - if m.ChildrenIds[i] != nil { - if err := m.ChildrenIds[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("children_ids" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -func (m *TaskStatus) validateEndTime(formats strfmt.Registry) error { - - if swag.IsZero(m.EndTime) { // not required - return nil - } - - if err := validate.FormatOf("end_time", "body", "date-time", m.EndTime.String(), formats); err != nil { - return err - } - - return nil -} - -var taskStatusTypeKindPropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["node","cluster"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - taskStatusTypeKindPropEnum = append(taskStatusTypeKindPropEnum, v) - } -} - -const ( - - // TaskStatusKindNode captures enum value "node" - TaskStatusKindNode string = "node" - - // TaskStatusKindCluster captures enum value "cluster" - TaskStatusKindCluster string = "cluster" -) - -// prop value enum -func (m *TaskStatus) validateKindEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, taskStatusTypeKindPropEnum, true); err != nil { - return err - } - return nil -} - -func (m *TaskStatus) validateKind(formats strfmt.Registry) error { - - if swag.IsZero(m.Kind) { // not required - return nil - } - - // value enum - if err := m.validateKindEnum("kind", "body", m.Kind); err != nil { - return err - } - - return nil -} - -func (m *TaskStatus) validateStartTime(formats strfmt.Registry) error { - - if swag.IsZero(m.StartTime) { // not required - return nil - } - - if err := validate.FormatOf("start_time", "body", "date-time", m.StartTime.String(), formats); err != nil { - return err - } - - return nil -} - -var taskStatusTypeStatePropEnum []interface{} - -func init() { - var res []string - if err := json.Unmarshal([]byte(`["created","running","done","failed"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - taskStatusTypeStatePropEnum = append(taskStatusTypeStatePropEnum, v) - } -} - -const ( - - // TaskStatusStateCreated captures enum value "created" - TaskStatusStateCreated string = "created" - - // TaskStatusStateRunning captures enum value "running" - TaskStatusStateRunning string = "running" - - // TaskStatusStateDone captures enum value "done" - TaskStatusStateDone string = "done" - - // TaskStatusStateFailed captures enum value "failed" - TaskStatusStateFailed string = "failed" -) - -// prop value enum -func (m *TaskStatus) validateStateEnum(path, location string, value string) error { - if err := validate.EnumCase(path, location, value, taskStatusTypeStatePropEnum, true); err != nil { - return err - } - return nil -} - -func (m *TaskStatus) validateState(formats strfmt.Registry) error { - - if swag.IsZero(m.State) { // not required - return nil - } - - // value enum - if err := m.validateStateEnum("state", "body", m.State); err != nil { - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *TaskStatus) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *TaskStatus) UnmarshalBinary(b []byte) error { - var res TaskStatus - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/token_range.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/token_range.go deleted file mode 100644 index 3b05b32d47..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/token_range.go +++ /dev/null @@ -1,94 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// TokenRange token_range -// -// # Endpoint range information -// -// swagger:model token_range -type TokenRange struct { - - // The range start token - EndToken string `json:"end_token,omitempty"` - - // The endpoint details - EndpointDetails []*EndpointDetail `json:"endpoint_details"` - - // The endpoints - Endpoints []string `json:"endpoints"` - - // The rpc endpoints - RPCEndpoints []string `json:"rpc_endpoints"` - - // The range start token - StartToken string `json:"start_token,omitempty"` -} - -// Validate validates this token range -func (m *TokenRange) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateEndpointDetails(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *TokenRange) validateEndpointDetails(formats strfmt.Registry) error { - - if swag.IsZero(m.EndpointDetails) { // not required - return nil - } - - for i := 0; i < len(m.EndpointDetails); i++ { - if swag.IsZero(m.EndpointDetails[i]) { // not required - continue - } - - if m.EndpointDetails[i] != nil { - if err := m.EndpointDetails[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("endpoint_details" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (m *TokenRange) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *TokenRange) UnmarshalBinary(b []byte) error { - var res TokenRange - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/type.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/type.go deleted file mode 100644 index 14acdb8d31..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/type.go +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "encoding/json" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/validate" -) - -// Type type -// -// swagger:model type -type Type string - -const ( - - // TypeAll captures enum value "all" - TypeAll Type = "all" - - // TypeUser captures enum value "user" - TypeUser Type = "user" - - // TypeNonLocalStrategy captures enum value "non_local_strategy" - TypeNonLocalStrategy Type = "non_local_strategy" -) - -// for schema -var typeEnum []interface{} - -func init() { - var res []Type - if err := json.Unmarshal([]byte(`["all","user","non_local_strategy"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - typeEnum = append(typeEnum, v) - } -} - -func (m Type) validateTypeEnum(path, location string, value Type) error { - if err := validate.EnumCase(path, location, value, typeEnum, true); err != nil { - return err - } - return nil -} - -// Validate validates this type -func (m Type) Validate(formats strfmt.Registry) error { - var res []error - - // value enum - if err := m.validateTypeEnum("", "body", m); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/type_instance_id.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/type_instance_id.go deleted file mode 100644 index dd00aa469d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/type_instance_id.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// TypeInstanceID type_instance_id -// -// # A type instance ID -// -// swagger:model type_instance_id -type TypeInstanceID struct { - - // The plugin ID - Plugin string `json:"plugin,omitempty"` - - // The plugin instance - PluginInstance string `json:"plugin_instance,omitempty"` - - // The plugin type - Type string `json:"type,omitempty"` - - // The plugin type instance - TypeInstance string `json:"type_instance,omitempty"` -} - -// Validate validates this type instance id -func (m *TypeInstanceID) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *TypeInstanceID) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *TypeInstanceID) UnmarshalBinary(b []byte) error { - var res TypeInstanceID - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/verb.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/verb.go deleted file mode 100644 index 83fe15ea2c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/verb.go +++ /dev/null @@ -1,120 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "encoding/json" - - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/validate" -) - -// Verb Verb -// -// swagger:model Verb -type Verb string - -const ( - - // VerbCLIENTID captures enum value "CLIENT_ID" - VerbCLIENTID Verb = "CLIENT_ID" - - // VerbMUTATION captures enum value "MUTATION" - VerbMUTATION Verb = "MUTATION" - - // VerbMUTATIONDONE captures enum value "MUTATION_DONE" - VerbMUTATIONDONE Verb = "MUTATION_DONE" - - // VerbREADDATA captures enum value "READ_DATA" - VerbREADDATA Verb = "READ_DATA" - - // VerbREADMUTATIONDATA captures enum value "READ_MUTATION_DATA" - VerbREADMUTATIONDATA Verb = "READ_MUTATION_DATA" - - // VerbREADDIGEST captures enum value "READ_DIGEST" - VerbREADDIGEST Verb = "READ_DIGEST" - - // VerbGOSSIPECHO captures enum value "GOSSIP_ECHO" - VerbGOSSIPECHO Verb = "GOSSIP_ECHO" - - // VerbGOSSIPDIGESTSYN captures enum value "GOSSIP_DIGEST_SYN" - VerbGOSSIPDIGESTSYN Verb = "GOSSIP_DIGEST_SYN" - - // VerbGOSSIPDIGESTACK2 captures enum value "GOSSIP_DIGEST_ACK2" - VerbGOSSIPDIGESTACK2 Verb = "GOSSIP_DIGEST_ACK2" - - // VerbGOSSIPSHUTDOWN captures enum value "GOSSIP_SHUTDOWN" - VerbGOSSIPSHUTDOWN Verb = "GOSSIP_SHUTDOWN" - - // VerbDEFINITIONSUPDATE captures enum value "DEFINITIONS_UPDATE" - VerbDEFINITIONSUPDATE Verb = "DEFINITIONS_UPDATE" - - // VerbTRUNCATE captures enum value "TRUNCATE" - VerbTRUNCATE Verb = "TRUNCATE" - - // VerbREPLICATIONFINISHED captures enum value "REPLICATION_FINISHED" - VerbREPLICATIONFINISHED Verb = "REPLICATION_FINISHED" - - // VerbMIGRATIONREQUEST captures enum value "MIGRATION_REQUEST" - VerbMIGRATIONREQUEST Verb = "MIGRATION_REQUEST" - - // VerbPREPAREMESSAGE captures enum value "PREPARE_MESSAGE" - VerbPREPAREMESSAGE Verb = "PREPARE_MESSAGE" - - // VerbPREPAREDONEMESSAGE captures enum value "PREPARE_DONE_MESSAGE" - VerbPREPAREDONEMESSAGE Verb = "PREPARE_DONE_MESSAGE" - - // VerbSTREAMMUTATION captures enum value "STREAM_MUTATION" - VerbSTREAMMUTATION Verb = "STREAM_MUTATION" - - // VerbSTREAMMUTATIONDONE captures enum value "STREAM_MUTATION_DONE" - VerbSTREAMMUTATIONDONE Verb = "STREAM_MUTATION_DONE" - - // VerbCOMPLETEMESSAGE captures enum value "COMPLETE_MESSAGE" - VerbCOMPLETEMESSAGE Verb = "COMPLETE_MESSAGE" - - // VerbREPAIRCHECKSUMRANGE captures enum value "REPAIR_CHECKSUM_RANGE" - VerbREPAIRCHECKSUMRANGE Verb = "REPAIR_CHECKSUM_RANGE" - - // VerbGETSCHEMAVERSION captures enum value "GET_SCHEMA_VERSION" - VerbGETSCHEMAVERSION Verb = "GET_SCHEMA_VERSION" -) - -// for schema -var verbEnum []interface{} - -func init() { - var res []Verb - if err := json.Unmarshal([]byte(`["CLIENT_ID","MUTATION","MUTATION_DONE","READ_DATA","READ_MUTATION_DATA","READ_DIGEST","GOSSIP_ECHO","GOSSIP_DIGEST_SYN","GOSSIP_DIGEST_ACK2","GOSSIP_SHUTDOWN","DEFINITIONS_UPDATE","TRUNCATE","REPLICATION_FINISHED","MIGRATION_REQUEST","PREPARE_MESSAGE","PREPARE_DONE_MESSAGE","STREAM_MUTATION","STREAM_MUTATION_DONE","COMPLETE_MESSAGE","REPAIR_CHECKSUM_RANGE","GET_SCHEMA_VERSION"]`), &res); err != nil { - panic(err) - } - for _, v := range res { - verbEnum = append(verbEnum, v) - } -} - -func (m Verb) validateVerbEnum(path, location string, value Verb) error { - if err := validate.EnumCase(path, location, value, verbEnum, true); err != nil { - return err - } - return nil -} - -// Validate validates this verb -func (m Verb) Validate(formats strfmt.Registry) error { - var res []error - - // value enum - if err := m.validateVerbEnum("", "body", m); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/verb_counter.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/verb_counter.go deleted file mode 100644 index 7da0ed9318..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/verb_counter.go +++ /dev/null @@ -1,74 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/errors" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// VerbCounter verb_counter -// -// # Holds verb counters -// -// swagger:model verb_counter -type VerbCounter struct { - - // count - Count interface{} `json:"count,omitempty"` - - // verb - Verb Verb `json:"verb,omitempty"` -} - -// Validate validates this verb counter -func (m *VerbCounter) Validate(formats strfmt.Registry) error { - var res []error - - if err := m.validateVerb(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (m *VerbCounter) validateVerb(formats strfmt.Registry) error { - - if swag.IsZero(m.Verb) { // not required - return nil - } - - if err := m.Verb.Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("verb") - } - return err - } - - return nil -} - -// MarshalBinary interface implementation -func (m *VerbCounter) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *VerbCounter) UnmarshalBinary(b []byte) error { - var res VerbCounter - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/version_value.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/version_value.go deleted file mode 100644 index 4f54d28e0b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models/version_value.go +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// VersionValue version_value -// -// # Holds a version value for an application state -// -// swagger:model version_value -type VersionValue struct { - - // The application state enum index - ApplicationState int32 `json:"application_state,omitempty"` - - // The version value - Value string `json:"value,omitempty"` - - // The application state version - Version int32 `json:"version,omitempty"` -} - -// Validate validates this version value -func (m *VersionValue) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *VersionValue) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *VersionValue) UnmarshalBinary(b []byte) error { - var res VersionValue - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/config_client.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/config_client.go deleted file mode 100644 index fb30016bd6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/config_client.go +++ /dev/null @@ -1,6687 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" -) - -// New creates a new config API client. -func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { - return &Client{transport: transport, formats: formats} -} - -/* -Client for config API -*/ -type Client struct { - transport runtime.ClientTransport - formats strfmt.Registry -} - -// ClientService is the interface for Client methods -type ClientService interface { - FindConfigAbortOnLsaBadAlloc(params *FindConfigAbortOnLsaBadAllocParams) (*FindConfigAbortOnLsaBadAllocOK, error) - - FindConfigAlternatorAddress(params *FindConfigAlternatorAddressParams) (*FindConfigAlternatorAddressOK, error) - - FindConfigAlternatorEnforceAuthorization(params *FindConfigAlternatorEnforceAuthorizationParams) (*FindConfigAlternatorEnforceAuthorizationOK, error) - - FindConfigAlternatorHTTPSPort(params *FindConfigAlternatorHTTPSPortParams) (*FindConfigAlternatorHTTPSPortOK, error) - - FindConfigAlternatorPort(params *FindConfigAlternatorPortParams) (*FindConfigAlternatorPortOK, error) - - FindConfigAPIAddress(params *FindConfigAPIAddressParams) (*FindConfigAPIAddressOK, error) - - FindConfigAPIDocDir(params *FindConfigAPIDocDirParams) (*FindConfigAPIDocDirOK, error) - - FindConfigAPIPort(params *FindConfigAPIPortParams) (*FindConfigAPIPortOK, error) - - FindConfigAPIUIDir(params *FindConfigAPIUIDirParams) (*FindConfigAPIUIDirOK, error) - - FindConfigAuthenticator(params *FindConfigAuthenticatorParams) (*FindConfigAuthenticatorOK, error) - - FindConfigAuthorizer(params *FindConfigAuthorizerParams) (*FindConfigAuthorizerOK, error) - - FindConfigAutoAdjustFlushQuota(params *FindConfigAutoAdjustFlushQuotaParams) (*FindConfigAutoAdjustFlushQuotaOK, error) - - FindConfigAutoBootstrap(params *FindConfigAutoBootstrapParams) (*FindConfigAutoBootstrapOK, error) - - FindConfigAutoSnapshot(params *FindConfigAutoSnapshotParams) (*FindConfigAutoSnapshotOK, error) - - FindConfigBackgroundWriterSchedulingQuota(params *FindConfigBackgroundWriterSchedulingQuotaParams) (*FindConfigBackgroundWriterSchedulingQuotaOK, error) - - FindConfigBatchSizeFailThresholdInKb(params *FindConfigBatchSizeFailThresholdInKbParams) (*FindConfigBatchSizeFailThresholdInKbOK, error) - - FindConfigBatchSizeWarnThresholdInKb(params *FindConfigBatchSizeWarnThresholdInKbParams) (*FindConfigBatchSizeWarnThresholdInKbOK, error) - - FindConfigBatchlogReplayThrottleInKb(params *FindConfigBatchlogReplayThrottleInKbParams) (*FindConfigBatchlogReplayThrottleInKbOK, error) - - FindConfigBroadcastAddress(params *FindConfigBroadcastAddressParams) (*FindConfigBroadcastAddressOK, error) - - FindConfigBroadcastRPCAddress(params *FindConfigBroadcastRPCAddressParams) (*FindConfigBroadcastRPCAddressOK, error) - - FindConfigCacheHitRateReadBalancing(params *FindConfigCacheHitRateReadBalancingParams) (*FindConfigCacheHitRateReadBalancingOK, error) - - FindConfigCasContentionTimeoutInMs(params *FindConfigCasContentionTimeoutInMsParams) (*FindConfigCasContentionTimeoutInMsOK, error) - - FindConfigClientEncryptionOptions(params *FindConfigClientEncryptionOptionsParams) (*FindConfigClientEncryptionOptionsOK, error) - - FindConfigClusterName(params *FindConfigClusterNameParams) (*FindConfigClusterNameOK, error) - - FindConfigColumnIndexSizeInKb(params *FindConfigColumnIndexSizeInKbParams) (*FindConfigColumnIndexSizeInKbOK, error) - - FindConfigCommitFailurePolicy(params *FindConfigCommitFailurePolicyParams) (*FindConfigCommitFailurePolicyOK, error) - - FindConfigCommitlogDirectory(params *FindConfigCommitlogDirectoryParams) (*FindConfigCommitlogDirectoryOK, error) - - FindConfigCommitlogReuseSegments(params *FindConfigCommitlogReuseSegmentsParams) (*FindConfigCommitlogReuseSegmentsOK, error) - - FindConfigCommitlogSegmentSizeInMb(params *FindConfigCommitlogSegmentSizeInMbParams) (*FindConfigCommitlogSegmentSizeInMbOK, error) - - FindConfigCommitlogSync(params *FindConfigCommitlogSyncParams) (*FindConfigCommitlogSyncOK, error) - - FindConfigCommitlogSyncBatchWindowInMs(params *FindConfigCommitlogSyncBatchWindowInMsParams) (*FindConfigCommitlogSyncBatchWindowInMsOK, error) - - FindConfigCommitlogSyncPeriodInMs(params *FindConfigCommitlogSyncPeriodInMsParams) (*FindConfigCommitlogSyncPeriodInMsOK, error) - - FindConfigCommitlogTotalSpaceInMb(params *FindConfigCommitlogTotalSpaceInMbParams) (*FindConfigCommitlogTotalSpaceInMbOK, error) - - FindConfigCommitlogUseoDsync(params *FindConfigCommitlogUseoDsyncParams) (*FindConfigCommitlogUseODsyncOK, error) - - FindConfigCompactionEnforceMinThreshold(params *FindConfigCompactionEnforceMinThresholdParams) (*FindConfigCompactionEnforceMinThresholdOK, error) - - FindConfigCompactionLargeCellWarningThresholdMb(params *FindConfigCompactionLargeCellWarningThresholdMbParams) (*FindConfigCompactionLargeCellWarningThresholdMbOK, error) - - FindConfigCompactionLargePartitionWarningThresholdMb(params *FindConfigCompactionLargePartitionWarningThresholdMbParams) (*FindConfigCompactionLargePartitionWarningThresholdMbOK, error) - - FindConfigCompactionLargeRowWarningThresholdMb(params *FindConfigCompactionLargeRowWarningThresholdMbParams) (*FindConfigCompactionLargeRowWarningThresholdMbOK, error) - - FindConfigCompactionPreheatKeyCache(params *FindConfigCompactionPreheatKeyCacheParams) (*FindConfigCompactionPreheatKeyCacheOK, error) - - FindConfigCompactionRowsCountWarningThreshold(params *FindConfigCompactionRowsCountWarningThresholdParams) (*FindConfigCompactionRowsCountWarningThresholdOK, error) - - FindConfigCompactionStaticShares(params *FindConfigCompactionStaticSharesParams) (*FindConfigCompactionStaticSharesOK, error) - - FindConfigCompactionThroughputMbPerSec(params *FindConfigCompactionThroughputMbPerSecParams) (*FindConfigCompactionThroughputMbPerSecOK, error) - - FindConfigConcurrentCompactors(params *FindConfigConcurrentCompactorsParams) (*FindConfigConcurrentCompactorsOK, error) - - FindConfigConcurrentCounterWrites(params *FindConfigConcurrentCounterWritesParams) (*FindConfigConcurrentCounterWritesOK, error) - - FindConfigConcurrentReads(params *FindConfigConcurrentReadsParams) (*FindConfigConcurrentReadsOK, error) - - FindConfigConcurrentWrites(params *FindConfigConcurrentWritesParams) (*FindConfigConcurrentWritesOK, error) - - FindConfigConsistentClusterManagement(params *FindConfigConsistentClusterManagementParams) (*FindConfigConsistentClusterManagementOK, error) - - FindConfigConsistentRangemovement(params *FindConfigConsistentRangemovementParams) (*FindConfigConsistentRangemovementOK, error) - - FindConfigCounterCacheKeysToSave(params *FindConfigCounterCacheKeysToSaveParams) (*FindConfigCounterCacheKeysToSaveOK, error) - - FindConfigCounterCacheSavePeriod(params *FindConfigCounterCacheSavePeriodParams) (*FindConfigCounterCacheSavePeriodOK, error) - - FindConfigCounterCacheSizeInMb(params *FindConfigCounterCacheSizeInMbParams) (*FindConfigCounterCacheSizeInMbOK, error) - - FindConfigCounterWriteRequestTimeoutInMs(params *FindConfigCounterWriteRequestTimeoutInMsParams) (*FindConfigCounterWriteRequestTimeoutInMsOK, error) - - FindConfigCPUScheduler(params *FindConfigCPUSchedulerParams) (*FindConfigCPUSchedulerOK, error) - - FindConfigCrossNodeTimeout(params *FindConfigCrossNodeTimeoutParams) (*FindConfigCrossNodeTimeoutOK, error) - - FindConfigDataFileDirectories(params *FindConfigDataFileDirectoriesParams) (*FindConfigDataFileDirectoriesOK, error) - - FindConfigDefaultLogLevel(params *FindConfigDefaultLogLevelParams) (*FindConfigDefaultLogLevelOK, error) - - FindConfigDefragmentMemoryOnIdle(params *FindConfigDefragmentMemoryOnIdleParams) (*FindConfigDefragmentMemoryOnIdleOK, error) - - FindConfigDeveloperMode(params *FindConfigDeveloperModeParams) (*FindConfigDeveloperModeOK, error) - - FindConfigDiskFailurePolicy(params *FindConfigDiskFailurePolicyParams) (*FindConfigDiskFailurePolicyOK, error) - - FindConfigDynamicSnitchBadnessThreshold(params *FindConfigDynamicSnitchBadnessThresholdParams) (*FindConfigDynamicSnitchBadnessThresholdOK, error) - - FindConfigDynamicSnitchResetIntervalInMs(params *FindConfigDynamicSnitchResetIntervalInMsParams) (*FindConfigDynamicSnitchResetIntervalInMsOK, error) - - FindConfigDynamicSnitchUpdateIntervalInMs(params *FindConfigDynamicSnitchUpdateIntervalInMsParams) (*FindConfigDynamicSnitchUpdateIntervalInMsOK, error) - - FindConfigEnableCache(params *FindConfigEnableCacheParams) (*FindConfigEnableCacheOK, error) - - FindConfigEnableCommitlog(params *FindConfigEnableCommitlogParams) (*FindConfigEnableCommitlogOK, error) - - FindConfigEnableDangerousDirectImportOfCassandraCounters(params *FindConfigEnableDangerousDirectImportOfCassandraCountersParams) (*FindConfigEnableDangerousDirectImportOfCassandraCountersOK, error) - - FindConfigEnableDeprecatedPartitioners(params *FindConfigEnableDeprecatedPartitionersParams) (*FindConfigEnableDeprecatedPartitionersOK, error) - - FindConfigEnableInMemoryDataStore(params *FindConfigEnableInMemoryDataStoreParams) (*FindConfigEnableInMemoryDataStoreOK, error) - - FindConfigEnableKeyspaceColumnFamilyMetrics(params *FindConfigEnableKeyspaceColumnFamilyMetricsParams) (*FindConfigEnableKeyspaceColumnFamilyMetricsOK, error) - - FindConfigEnableShardAwareDrivers(params *FindConfigEnableShardAwareDriversParams) (*FindConfigEnableShardAwareDriversOK, error) - - FindConfigEnableSstableDataIntegrityCheck(params *FindConfigEnableSstableDataIntegrityCheckParams) (*FindConfigEnableSstableDataIntegrityCheckOK, error) - - FindConfigEnableSstablesMcFormat(params *FindConfigEnableSstablesMcFormatParams) (*FindConfigEnableSstablesMcFormatOK, error) - - FindConfigEnableTablets(params *FindConfigEnableTabletsParams) (*FindConfigEnableTabletsOK, error) - - FindConfigEndpointSnitch(params *FindConfigEndpointSnitchParams) (*FindConfigEndpointSnitchOK, error) - - FindConfigExperimental(params *FindConfigExperimentalParams) (*FindConfigExperimentalOK, error) - - FindConfigFdInitialValueMs(params *FindConfigFdInitialValueMsParams) (*FindConfigFdInitialValueMsOK, error) - - FindConfigFdMaxIntervalMs(params *FindConfigFdMaxIntervalMsParams) (*FindConfigFdMaxIntervalMsOK, error) - - FindConfigFileCacheSizeInMb(params *FindConfigFileCacheSizeInMbParams) (*FindConfigFileCacheSizeInMbOK, error) - - FindConfigHintedHandoffEnabled(params *FindConfigHintedHandoffEnabledParams) (*FindConfigHintedHandoffEnabledOK, error) - - FindConfigHintedHandoffThrottleInKb(params *FindConfigHintedHandoffThrottleInKbParams) (*FindConfigHintedHandoffThrottleInKbOK, error) - - FindConfigHintsDirectory(params *FindConfigHintsDirectoryParams) (*FindConfigHintsDirectoryOK, error) - - FindConfigInMemoryCompactionLimitInMb(params *FindConfigInMemoryCompactionLimitInMbParams) (*FindConfigInMemoryCompactionLimitInMbOK, error) - - FindConfigIncrementalBackups(params *FindConfigIncrementalBackupsParams) (*FindConfigIncrementalBackupsOK, error) - - FindConfigIndexSummaryCapacityInMb(params *FindConfigIndexSummaryCapacityInMbParams) (*FindConfigIndexSummaryCapacityInMbOK, error) - - FindConfigIndexSummaryResizeIntervalInMinutes(params *FindConfigIndexSummaryResizeIntervalInMinutesParams) (*FindConfigIndexSummaryResizeIntervalInMinutesOK, error) - - FindConfigInitialToken(params *FindConfigInitialTokenParams) (*FindConfigInitialTokenOK, error) - - FindConfigInterDcStreamThroughputOutboundMegabitsPerSec(params *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams) (*FindConfigInterDcStreamThroughputOutboundMegabitsPerSecOK, error) - - FindConfigInterDcTCPNodelay(params *FindConfigInterDcTCPNodelayParams) (*FindConfigInterDcTCPNodelayOK, error) - - FindConfigInternodeAuthenticator(params *FindConfigInternodeAuthenticatorParams) (*FindConfigInternodeAuthenticatorOK, error) - - FindConfigInternodeCompression(params *FindConfigInternodeCompressionParams) (*FindConfigInternodeCompressionOK, error) - - FindConfigInternodeRecvBuffSizeInBytes(params *FindConfigInternodeRecvBuffSizeInBytesParams) (*FindConfigInternodeRecvBuffSizeInBytesOK, error) - - FindConfigInternodeSendBuffSizeInBytes(params *FindConfigInternodeSendBuffSizeInBytesParams) (*FindConfigInternodeSendBuffSizeInBytesOK, error) - - FindConfigJoinRing(params *FindConfigJoinRingParams) (*FindConfigJoinRingOK, error) - - FindConfigKeyCacheKeysToSave(params *FindConfigKeyCacheKeysToSaveParams) (*FindConfigKeyCacheKeysToSaveOK, error) - - FindConfigKeyCacheSavePeriod(params *FindConfigKeyCacheSavePeriodParams) (*FindConfigKeyCacheSavePeriodOK, error) - - FindConfigKeyCacheSizeInMb(params *FindConfigKeyCacheSizeInMbParams) (*FindConfigKeyCacheSizeInMbOK, error) - - FindConfigLargeMemoryAllocationWarningThreshold(params *FindConfigLargeMemoryAllocationWarningThresholdParams) (*FindConfigLargeMemoryAllocationWarningThresholdOK, error) - - FindConfigListenAddress(params *FindConfigListenAddressParams) (*FindConfigListenAddressOK, error) - - FindConfigListenInterface(params *FindConfigListenInterfaceParams) (*FindConfigListenInterfaceOK, error) - - FindConfigListenOnBroadcastAddress(params *FindConfigListenOnBroadcastAddressParams) (*FindConfigListenOnBroadcastAddressOK, error) - - FindConfigLoadBalance(params *FindConfigLoadBalanceParams) (*FindConfigLoadBalanceOK, error) - - FindConfigLoadRingState(params *FindConfigLoadRingStateParams) (*FindConfigLoadRingStateOK, error) - - FindConfigLogToStdout(params *FindConfigLogToStdoutParams) (*FindConfigLogToStdoutOK, error) - - FindConfigLogToSyslog(params *FindConfigLogToSyslogParams) (*FindConfigLogToSyslogOK, error) - - FindConfigLoggerLogLevel(params *FindConfigLoggerLogLevelParams) (*FindConfigLoggerLogLevelOK, error) - - FindConfigLsaReclamationStep(params *FindConfigLsaReclamationStepParams) (*FindConfigLsaReclamationStepOK, error) - - FindConfigMaxHintWindowInMs(params *FindConfigMaxHintWindowInMsParams) (*FindConfigMaxHintWindowInMsOK, error) - - FindConfigMaxHintsDeliveryThreads(params *FindConfigMaxHintsDeliveryThreadsParams) (*FindConfigMaxHintsDeliveryThreadsOK, error) - - FindConfigMemoryAllocator(params *FindConfigMemoryAllocatorParams) (*FindConfigMemoryAllocatorOK, error) - - FindConfigMemtableAllocationType(params *FindConfigMemtableAllocationTypeParams) (*FindConfigMemtableAllocationTypeOK, error) - - FindConfigMemtableCleanupThreshold(params *FindConfigMemtableCleanupThresholdParams) (*FindConfigMemtableCleanupThresholdOK, error) - - FindConfigMemtableFlushQueueSize(params *FindConfigMemtableFlushQueueSizeParams) (*FindConfigMemtableFlushQueueSizeOK, error) - - FindConfigMemtableFlushStaticShares(params *FindConfigMemtableFlushStaticSharesParams) (*FindConfigMemtableFlushStaticSharesOK, error) - - FindConfigMemtableFlushWriters(params *FindConfigMemtableFlushWritersParams) (*FindConfigMemtableFlushWritersOK, error) - - FindConfigMemtableHeapSpaceInMb(params *FindConfigMemtableHeapSpaceInMbParams) (*FindConfigMemtableHeapSpaceInMbOK, error) - - FindConfigMemtableOffheapSpaceInMb(params *FindConfigMemtableOffheapSpaceInMbParams) (*FindConfigMemtableOffheapSpaceInMbOK, error) - - FindConfigMemtableTotalSpaceInMb(params *FindConfigMemtableTotalSpaceInMbParams) (*FindConfigMemtableTotalSpaceInMbOK, error) - - FindConfigMurmur3PartitionerIgnoreMsbBits(params *FindConfigMurmur3PartitionerIgnoreMsbBitsParams) (*FindConfigMurmur3PartitionerIgnoreMsbBitsOK, error) - - FindConfigNativeTransportMaxFrameSizeInMb(params *FindConfigNativeTransportMaxFrameSizeInMbParams) (*FindConfigNativeTransportMaxFrameSizeInMbOK, error) - - FindConfigNativeTransportMaxThreads(params *FindConfigNativeTransportMaxThreadsParams) (*FindConfigNativeTransportMaxThreadsOK, error) - - FindConfigNativeTransportPort(params *FindConfigNativeTransportPortParams) (*FindConfigNativeTransportPortOK, error) - - FindConfigNativeTransportPortSsl(params *FindConfigNativeTransportPortSslParams) (*FindConfigNativeTransportPortSslOK, error) - - FindConfigNumTokens(params *FindConfigNumTokensParams) (*FindConfigNumTokensOK, error) - - FindConfigObjectStorageEndpoints(params *FindConfigObjectStorageEndpointsParams) (*FindConfigObjectStorageEndpointsOK, error) - - FindConfigOverrideDecommission(params *FindConfigOverrideDecommissionParams) (*FindConfigOverrideDecommissionOK, error) - - FindConfigPartitioner(params *FindConfigPartitionerParams) (*FindConfigPartitionerOK, error) - - FindConfigPermissionsCacheMaxEntries(params *FindConfigPermissionsCacheMaxEntriesParams) (*FindConfigPermissionsCacheMaxEntriesOK, error) - - FindConfigPermissionsUpdateIntervalInMs(params *FindConfigPermissionsUpdateIntervalInMsParams) (*FindConfigPermissionsUpdateIntervalInMsOK, error) - - FindConfigPermissionsValidityInMs(params *FindConfigPermissionsValidityInMsParams) (*FindConfigPermissionsValidityInMsOK, error) - - FindConfigPhiConvictThreshold(params *FindConfigPhiConvictThresholdParams) (*FindConfigPhiConvictThresholdOK, error) - - FindConfigPreheatKernelPageCache(params *FindConfigPreheatKernelPageCacheParams) (*FindConfigPreheatKernelPageCacheOK, error) - - FindConfigPrometheusAddress(params *FindConfigPrometheusAddressParams) (*FindConfigPrometheusAddressOK, error) - - FindConfigPrometheusPort(params *FindConfigPrometheusPortParams) (*FindConfigPrometheusPortOK, error) - - FindConfigPrometheusPrefix(params *FindConfigPrometheusPrefixParams) (*FindConfigPrometheusPrefixOK, error) - - FindConfigRangeRequestTimeoutInMs(params *FindConfigRangeRequestTimeoutInMsParams) (*FindConfigRangeRequestTimeoutInMsOK, error) - - FindConfigReadRequestTimeoutInMs(params *FindConfigReadRequestTimeoutInMsParams) (*FindConfigReadRequestTimeoutInMsOK, error) - - FindConfigReduceCacheCapacityTo(params *FindConfigReduceCacheCapacityToParams) (*FindConfigReduceCacheCapacityToOK, error) - - FindConfigReduceCacheSizesAt(params *FindConfigReduceCacheSizesAtParams) (*FindConfigReduceCacheSizesAtOK, error) - - FindConfigReplaceNode(params *FindConfigReplaceNodeParams) (*FindConfigReplaceNodeOK, error) - - FindConfigReplaceToken(params *FindConfigReplaceTokenParams) (*FindConfigReplaceTokenOK, error) - - FindConfigRequestScheduler(params *FindConfigRequestSchedulerParams) (*FindConfigRequestSchedulerOK, error) - - FindConfigRequestSchedulerID(params *FindConfigRequestSchedulerIDParams) (*FindConfigRequestSchedulerIDOK, error) - - FindConfigRequestSchedulerOptions(params *FindConfigRequestSchedulerOptionsParams) (*FindConfigRequestSchedulerOptionsOK, error) - - FindConfigRequestTimeoutInMs(params *FindConfigRequestTimeoutInMsParams) (*FindConfigRequestTimeoutInMsOK, error) - - FindConfigRingDelayMs(params *FindConfigRingDelayMsParams) (*FindConfigRingDelayMsOK, error) - - FindConfigRoleManager(params *FindConfigRoleManagerParams) (*FindConfigRoleManagerOK, error) - - FindConfigRowCacheKeysToSave(params *FindConfigRowCacheKeysToSaveParams) (*FindConfigRowCacheKeysToSaveOK, error) - - FindConfigRowCacheSavePeriod(params *FindConfigRowCacheSavePeriodParams) (*FindConfigRowCacheSavePeriodOK, error) - - FindConfigRowCacheSizeInMb(params *FindConfigRowCacheSizeInMbParams) (*FindConfigRowCacheSizeInMbOK, error) - - FindConfigRPCAddress(params *FindConfigRPCAddressParams) (*FindConfigRPCAddressOK, error) - - FindConfigRPCInterface(params *FindConfigRPCInterfaceParams) (*FindConfigRPCInterfaceOK, error) - - FindConfigRPCKeepalive(params *FindConfigRPCKeepaliveParams) (*FindConfigRPCKeepaliveOK, error) - - FindConfigRPCMaxThreads(params *FindConfigRPCMaxThreadsParams) (*FindConfigRPCMaxThreadsOK, error) - - FindConfigRPCMinThreads(params *FindConfigRPCMinThreadsParams) (*FindConfigRPCMinThreadsOK, error) - - FindConfigRPCPort(params *FindConfigRPCPortParams) (*FindConfigRPCPortOK, error) - - FindConfigRPCRecvBuffSizeInBytes(params *FindConfigRPCRecvBuffSizeInBytesParams) (*FindConfigRPCRecvBuffSizeInBytesOK, error) - - FindConfigRPCSendBuffSizeInBytes(params *FindConfigRPCSendBuffSizeInBytesParams) (*FindConfigRPCSendBuffSizeInBytesOK, error) - - FindConfigRPCServerType(params *FindConfigRPCServerTypeParams) (*FindConfigRPCServerTypeOK, error) - - FindConfigSavedCachesDirectory(params *FindConfigSavedCachesDirectoryParams) (*FindConfigSavedCachesDirectoryOK, error) - - FindConfigSeedProvider(params *FindConfigSeedProviderParams) (*FindConfigSeedProviderOK, error) - - FindConfigServerEncryptionOptions(params *FindConfigServerEncryptionOptionsParams) (*FindConfigServerEncryptionOptionsOK, error) - - FindConfigShadowRoundMs(params *FindConfigShadowRoundMsParams) (*FindConfigShadowRoundMsOK, error) - - FindConfigShutdownAnnounceInMs(params *FindConfigShutdownAnnounceInMsParams) (*FindConfigShutdownAnnounceInMsOK, error) - - FindConfigSkipWaitForGossipToSettle(params *FindConfigSkipWaitForGossipToSettleParams) (*FindConfigSkipWaitForGossipToSettleOK, error) - - FindConfigSnapshotBeforeCompaction(params *FindConfigSnapshotBeforeCompactionParams) (*FindConfigSnapshotBeforeCompactionOK, error) - - FindConfigSslStoragePort(params *FindConfigSslStoragePortParams) (*FindConfigSslStoragePortOK, error) - - FindConfigSstablePreemptiveOpenIntervalInMb(params *FindConfigSstablePreemptiveOpenIntervalInMbParams) (*FindConfigSstablePreemptiveOpenIntervalInMbOK, error) - - FindConfigSstableSummaryRatio(params *FindConfigSstableSummaryRatioParams) (*FindConfigSstableSummaryRatioOK, error) - - FindConfigStartNativeTransport(params *FindConfigStartNativeTransportParams) (*FindConfigStartNativeTransportOK, error) - - FindConfigStartRPC(params *FindConfigStartRPCParams) (*FindConfigStartRPCOK, error) - - FindConfigStoragePort(params *FindConfigStoragePortParams) (*FindConfigStoragePortOK, error) - - FindConfigStreamThroughputOutboundMegabitsPerSec(params *FindConfigStreamThroughputOutboundMegabitsPerSecParams) (*FindConfigStreamThroughputOutboundMegabitsPerSecOK, error) - - FindConfigStreamingSocketTimeoutInMs(params *FindConfigStreamingSocketTimeoutInMsParams) (*FindConfigStreamingSocketTimeoutInMsOK, error) - - FindConfigThriftFramedTransportSizeInMb(params *FindConfigThriftFramedTransportSizeInMbParams) (*FindConfigThriftFramedTransportSizeInMbOK, error) - - FindConfigThriftMaxMessageLengthInMb(params *FindConfigThriftMaxMessageLengthInMbParams) (*FindConfigThriftMaxMessageLengthInMbOK, error) - - FindConfigTombstoneFailureThreshold(params *FindConfigTombstoneFailureThresholdParams) (*FindConfigTombstoneFailureThresholdOK, error) - - FindConfigTombstoneWarnThreshold(params *FindConfigTombstoneWarnThresholdParams) (*FindConfigTombstoneWarnThresholdOK, error) - - FindConfigTrickleFsync(params *FindConfigTrickleFsyncParams) (*FindConfigTrickleFsyncOK, error) - - FindConfigTrickleFsyncIntervalInKb(params *FindConfigTrickleFsyncIntervalInKbParams) (*FindConfigTrickleFsyncIntervalInKbOK, error) - - FindConfigTruncateRequestTimeoutInMs(params *FindConfigTruncateRequestTimeoutInMsParams) (*FindConfigTruncateRequestTimeoutInMsOK, error) - - FindConfigUUIDSstableIdentifiersEnabled(params *FindConfigUUIDSstableIdentifiersEnabledParams) (*FindConfigUUIDSstableIdentifiersEnabledOK, error) - - FindConfigViewBuilding(params *FindConfigViewBuildingParams) (*FindConfigViewBuildingOK, error) - - FindConfigViewHintsDirectory(params *FindConfigViewHintsDirectoryParams) (*FindConfigViewHintsDirectoryOK, error) - - FindConfigVirtualDirtySoftLimit(params *FindConfigVirtualDirtySoftLimitParams) (*FindConfigVirtualDirtySoftLimitOK, error) - - FindConfigVolatileSystemKeyspaceForTesting(params *FindConfigVolatileSystemKeyspaceForTestingParams) (*FindConfigVolatileSystemKeyspaceForTestingOK, error) - - FindConfigWriteRequestTimeoutInMs(params *FindConfigWriteRequestTimeoutInMsParams) (*FindConfigWriteRequestTimeoutInMsOK, error) - - SetTransport(transport runtime.ClientTransport) -} - -/* -FindConfigAbortOnLsaBadAlloc Abort when allocation in LSA region fails -*/ -func (a *Client) FindConfigAbortOnLsaBadAlloc(params *FindConfigAbortOnLsaBadAllocParams) (*FindConfigAbortOnLsaBadAllocOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigAbortOnLsaBadAllocParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_abort_on_lsa_bad_alloc", - Method: "GET", - PathPattern: "/config/abort_on_lsa_bad_alloc", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigAbortOnLsaBadAllocReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigAbortOnLsaBadAllocOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigAbortOnLsaBadAllocDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigAlternatorAddress The listen address for Alternator client connections -*/ -func (a *Client) FindConfigAlternatorAddress(params *FindConfigAlternatorAddressParams) (*FindConfigAlternatorAddressOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigAlternatorAddressParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_alternator_address", - Method: "GET", - PathPattern: "/config/alternator_address", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigAlternatorAddressReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigAlternatorAddressOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigAlternatorAddressDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigAlternatorEnforceAuthorization Whether alternator requires authorization -*/ -func (a *Client) FindConfigAlternatorEnforceAuthorization(params *FindConfigAlternatorEnforceAuthorizationParams) (*FindConfigAlternatorEnforceAuthorizationOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigAlternatorEnforceAuthorizationParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_alternator_enforce_authorization", - Method: "GET", - PathPattern: "/config/alternator_enforce_authorization", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigAlternatorEnforceAuthorizationReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigAlternatorEnforceAuthorizationOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigAlternatorEnforceAuthorizationDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigAlternatorHTTPSPort The listen port for Alternator HTTPS client connections -*/ -func (a *Client) FindConfigAlternatorHTTPSPort(params *FindConfigAlternatorHTTPSPortParams) (*FindConfigAlternatorHTTPSPortOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigAlternatorHTTPSPortParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_alternator_https_port", - Method: "GET", - PathPattern: "/config/alternator_https_port", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigAlternatorHTTPSPortReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigAlternatorHTTPSPortOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigAlternatorHTTPSPortDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigAlternatorPort The listen port for Alternator client connections -*/ -func (a *Client) FindConfigAlternatorPort(params *FindConfigAlternatorPortParams) (*FindConfigAlternatorPortOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigAlternatorPortParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_alternator_port", - Method: "GET", - PathPattern: "/config/alternator_port", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigAlternatorPortReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigAlternatorPortOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigAlternatorPortDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigAPIAddress Http Rest API address -*/ -func (a *Client) FindConfigAPIAddress(params *FindConfigAPIAddressParams) (*FindConfigAPIAddressOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigAPIAddressParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_api_address", - Method: "GET", - PathPattern: "/config/api_address", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigAPIAddressReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigAPIAddressOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigAPIAddressDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigAPIDocDir The API definition file directory -*/ -func (a *Client) FindConfigAPIDocDir(params *FindConfigAPIDocDirParams) (*FindConfigAPIDocDirOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigAPIDocDirParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_api_doc_dir", - Method: "GET", - PathPattern: "/config/api_doc_dir", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigAPIDocDirReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigAPIDocDirOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigAPIDocDirDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigAPIPort Http Rest API port -*/ -func (a *Client) FindConfigAPIPort(params *FindConfigAPIPortParams) (*FindConfigAPIPortOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigAPIPortParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_api_port", - Method: "GET", - PathPattern: "/config/api_port", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigAPIPortReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigAPIPortOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigAPIPortDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigAPIUIDir The directory location of the API GUI -*/ -func (a *Client) FindConfigAPIUIDir(params *FindConfigAPIUIDirParams) (*FindConfigAPIUIDirOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigAPIUIDirParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_api_ui_dir", - Method: "GET", - PathPattern: "/config/api_ui_dir", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigAPIUIDirReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigAPIUIDirOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigAPIUIDirDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigAuthenticator The authentication backend, used to identify users. The available authenticators are: - - org.apache.cassandra.auth.AllowAllAuthenticator : Disables authentication; no checks are performed. - org.apache.cassandra.auth.PasswordAuthenticator : Authenticates users with user names and hashed passwords stored in the system_auth.credentials table. If you use the default, 1, and the node with the lone replica goes down, you will not be able to log into the cluster because the system_auth keyspace was not replicated. - -Related information: Internal authentication -*/ -func (a *Client) FindConfigAuthenticator(params *FindConfigAuthenticatorParams) (*FindConfigAuthenticatorOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigAuthenticatorParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_authenticator", - Method: "GET", - PathPattern: "/config/authenticator", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigAuthenticatorReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigAuthenticatorOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigAuthenticatorDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigAuthorizer The authorization backend. It implements IAuthenticator, which limits access and provides permissions. The available authorizers are: - - AllowAllAuthorizer : Disables authorization; allows any action to any user. - CassandraAuthorizer : Stores permissions in system_auth.permissions table. If you use the default, 1, and the node with the lone replica goes down, you will not be able to log into the cluster because the system_auth keyspace was not replicated. - -Related information: Object permissions -*/ -func (a *Client) FindConfigAuthorizer(params *FindConfigAuthorizerParams) (*FindConfigAuthorizerOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigAuthorizerParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_authorizer", - Method: "GET", - PathPattern: "/config/authorizer", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigAuthorizerReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigAuthorizerOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigAuthorizerDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigAutoAdjustFlushQuota true: auto-adjust memtable shares for flush processes -*/ -func (a *Client) FindConfigAutoAdjustFlushQuota(params *FindConfigAutoAdjustFlushQuotaParams) (*FindConfigAutoAdjustFlushQuotaOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigAutoAdjustFlushQuotaParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_auto_adjust_flush_quota", - Method: "GET", - PathPattern: "/config/auto_adjust_flush_quota", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigAutoAdjustFlushQuotaReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigAutoAdjustFlushQuotaOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigAutoAdjustFlushQuotaDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigAutoBootstrap This setting has been removed from default configuration. It makes new (non-seed) nodes automatically migrate the right data to themselves. Do not set this to false unless you really know what you are doing. - -Related information: Initializing a multiple node cluster (single data center) and Initializing a multiple node cluster (multiple data centers). -*/ -func (a *Client) FindConfigAutoBootstrap(params *FindConfigAutoBootstrapParams) (*FindConfigAutoBootstrapOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigAutoBootstrapParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_auto_bootstrap", - Method: "GET", - PathPattern: "/config/auto_bootstrap", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigAutoBootstrapReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigAutoBootstrapOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigAutoBootstrapDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigAutoSnapshot Enable or disable whether a snapshot is taken of the data before keyspace truncation or dropping of tables. To prevent data loss, using the default setting is strongly advised. If you set to false, you will lose data on truncation or drop. -*/ -func (a *Client) FindConfigAutoSnapshot(params *FindConfigAutoSnapshotParams) (*FindConfigAutoSnapshotOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigAutoSnapshotParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_auto_snapshot", - Method: "GET", - PathPattern: "/config/auto_snapshot", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigAutoSnapshotReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigAutoSnapshotOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigAutoSnapshotDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigBackgroundWriterSchedulingQuota max cpu usage ratio (between 0 and 1) for compaction process. Not intended for setting in normal operations. Setting it to 1 or higher will disable it, recommended operational setting is 0.5. -*/ -func (a *Client) FindConfigBackgroundWriterSchedulingQuota(params *FindConfigBackgroundWriterSchedulingQuotaParams) (*FindConfigBackgroundWriterSchedulingQuotaOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigBackgroundWriterSchedulingQuotaParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_background_writer_scheduling_quota", - Method: "GET", - PathPattern: "/config/background_writer_scheduling_quota", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigBackgroundWriterSchedulingQuotaReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigBackgroundWriterSchedulingQuotaOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigBackgroundWriterSchedulingQuotaDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigBatchSizeFailThresholdInKb Fail any multiple-partition batch exceeding this value. 50kb (10x warn threshold) by default. -*/ -func (a *Client) FindConfigBatchSizeFailThresholdInKb(params *FindConfigBatchSizeFailThresholdInKbParams) (*FindConfigBatchSizeFailThresholdInKbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigBatchSizeFailThresholdInKbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_batch_size_fail_threshold_in_kb", - Method: "GET", - PathPattern: "/config/batch_size_fail_threshold_in_kb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigBatchSizeFailThresholdInKbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigBatchSizeFailThresholdInKbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigBatchSizeFailThresholdInKbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigBatchSizeWarnThresholdInKb Log WARN on any batch size exceeding this value in kilobytes. Caution should be taken on increasing the size of this threshold as it can lead to node instability. -*/ -func (a *Client) FindConfigBatchSizeWarnThresholdInKb(params *FindConfigBatchSizeWarnThresholdInKbParams) (*FindConfigBatchSizeWarnThresholdInKbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigBatchSizeWarnThresholdInKbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_batch_size_warn_threshold_in_kb", - Method: "GET", - PathPattern: "/config/batch_size_warn_threshold_in_kb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigBatchSizeWarnThresholdInKbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigBatchSizeWarnThresholdInKbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigBatchSizeWarnThresholdInKbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigBatchlogReplayThrottleInKb Total maximum throttle. Throttling is reduced proportionally to the number of nodes in the cluster. -*/ -func (a *Client) FindConfigBatchlogReplayThrottleInKb(params *FindConfigBatchlogReplayThrottleInKbParams) (*FindConfigBatchlogReplayThrottleInKbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigBatchlogReplayThrottleInKbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_batchlog_replay_throttle_in_kb", - Method: "GET", - PathPattern: "/config/batchlog_replay_throttle_in_kb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigBatchlogReplayThrottleInKbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigBatchlogReplayThrottleInKbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigBatchlogReplayThrottleInKbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigBroadcastAddress The IP address a node tells other nodes in the cluster to contact it by. It allows public and private address to be different. For example, use the broadcast_address parameter in topologies where not all nodes have access to other nodes by their private IP addresses. - -If your Scylla cluster is deployed across multiple Amazon EC2 regions and you use the EC2MultiRegionSnitch , set the broadcast_address to public IP address of the node and the listen_address to the private IP. -*/ -func (a *Client) FindConfigBroadcastAddress(params *FindConfigBroadcastAddressParams) (*FindConfigBroadcastAddressOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigBroadcastAddressParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_broadcast_address", - Method: "GET", - PathPattern: "/config/broadcast_address", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigBroadcastAddressReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigBroadcastAddressOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigBroadcastAddressDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigBroadcastRPCAddress RPC address to broadcast to drivers and other Scylla nodes. This cannot be set to 0.0.0.0. If blank, it is set to the value of the rpc_address or rpc_interface. If rpc_address or rpc_interfaceis set to 0.0.0.0, this property must be set. -*/ -func (a *Client) FindConfigBroadcastRPCAddress(params *FindConfigBroadcastRPCAddressParams) (*FindConfigBroadcastRPCAddressOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigBroadcastRPCAddressParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_broadcast_rpc_address", - Method: "GET", - PathPattern: "/config/broadcast_rpc_address", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigBroadcastRPCAddressReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigBroadcastRPCAddressOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigBroadcastRPCAddressDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigCacheHitRateReadBalancing This boolean controls whether the replicas for read query will be choosen based on cache hit ratio -*/ -func (a *Client) FindConfigCacheHitRateReadBalancing(params *FindConfigCacheHitRateReadBalancingParams) (*FindConfigCacheHitRateReadBalancingOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCacheHitRateReadBalancingParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_cache_hit_rate_read_balancing", - Method: "GET", - PathPattern: "/config/cache_hit_rate_read_balancing", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCacheHitRateReadBalancingReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCacheHitRateReadBalancingOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCacheHitRateReadBalancingDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigCasContentionTimeoutInMs The time that the coordinator continues to retry a CAS (compare and set) operation that contends with other proposals for the same row. -*/ -func (a *Client) FindConfigCasContentionTimeoutInMs(params *FindConfigCasContentionTimeoutInMsParams) (*FindConfigCasContentionTimeoutInMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCasContentionTimeoutInMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_cas_contention_timeout_in_ms", - Method: "GET", - PathPattern: "/config/cas_contention_timeout_in_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCasContentionTimeoutInMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCasContentionTimeoutInMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCasContentionTimeoutInMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigClientEncryptionOptions Enable or disable client-to-node encryption. You must also generate keys and provide the appropriate key and certificate. No custom encryption options are currently enabled. The available options are: - - enabled : (Default: false ) To enable, set to true. - certificate: (Default: conf/scylla.crt) The location of a PEM-encoded x509 certificate used to identify and encrypt the client/server communication. - keyfile: (Default: conf/scylla.key) PEM Key file associated with certificate. - -truststore : (Default: ) Location of the truststore containing the trusted certificate for authenticating remote servers. - -The advanced settings are: - - priority_string : GnuTLS priority string controlling TLS algorithms used/allowed. - require_client_auth : (Default: false ) Enables or disables certificate authentication. - -Related information: Client-to-node encryption -*/ -func (a *Client) FindConfigClientEncryptionOptions(params *FindConfigClientEncryptionOptionsParams) (*FindConfigClientEncryptionOptionsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigClientEncryptionOptionsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_client_encryption_options", - Method: "GET", - PathPattern: "/config/client_encryption_options", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigClientEncryptionOptionsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigClientEncryptionOptionsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigClientEncryptionOptionsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigClusterName The name of the cluster; used to prevent machines in one logical cluster from joining another. All nodes participating in a cluster must have the same value. -*/ -func (a *Client) FindConfigClusterName(params *FindConfigClusterNameParams) (*FindConfigClusterNameOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigClusterNameParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_cluster_name", - Method: "GET", - PathPattern: "/config/cluster_name", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigClusterNameReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigClusterNameOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigClusterNameDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigColumnIndexSizeInKb Granularity of the index of rows within a partition. For huge rows, decrease this setting to improve seek time. If you use key cache, be careful not to make this setting too large because key cache will be overwhelmed. If you're unsure of the size of the rows, it's best to use the default setting. -*/ -func (a *Client) FindConfigColumnIndexSizeInKb(params *FindConfigColumnIndexSizeInKbParams) (*FindConfigColumnIndexSizeInKbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigColumnIndexSizeInKbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_column_index_size_in_kb", - Method: "GET", - PathPattern: "/config/column_index_size_in_kb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigColumnIndexSizeInKbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigColumnIndexSizeInKbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigColumnIndexSizeInKbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigCommitFailurePolicy Policy for commit disk failures: - -die Shut down gossip and Thrift and kill the JVM, so the node can be replaced. -stop Shut down gossip and Thrift, leaving the node effectively dead, but can be inspected using JMX. -stop_commit Shut down the commit log, letting writes collect but continuing to service reads (as in pre-2.0.5 Cassandra). -ignore Ignore fatal errors and let the batches fail. -*/ -func (a *Client) FindConfigCommitFailurePolicy(params *FindConfigCommitFailurePolicyParams) (*FindConfigCommitFailurePolicyOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCommitFailurePolicyParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_commit_failure_policy", - Method: "GET", - PathPattern: "/config/commit_failure_policy", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCommitFailurePolicyReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCommitFailurePolicyOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCommitFailurePolicyDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigCommitlogDirectory The directory where the commit log is stored. For optimal write performance, it is recommended the commit log be on a separate disk partition (ideally, a separate physical device) from the data file directories. -*/ -func (a *Client) FindConfigCommitlogDirectory(params *FindConfigCommitlogDirectoryParams) (*FindConfigCommitlogDirectoryOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCommitlogDirectoryParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_commitlog_directory", - Method: "GET", - PathPattern: "/config/commitlog_directory", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCommitlogDirectoryReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCommitlogDirectoryOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCommitlogDirectoryDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigCommitlogReuseSegments Whether or not to re-use commitlog segments when finished instead of deleting them. Can improve commitlog latency on some file systems. -*/ -func (a *Client) FindConfigCommitlogReuseSegments(params *FindConfigCommitlogReuseSegmentsParams) (*FindConfigCommitlogReuseSegmentsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCommitlogReuseSegmentsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_commitlog_reuse_segments", - Method: "GET", - PathPattern: "/config/commitlog_reuse_segments", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCommitlogReuseSegmentsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCommitlogReuseSegmentsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCommitlogReuseSegmentsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigCommitlogSegmentSizeInMb Sets the size of the individual commitlog file segments. A commitlog segment may be archived, deleted, or recycled after all its data has been flushed to SSTables. This amount of data can potentially include commitlog segments from every table in the system. The default size is usually suitable for most commitlog archiving, but if you want a finer granularity, 8 or 16 MB is reasonable. See Commit log archive configuration. - -Related information: Commit log archive configuration -*/ -func (a *Client) FindConfigCommitlogSegmentSizeInMb(params *FindConfigCommitlogSegmentSizeInMbParams) (*FindConfigCommitlogSegmentSizeInMbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCommitlogSegmentSizeInMbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_commitlog_segment_size_in_mb", - Method: "GET", - PathPattern: "/config/commitlog_segment_size_in_mb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCommitlogSegmentSizeInMbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCommitlogSegmentSizeInMbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCommitlogSegmentSizeInMbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigCommitlogSync The method that Scylla uses to acknowledge writes in milliseconds: - - periodic : Used with commitlog_sync_period_in_ms (Default: 10000 - 10 seconds ) to control how often the commit log is synchronized to disk. Periodic syncs are acknowledged immediately. - batch : Used with commitlog_sync_batch_window_in_ms (Default: disabled **) to control how long Scylla waits for other writes before performing a sync. When using this method, writes are not acknowledged until fsynced to disk. - -Related information: Durability -*/ -func (a *Client) FindConfigCommitlogSync(params *FindConfigCommitlogSyncParams) (*FindConfigCommitlogSyncOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCommitlogSyncParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_commitlog_sync", - Method: "GET", - PathPattern: "/config/commitlog_sync", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCommitlogSyncReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCommitlogSyncOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCommitlogSyncDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigCommitlogSyncBatchWindowInMs Controls how long the system waits for other writes before performing a sync in ”batch” mode. -*/ -func (a *Client) FindConfigCommitlogSyncBatchWindowInMs(params *FindConfigCommitlogSyncBatchWindowInMsParams) (*FindConfigCommitlogSyncBatchWindowInMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCommitlogSyncBatchWindowInMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_commitlog_sync_batch_window_in_ms", - Method: "GET", - PathPattern: "/config/commitlog_sync_batch_window_in_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCommitlogSyncBatchWindowInMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCommitlogSyncBatchWindowInMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCommitlogSyncBatchWindowInMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigCommitlogSyncPeriodInMs Controls how long the system waits for other writes before performing a sync in ”periodic” mode. -*/ -func (a *Client) FindConfigCommitlogSyncPeriodInMs(params *FindConfigCommitlogSyncPeriodInMsParams) (*FindConfigCommitlogSyncPeriodInMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCommitlogSyncPeriodInMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_commitlog_sync_period_in_ms", - Method: "GET", - PathPattern: "/config/commitlog_sync_period_in_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCommitlogSyncPeriodInMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCommitlogSyncPeriodInMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCommitlogSyncPeriodInMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigCommitlogTotalSpaceInMb Total space used for commitlogs. If the used space goes above this value, Scylla rounds up to the next nearest segment multiple and flushes memtables to disk for the oldest commitlog segments, removing those log segments. This reduces the amount of data to replay on startup, and prevents infrequently-updated tables from indefinitely keeping commitlog segments. A small total commitlog space tends to cause more flush activity on less-active tables. - -Related information: Configuring memtable throughput -*/ -func (a *Client) FindConfigCommitlogTotalSpaceInMb(params *FindConfigCommitlogTotalSpaceInMbParams) (*FindConfigCommitlogTotalSpaceInMbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCommitlogTotalSpaceInMbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_commitlog_total_space_in_mb", - Method: "GET", - PathPattern: "/config/commitlog_total_space_in_mb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCommitlogTotalSpaceInMbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCommitlogTotalSpaceInMbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCommitlogTotalSpaceInMbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigCommitlogUseoDsync Whether or not to use O_DSYNC mode for commitlog segments IO. Can improve commitlog latency on some file systems. -*/ -func (a *Client) FindConfigCommitlogUseoDsync(params *FindConfigCommitlogUseoDsyncParams) (*FindConfigCommitlogUseODsyncOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCommitlogUseoDsyncParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_commitlog_use_o_dsync", - Method: "GET", - PathPattern: "/config/commitlog_use_o_dsync", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCommitlogUseoDsyncReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCommitlogUseODsyncOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCommitlogUseoDsyncDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigCompactionEnforceMinThreshold If set to true, enforce the min_threshold option for compactions strictly. If false (default), Scylla may decide to compact even if below min_threshold -*/ -func (a *Client) FindConfigCompactionEnforceMinThreshold(params *FindConfigCompactionEnforceMinThresholdParams) (*FindConfigCompactionEnforceMinThresholdOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCompactionEnforceMinThresholdParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_compaction_enforce_min_threshold", - Method: "GET", - PathPattern: "/config/compaction_enforce_min_threshold", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCompactionEnforceMinThresholdReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCompactionEnforceMinThresholdOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCompactionEnforceMinThresholdDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigCompactionLargeCellWarningThresholdMb Log a warning when writing cells larger than this value -*/ -func (a *Client) FindConfigCompactionLargeCellWarningThresholdMb(params *FindConfigCompactionLargeCellWarningThresholdMbParams) (*FindConfigCompactionLargeCellWarningThresholdMbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCompactionLargeCellWarningThresholdMbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_compaction_large_cell_warning_threshold_mb", - Method: "GET", - PathPattern: "/config/compaction_large_cell_warning_threshold_mb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCompactionLargeCellWarningThresholdMbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCompactionLargeCellWarningThresholdMbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCompactionLargeCellWarningThresholdMbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigCompactionLargePartitionWarningThresholdMb Log a warning when writing partitions larger than this value -*/ -func (a *Client) FindConfigCompactionLargePartitionWarningThresholdMb(params *FindConfigCompactionLargePartitionWarningThresholdMbParams) (*FindConfigCompactionLargePartitionWarningThresholdMbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCompactionLargePartitionWarningThresholdMbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_compaction_large_partition_warning_threshold_mb", - Method: "GET", - PathPattern: "/config/compaction_large_partition_warning_threshold_mb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCompactionLargePartitionWarningThresholdMbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCompactionLargePartitionWarningThresholdMbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCompactionLargePartitionWarningThresholdMbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigCompactionLargeRowWarningThresholdMb Log a warning when writing rows larger than this value -*/ -func (a *Client) FindConfigCompactionLargeRowWarningThresholdMb(params *FindConfigCompactionLargeRowWarningThresholdMbParams) (*FindConfigCompactionLargeRowWarningThresholdMbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCompactionLargeRowWarningThresholdMbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_compaction_large_row_warning_threshold_mb", - Method: "GET", - PathPattern: "/config/compaction_large_row_warning_threshold_mb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCompactionLargeRowWarningThresholdMbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCompactionLargeRowWarningThresholdMbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCompactionLargeRowWarningThresholdMbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigCompactionPreheatKeyCache When set to true , cached row keys are tracked during compaction, and re-cached to their new positions in the compacted SSTable. If you have extremely large key caches for tables, set the value to false ; see Global row and key caches properties. -*/ -func (a *Client) FindConfigCompactionPreheatKeyCache(params *FindConfigCompactionPreheatKeyCacheParams) (*FindConfigCompactionPreheatKeyCacheOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCompactionPreheatKeyCacheParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_compaction_preheat_key_cache", - Method: "GET", - PathPattern: "/config/compaction_preheat_key_cache", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCompactionPreheatKeyCacheReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCompactionPreheatKeyCacheOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCompactionPreheatKeyCacheDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigCompactionRowsCountWarningThreshold Log a warning when writing a number of rows larger than this value -*/ -func (a *Client) FindConfigCompactionRowsCountWarningThreshold(params *FindConfigCompactionRowsCountWarningThresholdParams) (*FindConfigCompactionRowsCountWarningThresholdOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCompactionRowsCountWarningThresholdParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_compaction_rows_count_warning_threshold", - Method: "GET", - PathPattern: "/config/compaction_rows_count_warning_threshold", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCompactionRowsCountWarningThresholdReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCompactionRowsCountWarningThresholdOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCompactionRowsCountWarningThresholdDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigCompactionStaticShares If set to higher than 0, ignore the controller's output and set the compaction shares statically. Do not set this unless you know what you are doing and suspect a problem in the controller. This option will be retired when the controller reaches more maturity -*/ -func (a *Client) FindConfigCompactionStaticShares(params *FindConfigCompactionStaticSharesParams) (*FindConfigCompactionStaticSharesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCompactionStaticSharesParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_compaction_static_shares", - Method: "GET", - PathPattern: "/config/compaction_static_shares", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCompactionStaticSharesReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCompactionStaticSharesOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCompactionStaticSharesDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigCompactionThroughputMbPerSec Throttles compaction to the specified total throughput across the entire system. The faster you insert data, the faster you need to compact in order to keep the SSTable count down. The recommended Value is 16 to 32 times the rate of write throughput (in MBs/second). Setting the value to 0 disables compaction throttling. - -Related information: Configuring compaction -*/ -func (a *Client) FindConfigCompactionThroughputMbPerSec(params *FindConfigCompactionThroughputMbPerSecParams) (*FindConfigCompactionThroughputMbPerSecOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCompactionThroughputMbPerSecParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_compaction_throughput_mb_per_sec", - Method: "GET", - PathPattern: "/config/compaction_throughput_mb_per_sec", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCompactionThroughputMbPerSecReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCompactionThroughputMbPerSecOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCompactionThroughputMbPerSecDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigConcurrentCompactors Sets the number of concurrent compaction processes allowed to run simultaneously on a node, not including validation compactions for anti-entropy repair. Simultaneous compactions help preserve read performance in a mixed read-write workload by mitigating the tendency of small SSTables to accumulate during a single long-running compaction. If compactions run too slowly or too fast, change compaction_throughput_mb_per_sec first. -*/ -func (a *Client) FindConfigConcurrentCompactors(params *FindConfigConcurrentCompactorsParams) (*FindConfigConcurrentCompactorsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigConcurrentCompactorsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_concurrent_compactors", - Method: "GET", - PathPattern: "/config/concurrent_compactors", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigConcurrentCompactorsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigConcurrentCompactorsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigConcurrentCompactorsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigConcurrentCounterWrites Counter writes read the current values before incrementing and writing them back. The recommended value is (16 × number_of_drives) . -*/ -func (a *Client) FindConfigConcurrentCounterWrites(params *FindConfigConcurrentCounterWritesParams) (*FindConfigConcurrentCounterWritesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigConcurrentCounterWritesParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_concurrent_counter_writes", - Method: "GET", - PathPattern: "/config/concurrent_counter_writes", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigConcurrentCounterWritesReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigConcurrentCounterWritesOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigConcurrentCounterWritesDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigConcurrentReads For workloads with more data than can fit in memory, the bottleneck is reads fetching data from disk. Setting to (16 × number_of_drives) allows operations to queue low enough in the stack so that the OS and drives can reorder them. -*/ -func (a *Client) FindConfigConcurrentReads(params *FindConfigConcurrentReadsParams) (*FindConfigConcurrentReadsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigConcurrentReadsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_concurrent_reads", - Method: "GET", - PathPattern: "/config/concurrent_reads", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigConcurrentReadsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigConcurrentReadsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigConcurrentReadsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigConcurrentWrites Writes in Cassandra are rarely I/O bound, so the ideal number of concurrent writes depends on the number of CPU cores in your system. The recommended value is (8 x number_of_cpu_cores). -*/ -func (a *Client) FindConfigConcurrentWrites(params *FindConfigConcurrentWritesParams) (*FindConfigConcurrentWritesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigConcurrentWritesParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_concurrent_writes", - Method: "GET", - PathPattern: "/config/concurrent_writes", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigConcurrentWritesReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigConcurrentWritesOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigConcurrentWritesDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigConsistentClusterManagement Return true if node uses RAFT for cluster management and DDL. -*/ -func (a *Client) FindConfigConsistentClusterManagement(params *FindConfigConsistentClusterManagementParams) (*FindConfigConsistentClusterManagementOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigConsistentClusterManagementParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_consistent_cluster_management", - Method: "GET", - PathPattern: "/config/consistent_cluster_management", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigConsistentClusterManagementReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigConsistentClusterManagementOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigConsistentClusterManagementDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigConsistentRangemovement When set to true, range movements will be consistent. It means: 1) it will refuse to bootstrap a new node if other bootstrapping/leaving/moving nodes detected. 2) data will be streamed to a new node only from the node which is no longer responsible for the token range. Same as -Dcassandra.consistent.rangemovement in cassandra -*/ -func (a *Client) FindConfigConsistentRangemovement(params *FindConfigConsistentRangemovementParams) (*FindConfigConsistentRangemovementOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigConsistentRangemovementParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_consistent_rangemovement", - Method: "GET", - PathPattern: "/config/consistent_rangemovement", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigConsistentRangemovementReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigConsistentRangemovementOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigConsistentRangemovementDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigCounterCacheKeysToSave Number of keys from the counter cache to save. When disabled all keys are saved. -*/ -func (a *Client) FindConfigCounterCacheKeysToSave(params *FindConfigCounterCacheKeysToSaveParams) (*FindConfigCounterCacheKeysToSaveOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCounterCacheKeysToSaveParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_counter_cache_keys_to_save", - Method: "GET", - PathPattern: "/config/counter_cache_keys_to_save", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCounterCacheKeysToSaveReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCounterCacheKeysToSaveOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCounterCacheKeysToSaveDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigCounterCacheSavePeriod Duration after which Cassandra should save the counter cache (keys only). Caches are saved to saved_caches_directory. -*/ -func (a *Client) FindConfigCounterCacheSavePeriod(params *FindConfigCounterCacheSavePeriodParams) (*FindConfigCounterCacheSavePeriodOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCounterCacheSavePeriodParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_counter_cache_save_period", - Method: "GET", - PathPattern: "/config/counter_cache_save_period", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCounterCacheSavePeriodReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCounterCacheSavePeriodOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCounterCacheSavePeriodDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigCounterCacheSizeInMb When no value is specified a minimum of 2.5% of Heap or 50MB. If you perform counter deletes and rely on low gc_grace_seconds, you should disable the counter cache. To disable, set to 0 -*/ -func (a *Client) FindConfigCounterCacheSizeInMb(params *FindConfigCounterCacheSizeInMbParams) (*FindConfigCounterCacheSizeInMbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCounterCacheSizeInMbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_counter_cache_size_in_mb", - Method: "GET", - PathPattern: "/config/counter_cache_size_in_mb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCounterCacheSizeInMbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCounterCacheSizeInMbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCounterCacheSizeInMbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigCounterWriteRequestTimeoutInMs The time that the coordinator waits for counter writes to complete. -*/ -func (a *Client) FindConfigCounterWriteRequestTimeoutInMs(params *FindConfigCounterWriteRequestTimeoutInMsParams) (*FindConfigCounterWriteRequestTimeoutInMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCounterWriteRequestTimeoutInMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_counter_write_request_timeout_in_ms", - Method: "GET", - PathPattern: "/config/counter_write_request_timeout_in_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCounterWriteRequestTimeoutInMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCounterWriteRequestTimeoutInMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCounterWriteRequestTimeoutInMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigCPUScheduler Enable cpu scheduling -*/ -func (a *Client) FindConfigCPUScheduler(params *FindConfigCPUSchedulerParams) (*FindConfigCPUSchedulerOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCPUSchedulerParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_cpu_scheduler", - Method: "GET", - PathPattern: "/config/cpu_scheduler", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCPUSchedulerReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCPUSchedulerOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCPUSchedulerDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigCrossNodeTimeout Enable or disable operation timeout information exchange between nodes (to accurately measure request timeouts). If disabled Cassandra assumes the request was forwarded to the replica instantly by the coordinator. - -CAUTION: -Before enabling this property make sure NTP (network time protocol) is installed and the times are synchronized between the nodes. -*/ -func (a *Client) FindConfigCrossNodeTimeout(params *FindConfigCrossNodeTimeoutParams) (*FindConfigCrossNodeTimeoutOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigCrossNodeTimeoutParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_cross_node_timeout", - Method: "GET", - PathPattern: "/config/cross_node_timeout", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigCrossNodeTimeoutReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigCrossNodeTimeoutOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigCrossNodeTimeoutDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigDataFileDirectories The directory location where table data (SSTables) is stored -*/ -func (a *Client) FindConfigDataFileDirectories(params *FindConfigDataFileDirectoriesParams) (*FindConfigDataFileDirectoriesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigDataFileDirectoriesParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_data_file_directories", - Method: "GET", - PathPattern: "/config/data_file_directories", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigDataFileDirectoriesReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigDataFileDirectoriesOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigDataFileDirectoriesDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigDefaultLogLevel Default Log level -*/ -func (a *Client) FindConfigDefaultLogLevel(params *FindConfigDefaultLogLevelParams) (*FindConfigDefaultLogLevelOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigDefaultLogLevelParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_default_log_level", - Method: "GET", - PathPattern: "/config/default_log_level", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigDefaultLogLevelReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigDefaultLogLevelOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigDefaultLogLevelDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigDefragmentMemoryOnIdle When set to true, will defragment memory when the cpu is idle. This reduces the amount of work Scylla performs when processing client requests. -*/ -func (a *Client) FindConfigDefragmentMemoryOnIdle(params *FindConfigDefragmentMemoryOnIdleParams) (*FindConfigDefragmentMemoryOnIdleOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigDefragmentMemoryOnIdleParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_defragment_memory_on_idle", - Method: "GET", - PathPattern: "/config/defragment_memory_on_idle", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigDefragmentMemoryOnIdleReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigDefragmentMemoryOnIdleOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigDefragmentMemoryOnIdleDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigDeveloperMode Relax environment checks. Setting to true can reduce performance and reliability significantly. -*/ -func (a *Client) FindConfigDeveloperMode(params *FindConfigDeveloperModeParams) (*FindConfigDeveloperModeOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigDeveloperModeParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_developer_mode", - Method: "GET", - PathPattern: "/config/developer_mode", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigDeveloperModeReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigDeveloperModeOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigDeveloperModeDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigDiskFailurePolicy Sets how Scylla responds to disk failure. Recommend settings are stop or best_effort. - - die Shut down gossip and Thrift and kill the JVM for any file system errors or single SSTable errors, so the node can be replaced. - stop_paranoid Shut down gossip and Thrift even for single SSTable errors. - stop Shut down gossip and Thrift, leaving the node effectively dead, but available for inspection using JMX. - best_effort Stop using the failed disk and respond to requests based on the remaining available SSTables. This means you will see obsolete data at consistency level of ONE. - ignore Ignores fatal errors and lets the requests fail; all file system errors are logged but otherwise ignored. Scylla acts as in versions prior to Cassandra 1.2. - -Related information: Handling Disk Failures In Cassandra 1.2 blog and Recovering from a single disk failure using JBOD. -*/ -func (a *Client) FindConfigDiskFailurePolicy(params *FindConfigDiskFailurePolicyParams) (*FindConfigDiskFailurePolicyOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigDiskFailurePolicyParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_disk_failure_policy", - Method: "GET", - PathPattern: "/config/disk_failure_policy", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigDiskFailurePolicyReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigDiskFailurePolicyOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigDiskFailurePolicyDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigDynamicSnitchBadnessThreshold Sets the performance threshold for dynamically routing requests away from a poorly performing node. A value of 0.2 means Cassandra continues to prefer the static snitch values until the node response time is 20% worse than the best performing node. Until the threshold is reached, incoming client requests are statically routed to the closest replica (as determined by the snitch). Having requests consistently routed to a given replica can help keep a working set of data hot when read repair is less than 1. -*/ -func (a *Client) FindConfigDynamicSnitchBadnessThreshold(params *FindConfigDynamicSnitchBadnessThresholdParams) (*FindConfigDynamicSnitchBadnessThresholdOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigDynamicSnitchBadnessThresholdParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_dynamic_snitch_badness_threshold", - Method: "GET", - PathPattern: "/config/dynamic_snitch_badness_threshold", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigDynamicSnitchBadnessThresholdReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigDynamicSnitchBadnessThresholdOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigDynamicSnitchBadnessThresholdDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigDynamicSnitchResetIntervalInMs Time interval in milliseconds to reset all node scores, which allows a bad node to recover. -*/ -func (a *Client) FindConfigDynamicSnitchResetIntervalInMs(params *FindConfigDynamicSnitchResetIntervalInMsParams) (*FindConfigDynamicSnitchResetIntervalInMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigDynamicSnitchResetIntervalInMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_dynamic_snitch_reset_interval_in_ms", - Method: "GET", - PathPattern: "/config/dynamic_snitch_reset_interval_in_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigDynamicSnitchResetIntervalInMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigDynamicSnitchResetIntervalInMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigDynamicSnitchResetIntervalInMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigDynamicSnitchUpdateIntervalInMs The time interval for how often the snitch calculates node scores. Because score calculation is CPU intensive, be careful when reducing this interval. -*/ -func (a *Client) FindConfigDynamicSnitchUpdateIntervalInMs(params *FindConfigDynamicSnitchUpdateIntervalInMsParams) (*FindConfigDynamicSnitchUpdateIntervalInMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigDynamicSnitchUpdateIntervalInMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_dynamic_snitch_update_interval_in_ms", - Method: "GET", - PathPattern: "/config/dynamic_snitch_update_interval_in_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigDynamicSnitchUpdateIntervalInMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigDynamicSnitchUpdateIntervalInMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigDynamicSnitchUpdateIntervalInMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigEnableCache Enable cache -*/ -func (a *Client) FindConfigEnableCache(params *FindConfigEnableCacheParams) (*FindConfigEnableCacheOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigEnableCacheParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_enable_cache", - Method: "GET", - PathPattern: "/config/enable_cache", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigEnableCacheReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigEnableCacheOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigEnableCacheDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigEnableCommitlog Enable commitlog -*/ -func (a *Client) FindConfigEnableCommitlog(params *FindConfigEnableCommitlogParams) (*FindConfigEnableCommitlogOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigEnableCommitlogParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_enable_commitlog", - Method: "GET", - PathPattern: "/config/enable_commitlog", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigEnableCommitlogReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigEnableCommitlogOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigEnableCommitlogDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigEnableDangerousDirectImportOfCassandraCounters Only turn this option on if you want to import tables from Cassandra containing counters, and you are SURE that no counters in that table were created in a version earlier than Cassandra 2.1. It is not enough to have ever since upgraded to newer versions of Cassandra. If you EVER used a version earlier than 2.1 in the cluster where these SSTables come from, DO NOT TURN ON THIS OPTION! You will corrupt your data. You have been warned. -*/ -func (a *Client) FindConfigEnableDangerousDirectImportOfCassandraCounters(params *FindConfigEnableDangerousDirectImportOfCassandraCountersParams) (*FindConfigEnableDangerousDirectImportOfCassandraCountersOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigEnableDangerousDirectImportOfCassandraCountersParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_enable_dangerous_direct_import_of_cassandra_counters", - Method: "GET", - PathPattern: "/config/enable_dangerous_direct_import_of_cassandra_counters", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigEnableDangerousDirectImportOfCassandraCountersReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigEnableDangerousDirectImportOfCassandraCountersOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigEnableDangerousDirectImportOfCassandraCountersDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigEnableDeprecatedPartitioners Enable the byteordered and murmurs partitioners. These partitioners are deprecated and will be removed in a future version. -*/ -func (a *Client) FindConfigEnableDeprecatedPartitioners(params *FindConfigEnableDeprecatedPartitionersParams) (*FindConfigEnableDeprecatedPartitionersOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigEnableDeprecatedPartitionersParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_enable_deprecated_partitioners", - Method: "GET", - PathPattern: "/config/enable_deprecated_partitioners", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigEnableDeprecatedPartitionersReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigEnableDeprecatedPartitionersOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigEnableDeprecatedPartitionersDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigEnableInMemoryDataStore Enable in memory mode (system tables are always persisted) -*/ -func (a *Client) FindConfigEnableInMemoryDataStore(params *FindConfigEnableInMemoryDataStoreParams) (*FindConfigEnableInMemoryDataStoreOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigEnableInMemoryDataStoreParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_enable_in_memory_data_store", - Method: "GET", - PathPattern: "/config/enable_in_memory_data_store", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigEnableInMemoryDataStoreReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigEnableInMemoryDataStoreOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigEnableInMemoryDataStoreDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigEnableKeyspaceColumnFamilyMetrics Enable per keyspace and per column family metrics reporting -*/ -func (a *Client) FindConfigEnableKeyspaceColumnFamilyMetrics(params *FindConfigEnableKeyspaceColumnFamilyMetricsParams) (*FindConfigEnableKeyspaceColumnFamilyMetricsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigEnableKeyspaceColumnFamilyMetricsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_enable_keyspace_column_family_metrics", - Method: "GET", - PathPattern: "/config/enable_keyspace_column_family_metrics", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigEnableKeyspaceColumnFamilyMetricsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigEnableKeyspaceColumnFamilyMetricsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigEnableKeyspaceColumnFamilyMetricsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigEnableShardAwareDrivers Enable native transport drivers to use connection-per-shard for better performance -*/ -func (a *Client) FindConfigEnableShardAwareDrivers(params *FindConfigEnableShardAwareDriversParams) (*FindConfigEnableShardAwareDriversOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigEnableShardAwareDriversParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_enable_shard_aware_drivers", - Method: "GET", - PathPattern: "/config/enable_shard_aware_drivers", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigEnableShardAwareDriversReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigEnableShardAwareDriversOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigEnableShardAwareDriversDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigEnableSstableDataIntegrityCheck Enable interposer which checks for integrity of every sstable write. Performance is affected to some extent as a result. Useful to help debugging problems that may arise at another layers. -*/ -func (a *Client) FindConfigEnableSstableDataIntegrityCheck(params *FindConfigEnableSstableDataIntegrityCheckParams) (*FindConfigEnableSstableDataIntegrityCheckOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigEnableSstableDataIntegrityCheckParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_enable_sstable_data_integrity_check", - Method: "GET", - PathPattern: "/config/enable_sstable_data_integrity_check", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigEnableSstableDataIntegrityCheckReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigEnableSstableDataIntegrityCheckOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigEnableSstableDataIntegrityCheckDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigEnableSstablesMcFormat Enable SSTables 'mc' format to be used as the default file format -*/ -func (a *Client) FindConfigEnableSstablesMcFormat(params *FindConfigEnableSstablesMcFormatParams) (*FindConfigEnableSstablesMcFormatOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigEnableSstablesMcFormatParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_enable_sstables_mc_format", - Method: "GET", - PathPattern: "/config/enable_sstables_mc_format", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigEnableSstablesMcFormatReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigEnableSstablesMcFormatOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigEnableSstablesMcFormatDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigEnableTablets Return true if tablets are enabled. -*/ -func (a *Client) FindConfigEnableTablets(params *FindConfigEnableTabletsParams) (*FindConfigEnableTabletsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigEnableTabletsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_enable_tablets", - Method: "GET", - PathPattern: "/config/enable_tablets", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigEnableTabletsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigEnableTabletsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigEnableTabletsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigEndpointSnitch Set to a class that implements the IEndpointSnitch. Scylla uses snitches for locating nodes and routing requests. - - SimpleSnitch: Use for single-data center deployments or single-zone in public clouds. Does not recognize data center or rack information. It treats strategy order as proximity, which can improve cache locality when disabling read repair. - - GossipingPropertyFileSnitch: Recommended for production. The rack and data center for the local node are defined in the cassandra-rackdc.properties file and propagated to other nodes via gossip. To allow migration from the PropertyFileSnitch, it uses the cassandra-topology.properties file if it is present. - - Ec2Snitch: For EC2 deployments in a single region. Loads region and availability zone information from the EC2 API. The region is treated as the data center and the availability zone as the rack. Uses only private IPs. Subsequently it does not work across multiple regions. - - Ec2MultiRegionSnitch: Uses public IPs as the broadcast_address to allow cross-region connectivity. This means you must also set seed addresses to the public IP and open the storage_port or ssl_storage_port on the public IP firewall. For intra-region traffic, Scylla switches to the private IP after establishing a connection. - - GoogleCloudSnitch: For deployments on Google Cloud Platform across one or more regions. The region is treated as a datacenter and the availability zone is treated as a rack within the datacenter. The communication should occur over private IPs within the same logical network. - - RackInferringSnitch: Proximity is determined by rack and data center, which are assumed to correspond to the 3rd and 2nd octet of each node's IP address, respectively. This snitch is best used as an example for writing a custom snitch class (unless this happens to match your deployment conventions). - -Related information: Snitches -*/ -func (a *Client) FindConfigEndpointSnitch(params *FindConfigEndpointSnitchParams) (*FindConfigEndpointSnitchOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigEndpointSnitchParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_endpoint_snitch", - Method: "GET", - PathPattern: "/config/endpoint_snitch", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigEndpointSnitchReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigEndpointSnitchOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigEndpointSnitchDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigExperimental Set to true to unlock experimental features. -*/ -func (a *Client) FindConfigExperimental(params *FindConfigExperimentalParams) (*FindConfigExperimentalOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigExperimentalParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_experimental", - Method: "GET", - PathPattern: "/config/experimental", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigExperimentalReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigExperimentalOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigExperimentalDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigFdInitialValueMs The initial failure_detector interval time in milliseconds. -*/ -func (a *Client) FindConfigFdInitialValueMs(params *FindConfigFdInitialValueMsParams) (*FindConfigFdInitialValueMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigFdInitialValueMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_fd_initial_value_ms", - Method: "GET", - PathPattern: "/config/fd_initial_value_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigFdInitialValueMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigFdInitialValueMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigFdInitialValueMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigFdMaxIntervalMs The maximum failure_detector interval time in milliseconds. Interval larger than the maximum will be ignored. Larger cluster may need to increase the default. -*/ -func (a *Client) FindConfigFdMaxIntervalMs(params *FindConfigFdMaxIntervalMsParams) (*FindConfigFdMaxIntervalMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigFdMaxIntervalMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_fd_max_interval_ms", - Method: "GET", - PathPattern: "/config/fd_max_interval_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigFdMaxIntervalMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigFdMaxIntervalMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigFdMaxIntervalMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigFileCacheSizeInMb Total memory to use for SSTable-reading buffers. -*/ -func (a *Client) FindConfigFileCacheSizeInMb(params *FindConfigFileCacheSizeInMbParams) (*FindConfigFileCacheSizeInMbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigFileCacheSizeInMbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_file_cache_size_in_mb", - Method: "GET", - PathPattern: "/config/file_cache_size_in_mb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigFileCacheSizeInMbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigFileCacheSizeInMbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigFileCacheSizeInMbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigHintedHandoffEnabled Enable or disable hinted handoff. To enable per data center, add data center list. For example: hinted_handoff_enabled: DC1,DC2. A hint indicates that the write needs to be replayed to an unavailable node. Related information: About hinted handoff writes -*/ -func (a *Client) FindConfigHintedHandoffEnabled(params *FindConfigHintedHandoffEnabledParams) (*FindConfigHintedHandoffEnabledOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigHintedHandoffEnabledParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_hinted_handoff_enabled", - Method: "GET", - PathPattern: "/config/hinted_handoff_enabled", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigHintedHandoffEnabledReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigHintedHandoffEnabledOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigHintedHandoffEnabledDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigHintedHandoffThrottleInKb Maximum throttle per delivery thread in kilobytes per second. This rate reduces proportionally to the number of nodes in the cluster. For example, if there are two nodes in the cluster, each delivery thread will use the maximum rate. If there are three, each node will throttle to half of the maximum, since the two nodes are expected to deliver hints simultaneously. -*/ -func (a *Client) FindConfigHintedHandoffThrottleInKb(params *FindConfigHintedHandoffThrottleInKbParams) (*FindConfigHintedHandoffThrottleInKbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigHintedHandoffThrottleInKbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_hinted_handoff_throttle_in_kb", - Method: "GET", - PathPattern: "/config/hinted_handoff_throttle_in_kb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigHintedHandoffThrottleInKbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigHintedHandoffThrottleInKbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigHintedHandoffThrottleInKbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigHintsDirectory The directory where hints files are stored if hinted handoff is enabled. -*/ -func (a *Client) FindConfigHintsDirectory(params *FindConfigHintsDirectoryParams) (*FindConfigHintsDirectoryOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigHintsDirectoryParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_hints_directory", - Method: "GET", - PathPattern: "/config/hints_directory", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigHintsDirectoryReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigHintsDirectoryOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigHintsDirectoryDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigInMemoryCompactionLimitInMb Size limit for rows being compacted in memory. Larger rows spill to disk and use a slower two-pass compaction process. When this occurs, a message is logged specifying the row key. The recommended value is 5 to 10 percent of the available Java heap size. -*/ -func (a *Client) FindConfigInMemoryCompactionLimitInMb(params *FindConfigInMemoryCompactionLimitInMbParams) (*FindConfigInMemoryCompactionLimitInMbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigInMemoryCompactionLimitInMbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_in_memory_compaction_limit_in_mb", - Method: "GET", - PathPattern: "/config/in_memory_compaction_limit_in_mb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigInMemoryCompactionLimitInMbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigInMemoryCompactionLimitInMbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigInMemoryCompactionLimitInMbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigIncrementalBackups Backs up data updated since the last snapshot was taken. When enabled, Scylla creates a hard link to each SSTable flushed or streamed locally in a backups/ subdirectory of the keyspace data. Removing these links is the operator's responsibility. - -Related information: Enabling incremental backups -*/ -func (a *Client) FindConfigIncrementalBackups(params *FindConfigIncrementalBackupsParams) (*FindConfigIncrementalBackupsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigIncrementalBackupsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_incremental_backups", - Method: "GET", - PathPattern: "/config/incremental_backups", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigIncrementalBackupsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigIncrementalBackupsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigIncrementalBackupsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigIndexSummaryCapacityInMb Fixed memory pool size in MB for SSTable index summaries. If the memory usage of all index summaries exceeds this limit, any SSTables with low read rates shrink their index summaries to meet this limit. This is a best-effort process. In extreme conditions, Cassandra may need to use more than this amount of memory. -*/ -func (a *Client) FindConfigIndexSummaryCapacityInMb(params *FindConfigIndexSummaryCapacityInMbParams) (*FindConfigIndexSummaryCapacityInMbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigIndexSummaryCapacityInMbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_index_summary_capacity_in_mb", - Method: "GET", - PathPattern: "/config/index_summary_capacity_in_mb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigIndexSummaryCapacityInMbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigIndexSummaryCapacityInMbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigIndexSummaryCapacityInMbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigIndexSummaryResizeIntervalInMinutes How frequently index summaries should be re-sampled. This is done periodically to redistribute memory from the fixed-size pool to SSTables proportional their recent read rates. To disable, set to -1. This leaves existing index summaries at their current sampling level. -*/ -func (a *Client) FindConfigIndexSummaryResizeIntervalInMinutes(params *FindConfigIndexSummaryResizeIntervalInMinutesParams) (*FindConfigIndexSummaryResizeIntervalInMinutesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigIndexSummaryResizeIntervalInMinutesParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_index_summary_resize_interval_in_minutes", - Method: "GET", - PathPattern: "/config/index_summary_resize_interval_in_minutes", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigIndexSummaryResizeIntervalInMinutesReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigIndexSummaryResizeIntervalInMinutesOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigIndexSummaryResizeIntervalInMinutesDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigInitialToken Used in the single-node-per-token architecture, where a node owns exactly one contiguous range in the ring space. Setting this property overrides num_tokens. - -If you not using vnodes or have num_tokens set it to 1 or unspecified (#num_tokens), you should always specify this parameter when setting up a production cluster for the first time and when adding capacity. For more information, see this parameter in the Cassandra 1.1 Node and Cluster Configuration documentation. -This parameter can be used with num_tokens (vnodes ) in special cases such as Restoring from a snapshot. -*/ -func (a *Client) FindConfigInitialToken(params *FindConfigInitialTokenParams) (*FindConfigInitialTokenOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigInitialTokenParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_initial_token", - Method: "GET", - PathPattern: "/config/initial_token", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigInitialTokenReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigInitialTokenOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigInitialTokenDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigInterDcStreamThroughputOutboundMegabitsPerSec Throttles all streaming file transfer between the data centers. This setting allows throttles streaming throughput betweens data centers in addition to throttling all network stream traffic as configured with stream_throughput_outbound_megabits_per_sec. -*/ -func (a *Client) FindConfigInterDcStreamThroughputOutboundMegabitsPerSec(params *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams) (*FindConfigInterDcStreamThroughputOutboundMegabitsPerSecOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_inter_dc_stream_throughput_outbound_megabits_per_sec", - Method: "GET", - PathPattern: "/config/inter_dc_stream_throughput_outbound_megabits_per_sec", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigInterDcStreamThroughputOutboundMegabitsPerSecReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigInterDcStreamThroughputOutboundMegabitsPerSecOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigInterDcStreamThroughputOutboundMegabitsPerSecDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigInterDcTCPNodelay Enable or disable tcp_nodelay for inter-data center communication. When disabled larger, but fewer, network packets are sent. This reduces overhead from the TCP protocol itself. However, if cross data-center responses are blocked, it will increase latency. -*/ -func (a *Client) FindConfigInterDcTCPNodelay(params *FindConfigInterDcTCPNodelayParams) (*FindConfigInterDcTCPNodelayOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigInterDcTCPNodelayParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_inter_dc_tcp_nodelay", - Method: "GET", - PathPattern: "/config/inter_dc_tcp_nodelay", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigInterDcTCPNodelayReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigInterDcTCPNodelayOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigInterDcTCPNodelayDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigInternodeAuthenticator Internode authentication backend. It implements org.apache.cassandra.auth.AllowAllInternodeAuthenticator to allows or disallow connections from peer nodes. -*/ -func (a *Client) FindConfigInternodeAuthenticator(params *FindConfigInternodeAuthenticatorParams) (*FindConfigInternodeAuthenticatorOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigInternodeAuthenticatorParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_internode_authenticator", - Method: "GET", - PathPattern: "/config/internode_authenticator", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigInternodeAuthenticatorReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigInternodeAuthenticatorOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigInternodeAuthenticatorDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigInternodeCompression Controls whether traffic between nodes is compressed. The valid values are: - -all: All traffic is compressed. -dc : Traffic between data centers is compressed. -none : No compression. -*/ -func (a *Client) FindConfigInternodeCompression(params *FindConfigInternodeCompressionParams) (*FindConfigInternodeCompressionOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigInternodeCompressionParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_internode_compression", - Method: "GET", - PathPattern: "/config/internode_compression", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigInternodeCompressionReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigInternodeCompressionOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigInternodeCompressionDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigInternodeRecvBuffSizeInBytes Sets the receiving socket buffer size in bytes for inter-node calls. -*/ -func (a *Client) FindConfigInternodeRecvBuffSizeInBytes(params *FindConfigInternodeRecvBuffSizeInBytesParams) (*FindConfigInternodeRecvBuffSizeInBytesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigInternodeRecvBuffSizeInBytesParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_internode_recv_buff_size_in_bytes", - Method: "GET", - PathPattern: "/config/internode_recv_buff_size_in_bytes", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigInternodeRecvBuffSizeInBytesReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigInternodeRecvBuffSizeInBytesOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigInternodeRecvBuffSizeInBytesDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigInternodeSendBuffSizeInBytes Sets the sending socket buffer size in bytes for inter-node calls. - -When setting this parameter and internode_recv_buff_size_in_bytes, the buffer size is limited by net.core.wmem_max. When unset, buffer size is defined by net.ipv4.tcp_wmem. See man tcp and: - - /proc/sys/net/core/wmem_max - /proc/sys/net/core/rmem_max - /proc/sys/net/ipv4/tcp_wmem - /proc/sys/net/ipv4/tcp_wmem -*/ -func (a *Client) FindConfigInternodeSendBuffSizeInBytes(params *FindConfigInternodeSendBuffSizeInBytesParams) (*FindConfigInternodeSendBuffSizeInBytesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigInternodeSendBuffSizeInBytesParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_internode_send_buff_size_in_bytes", - Method: "GET", - PathPattern: "/config/internode_send_buff_size_in_bytes", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigInternodeSendBuffSizeInBytesReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigInternodeSendBuffSizeInBytesOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigInternodeSendBuffSizeInBytesDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigJoinRing When set to true, a node will join the token ring. When set to false, a node will not join the token ring. User can use nodetool join to initiate ring joinging later. Same as -Dcassandra.join_ring in cassandra. -*/ -func (a *Client) FindConfigJoinRing(params *FindConfigJoinRingParams) (*FindConfigJoinRingOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigJoinRingParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_join_ring", - Method: "GET", - PathPattern: "/config/join_ring", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigJoinRingReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigJoinRingOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigJoinRingDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigKeyCacheKeysToSave Number of keys from the key cache to save. (0: all) -*/ -func (a *Client) FindConfigKeyCacheKeysToSave(params *FindConfigKeyCacheKeysToSaveParams) (*FindConfigKeyCacheKeysToSaveOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigKeyCacheKeysToSaveParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_key_cache_keys_to_save", - Method: "GET", - PathPattern: "/config/key_cache_keys_to_save", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigKeyCacheKeysToSaveReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigKeyCacheKeysToSaveOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigKeyCacheKeysToSaveDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigKeyCacheSavePeriod Duration in seconds that keys are saved in cache. Caches are saved to saved_caches_directory. Saved caches greatly improve cold-start speeds and has relatively little effect on I/O. -*/ -func (a *Client) FindConfigKeyCacheSavePeriod(params *FindConfigKeyCacheSavePeriodParams) (*FindConfigKeyCacheSavePeriodOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigKeyCacheSavePeriodParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_key_cache_save_period", - Method: "GET", - PathPattern: "/config/key_cache_save_period", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigKeyCacheSavePeriodReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigKeyCacheSavePeriodOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigKeyCacheSavePeriodDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigKeyCacheSizeInMb A global cache setting for tables. It is the maximum size of the key cache in memory. To disable set to 0. - -Related information: nodetool setcachecapacity. -*/ -func (a *Client) FindConfigKeyCacheSizeInMb(params *FindConfigKeyCacheSizeInMbParams) (*FindConfigKeyCacheSizeInMbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigKeyCacheSizeInMbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_key_cache_size_in_mb", - Method: "GET", - PathPattern: "/config/key_cache_size_in_mb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigKeyCacheSizeInMbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigKeyCacheSizeInMbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigKeyCacheSizeInMbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigLargeMemoryAllocationWarningThreshold Warn about memory allocations above this size; set to zero to disable -*/ -func (a *Client) FindConfigLargeMemoryAllocationWarningThreshold(params *FindConfigLargeMemoryAllocationWarningThresholdParams) (*FindConfigLargeMemoryAllocationWarningThresholdOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigLargeMemoryAllocationWarningThresholdParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_large_memory_allocation_warning_threshold", - Method: "GET", - PathPattern: "/config/large_memory_allocation_warning_threshold", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigLargeMemoryAllocationWarningThresholdReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigLargeMemoryAllocationWarningThresholdOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigLargeMemoryAllocationWarningThresholdDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigListenAddress The IP address or hostname that Scylla binds to for connecting to other Scylla nodes. Set this parameter or listen_interface, not both. You must change the default setting for multiple nodes to communicate: - -Generally set to empty. If the node is properly configured (host name, name resolution, and so on), Scylla uses InetAddress.getLocalHost() to get the local address from the system. -For a single node cluster, you can use the default setting (localhost). -If Scylla can't find the correct address, you must specify the IP address or host name. -Never specify 0.0.0.0; it is always wrong. -*/ -func (a *Client) FindConfigListenAddress(params *FindConfigListenAddressParams) (*FindConfigListenAddressOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigListenAddressParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_listen_address", - Method: "GET", - PathPattern: "/config/listen_address", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigListenAddressReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigListenAddressOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigListenAddressDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigListenInterface The interface that Scylla binds to for connecting to other Scylla nodes. Interfaces must correspond to a single address, IP aliasing is not supported. See listen_address. -*/ -func (a *Client) FindConfigListenInterface(params *FindConfigListenInterfaceParams) (*FindConfigListenInterfaceOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigListenInterfaceParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_listen_interface", - Method: "GET", - PathPattern: "/config/listen_interface", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigListenInterfaceReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigListenInterfaceOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigListenInterfaceDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigListenOnBroadcastAddress When using multiple physical network interfaces, set this to true to listen on broadcast_address in addition to the listen_address, allowing nodes to communicate in both interfaces. Ignore this property if the network configuration automatically routes between the public and private networks such as EC2. -*/ -func (a *Client) FindConfigListenOnBroadcastAddress(params *FindConfigListenOnBroadcastAddressParams) (*FindConfigListenOnBroadcastAddressOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigListenOnBroadcastAddressParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_listen_on_broadcast_address", - Method: "GET", - PathPattern: "/config/listen_on_broadcast_address", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigListenOnBroadcastAddressReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigListenOnBroadcastAddressOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigListenOnBroadcastAddressDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigLoadBalance CQL request load balancing: 'none' or round-robin' -*/ -func (a *Client) FindConfigLoadBalance(params *FindConfigLoadBalanceParams) (*FindConfigLoadBalanceOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigLoadBalanceParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_load_balance", - Method: "GET", - PathPattern: "/config/load_balance", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigLoadBalanceReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigLoadBalanceOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigLoadBalanceDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigLoadRingState When set to true, load tokens and host_ids previously saved. Same as -Dcassandra.load_ring_state in cassandra. -*/ -func (a *Client) FindConfigLoadRingState(params *FindConfigLoadRingStateParams) (*FindConfigLoadRingStateOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigLoadRingStateParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_load_ring_state", - Method: "GET", - PathPattern: "/config/load_ring_state", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigLoadRingStateReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigLoadRingStateOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigLoadRingStateDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigLogToStdout Log to stdout -*/ -func (a *Client) FindConfigLogToStdout(params *FindConfigLogToStdoutParams) (*FindConfigLogToStdoutOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigLogToStdoutParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_log_to_stdout", - Method: "GET", - PathPattern: "/config/log_to_stdout", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigLogToStdoutReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigLogToStdoutOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigLogToStdoutDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigLogToSyslog Log to syslog -*/ -func (a *Client) FindConfigLogToSyslog(params *FindConfigLogToSyslogParams) (*FindConfigLogToSyslogOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigLogToSyslogParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_log_to_syslog", - Method: "GET", - PathPattern: "/config/log_to_syslog", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigLogToSyslogReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigLogToSyslogOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigLogToSyslogDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigLoggerLogLevel Logger log levels -*/ -func (a *Client) FindConfigLoggerLogLevel(params *FindConfigLoggerLogLevelParams) (*FindConfigLoggerLogLevelOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigLoggerLogLevelParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_logger_log_level", - Method: "GET", - PathPattern: "/config/logger_log_level", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigLoggerLogLevelReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigLoggerLogLevelOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigLoggerLogLevelDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigLsaReclamationStep Minimum number of segments to reclaim in a single step -*/ -func (a *Client) FindConfigLsaReclamationStep(params *FindConfigLsaReclamationStepParams) (*FindConfigLsaReclamationStepOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigLsaReclamationStepParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_lsa_reclamation_step", - Method: "GET", - PathPattern: "/config/lsa_reclamation_step", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigLsaReclamationStepReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigLsaReclamationStepOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigLsaReclamationStepDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigMaxHintWindowInMs Maximum amount of time that hints are generates hints for an unresponsive node. After this interval, new hints are no longer generated until the node is back up and responsive. If the node goes down again, a new interval begins. This setting can prevent a sudden demand for resources when a node is brought back online and the rest of the cluster attempts to replay a large volume of hinted writes. - -Related information: Failure detection and recovery -*/ -func (a *Client) FindConfigMaxHintWindowInMs(params *FindConfigMaxHintWindowInMsParams) (*FindConfigMaxHintWindowInMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigMaxHintWindowInMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_max_hint_window_in_ms", - Method: "GET", - PathPattern: "/config/max_hint_window_in_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigMaxHintWindowInMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigMaxHintWindowInMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigMaxHintWindowInMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigMaxHintsDeliveryThreads Number of threads with which to deliver hints. In multiple data-center deployments, consider increasing this number because cross data-center handoff is generally slower. -*/ -func (a *Client) FindConfigMaxHintsDeliveryThreads(params *FindConfigMaxHintsDeliveryThreadsParams) (*FindConfigMaxHintsDeliveryThreadsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigMaxHintsDeliveryThreadsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_max_hints_delivery_threads", - Method: "GET", - PathPattern: "/config/max_hints_delivery_threads", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigMaxHintsDeliveryThreadsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigMaxHintsDeliveryThreadsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigMaxHintsDeliveryThreadsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigMemoryAllocator The off-heap memory allocator. In addition to caches, this property affects storage engine meta data. Supported values: - NativeAllocator - JEMallocAllocator - -Experiments show that jemalloc saves some memory compared to the native allocator because it is more fragmentation resistant. To use, install jemalloc as a library and modify cassandra-env.sh (instructions in file). -*/ -func (a *Client) FindConfigMemoryAllocator(params *FindConfigMemoryAllocatorParams) (*FindConfigMemoryAllocatorOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigMemoryAllocatorParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_memory_allocator", - Method: "GET", - PathPattern: "/config/memory_allocator", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigMemoryAllocatorReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigMemoryAllocatorOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigMemoryAllocatorDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigMemtableAllocationType Specify the way Cassandra allocates and manages memtable memory. See Off-heap memtables in Cassandra 2.1. Options are: - -heap_buffers On heap NIO (non-blocking I/O) buffers. -offheap_buffers Off heap (direct) NIO buffers. -offheap_objects Native memory, eliminating NIO buffer heap overhead. -*/ -func (a *Client) FindConfigMemtableAllocationType(params *FindConfigMemtableAllocationTypeParams) (*FindConfigMemtableAllocationTypeOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigMemtableAllocationTypeParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_memtable_allocation_type", - Method: "GET", - PathPattern: "/config/memtable_allocation_type", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigMemtableAllocationTypeReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigMemtableAllocationTypeOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigMemtableAllocationTypeDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigMemtableCleanupThreshold Ratio of occupied non-flushing memtable size to total permitted size for triggering a flush of the largest memtable. Larger values mean larger flushes and less compaction, but also less concurrent flush activity, which can make it difficult to keep your disks saturated under heavy write load. -*/ -func (a *Client) FindConfigMemtableCleanupThreshold(params *FindConfigMemtableCleanupThresholdParams) (*FindConfigMemtableCleanupThresholdOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigMemtableCleanupThresholdParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_memtable_cleanup_threshold", - Method: "GET", - PathPattern: "/config/memtable_cleanup_threshold", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigMemtableCleanupThresholdReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigMemtableCleanupThresholdOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigMemtableCleanupThresholdDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigMemtableFlushQueueSize The number of full memtables to allow pending flush (memtables waiting for a write thread). At a minimum, set to the maximum number of indexes created on a single table. - -Related information: Flushing data from the memtable -*/ -func (a *Client) FindConfigMemtableFlushQueueSize(params *FindConfigMemtableFlushQueueSizeParams) (*FindConfigMemtableFlushQueueSizeOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigMemtableFlushQueueSizeParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_memtable_flush_queue_size", - Method: "GET", - PathPattern: "/config/memtable_flush_queue_size", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigMemtableFlushQueueSizeReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigMemtableFlushQueueSizeOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigMemtableFlushQueueSizeDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigMemtableFlushStaticShares If set to higher than 0, ignore the controller's output and set the memtable shares statically. Do not set this unless you know what you are doing and suspect a problem in the controller. This option will be retired when the controller reaches more maturity -*/ -func (a *Client) FindConfigMemtableFlushStaticShares(params *FindConfigMemtableFlushStaticSharesParams) (*FindConfigMemtableFlushStaticSharesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigMemtableFlushStaticSharesParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_memtable_flush_static_shares", - Method: "GET", - PathPattern: "/config/memtable_flush_static_shares", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigMemtableFlushStaticSharesReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigMemtableFlushStaticSharesOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigMemtableFlushStaticSharesDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigMemtableFlushWriters Sets the number of memtable flush writer threads. These threads are blocked by disk I/O, and each one holds a memtable in memory while blocked. If you have a large Java heap size and many data directories, you can increase the value for better flush performance. -*/ -func (a *Client) FindConfigMemtableFlushWriters(params *FindConfigMemtableFlushWritersParams) (*FindConfigMemtableFlushWritersOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigMemtableFlushWritersParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_memtable_flush_writers", - Method: "GET", - PathPattern: "/config/memtable_flush_writers", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigMemtableFlushWritersReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigMemtableFlushWritersOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigMemtableFlushWritersDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigMemtableHeapSpaceInMb Total permitted memory to use for memtables. Triggers a flush based on memtable_cleanup_threshold. Cassandra stops accepting writes when the limit is exceeded until a flush completes. If unset, sets to default. -*/ -func (a *Client) FindConfigMemtableHeapSpaceInMb(params *FindConfigMemtableHeapSpaceInMbParams) (*FindConfigMemtableHeapSpaceInMbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigMemtableHeapSpaceInMbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_memtable_heap_space_in_mb", - Method: "GET", - PathPattern: "/config/memtable_heap_space_in_mb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigMemtableHeapSpaceInMbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigMemtableHeapSpaceInMbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigMemtableHeapSpaceInMbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigMemtableOffheapSpaceInMb See memtable_heap_space_in_mb -*/ -func (a *Client) FindConfigMemtableOffheapSpaceInMb(params *FindConfigMemtableOffheapSpaceInMbParams) (*FindConfigMemtableOffheapSpaceInMbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigMemtableOffheapSpaceInMbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_memtable_offheap_space_in_mb", - Method: "GET", - PathPattern: "/config/memtable_offheap_space_in_mb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigMemtableOffheapSpaceInMbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigMemtableOffheapSpaceInMbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigMemtableOffheapSpaceInMbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigMemtableTotalSpaceInMb Specifies the total memory used for all memtables on a node. This replaces the per-table storage settings memtable_operations_in_millions and memtable_throughput_in_mb. -*/ -func (a *Client) FindConfigMemtableTotalSpaceInMb(params *FindConfigMemtableTotalSpaceInMbParams) (*FindConfigMemtableTotalSpaceInMbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigMemtableTotalSpaceInMbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_memtable_total_space_in_mb", - Method: "GET", - PathPattern: "/config/memtable_total_space_in_mb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigMemtableTotalSpaceInMbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigMemtableTotalSpaceInMbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigMemtableTotalSpaceInMbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigMurmur3PartitionerIgnoreMsbBits Number of most siginificant token bits to ignore in murmur3 partitioner; increase for very large clusters -*/ -func (a *Client) FindConfigMurmur3PartitionerIgnoreMsbBits(params *FindConfigMurmur3PartitionerIgnoreMsbBitsParams) (*FindConfigMurmur3PartitionerIgnoreMsbBitsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigMurmur3PartitionerIgnoreMsbBitsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_murmur3_partitioner_ignore_msb_bits", - Method: "GET", - PathPattern: "/config/murmur3_partitioner_ignore_msb_bits", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigMurmur3PartitionerIgnoreMsbBitsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigMurmur3PartitionerIgnoreMsbBitsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigMurmur3PartitionerIgnoreMsbBitsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigNativeTransportMaxFrameSizeInMb The maximum size of allowed frame. Frame (requests) larger than this are rejected as invalid. -*/ -func (a *Client) FindConfigNativeTransportMaxFrameSizeInMb(params *FindConfigNativeTransportMaxFrameSizeInMbParams) (*FindConfigNativeTransportMaxFrameSizeInMbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigNativeTransportMaxFrameSizeInMbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_native_transport_max_frame_size_in_mb", - Method: "GET", - PathPattern: "/config/native_transport_max_frame_size_in_mb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigNativeTransportMaxFrameSizeInMbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigNativeTransportMaxFrameSizeInMbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigNativeTransportMaxFrameSizeInMbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigNativeTransportMaxThreads The maximum number of thread handling requests. The meaning is the same as rpc_max_threads. - -Default is different (128 versus unlimited). -No corresponding native_transport_min_threads. -Idle threads are stopped after 30 seconds. -*/ -func (a *Client) FindConfigNativeTransportMaxThreads(params *FindConfigNativeTransportMaxThreadsParams) (*FindConfigNativeTransportMaxThreadsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigNativeTransportMaxThreadsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_native_transport_max_threads", - Method: "GET", - PathPattern: "/config/native_transport_max_threads", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigNativeTransportMaxThreadsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigNativeTransportMaxThreadsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigNativeTransportMaxThreadsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigNativeTransportPort Port on which the CQL native transport listens for clients. -*/ -func (a *Client) FindConfigNativeTransportPort(params *FindConfigNativeTransportPortParams) (*FindConfigNativeTransportPortOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigNativeTransportPortParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_native_transport_port", - Method: "GET", - PathPattern: "/config/native_transport_port", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigNativeTransportPortReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigNativeTransportPortOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigNativeTransportPortDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigNativeTransportPortSsl Port on which the CQL TLS native transport listens for clients.Enabling client encryption and keeping native_transport_port_ssl disabled will use encryptionfor native_transport_port. Setting native_transport_port_ssl to a different valuefrom native_transport_port will use encryption for native_transport_port_ssl whilekeeping native_transport_port unencrypted -*/ -func (a *Client) FindConfigNativeTransportPortSsl(params *FindConfigNativeTransportPortSslParams) (*FindConfigNativeTransportPortSslOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigNativeTransportPortSslParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_native_transport_port_ssl", - Method: "GET", - PathPattern: "/config/native_transport_port_ssl", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigNativeTransportPortSslReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigNativeTransportPortSslOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigNativeTransportPortSslDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigNumTokens Defines the number of tokens randomly assigned to this node on the ring when using virtual nodes (vnodes). The more tokens, relative to other nodes, the larger the proportion of data that the node stores. Generally all nodes should have the same number of tokens assuming equal hardware capability. The recommended value is 256. If unspecified (#num_tokens), Scylla uses 1 (equivalent to #num_tokens : 1) for legacy compatibility and uses the initial_token setting. - -If not using vnodes, comment #num_tokens : 256 or set num_tokens : 1 and use initial_token. If you already have an existing cluster with one token per node and wish to migrate to vnodes, see Enabling virtual nodes on an existing production cluster. -Note: If using DataStax Enterprise, the default setting of this property depends on the type of node and type of install. -*/ -func (a *Client) FindConfigNumTokens(params *FindConfigNumTokensParams) (*FindConfigNumTokensOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigNumTokensParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_num_tokens", - Method: "GET", - PathPattern: "/config/num_tokens", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigNumTokensReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigNumTokensOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigNumTokensDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigObjectStorageEndpoints Returns configured object storage endpoints -*/ -func (a *Client) FindConfigObjectStorageEndpoints(params *FindConfigObjectStorageEndpointsParams) (*FindConfigObjectStorageEndpointsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigObjectStorageEndpointsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_object_storage_endpoints", - Method: "GET", - PathPattern: "/config/object_storage_endpoints", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigObjectStorageEndpointsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigObjectStorageEndpointsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigObjectStorageEndpointsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigOverrideDecommission Set true to force a decommissioned node to join the cluster -*/ -func (a *Client) FindConfigOverrideDecommission(params *FindConfigOverrideDecommissionParams) (*FindConfigOverrideDecommissionOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigOverrideDecommissionParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_override_decommission", - Method: "GET", - PathPattern: "/config/override_decommission", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigOverrideDecommissionReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigOverrideDecommissionOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigOverrideDecommissionDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigPartitioner Distributes rows (by partition key) across all nodes in the cluster. Any IPartitioner may be used, including your own as long as it is in the class path. For new clusters use the default partitioner. - -Scylla provides the following partitioners for backwards compatibility: - - RandomPartitioner - ByteOrderedPartitioner - OrderPreservingPartitioner (deprecated) - -Related information: Partitioners -*/ -func (a *Client) FindConfigPartitioner(params *FindConfigPartitionerParams) (*FindConfigPartitionerOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigPartitionerParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_partitioner", - Method: "GET", - PathPattern: "/config/partitioner", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigPartitionerReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigPartitionerOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigPartitionerDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigPermissionsCacheMaxEntries Maximum cached permission entries. Must have a non-zero value if permissions caching is enabled (see a permissions_validity_in_ms description). -*/ -func (a *Client) FindConfigPermissionsCacheMaxEntries(params *FindConfigPermissionsCacheMaxEntriesParams) (*FindConfigPermissionsCacheMaxEntriesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigPermissionsCacheMaxEntriesParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_permissions_cache_max_entries", - Method: "GET", - PathPattern: "/config/permissions_cache_max_entries", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigPermissionsCacheMaxEntriesReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigPermissionsCacheMaxEntriesOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigPermissionsCacheMaxEntriesDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigPermissionsUpdateIntervalInMs Refresh interval for permissions cache (if enabled). After this interval, cache entries become eligible for refresh. An async reload is scheduled every permissions_update_interval_in_ms time period and the old value is returned until it completes. If permissions_validity_in_ms has a non-zero value, then this property must also have a non-zero value. It's recommended to set this value to be at least 3 times smaller than the permissions_validity_in_ms. -*/ -func (a *Client) FindConfigPermissionsUpdateIntervalInMs(params *FindConfigPermissionsUpdateIntervalInMsParams) (*FindConfigPermissionsUpdateIntervalInMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigPermissionsUpdateIntervalInMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_permissions_update_interval_in_ms", - Method: "GET", - PathPattern: "/config/permissions_update_interval_in_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigPermissionsUpdateIntervalInMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigPermissionsUpdateIntervalInMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigPermissionsUpdateIntervalInMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigPermissionsValidityInMs How long permissions in cache remain valid. Depending on the authorizer, such as CassandraAuthorizer, fetching permissions can be resource intensive. Permissions caching is disabled when this property is set to 0 or when AllowAllAuthorizer is used. The cached value is considered valid as long as both its value is not older than the permissions_validity_in_ms and the cached value has been read at least once during the permissions_validity_in_ms time frame. If any of these two conditions doesn't hold the cached value is going to be evicted from the cache. - -Related information: Object permissions -*/ -func (a *Client) FindConfigPermissionsValidityInMs(params *FindConfigPermissionsValidityInMsParams) (*FindConfigPermissionsValidityInMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigPermissionsValidityInMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_permissions_validity_in_ms", - Method: "GET", - PathPattern: "/config/permissions_validity_in_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigPermissionsValidityInMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigPermissionsValidityInMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigPermissionsValidityInMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigPhiConvictThreshold Adjusts the sensitivity of the failure detector on an exponential scale. Generally this setting never needs adjusting. - -Related information: Failure detection and recovery -*/ -func (a *Client) FindConfigPhiConvictThreshold(params *FindConfigPhiConvictThresholdParams) (*FindConfigPhiConvictThresholdOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigPhiConvictThresholdParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_phi_convict_threshold", - Method: "GET", - PathPattern: "/config/phi_convict_threshold", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigPhiConvictThresholdReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigPhiConvictThresholdOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigPhiConvictThresholdDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigPreheatKernelPageCache Enable or disable kernel page cache preheating from contents of the key cache after compaction. When enabled it preheats only first page (4KB) of each row to optimize for sequential access. It can be harmful for fat rows, see CASSANDRA-4937 for more details. -*/ -func (a *Client) FindConfigPreheatKernelPageCache(params *FindConfigPreheatKernelPageCacheParams) (*FindConfigPreheatKernelPageCacheOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigPreheatKernelPageCacheParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_preheat_kernel_page_cache", - Method: "GET", - PathPattern: "/config/preheat_kernel_page_cache", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigPreheatKernelPageCacheReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigPreheatKernelPageCacheOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigPreheatKernelPageCacheDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigPrometheusAddress Prometheus listening address -*/ -func (a *Client) FindConfigPrometheusAddress(params *FindConfigPrometheusAddressParams) (*FindConfigPrometheusAddressOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigPrometheusAddressParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_prometheus_address", - Method: "GET", - PathPattern: "/config/prometheus_address", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigPrometheusAddressReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigPrometheusAddressOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigPrometheusAddressDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigPrometheusPort Prometheus port, set to zero to disable -*/ -func (a *Client) FindConfigPrometheusPort(params *FindConfigPrometheusPortParams) (*FindConfigPrometheusPortOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigPrometheusPortParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_prometheus_port", - Method: "GET", - PathPattern: "/config/prometheus_port", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigPrometheusPortReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigPrometheusPortOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigPrometheusPortDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigPrometheusPrefix Set the prefix of the exported Prometheus metrics. Changing this will break Scylla's dashboard compatibility, do not change unless you know what you are doing. -*/ -func (a *Client) FindConfigPrometheusPrefix(params *FindConfigPrometheusPrefixParams) (*FindConfigPrometheusPrefixOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigPrometheusPrefixParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_prometheus_prefix", - Method: "GET", - PathPattern: "/config/prometheus_prefix", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigPrometheusPrefixReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigPrometheusPrefixOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigPrometheusPrefixDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigRangeRequestTimeoutInMs The time in milliseconds that the coordinator waits for sequential or index scans to complete. -*/ -func (a *Client) FindConfigRangeRequestTimeoutInMs(params *FindConfigRangeRequestTimeoutInMsParams) (*FindConfigRangeRequestTimeoutInMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigRangeRequestTimeoutInMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_range_request_timeout_in_ms", - Method: "GET", - PathPattern: "/config/range_request_timeout_in_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigRangeRequestTimeoutInMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigRangeRequestTimeoutInMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigRangeRequestTimeoutInMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigReadRequestTimeoutInMs The time that the coordinator waits for read operations to complete -*/ -func (a *Client) FindConfigReadRequestTimeoutInMs(params *FindConfigReadRequestTimeoutInMsParams) (*FindConfigReadRequestTimeoutInMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigReadRequestTimeoutInMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_read_request_timeout_in_ms", - Method: "GET", - PathPattern: "/config/read_request_timeout_in_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigReadRequestTimeoutInMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigReadRequestTimeoutInMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigReadRequestTimeoutInMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigReduceCacheCapacityTo Sets the size percentage to which maximum cache capacity is reduced when Java heap usage reaches the threshold defined by reduce_cache_sizes_at. Together with flush_largest_memtables_at, these properties constitute an emergency measure for preventing sudden out-of-memory (OOM) errors. -*/ -func (a *Client) FindConfigReduceCacheCapacityTo(params *FindConfigReduceCacheCapacityToParams) (*FindConfigReduceCacheCapacityToOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigReduceCacheCapacityToParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_reduce_cache_capacity_to", - Method: "GET", - PathPattern: "/config/reduce_cache_capacity_to", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigReduceCacheCapacityToReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigReduceCacheCapacityToOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigReduceCacheCapacityToDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigReduceCacheSizesAt When Java heap usage (after a full concurrent mark sweep (CMS) garbage collection) exceeds this percentage, Cassandra reduces the cache capacity to the fraction of the current size as specified by reduce_cache_capacity_to. To disable, set the value to 1.0. -*/ -func (a *Client) FindConfigReduceCacheSizesAt(params *FindConfigReduceCacheSizesAtParams) (*FindConfigReduceCacheSizesAtOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigReduceCacheSizesAtParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_reduce_cache_sizes_at", - Method: "GET", - PathPattern: "/config/reduce_cache_sizes_at", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigReduceCacheSizesAtReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigReduceCacheSizesAtOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigReduceCacheSizesAtDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigReplaceNode The UUID of the node to replace. Same as -Dcassandra.replace_node in cssandra. -*/ -func (a *Client) FindConfigReplaceNode(params *FindConfigReplaceNodeParams) (*FindConfigReplaceNodeOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigReplaceNodeParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_replace_node", - Method: "GET", - PathPattern: "/config/replace_node", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigReplaceNodeReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigReplaceNodeOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigReplaceNodeDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigReplaceToken The tokens of the node to replace. Same as -Dcassandra.replace_token in cassandra. -*/ -func (a *Client) FindConfigReplaceToken(params *FindConfigReplaceTokenParams) (*FindConfigReplaceTokenOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigReplaceTokenParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_replace_token", - Method: "GET", - PathPattern: "/config/replace_token", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigReplaceTokenReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigReplaceTokenOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigReplaceTokenDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigRequestScheduler Defines a scheduler to handle incoming client requests according to a defined policy. This scheduler is useful for throttling client requests in single clusters containing multiple keyspaces. This parameter is specifically for requests from the client and does not affect inter-node communication. Valid values are: - -org.apache.cassandra.scheduler.NoScheduler No scheduling takes place. -org.apache.cassandra.scheduler.RoundRobinScheduler Round robin of client requests to a node with a separate queue for each request_scheduler_id property. -A Java class that implements the RequestScheduler interface. -*/ -func (a *Client) FindConfigRequestScheduler(params *FindConfigRequestSchedulerParams) (*FindConfigRequestSchedulerOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigRequestSchedulerParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_request_scheduler", - Method: "GET", - PathPattern: "/config/request_scheduler", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigRequestSchedulerReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigRequestSchedulerOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigRequestSchedulerDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigRequestSchedulerID An identifier on which to perform request scheduling. Currently the only valid value is keyspace. See weights. -*/ -func (a *Client) FindConfigRequestSchedulerID(params *FindConfigRequestSchedulerIDParams) (*FindConfigRequestSchedulerIDOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigRequestSchedulerIDParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_request_scheduler_id", - Method: "GET", - PathPattern: "/config/request_scheduler_id", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigRequestSchedulerIDReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigRequestSchedulerIDOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigRequestSchedulerIDDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigRequestSchedulerOptions Contains a list of properties that define configuration options for request_scheduler: - -throttle_limit: The number of in-flight requests per client. Requests beyond this limit are queued up until running requests complete. Recommended value is ((concurrent_reads + concurrent_writes) × 2) -default_weight: (Default: 1 **) How many requests are handled during each turn of the RoundRobin. -weights: (Default: Keyspace: 1) Takes a list of keyspaces. It sets how many requests are handled during each turn of the RoundRobin, based on the request_scheduler_id. -*/ -func (a *Client) FindConfigRequestSchedulerOptions(params *FindConfigRequestSchedulerOptionsParams) (*FindConfigRequestSchedulerOptionsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigRequestSchedulerOptionsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_request_scheduler_options", - Method: "GET", - PathPattern: "/config/request_scheduler_options", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigRequestSchedulerOptionsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigRequestSchedulerOptionsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigRequestSchedulerOptionsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigRequestTimeoutInMs The default timeout for other, miscellaneous operations. - -Related information: About hinted handoff writes -*/ -func (a *Client) FindConfigRequestTimeoutInMs(params *FindConfigRequestTimeoutInMsParams) (*FindConfigRequestTimeoutInMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigRequestTimeoutInMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_request_timeout_in_ms", - Method: "GET", - PathPattern: "/config/request_timeout_in_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigRequestTimeoutInMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigRequestTimeoutInMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigRequestTimeoutInMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigRingDelayMs Time a node waits to hear from other nodes before joining the ring in milliseconds. Same as -Dcassandra.ring_delay_ms in cassandra. -*/ -func (a *Client) FindConfigRingDelayMs(params *FindConfigRingDelayMsParams) (*FindConfigRingDelayMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigRingDelayMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_ring_delay_ms", - Method: "GET", - PathPattern: "/config/ring_delay_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigRingDelayMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigRingDelayMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigRingDelayMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigRoleManager The role-management backend, used to maintain grantts and memberships between roles. - -The available role-managers are: - - CassandraRoleManager : Stores role data in the system_auth keyspace. -*/ -func (a *Client) FindConfigRoleManager(params *FindConfigRoleManagerParams) (*FindConfigRoleManagerOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigRoleManagerParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_role_manager", - Method: "GET", - PathPattern: "/config/role_manager", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigRoleManagerReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigRoleManagerOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigRoleManagerDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigRowCacheKeysToSave Number of keys from the row cache to save. -*/ -func (a *Client) FindConfigRowCacheKeysToSave(params *FindConfigRowCacheKeysToSaveParams) (*FindConfigRowCacheKeysToSaveOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigRowCacheKeysToSaveParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_row_cache_keys_to_save", - Method: "GET", - PathPattern: "/config/row_cache_keys_to_save", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigRowCacheKeysToSaveReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigRowCacheKeysToSaveOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigRowCacheKeysToSaveDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigRowCacheSavePeriod Duration in seconds that rows are saved in cache. Caches are saved to saved_caches_directory. -*/ -func (a *Client) FindConfigRowCacheSavePeriod(params *FindConfigRowCacheSavePeriodParams) (*FindConfigRowCacheSavePeriodOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigRowCacheSavePeriodParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_row_cache_save_period", - Method: "GET", - PathPattern: "/config/row_cache_save_period", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigRowCacheSavePeriodReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigRowCacheSavePeriodOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigRowCacheSavePeriodDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigRowCacheSizeInMb Maximum size of the row cache in memory. Row cache can save more time than key_cache_size_in_mb, but is space-intensive because it contains the entire row. Use the row cache only for hot rows or static rows. If you reduce the size, you may not get you hottest keys loaded on start up. -*/ -func (a *Client) FindConfigRowCacheSizeInMb(params *FindConfigRowCacheSizeInMbParams) (*FindConfigRowCacheSizeInMbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigRowCacheSizeInMbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_row_cache_size_in_mb", - Method: "GET", - PathPattern: "/config/row_cache_size_in_mb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigRowCacheSizeInMbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigRowCacheSizeInMbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigRowCacheSizeInMbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigRPCAddress The listen address for client connections (Thrift RPC service and native transport).Valid values are: - - unset: Resolves the address using the hostname configuration of the node. If left unset, the hostname must resolve to the IP address of this node using /etc/hostname, /etc/hosts, or DNS. - 0.0.0.0 : Listens on all configured interfaces, but you must set the broadcast_rpc_address to a value other than 0.0.0.0. - IP address - hostname - -Related information: Network -*/ -func (a *Client) FindConfigRPCAddress(params *FindConfigRPCAddressParams) (*FindConfigRPCAddressOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigRPCAddressParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_rpc_address", - Method: "GET", - PathPattern: "/config/rpc_address", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigRPCAddressReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigRPCAddressOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigRPCAddressDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigRPCInterface The listen address for client connections. Interfaces must correspond to a single address, IP aliasing is not supported. See rpc_address. -*/ -func (a *Client) FindConfigRPCInterface(params *FindConfigRPCInterfaceParams) (*FindConfigRPCInterfaceOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigRPCInterfaceParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_rpc_interface", - Method: "GET", - PathPattern: "/config/rpc_interface", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigRPCInterfaceReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigRPCInterfaceOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigRPCInterfaceDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigRPCKeepalive Enable or disable keepalive on client connections (RPC or native). -*/ -func (a *Client) FindConfigRPCKeepalive(params *FindConfigRPCKeepaliveParams) (*FindConfigRPCKeepaliveOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigRPCKeepaliveParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_rpc_keepalive", - Method: "GET", - PathPattern: "/config/rpc_keepalive", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigRPCKeepaliveReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigRPCKeepaliveOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigRPCKeepaliveDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigRPCMaxThreads Regardless of your choice of RPC server (rpc_server_type), the number of maximum requests in the RPC thread pool dictates how many concurrent requests are possible. However, if you are using the parameter sync in the rpc_server_type, it also dictates the number of clients that can be connected. For a large number of client connections, this could cause excessive memory usage for the thread stack. Connection pooling on the client side is highly recommended. Setting a maximum thread pool size acts as a safeguard against misbehaved clients. If the maximum is reached, Cassandra blocks additional connections until a client disconnects. -*/ -func (a *Client) FindConfigRPCMaxThreads(params *FindConfigRPCMaxThreadsParams) (*FindConfigRPCMaxThreadsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigRPCMaxThreadsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_rpc_max_threads", - Method: "GET", - PathPattern: "/config/rpc_max_threads", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigRPCMaxThreadsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigRPCMaxThreadsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigRPCMaxThreadsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigRPCMinThreads Sets the minimum thread pool size for remote procedure calls. -*/ -func (a *Client) FindConfigRPCMinThreads(params *FindConfigRPCMinThreadsParams) (*FindConfigRPCMinThreadsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigRPCMinThreadsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_rpc_min_threads", - Method: "GET", - PathPattern: "/config/rpc_min_threads", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigRPCMinThreadsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigRPCMinThreadsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigRPCMinThreadsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigRPCPort Thrift port for client connections. -*/ -func (a *Client) FindConfigRPCPort(params *FindConfigRPCPortParams) (*FindConfigRPCPortOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigRPCPortParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_rpc_port", - Method: "GET", - PathPattern: "/config/rpc_port", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigRPCPortReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigRPCPortOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigRPCPortDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigRPCRecvBuffSizeInBytes Sets the receiving socket buffer size for remote procedure calls. -*/ -func (a *Client) FindConfigRPCRecvBuffSizeInBytes(params *FindConfigRPCRecvBuffSizeInBytesParams) (*FindConfigRPCRecvBuffSizeInBytesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigRPCRecvBuffSizeInBytesParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_rpc_recv_buff_size_in_bytes", - Method: "GET", - PathPattern: "/config/rpc_recv_buff_size_in_bytes", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigRPCRecvBuffSizeInBytesReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigRPCRecvBuffSizeInBytesOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigRPCRecvBuffSizeInBytesDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigRPCSendBuffSizeInBytes Sets the sending socket buffer size in bytes for remote procedure calls. -*/ -func (a *Client) FindConfigRPCSendBuffSizeInBytes(params *FindConfigRPCSendBuffSizeInBytesParams) (*FindConfigRPCSendBuffSizeInBytesOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigRPCSendBuffSizeInBytesParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_rpc_send_buff_size_in_bytes", - Method: "GET", - PathPattern: "/config/rpc_send_buff_size_in_bytes", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigRPCSendBuffSizeInBytesReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigRPCSendBuffSizeInBytesOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigRPCSendBuffSizeInBytesDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigRPCServerType Cassandra provides three options for the RPC server. On Windows, sync is about 30% slower than hsha. On Linux, sync and hsha performance is about the same, but hsha uses less memory. - -sync (Default One thread per Thrift connection.) For a very large number of clients, memory is the limiting factor. On a 64-bit JVM, 180KB is the minimum stack size per thread and corresponds to your use of virtual memory. Physical memory may be limited depending on use of stack space. -hsh Half synchronous, half asynchronous. All Thrift clients are handled asynchronously using a small number of threads that does not vary with the number of clients and thus scales well to many clients. The RPC requests are synchronous (one thread per active request). - - Note: When selecting this option, you must change the default value (unlimited) of rpc_max_threads. - -Your own RPC server: You must provide a fully-qualified class name of an o.a.c.t.TServerFactory that can create a server instance. -*/ -func (a *Client) FindConfigRPCServerType(params *FindConfigRPCServerTypeParams) (*FindConfigRPCServerTypeOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigRPCServerTypeParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_rpc_server_type", - Method: "GET", - PathPattern: "/config/rpc_server_type", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigRPCServerTypeReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigRPCServerTypeOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigRPCServerTypeDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigSavedCachesDirectory The directory location where table key and row caches are stored. -*/ -func (a *Client) FindConfigSavedCachesDirectory(params *FindConfigSavedCachesDirectoryParams) (*FindConfigSavedCachesDirectoryOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigSavedCachesDirectoryParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_saved_caches_directory", - Method: "GET", - PathPattern: "/config/saved_caches_directory", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigSavedCachesDirectoryReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigSavedCachesDirectoryOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigSavedCachesDirectoryDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigSeedProvider The addresses of hosts deemed contact points. Scylla nodes use the -seeds list to find each other and learn the topology of the ring. - - class_name (Default: org.apache.cassandra.locator.SimpleSeedProvider) - The class within Scylla that handles the seed logic. It can be customized, but this is typically not required. - - seeds (Default: 127.0.0.1) A comma-delimited list of IP addresses used by gossip for bootstrapping new nodes joining a cluster. When running multiple nodes, you must change the list from the default value. In multiple data-center clusters, the seed list should include at least one node from each data center (replication group). More than a single seed node per data center is recommended for fault tolerance. Otherwise, gossip has to communicate with another data center when bootstrapping a node. Making every node a seed node is not recommended because of increased maintenance and reduced gossip performance. Gossip optimization is not critical, but it is recommended to use a small seed list (approximately three nodes per data center). - -Related information: Initializing a multiple node cluster (single data center) and Initializing a multiple node cluster (multiple data centers). -*/ -func (a *Client) FindConfigSeedProvider(params *FindConfigSeedProviderParams) (*FindConfigSeedProviderOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigSeedProviderParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_seed_provider", - Method: "GET", - PathPattern: "/config/seed_provider", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigSeedProviderReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigSeedProviderOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigSeedProviderDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigServerEncryptionOptions Enable or disable inter-node encryption. You must also generate keys and provide the appropriate key and trust store locations and passwords. No custom encryption options are currently enabled. The available options are: - -internode_encryption : (Default: none ) Enable or disable encryption of inter-node communication using the TLS_RSA_WITH_AES_128_CBC_SHA cipher suite for authentication, key exchange, and encryption of data transfers. The available inter-node options are: - - all : Encrypt all inter-node communications. - none : No encryption. - dc : Encrypt the traffic between the data centers (server only). - rack : Encrypt the traffic between the racks(server only). - -certificate : (Default: conf/scylla.crt) The location of a PEM-encoded x509 certificate used to identify and encrypt the internode communication. -keyfile : (Default: conf/scylla.key) PEM Key file associated with certificate. -truststore : (Default: ) Location of the truststore containing the trusted certificate for authenticating remote servers. - -The advanced settings are: - - priority_string : GnuTLS priority string controlling TLS algorithms used/allowed. - require_client_auth : (Default: false ) Enables or disables certificate authentication. - -Related information: Node-to-node encryption -*/ -func (a *Client) FindConfigServerEncryptionOptions(params *FindConfigServerEncryptionOptionsParams) (*FindConfigServerEncryptionOptionsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigServerEncryptionOptionsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_server_encryption_options", - Method: "GET", - PathPattern: "/config/server_encryption_options", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigServerEncryptionOptionsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigServerEncryptionOptionsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigServerEncryptionOptionsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigShadowRoundMs The maximum gossip shadow round time. Can be used to reduce the gossip feature check time during node boot up. -*/ -func (a *Client) FindConfigShadowRoundMs(params *FindConfigShadowRoundMsParams) (*FindConfigShadowRoundMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigShadowRoundMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_shadow_round_ms", - Method: "GET", - PathPattern: "/config/shadow_round_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigShadowRoundMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigShadowRoundMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigShadowRoundMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigShutdownAnnounceInMs Time a node waits after sending gossip shutdown message in milliseconds. Same as -Dcassandra.shutdown_announce_in_ms in cassandra. -*/ -func (a *Client) FindConfigShutdownAnnounceInMs(params *FindConfigShutdownAnnounceInMsParams) (*FindConfigShutdownAnnounceInMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigShutdownAnnounceInMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_shutdown_announce_in_ms", - Method: "GET", - PathPattern: "/config/shutdown_announce_in_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigShutdownAnnounceInMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigShutdownAnnounceInMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigShutdownAnnounceInMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigSkipWaitForGossipToSettle An integer to configure the wait for gossip to settle. -1: wait normally, 0: do not wait at all, n: wait for at most n polls. Same as -Dcassandra.skip_wait_for_gossip_to_settle in cassandra. -*/ -func (a *Client) FindConfigSkipWaitForGossipToSettle(params *FindConfigSkipWaitForGossipToSettleParams) (*FindConfigSkipWaitForGossipToSettleOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigSkipWaitForGossipToSettleParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_skip_wait_for_gossip_to_settle", - Method: "GET", - PathPattern: "/config/skip_wait_for_gossip_to_settle", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigSkipWaitForGossipToSettleReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigSkipWaitForGossipToSettleOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigSkipWaitForGossipToSettleDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigSnapshotBeforeCompaction Enable or disable taking a snapshot before each compaction. This option is useful to back up data when there is a data format change. Be careful using this option because Cassandra does not clean up older snapshots automatically. - -Related information: Configuring compaction -*/ -func (a *Client) FindConfigSnapshotBeforeCompaction(params *FindConfigSnapshotBeforeCompactionParams) (*FindConfigSnapshotBeforeCompactionOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigSnapshotBeforeCompactionParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_snapshot_before_compaction", - Method: "GET", - PathPattern: "/config/snapshot_before_compaction", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigSnapshotBeforeCompactionReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigSnapshotBeforeCompactionOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigSnapshotBeforeCompactionDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigSslStoragePort The SSL port for encrypted communication. Unused unless enabled in encryption_options. -*/ -func (a *Client) FindConfigSslStoragePort(params *FindConfigSslStoragePortParams) (*FindConfigSslStoragePortOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigSslStoragePortParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_ssl_storage_port", - Method: "GET", - PathPattern: "/config/ssl_storage_port", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigSslStoragePortReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigSslStoragePortOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigSslStoragePortDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigSstablePreemptiveOpenIntervalInMb When compacting, the replacement opens SSTables before they are completely written and uses in place of the prior SSTables for any range previously written. This setting helps to smoothly transfer reads between the SSTables by reducing page cache churn and keeps hot rows hot. -*/ -func (a *Client) FindConfigSstablePreemptiveOpenIntervalInMb(params *FindConfigSstablePreemptiveOpenIntervalInMbParams) (*FindConfigSstablePreemptiveOpenIntervalInMbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigSstablePreemptiveOpenIntervalInMbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_sstable_preemptive_open_interval_in_mb", - Method: "GET", - PathPattern: "/config/sstable_preemptive_open_interval_in_mb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigSstablePreemptiveOpenIntervalInMbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigSstablePreemptiveOpenIntervalInMbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigSstablePreemptiveOpenIntervalInMbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigSstableSummaryRatio Enforces that 1 byte of summary is written for every N (2000 by default) bytes written to data file. Value must be between 0 and 1. -*/ -func (a *Client) FindConfigSstableSummaryRatio(params *FindConfigSstableSummaryRatioParams) (*FindConfigSstableSummaryRatioOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigSstableSummaryRatioParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_sstable_summary_ratio", - Method: "GET", - PathPattern: "/config/sstable_summary_ratio", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigSstableSummaryRatioReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigSstableSummaryRatioOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigSstableSummaryRatioDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigStartNativeTransport Enable or disable the native transport server. Uses the same address as the rpc_address, but the port is different from the rpc_port. See native_transport_port. -*/ -func (a *Client) FindConfigStartNativeTransport(params *FindConfigStartNativeTransportParams) (*FindConfigStartNativeTransportOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigStartNativeTransportParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_start_native_transport", - Method: "GET", - PathPattern: "/config/start_native_transport", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigStartNativeTransportReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigStartNativeTransportOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigStartNativeTransportDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigStartRPC Starts the Thrift RPC server -*/ -func (a *Client) FindConfigStartRPC(params *FindConfigStartRPCParams) (*FindConfigStartRPCOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigStartRPCParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_start_rpc", - Method: "GET", - PathPattern: "/config/start_rpc", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigStartRPCReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigStartRPCOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigStartRPCDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigStoragePort The port for inter-node communication. -*/ -func (a *Client) FindConfigStoragePort(params *FindConfigStoragePortParams) (*FindConfigStoragePortOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigStoragePortParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_storage_port", - Method: "GET", - PathPattern: "/config/storage_port", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigStoragePortReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigStoragePortOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigStoragePortDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigStreamThroughputOutboundMegabitsPerSec Throttles all outbound streaming file transfers on a node to the specified throughput. Cassandra does mostly sequential I/O when streaming data during bootstrap or repair, which can lead to saturating the network connection and degrading client (RPC) performance. -*/ -func (a *Client) FindConfigStreamThroughputOutboundMegabitsPerSec(params *FindConfigStreamThroughputOutboundMegabitsPerSecParams) (*FindConfigStreamThroughputOutboundMegabitsPerSecOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigStreamThroughputOutboundMegabitsPerSecParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_stream_throughput_outbound_megabits_per_sec", - Method: "GET", - PathPattern: "/config/stream_throughput_outbound_megabits_per_sec", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigStreamThroughputOutboundMegabitsPerSecReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigStreamThroughputOutboundMegabitsPerSecOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigStreamThroughputOutboundMegabitsPerSecDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigStreamingSocketTimeoutInMs Enable or disable socket timeout for streaming operations. When a timeout occurs during streaming, streaming is retried from the start of the current file. Avoid setting this value too low, as it can result in a significant amount of data re-streaming. -*/ -func (a *Client) FindConfigStreamingSocketTimeoutInMs(params *FindConfigStreamingSocketTimeoutInMsParams) (*FindConfigStreamingSocketTimeoutInMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigStreamingSocketTimeoutInMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_streaming_socket_timeout_in_ms", - Method: "GET", - PathPattern: "/config/streaming_socket_timeout_in_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigStreamingSocketTimeoutInMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigStreamingSocketTimeoutInMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigStreamingSocketTimeoutInMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigThriftFramedTransportSizeInMb Frame size (maximum field length) for Thrift. The frame is the row or part of the row the application is inserting. -*/ -func (a *Client) FindConfigThriftFramedTransportSizeInMb(params *FindConfigThriftFramedTransportSizeInMbParams) (*FindConfigThriftFramedTransportSizeInMbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigThriftFramedTransportSizeInMbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_thrift_framed_transport_size_in_mb", - Method: "GET", - PathPattern: "/config/thrift_framed_transport_size_in_mb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigThriftFramedTransportSizeInMbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigThriftFramedTransportSizeInMbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigThriftFramedTransportSizeInMbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigThriftMaxMessageLengthInMb The maximum length of a Thrift message in megabytes, including all fields and internal Thrift overhead (1 byte of overhead for each frame). Message length is usually used in conjunction with batches. A frame length greater than or equal to 24 accommodates a batch with four inserts, each of which is 24 bytes. The required message length is greater than or equal to 24+24+24+24+4 (number of frames). -*/ -func (a *Client) FindConfigThriftMaxMessageLengthInMb(params *FindConfigThriftMaxMessageLengthInMbParams) (*FindConfigThriftMaxMessageLengthInMbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigThriftMaxMessageLengthInMbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_thrift_max_message_length_in_mb", - Method: "GET", - PathPattern: "/config/thrift_max_message_length_in_mb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigThriftMaxMessageLengthInMbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigThriftMaxMessageLengthInMbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigThriftMaxMessageLengthInMbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigTombstoneFailureThreshold The maximum number of tombstones a query can scan before aborting. -*/ -func (a *Client) FindConfigTombstoneFailureThreshold(params *FindConfigTombstoneFailureThresholdParams) (*FindConfigTombstoneFailureThresholdOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigTombstoneFailureThresholdParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_tombstone_failure_threshold", - Method: "GET", - PathPattern: "/config/tombstone_failure_threshold", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigTombstoneFailureThresholdReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigTombstoneFailureThresholdOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigTombstoneFailureThresholdDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigTombstoneWarnThreshold The maximum number of tombstones a query can scan before warning. -*/ -func (a *Client) FindConfigTombstoneWarnThreshold(params *FindConfigTombstoneWarnThresholdParams) (*FindConfigTombstoneWarnThresholdOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigTombstoneWarnThresholdParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_tombstone_warn_threshold", - Method: "GET", - PathPattern: "/config/tombstone_warn_threshold", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigTombstoneWarnThresholdReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigTombstoneWarnThresholdOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigTombstoneWarnThresholdDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigTrickleFsync When doing sequential writing, enabling this option tells fsync to force the operating system to flush the dirty buffers at a set interval trickle_fsync_interval_in_kb. Enable this parameter to avoid sudden dirty buffer flushing from impacting read latencies. Recommended to use on SSDs, but not on HDDs. -*/ -func (a *Client) FindConfigTrickleFsync(params *FindConfigTrickleFsyncParams) (*FindConfigTrickleFsyncOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigTrickleFsyncParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_trickle_fsync", - Method: "GET", - PathPattern: "/config/trickle_fsync", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigTrickleFsyncReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigTrickleFsyncOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigTrickleFsyncDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigTrickleFsyncIntervalInKb Sets the size of the fsync in kilobytes. -*/ -func (a *Client) FindConfigTrickleFsyncIntervalInKb(params *FindConfigTrickleFsyncIntervalInKbParams) (*FindConfigTrickleFsyncIntervalInKbOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigTrickleFsyncIntervalInKbParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_trickle_fsync_interval_in_kb", - Method: "GET", - PathPattern: "/config/trickle_fsync_interval_in_kb", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigTrickleFsyncIntervalInKbReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigTrickleFsyncIntervalInKbOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigTrickleFsyncIntervalInKbDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigTruncateRequestTimeoutInMs The time that the coordinator waits for truncates (remove all data from a table) to complete. The long default value allows for a snapshot to be taken before removing the data. If auto_snapshot is disabled (not recommended), you can reduce this time. -*/ -func (a *Client) FindConfigTruncateRequestTimeoutInMs(params *FindConfigTruncateRequestTimeoutInMsParams) (*FindConfigTruncateRequestTimeoutInMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigTruncateRequestTimeoutInMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_truncate_request_timeout_in_ms", - Method: "GET", - PathPattern: "/config/truncate_request_timeout_in_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigTruncateRequestTimeoutInMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigTruncateRequestTimeoutInMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigTruncateRequestTimeoutInMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigUUIDSstableIdentifiersEnabled Return true if node is using uuid sstable format: me-3g7k_098r_4wtqo2asamoc1i8h9n-big-CompressionInfo.db -*/ -func (a *Client) FindConfigUUIDSstableIdentifiersEnabled(params *FindConfigUUIDSstableIdentifiersEnabledParams) (*FindConfigUUIDSstableIdentifiersEnabledOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigUUIDSstableIdentifiersEnabledParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_uuid_sstable_identifiers_enabled", - Method: "GET", - PathPattern: "/config/uuid_sstable_identifiers_enabled", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigUUIDSstableIdentifiersEnabledReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigUUIDSstableIdentifiersEnabledOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigUUIDSstableIdentifiersEnabledDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigViewBuilding Enable view building; should only be set to false when the node is experience issues due to view building -*/ -func (a *Client) FindConfigViewBuilding(params *FindConfigViewBuildingParams) (*FindConfigViewBuildingOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigViewBuildingParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_view_building", - Method: "GET", - PathPattern: "/config/view_building", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigViewBuildingReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigViewBuildingOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigViewBuildingDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigViewHintsDirectory The directory where materialized-view updates are stored while a view replica is unreachable. -*/ -func (a *Client) FindConfigViewHintsDirectory(params *FindConfigViewHintsDirectoryParams) (*FindConfigViewHintsDirectoryOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigViewHintsDirectoryParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_view_hints_directory", - Method: "GET", - PathPattern: "/config/view_hints_directory", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigViewHintsDirectoryReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigViewHintsDirectoryOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigViewHintsDirectoryDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigVirtualDirtySoftLimit Soft limit of virtual dirty memory expressed as a portion of the hard limit -*/ -func (a *Client) FindConfigVirtualDirtySoftLimit(params *FindConfigVirtualDirtySoftLimitParams) (*FindConfigVirtualDirtySoftLimitOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigVirtualDirtySoftLimitParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_virtual_dirty_soft_limit", - Method: "GET", - PathPattern: "/config/virtual_dirty_soft_limit", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigVirtualDirtySoftLimitReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigVirtualDirtySoftLimitOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigVirtualDirtySoftLimitDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* -FindConfigVolatileSystemKeyspaceForTesting Don't persist system keyspace - testing only! -*/ -func (a *Client) FindConfigVolatileSystemKeyspaceForTesting(params *FindConfigVolatileSystemKeyspaceForTestingParams) (*FindConfigVolatileSystemKeyspaceForTestingOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigVolatileSystemKeyspaceForTestingParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_volatile_system_keyspace_for_testing", - Method: "GET", - PathPattern: "/config/volatile_system_keyspace_for_testing", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigVolatileSystemKeyspaceForTestingReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigVolatileSystemKeyspaceForTestingOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigVolatileSystemKeyspaceForTestingDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - FindConfigWriteRequestTimeoutInMs The time in milliseconds that the coordinator waits for write operations to complete. - -Related information: About hinted handoff writes -*/ -func (a *Client) FindConfigWriteRequestTimeoutInMs(params *FindConfigWriteRequestTimeoutInMsParams) (*FindConfigWriteRequestTimeoutInMsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewFindConfigWriteRequestTimeoutInMsParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "find_config_write_request_timeout_in_ms", - Method: "GET", - PathPattern: "/config/write_request_timeout_in_ms", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &FindConfigWriteRequestTimeoutInMsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*FindConfigWriteRequestTimeoutInMsOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*FindConfigWriteRequestTimeoutInMsDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -// SetTransport changes the transport on the client -func (a *Client) SetTransport(transport runtime.ClientTransport) { - a.transport = transport -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_abort_on_lsa_bad_alloc_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_abort_on_lsa_bad_alloc_parameters.go deleted file mode 100644 index 77ca653a46..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_abort_on_lsa_bad_alloc_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigAbortOnLsaBadAllocParams creates a new FindConfigAbortOnLsaBadAllocParams object -// with the default values initialized. -func NewFindConfigAbortOnLsaBadAllocParams() *FindConfigAbortOnLsaBadAllocParams { - - return &FindConfigAbortOnLsaBadAllocParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigAbortOnLsaBadAllocParamsWithTimeout creates a new FindConfigAbortOnLsaBadAllocParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigAbortOnLsaBadAllocParamsWithTimeout(timeout time.Duration) *FindConfigAbortOnLsaBadAllocParams { - - return &FindConfigAbortOnLsaBadAllocParams{ - - timeout: timeout, - } -} - -// NewFindConfigAbortOnLsaBadAllocParamsWithContext creates a new FindConfigAbortOnLsaBadAllocParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigAbortOnLsaBadAllocParamsWithContext(ctx context.Context) *FindConfigAbortOnLsaBadAllocParams { - - return &FindConfigAbortOnLsaBadAllocParams{ - - Context: ctx, - } -} - -// NewFindConfigAbortOnLsaBadAllocParamsWithHTTPClient creates a new FindConfigAbortOnLsaBadAllocParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigAbortOnLsaBadAllocParamsWithHTTPClient(client *http.Client) *FindConfigAbortOnLsaBadAllocParams { - - return &FindConfigAbortOnLsaBadAllocParams{ - HTTPClient: client, - } -} - -/* -FindConfigAbortOnLsaBadAllocParams contains all the parameters to send to the API endpoint -for the find config abort on lsa bad alloc operation typically these are written to a http.Request -*/ -type FindConfigAbortOnLsaBadAllocParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config abort on lsa bad alloc params -func (o *FindConfigAbortOnLsaBadAllocParams) WithTimeout(timeout time.Duration) *FindConfigAbortOnLsaBadAllocParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config abort on lsa bad alloc params -func (o *FindConfigAbortOnLsaBadAllocParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config abort on lsa bad alloc params -func (o *FindConfigAbortOnLsaBadAllocParams) WithContext(ctx context.Context) *FindConfigAbortOnLsaBadAllocParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config abort on lsa bad alloc params -func (o *FindConfigAbortOnLsaBadAllocParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config abort on lsa bad alloc params -func (o *FindConfigAbortOnLsaBadAllocParams) WithHTTPClient(client *http.Client) *FindConfigAbortOnLsaBadAllocParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config abort on lsa bad alloc params -func (o *FindConfigAbortOnLsaBadAllocParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigAbortOnLsaBadAllocParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_abort_on_lsa_bad_alloc_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_abort_on_lsa_bad_alloc_responses.go deleted file mode 100644 index 9f6330fbdd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_abort_on_lsa_bad_alloc_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigAbortOnLsaBadAllocReader is a Reader for the FindConfigAbortOnLsaBadAlloc structure. -type FindConfigAbortOnLsaBadAllocReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigAbortOnLsaBadAllocReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigAbortOnLsaBadAllocOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigAbortOnLsaBadAllocDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigAbortOnLsaBadAllocOK creates a FindConfigAbortOnLsaBadAllocOK with default headers values -func NewFindConfigAbortOnLsaBadAllocOK() *FindConfigAbortOnLsaBadAllocOK { - return &FindConfigAbortOnLsaBadAllocOK{} -} - -/* -FindConfigAbortOnLsaBadAllocOK handles this case with default header values. - -Config value -*/ -type FindConfigAbortOnLsaBadAllocOK struct { - Payload bool -} - -func (o *FindConfigAbortOnLsaBadAllocOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigAbortOnLsaBadAllocOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigAbortOnLsaBadAllocDefault creates a FindConfigAbortOnLsaBadAllocDefault with default headers values -func NewFindConfigAbortOnLsaBadAllocDefault(code int) *FindConfigAbortOnLsaBadAllocDefault { - return &FindConfigAbortOnLsaBadAllocDefault{ - _statusCode: code, - } -} - -/* -FindConfigAbortOnLsaBadAllocDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigAbortOnLsaBadAllocDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config abort on lsa bad alloc default response -func (o *FindConfigAbortOnLsaBadAllocDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigAbortOnLsaBadAllocDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigAbortOnLsaBadAllocDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigAbortOnLsaBadAllocDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_address_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_address_parameters.go deleted file mode 100644 index 3f1278acd6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_address_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigAlternatorAddressParams creates a new FindConfigAlternatorAddressParams object -// with the default values initialized. -func NewFindConfigAlternatorAddressParams() *FindConfigAlternatorAddressParams { - - return &FindConfigAlternatorAddressParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigAlternatorAddressParamsWithTimeout creates a new FindConfigAlternatorAddressParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigAlternatorAddressParamsWithTimeout(timeout time.Duration) *FindConfigAlternatorAddressParams { - - return &FindConfigAlternatorAddressParams{ - - timeout: timeout, - } -} - -// NewFindConfigAlternatorAddressParamsWithContext creates a new FindConfigAlternatorAddressParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigAlternatorAddressParamsWithContext(ctx context.Context) *FindConfigAlternatorAddressParams { - - return &FindConfigAlternatorAddressParams{ - - Context: ctx, - } -} - -// NewFindConfigAlternatorAddressParamsWithHTTPClient creates a new FindConfigAlternatorAddressParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigAlternatorAddressParamsWithHTTPClient(client *http.Client) *FindConfigAlternatorAddressParams { - - return &FindConfigAlternatorAddressParams{ - HTTPClient: client, - } -} - -/* -FindConfigAlternatorAddressParams contains all the parameters to send to the API endpoint -for the find config alternator address operation typically these are written to a http.Request -*/ -type FindConfigAlternatorAddressParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config alternator address params -func (o *FindConfigAlternatorAddressParams) WithTimeout(timeout time.Duration) *FindConfigAlternatorAddressParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config alternator address params -func (o *FindConfigAlternatorAddressParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config alternator address params -func (o *FindConfigAlternatorAddressParams) WithContext(ctx context.Context) *FindConfigAlternatorAddressParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config alternator address params -func (o *FindConfigAlternatorAddressParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config alternator address params -func (o *FindConfigAlternatorAddressParams) WithHTTPClient(client *http.Client) *FindConfigAlternatorAddressParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config alternator address params -func (o *FindConfigAlternatorAddressParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigAlternatorAddressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_address_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_address_responses.go deleted file mode 100644 index d61b6dbd7f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_address_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigAlternatorAddressReader is a Reader for the FindConfigAlternatorAddress structure. -type FindConfigAlternatorAddressReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigAlternatorAddressReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigAlternatorAddressOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigAlternatorAddressDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigAlternatorAddressOK creates a FindConfigAlternatorAddressOK with default headers values -func NewFindConfigAlternatorAddressOK() *FindConfigAlternatorAddressOK { - return &FindConfigAlternatorAddressOK{} -} - -/* -FindConfigAlternatorAddressOK handles this case with default header values. - -Config value -*/ -type FindConfigAlternatorAddressOK struct { - Payload string -} - -func (o *FindConfigAlternatorAddressOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigAlternatorAddressOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigAlternatorAddressDefault creates a FindConfigAlternatorAddressDefault with default headers values -func NewFindConfigAlternatorAddressDefault(code int) *FindConfigAlternatorAddressDefault { - return &FindConfigAlternatorAddressDefault{ - _statusCode: code, - } -} - -/* -FindConfigAlternatorAddressDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigAlternatorAddressDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config alternator address default response -func (o *FindConfigAlternatorAddressDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigAlternatorAddressDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigAlternatorAddressDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigAlternatorAddressDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_enforce_authorization_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_enforce_authorization_parameters.go deleted file mode 100644 index f82d5919e8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_enforce_authorization_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigAlternatorEnforceAuthorizationParams creates a new FindConfigAlternatorEnforceAuthorizationParams object -// with the default values initialized. -func NewFindConfigAlternatorEnforceAuthorizationParams() *FindConfigAlternatorEnforceAuthorizationParams { - - return &FindConfigAlternatorEnforceAuthorizationParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigAlternatorEnforceAuthorizationParamsWithTimeout creates a new FindConfigAlternatorEnforceAuthorizationParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigAlternatorEnforceAuthorizationParamsWithTimeout(timeout time.Duration) *FindConfigAlternatorEnforceAuthorizationParams { - - return &FindConfigAlternatorEnforceAuthorizationParams{ - - timeout: timeout, - } -} - -// NewFindConfigAlternatorEnforceAuthorizationParamsWithContext creates a new FindConfigAlternatorEnforceAuthorizationParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigAlternatorEnforceAuthorizationParamsWithContext(ctx context.Context) *FindConfigAlternatorEnforceAuthorizationParams { - - return &FindConfigAlternatorEnforceAuthorizationParams{ - - Context: ctx, - } -} - -// NewFindConfigAlternatorEnforceAuthorizationParamsWithHTTPClient creates a new FindConfigAlternatorEnforceAuthorizationParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigAlternatorEnforceAuthorizationParamsWithHTTPClient(client *http.Client) *FindConfigAlternatorEnforceAuthorizationParams { - - return &FindConfigAlternatorEnforceAuthorizationParams{ - HTTPClient: client, - } -} - -/* -FindConfigAlternatorEnforceAuthorizationParams contains all the parameters to send to the API endpoint -for the find config alternator enforce authorization operation typically these are written to a http.Request -*/ -type FindConfigAlternatorEnforceAuthorizationParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config alternator enforce authorization params -func (o *FindConfigAlternatorEnforceAuthorizationParams) WithTimeout(timeout time.Duration) *FindConfigAlternatorEnforceAuthorizationParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config alternator enforce authorization params -func (o *FindConfigAlternatorEnforceAuthorizationParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config alternator enforce authorization params -func (o *FindConfigAlternatorEnforceAuthorizationParams) WithContext(ctx context.Context) *FindConfigAlternatorEnforceAuthorizationParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config alternator enforce authorization params -func (o *FindConfigAlternatorEnforceAuthorizationParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config alternator enforce authorization params -func (o *FindConfigAlternatorEnforceAuthorizationParams) WithHTTPClient(client *http.Client) *FindConfigAlternatorEnforceAuthorizationParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config alternator enforce authorization params -func (o *FindConfigAlternatorEnforceAuthorizationParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigAlternatorEnforceAuthorizationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_enforce_authorization_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_enforce_authorization_responses.go deleted file mode 100644 index e484c42e2e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_enforce_authorization_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigAlternatorEnforceAuthorizationReader is a Reader for the FindConfigAlternatorEnforceAuthorization structure. -type FindConfigAlternatorEnforceAuthorizationReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigAlternatorEnforceAuthorizationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigAlternatorEnforceAuthorizationOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigAlternatorEnforceAuthorizationDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigAlternatorEnforceAuthorizationOK creates a FindConfigAlternatorEnforceAuthorizationOK with default headers values -func NewFindConfigAlternatorEnforceAuthorizationOK() *FindConfigAlternatorEnforceAuthorizationOK { - return &FindConfigAlternatorEnforceAuthorizationOK{} -} - -/* -FindConfigAlternatorEnforceAuthorizationOK handles this case with default header values. - -Config value -*/ -type FindConfigAlternatorEnforceAuthorizationOK struct { - Payload bool -} - -func (o *FindConfigAlternatorEnforceAuthorizationOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigAlternatorEnforceAuthorizationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigAlternatorEnforceAuthorizationDefault creates a FindConfigAlternatorEnforceAuthorizationDefault with default headers values -func NewFindConfigAlternatorEnforceAuthorizationDefault(code int) *FindConfigAlternatorEnforceAuthorizationDefault { - return &FindConfigAlternatorEnforceAuthorizationDefault{ - _statusCode: code, - } -} - -/* -FindConfigAlternatorEnforceAuthorizationDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigAlternatorEnforceAuthorizationDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config alternator enforce authorization default response -func (o *FindConfigAlternatorEnforceAuthorizationDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigAlternatorEnforceAuthorizationDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigAlternatorEnforceAuthorizationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigAlternatorEnforceAuthorizationDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_https_port_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_https_port_parameters.go deleted file mode 100644 index 66b3525730..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_https_port_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigAlternatorHTTPSPortParams creates a new FindConfigAlternatorHTTPSPortParams object -// with the default values initialized. -func NewFindConfigAlternatorHTTPSPortParams() *FindConfigAlternatorHTTPSPortParams { - - return &FindConfigAlternatorHTTPSPortParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigAlternatorHTTPSPortParamsWithTimeout creates a new FindConfigAlternatorHTTPSPortParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigAlternatorHTTPSPortParamsWithTimeout(timeout time.Duration) *FindConfigAlternatorHTTPSPortParams { - - return &FindConfigAlternatorHTTPSPortParams{ - - timeout: timeout, - } -} - -// NewFindConfigAlternatorHTTPSPortParamsWithContext creates a new FindConfigAlternatorHTTPSPortParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigAlternatorHTTPSPortParamsWithContext(ctx context.Context) *FindConfigAlternatorHTTPSPortParams { - - return &FindConfigAlternatorHTTPSPortParams{ - - Context: ctx, - } -} - -// NewFindConfigAlternatorHTTPSPortParamsWithHTTPClient creates a new FindConfigAlternatorHTTPSPortParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigAlternatorHTTPSPortParamsWithHTTPClient(client *http.Client) *FindConfigAlternatorHTTPSPortParams { - - return &FindConfigAlternatorHTTPSPortParams{ - HTTPClient: client, - } -} - -/* -FindConfigAlternatorHTTPSPortParams contains all the parameters to send to the API endpoint -for the find config alternator https port operation typically these are written to a http.Request -*/ -type FindConfigAlternatorHTTPSPortParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config alternator https port params -func (o *FindConfigAlternatorHTTPSPortParams) WithTimeout(timeout time.Duration) *FindConfigAlternatorHTTPSPortParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config alternator https port params -func (o *FindConfigAlternatorHTTPSPortParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config alternator https port params -func (o *FindConfigAlternatorHTTPSPortParams) WithContext(ctx context.Context) *FindConfigAlternatorHTTPSPortParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config alternator https port params -func (o *FindConfigAlternatorHTTPSPortParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config alternator https port params -func (o *FindConfigAlternatorHTTPSPortParams) WithHTTPClient(client *http.Client) *FindConfigAlternatorHTTPSPortParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config alternator https port params -func (o *FindConfigAlternatorHTTPSPortParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigAlternatorHTTPSPortParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_https_port_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_https_port_responses.go deleted file mode 100644 index 7019a6455b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_https_port_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigAlternatorHTTPSPortReader is a Reader for the FindConfigAlternatorHTTPSPort structure. -type FindConfigAlternatorHTTPSPortReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigAlternatorHTTPSPortReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigAlternatorHTTPSPortOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigAlternatorHTTPSPortDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigAlternatorHTTPSPortOK creates a FindConfigAlternatorHTTPSPortOK with default headers values -func NewFindConfigAlternatorHTTPSPortOK() *FindConfigAlternatorHTTPSPortOK { - return &FindConfigAlternatorHTTPSPortOK{} -} - -/* -FindConfigAlternatorHTTPSPortOK handles this case with default header values. - -Config value -*/ -type FindConfigAlternatorHTTPSPortOK struct { - Payload int64 -} - -func (o *FindConfigAlternatorHTTPSPortOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigAlternatorHTTPSPortOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigAlternatorHTTPSPortDefault creates a FindConfigAlternatorHTTPSPortDefault with default headers values -func NewFindConfigAlternatorHTTPSPortDefault(code int) *FindConfigAlternatorHTTPSPortDefault { - return &FindConfigAlternatorHTTPSPortDefault{ - _statusCode: code, - } -} - -/* -FindConfigAlternatorHTTPSPortDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigAlternatorHTTPSPortDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config alternator https port default response -func (o *FindConfigAlternatorHTTPSPortDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigAlternatorHTTPSPortDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigAlternatorHTTPSPortDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigAlternatorHTTPSPortDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_port_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_port_parameters.go deleted file mode 100644 index 5cf22903de..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_port_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigAlternatorPortParams creates a new FindConfigAlternatorPortParams object -// with the default values initialized. -func NewFindConfigAlternatorPortParams() *FindConfigAlternatorPortParams { - - return &FindConfigAlternatorPortParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigAlternatorPortParamsWithTimeout creates a new FindConfigAlternatorPortParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigAlternatorPortParamsWithTimeout(timeout time.Duration) *FindConfigAlternatorPortParams { - - return &FindConfigAlternatorPortParams{ - - timeout: timeout, - } -} - -// NewFindConfigAlternatorPortParamsWithContext creates a new FindConfigAlternatorPortParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigAlternatorPortParamsWithContext(ctx context.Context) *FindConfigAlternatorPortParams { - - return &FindConfigAlternatorPortParams{ - - Context: ctx, - } -} - -// NewFindConfigAlternatorPortParamsWithHTTPClient creates a new FindConfigAlternatorPortParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigAlternatorPortParamsWithHTTPClient(client *http.Client) *FindConfigAlternatorPortParams { - - return &FindConfigAlternatorPortParams{ - HTTPClient: client, - } -} - -/* -FindConfigAlternatorPortParams contains all the parameters to send to the API endpoint -for the find config alternator port operation typically these are written to a http.Request -*/ -type FindConfigAlternatorPortParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config alternator port params -func (o *FindConfigAlternatorPortParams) WithTimeout(timeout time.Duration) *FindConfigAlternatorPortParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config alternator port params -func (o *FindConfigAlternatorPortParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config alternator port params -func (o *FindConfigAlternatorPortParams) WithContext(ctx context.Context) *FindConfigAlternatorPortParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config alternator port params -func (o *FindConfigAlternatorPortParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config alternator port params -func (o *FindConfigAlternatorPortParams) WithHTTPClient(client *http.Client) *FindConfigAlternatorPortParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config alternator port params -func (o *FindConfigAlternatorPortParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigAlternatorPortParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_port_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_port_responses.go deleted file mode 100644 index 2484fcbb42..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_alternator_port_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigAlternatorPortReader is a Reader for the FindConfigAlternatorPort structure. -type FindConfigAlternatorPortReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigAlternatorPortReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigAlternatorPortOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigAlternatorPortDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigAlternatorPortOK creates a FindConfigAlternatorPortOK with default headers values -func NewFindConfigAlternatorPortOK() *FindConfigAlternatorPortOK { - return &FindConfigAlternatorPortOK{} -} - -/* -FindConfigAlternatorPortOK handles this case with default header values. - -Config value -*/ -type FindConfigAlternatorPortOK struct { - Payload int64 -} - -func (o *FindConfigAlternatorPortOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigAlternatorPortOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigAlternatorPortDefault creates a FindConfigAlternatorPortDefault with default headers values -func NewFindConfigAlternatorPortDefault(code int) *FindConfigAlternatorPortDefault { - return &FindConfigAlternatorPortDefault{ - _statusCode: code, - } -} - -/* -FindConfigAlternatorPortDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigAlternatorPortDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config alternator port default response -func (o *FindConfigAlternatorPortDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigAlternatorPortDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigAlternatorPortDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigAlternatorPortDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_address_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_address_parameters.go deleted file mode 100644 index b9cf9d7971..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_address_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigAPIAddressParams creates a new FindConfigAPIAddressParams object -// with the default values initialized. -func NewFindConfigAPIAddressParams() *FindConfigAPIAddressParams { - - return &FindConfigAPIAddressParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigAPIAddressParamsWithTimeout creates a new FindConfigAPIAddressParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigAPIAddressParamsWithTimeout(timeout time.Duration) *FindConfigAPIAddressParams { - - return &FindConfigAPIAddressParams{ - - timeout: timeout, - } -} - -// NewFindConfigAPIAddressParamsWithContext creates a new FindConfigAPIAddressParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigAPIAddressParamsWithContext(ctx context.Context) *FindConfigAPIAddressParams { - - return &FindConfigAPIAddressParams{ - - Context: ctx, - } -} - -// NewFindConfigAPIAddressParamsWithHTTPClient creates a new FindConfigAPIAddressParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigAPIAddressParamsWithHTTPClient(client *http.Client) *FindConfigAPIAddressParams { - - return &FindConfigAPIAddressParams{ - HTTPClient: client, - } -} - -/* -FindConfigAPIAddressParams contains all the parameters to send to the API endpoint -for the find config api address operation typically these are written to a http.Request -*/ -type FindConfigAPIAddressParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config api address params -func (o *FindConfigAPIAddressParams) WithTimeout(timeout time.Duration) *FindConfigAPIAddressParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config api address params -func (o *FindConfigAPIAddressParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config api address params -func (o *FindConfigAPIAddressParams) WithContext(ctx context.Context) *FindConfigAPIAddressParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config api address params -func (o *FindConfigAPIAddressParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config api address params -func (o *FindConfigAPIAddressParams) WithHTTPClient(client *http.Client) *FindConfigAPIAddressParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config api address params -func (o *FindConfigAPIAddressParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigAPIAddressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_address_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_address_responses.go deleted file mode 100644 index bc9c0db62b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_address_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigAPIAddressReader is a Reader for the FindConfigAPIAddress structure. -type FindConfigAPIAddressReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigAPIAddressReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigAPIAddressOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigAPIAddressDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigAPIAddressOK creates a FindConfigAPIAddressOK with default headers values -func NewFindConfigAPIAddressOK() *FindConfigAPIAddressOK { - return &FindConfigAPIAddressOK{} -} - -/* -FindConfigAPIAddressOK handles this case with default header values. - -Config value -*/ -type FindConfigAPIAddressOK struct { - Payload string -} - -func (o *FindConfigAPIAddressOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigAPIAddressOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigAPIAddressDefault creates a FindConfigAPIAddressDefault with default headers values -func NewFindConfigAPIAddressDefault(code int) *FindConfigAPIAddressDefault { - return &FindConfigAPIAddressDefault{ - _statusCode: code, - } -} - -/* -FindConfigAPIAddressDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigAPIAddressDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config api address default response -func (o *FindConfigAPIAddressDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigAPIAddressDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigAPIAddressDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigAPIAddressDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_doc_dir_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_doc_dir_parameters.go deleted file mode 100644 index d0780ab629..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_doc_dir_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigAPIDocDirParams creates a new FindConfigAPIDocDirParams object -// with the default values initialized. -func NewFindConfigAPIDocDirParams() *FindConfigAPIDocDirParams { - - return &FindConfigAPIDocDirParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigAPIDocDirParamsWithTimeout creates a new FindConfigAPIDocDirParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigAPIDocDirParamsWithTimeout(timeout time.Duration) *FindConfigAPIDocDirParams { - - return &FindConfigAPIDocDirParams{ - - timeout: timeout, - } -} - -// NewFindConfigAPIDocDirParamsWithContext creates a new FindConfigAPIDocDirParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigAPIDocDirParamsWithContext(ctx context.Context) *FindConfigAPIDocDirParams { - - return &FindConfigAPIDocDirParams{ - - Context: ctx, - } -} - -// NewFindConfigAPIDocDirParamsWithHTTPClient creates a new FindConfigAPIDocDirParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigAPIDocDirParamsWithHTTPClient(client *http.Client) *FindConfigAPIDocDirParams { - - return &FindConfigAPIDocDirParams{ - HTTPClient: client, - } -} - -/* -FindConfigAPIDocDirParams contains all the parameters to send to the API endpoint -for the find config api doc dir operation typically these are written to a http.Request -*/ -type FindConfigAPIDocDirParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config api doc dir params -func (o *FindConfigAPIDocDirParams) WithTimeout(timeout time.Duration) *FindConfigAPIDocDirParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config api doc dir params -func (o *FindConfigAPIDocDirParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config api doc dir params -func (o *FindConfigAPIDocDirParams) WithContext(ctx context.Context) *FindConfigAPIDocDirParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config api doc dir params -func (o *FindConfigAPIDocDirParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config api doc dir params -func (o *FindConfigAPIDocDirParams) WithHTTPClient(client *http.Client) *FindConfigAPIDocDirParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config api doc dir params -func (o *FindConfigAPIDocDirParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigAPIDocDirParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_doc_dir_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_doc_dir_responses.go deleted file mode 100644 index e8e69ff313..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_doc_dir_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigAPIDocDirReader is a Reader for the FindConfigAPIDocDir structure. -type FindConfigAPIDocDirReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigAPIDocDirReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigAPIDocDirOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigAPIDocDirDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigAPIDocDirOK creates a FindConfigAPIDocDirOK with default headers values -func NewFindConfigAPIDocDirOK() *FindConfigAPIDocDirOK { - return &FindConfigAPIDocDirOK{} -} - -/* -FindConfigAPIDocDirOK handles this case with default header values. - -Config value -*/ -type FindConfigAPIDocDirOK struct { - Payload string -} - -func (o *FindConfigAPIDocDirOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigAPIDocDirOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigAPIDocDirDefault creates a FindConfigAPIDocDirDefault with default headers values -func NewFindConfigAPIDocDirDefault(code int) *FindConfigAPIDocDirDefault { - return &FindConfigAPIDocDirDefault{ - _statusCode: code, - } -} - -/* -FindConfigAPIDocDirDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigAPIDocDirDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config api doc dir default response -func (o *FindConfigAPIDocDirDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigAPIDocDirDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigAPIDocDirDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigAPIDocDirDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_port_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_port_parameters.go deleted file mode 100644 index d336f25643..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_port_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigAPIPortParams creates a new FindConfigAPIPortParams object -// with the default values initialized. -func NewFindConfigAPIPortParams() *FindConfigAPIPortParams { - - return &FindConfigAPIPortParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigAPIPortParamsWithTimeout creates a new FindConfigAPIPortParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigAPIPortParamsWithTimeout(timeout time.Duration) *FindConfigAPIPortParams { - - return &FindConfigAPIPortParams{ - - timeout: timeout, - } -} - -// NewFindConfigAPIPortParamsWithContext creates a new FindConfigAPIPortParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigAPIPortParamsWithContext(ctx context.Context) *FindConfigAPIPortParams { - - return &FindConfigAPIPortParams{ - - Context: ctx, - } -} - -// NewFindConfigAPIPortParamsWithHTTPClient creates a new FindConfigAPIPortParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigAPIPortParamsWithHTTPClient(client *http.Client) *FindConfigAPIPortParams { - - return &FindConfigAPIPortParams{ - HTTPClient: client, - } -} - -/* -FindConfigAPIPortParams contains all the parameters to send to the API endpoint -for the find config api port operation typically these are written to a http.Request -*/ -type FindConfigAPIPortParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config api port params -func (o *FindConfigAPIPortParams) WithTimeout(timeout time.Duration) *FindConfigAPIPortParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config api port params -func (o *FindConfigAPIPortParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config api port params -func (o *FindConfigAPIPortParams) WithContext(ctx context.Context) *FindConfigAPIPortParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config api port params -func (o *FindConfigAPIPortParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config api port params -func (o *FindConfigAPIPortParams) WithHTTPClient(client *http.Client) *FindConfigAPIPortParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config api port params -func (o *FindConfigAPIPortParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigAPIPortParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_port_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_port_responses.go deleted file mode 100644 index f71b952219..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_port_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigAPIPortReader is a Reader for the FindConfigAPIPort structure. -type FindConfigAPIPortReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigAPIPortReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigAPIPortOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigAPIPortDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigAPIPortOK creates a FindConfigAPIPortOK with default headers values -func NewFindConfigAPIPortOK() *FindConfigAPIPortOK { - return &FindConfigAPIPortOK{} -} - -/* -FindConfigAPIPortOK handles this case with default header values. - -Config value -*/ -type FindConfigAPIPortOK struct { - Payload int64 -} - -func (o *FindConfigAPIPortOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigAPIPortOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigAPIPortDefault creates a FindConfigAPIPortDefault with default headers values -func NewFindConfigAPIPortDefault(code int) *FindConfigAPIPortDefault { - return &FindConfigAPIPortDefault{ - _statusCode: code, - } -} - -/* -FindConfigAPIPortDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigAPIPortDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config api port default response -func (o *FindConfigAPIPortDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigAPIPortDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigAPIPortDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigAPIPortDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_ui_dir_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_ui_dir_parameters.go deleted file mode 100644 index 5fbb417c3a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_ui_dir_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigAPIUIDirParams creates a new FindConfigAPIUIDirParams object -// with the default values initialized. -func NewFindConfigAPIUIDirParams() *FindConfigAPIUIDirParams { - - return &FindConfigAPIUIDirParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigAPIUIDirParamsWithTimeout creates a new FindConfigAPIUIDirParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigAPIUIDirParamsWithTimeout(timeout time.Duration) *FindConfigAPIUIDirParams { - - return &FindConfigAPIUIDirParams{ - - timeout: timeout, - } -} - -// NewFindConfigAPIUIDirParamsWithContext creates a new FindConfigAPIUIDirParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigAPIUIDirParamsWithContext(ctx context.Context) *FindConfigAPIUIDirParams { - - return &FindConfigAPIUIDirParams{ - - Context: ctx, - } -} - -// NewFindConfigAPIUIDirParamsWithHTTPClient creates a new FindConfigAPIUIDirParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigAPIUIDirParamsWithHTTPClient(client *http.Client) *FindConfigAPIUIDirParams { - - return &FindConfigAPIUIDirParams{ - HTTPClient: client, - } -} - -/* -FindConfigAPIUIDirParams contains all the parameters to send to the API endpoint -for the find config api ui dir operation typically these are written to a http.Request -*/ -type FindConfigAPIUIDirParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config api ui dir params -func (o *FindConfigAPIUIDirParams) WithTimeout(timeout time.Duration) *FindConfigAPIUIDirParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config api ui dir params -func (o *FindConfigAPIUIDirParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config api ui dir params -func (o *FindConfigAPIUIDirParams) WithContext(ctx context.Context) *FindConfigAPIUIDirParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config api ui dir params -func (o *FindConfigAPIUIDirParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config api ui dir params -func (o *FindConfigAPIUIDirParams) WithHTTPClient(client *http.Client) *FindConfigAPIUIDirParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config api ui dir params -func (o *FindConfigAPIUIDirParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigAPIUIDirParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_ui_dir_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_ui_dir_responses.go deleted file mode 100644 index 2fb22ac96a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_api_ui_dir_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigAPIUIDirReader is a Reader for the FindConfigAPIUIDir structure. -type FindConfigAPIUIDirReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigAPIUIDirReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigAPIUIDirOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigAPIUIDirDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigAPIUIDirOK creates a FindConfigAPIUIDirOK with default headers values -func NewFindConfigAPIUIDirOK() *FindConfigAPIUIDirOK { - return &FindConfigAPIUIDirOK{} -} - -/* -FindConfigAPIUIDirOK handles this case with default header values. - -Config value -*/ -type FindConfigAPIUIDirOK struct { - Payload string -} - -func (o *FindConfigAPIUIDirOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigAPIUIDirOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigAPIUIDirDefault creates a FindConfigAPIUIDirDefault with default headers values -func NewFindConfigAPIUIDirDefault(code int) *FindConfigAPIUIDirDefault { - return &FindConfigAPIUIDirDefault{ - _statusCode: code, - } -} - -/* -FindConfigAPIUIDirDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigAPIUIDirDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config api ui dir default response -func (o *FindConfigAPIUIDirDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigAPIUIDirDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigAPIUIDirDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigAPIUIDirDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_authenticator_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_authenticator_parameters.go deleted file mode 100644 index 9778189004..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_authenticator_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigAuthenticatorParams creates a new FindConfigAuthenticatorParams object -// with the default values initialized. -func NewFindConfigAuthenticatorParams() *FindConfigAuthenticatorParams { - - return &FindConfigAuthenticatorParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigAuthenticatorParamsWithTimeout creates a new FindConfigAuthenticatorParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigAuthenticatorParamsWithTimeout(timeout time.Duration) *FindConfigAuthenticatorParams { - - return &FindConfigAuthenticatorParams{ - - timeout: timeout, - } -} - -// NewFindConfigAuthenticatorParamsWithContext creates a new FindConfigAuthenticatorParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigAuthenticatorParamsWithContext(ctx context.Context) *FindConfigAuthenticatorParams { - - return &FindConfigAuthenticatorParams{ - - Context: ctx, - } -} - -// NewFindConfigAuthenticatorParamsWithHTTPClient creates a new FindConfigAuthenticatorParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigAuthenticatorParamsWithHTTPClient(client *http.Client) *FindConfigAuthenticatorParams { - - return &FindConfigAuthenticatorParams{ - HTTPClient: client, - } -} - -/* -FindConfigAuthenticatorParams contains all the parameters to send to the API endpoint -for the find config authenticator operation typically these are written to a http.Request -*/ -type FindConfigAuthenticatorParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config authenticator params -func (o *FindConfigAuthenticatorParams) WithTimeout(timeout time.Duration) *FindConfigAuthenticatorParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config authenticator params -func (o *FindConfigAuthenticatorParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config authenticator params -func (o *FindConfigAuthenticatorParams) WithContext(ctx context.Context) *FindConfigAuthenticatorParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config authenticator params -func (o *FindConfigAuthenticatorParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config authenticator params -func (o *FindConfigAuthenticatorParams) WithHTTPClient(client *http.Client) *FindConfigAuthenticatorParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config authenticator params -func (o *FindConfigAuthenticatorParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigAuthenticatorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_authenticator_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_authenticator_responses.go deleted file mode 100644 index f638bb7206..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_authenticator_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigAuthenticatorReader is a Reader for the FindConfigAuthenticator structure. -type FindConfigAuthenticatorReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigAuthenticatorReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigAuthenticatorOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigAuthenticatorDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigAuthenticatorOK creates a FindConfigAuthenticatorOK with default headers values -func NewFindConfigAuthenticatorOK() *FindConfigAuthenticatorOK { - return &FindConfigAuthenticatorOK{} -} - -/* -FindConfigAuthenticatorOK handles this case with default header values. - -Config value -*/ -type FindConfigAuthenticatorOK struct { - Payload string -} - -func (o *FindConfigAuthenticatorOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigAuthenticatorOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigAuthenticatorDefault creates a FindConfigAuthenticatorDefault with default headers values -func NewFindConfigAuthenticatorDefault(code int) *FindConfigAuthenticatorDefault { - return &FindConfigAuthenticatorDefault{ - _statusCode: code, - } -} - -/* -FindConfigAuthenticatorDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigAuthenticatorDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config authenticator default response -func (o *FindConfigAuthenticatorDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigAuthenticatorDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigAuthenticatorDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigAuthenticatorDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_authorizer_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_authorizer_parameters.go deleted file mode 100644 index 0c48493df8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_authorizer_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigAuthorizerParams creates a new FindConfigAuthorizerParams object -// with the default values initialized. -func NewFindConfigAuthorizerParams() *FindConfigAuthorizerParams { - - return &FindConfigAuthorizerParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigAuthorizerParamsWithTimeout creates a new FindConfigAuthorizerParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigAuthorizerParamsWithTimeout(timeout time.Duration) *FindConfigAuthorizerParams { - - return &FindConfigAuthorizerParams{ - - timeout: timeout, - } -} - -// NewFindConfigAuthorizerParamsWithContext creates a new FindConfigAuthorizerParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigAuthorizerParamsWithContext(ctx context.Context) *FindConfigAuthorizerParams { - - return &FindConfigAuthorizerParams{ - - Context: ctx, - } -} - -// NewFindConfigAuthorizerParamsWithHTTPClient creates a new FindConfigAuthorizerParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigAuthorizerParamsWithHTTPClient(client *http.Client) *FindConfigAuthorizerParams { - - return &FindConfigAuthorizerParams{ - HTTPClient: client, - } -} - -/* -FindConfigAuthorizerParams contains all the parameters to send to the API endpoint -for the find config authorizer operation typically these are written to a http.Request -*/ -type FindConfigAuthorizerParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config authorizer params -func (o *FindConfigAuthorizerParams) WithTimeout(timeout time.Duration) *FindConfigAuthorizerParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config authorizer params -func (o *FindConfigAuthorizerParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config authorizer params -func (o *FindConfigAuthorizerParams) WithContext(ctx context.Context) *FindConfigAuthorizerParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config authorizer params -func (o *FindConfigAuthorizerParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config authorizer params -func (o *FindConfigAuthorizerParams) WithHTTPClient(client *http.Client) *FindConfigAuthorizerParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config authorizer params -func (o *FindConfigAuthorizerParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigAuthorizerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_authorizer_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_authorizer_responses.go deleted file mode 100644 index 5683020ad3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_authorizer_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigAuthorizerReader is a Reader for the FindConfigAuthorizer structure. -type FindConfigAuthorizerReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigAuthorizerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigAuthorizerOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigAuthorizerDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigAuthorizerOK creates a FindConfigAuthorizerOK with default headers values -func NewFindConfigAuthorizerOK() *FindConfigAuthorizerOK { - return &FindConfigAuthorizerOK{} -} - -/* -FindConfigAuthorizerOK handles this case with default header values. - -Config value -*/ -type FindConfigAuthorizerOK struct { - Payload string -} - -func (o *FindConfigAuthorizerOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigAuthorizerOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigAuthorizerDefault creates a FindConfigAuthorizerDefault with default headers values -func NewFindConfigAuthorizerDefault(code int) *FindConfigAuthorizerDefault { - return &FindConfigAuthorizerDefault{ - _statusCode: code, - } -} - -/* -FindConfigAuthorizerDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigAuthorizerDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config authorizer default response -func (o *FindConfigAuthorizerDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigAuthorizerDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigAuthorizerDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigAuthorizerDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_auto_adjust_flush_quota_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_auto_adjust_flush_quota_parameters.go deleted file mode 100644 index 9f3a02f91e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_auto_adjust_flush_quota_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigAutoAdjustFlushQuotaParams creates a new FindConfigAutoAdjustFlushQuotaParams object -// with the default values initialized. -func NewFindConfigAutoAdjustFlushQuotaParams() *FindConfigAutoAdjustFlushQuotaParams { - - return &FindConfigAutoAdjustFlushQuotaParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigAutoAdjustFlushQuotaParamsWithTimeout creates a new FindConfigAutoAdjustFlushQuotaParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigAutoAdjustFlushQuotaParamsWithTimeout(timeout time.Duration) *FindConfigAutoAdjustFlushQuotaParams { - - return &FindConfigAutoAdjustFlushQuotaParams{ - - timeout: timeout, - } -} - -// NewFindConfigAutoAdjustFlushQuotaParamsWithContext creates a new FindConfigAutoAdjustFlushQuotaParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigAutoAdjustFlushQuotaParamsWithContext(ctx context.Context) *FindConfigAutoAdjustFlushQuotaParams { - - return &FindConfigAutoAdjustFlushQuotaParams{ - - Context: ctx, - } -} - -// NewFindConfigAutoAdjustFlushQuotaParamsWithHTTPClient creates a new FindConfigAutoAdjustFlushQuotaParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigAutoAdjustFlushQuotaParamsWithHTTPClient(client *http.Client) *FindConfigAutoAdjustFlushQuotaParams { - - return &FindConfigAutoAdjustFlushQuotaParams{ - HTTPClient: client, - } -} - -/* -FindConfigAutoAdjustFlushQuotaParams contains all the parameters to send to the API endpoint -for the find config auto adjust flush quota operation typically these are written to a http.Request -*/ -type FindConfigAutoAdjustFlushQuotaParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config auto adjust flush quota params -func (o *FindConfigAutoAdjustFlushQuotaParams) WithTimeout(timeout time.Duration) *FindConfigAutoAdjustFlushQuotaParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config auto adjust flush quota params -func (o *FindConfigAutoAdjustFlushQuotaParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config auto adjust flush quota params -func (o *FindConfigAutoAdjustFlushQuotaParams) WithContext(ctx context.Context) *FindConfigAutoAdjustFlushQuotaParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config auto adjust flush quota params -func (o *FindConfigAutoAdjustFlushQuotaParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config auto adjust flush quota params -func (o *FindConfigAutoAdjustFlushQuotaParams) WithHTTPClient(client *http.Client) *FindConfigAutoAdjustFlushQuotaParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config auto adjust flush quota params -func (o *FindConfigAutoAdjustFlushQuotaParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigAutoAdjustFlushQuotaParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_auto_adjust_flush_quota_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_auto_adjust_flush_quota_responses.go deleted file mode 100644 index 502efa5c7b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_auto_adjust_flush_quota_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigAutoAdjustFlushQuotaReader is a Reader for the FindConfigAutoAdjustFlushQuota structure. -type FindConfigAutoAdjustFlushQuotaReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigAutoAdjustFlushQuotaReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigAutoAdjustFlushQuotaOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigAutoAdjustFlushQuotaDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigAutoAdjustFlushQuotaOK creates a FindConfigAutoAdjustFlushQuotaOK with default headers values -func NewFindConfigAutoAdjustFlushQuotaOK() *FindConfigAutoAdjustFlushQuotaOK { - return &FindConfigAutoAdjustFlushQuotaOK{} -} - -/* -FindConfigAutoAdjustFlushQuotaOK handles this case with default header values. - -Config value -*/ -type FindConfigAutoAdjustFlushQuotaOK struct { - Payload bool -} - -func (o *FindConfigAutoAdjustFlushQuotaOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigAutoAdjustFlushQuotaOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigAutoAdjustFlushQuotaDefault creates a FindConfigAutoAdjustFlushQuotaDefault with default headers values -func NewFindConfigAutoAdjustFlushQuotaDefault(code int) *FindConfigAutoAdjustFlushQuotaDefault { - return &FindConfigAutoAdjustFlushQuotaDefault{ - _statusCode: code, - } -} - -/* -FindConfigAutoAdjustFlushQuotaDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigAutoAdjustFlushQuotaDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config auto adjust flush quota default response -func (o *FindConfigAutoAdjustFlushQuotaDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigAutoAdjustFlushQuotaDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigAutoAdjustFlushQuotaDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigAutoAdjustFlushQuotaDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_auto_bootstrap_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_auto_bootstrap_parameters.go deleted file mode 100644 index 9d73bd2fbf..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_auto_bootstrap_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigAutoBootstrapParams creates a new FindConfigAutoBootstrapParams object -// with the default values initialized. -func NewFindConfigAutoBootstrapParams() *FindConfigAutoBootstrapParams { - - return &FindConfigAutoBootstrapParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigAutoBootstrapParamsWithTimeout creates a new FindConfigAutoBootstrapParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigAutoBootstrapParamsWithTimeout(timeout time.Duration) *FindConfigAutoBootstrapParams { - - return &FindConfigAutoBootstrapParams{ - - timeout: timeout, - } -} - -// NewFindConfigAutoBootstrapParamsWithContext creates a new FindConfigAutoBootstrapParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigAutoBootstrapParamsWithContext(ctx context.Context) *FindConfigAutoBootstrapParams { - - return &FindConfigAutoBootstrapParams{ - - Context: ctx, - } -} - -// NewFindConfigAutoBootstrapParamsWithHTTPClient creates a new FindConfigAutoBootstrapParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigAutoBootstrapParamsWithHTTPClient(client *http.Client) *FindConfigAutoBootstrapParams { - - return &FindConfigAutoBootstrapParams{ - HTTPClient: client, - } -} - -/* -FindConfigAutoBootstrapParams contains all the parameters to send to the API endpoint -for the find config auto bootstrap operation typically these are written to a http.Request -*/ -type FindConfigAutoBootstrapParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config auto bootstrap params -func (o *FindConfigAutoBootstrapParams) WithTimeout(timeout time.Duration) *FindConfigAutoBootstrapParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config auto bootstrap params -func (o *FindConfigAutoBootstrapParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config auto bootstrap params -func (o *FindConfigAutoBootstrapParams) WithContext(ctx context.Context) *FindConfigAutoBootstrapParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config auto bootstrap params -func (o *FindConfigAutoBootstrapParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config auto bootstrap params -func (o *FindConfigAutoBootstrapParams) WithHTTPClient(client *http.Client) *FindConfigAutoBootstrapParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config auto bootstrap params -func (o *FindConfigAutoBootstrapParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigAutoBootstrapParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_auto_bootstrap_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_auto_bootstrap_responses.go deleted file mode 100644 index 2132becae3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_auto_bootstrap_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigAutoBootstrapReader is a Reader for the FindConfigAutoBootstrap structure. -type FindConfigAutoBootstrapReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigAutoBootstrapReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigAutoBootstrapOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigAutoBootstrapDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigAutoBootstrapOK creates a FindConfigAutoBootstrapOK with default headers values -func NewFindConfigAutoBootstrapOK() *FindConfigAutoBootstrapOK { - return &FindConfigAutoBootstrapOK{} -} - -/* -FindConfigAutoBootstrapOK handles this case with default header values. - -Config value -*/ -type FindConfigAutoBootstrapOK struct { - Payload bool -} - -func (o *FindConfigAutoBootstrapOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigAutoBootstrapOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigAutoBootstrapDefault creates a FindConfigAutoBootstrapDefault with default headers values -func NewFindConfigAutoBootstrapDefault(code int) *FindConfigAutoBootstrapDefault { - return &FindConfigAutoBootstrapDefault{ - _statusCode: code, - } -} - -/* -FindConfigAutoBootstrapDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigAutoBootstrapDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config auto bootstrap default response -func (o *FindConfigAutoBootstrapDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigAutoBootstrapDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigAutoBootstrapDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigAutoBootstrapDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_auto_snapshot_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_auto_snapshot_parameters.go deleted file mode 100644 index 6ce6dd83ae..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_auto_snapshot_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigAutoSnapshotParams creates a new FindConfigAutoSnapshotParams object -// with the default values initialized. -func NewFindConfigAutoSnapshotParams() *FindConfigAutoSnapshotParams { - - return &FindConfigAutoSnapshotParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigAutoSnapshotParamsWithTimeout creates a new FindConfigAutoSnapshotParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigAutoSnapshotParamsWithTimeout(timeout time.Duration) *FindConfigAutoSnapshotParams { - - return &FindConfigAutoSnapshotParams{ - - timeout: timeout, - } -} - -// NewFindConfigAutoSnapshotParamsWithContext creates a new FindConfigAutoSnapshotParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigAutoSnapshotParamsWithContext(ctx context.Context) *FindConfigAutoSnapshotParams { - - return &FindConfigAutoSnapshotParams{ - - Context: ctx, - } -} - -// NewFindConfigAutoSnapshotParamsWithHTTPClient creates a new FindConfigAutoSnapshotParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigAutoSnapshotParamsWithHTTPClient(client *http.Client) *FindConfigAutoSnapshotParams { - - return &FindConfigAutoSnapshotParams{ - HTTPClient: client, - } -} - -/* -FindConfigAutoSnapshotParams contains all the parameters to send to the API endpoint -for the find config auto snapshot operation typically these are written to a http.Request -*/ -type FindConfigAutoSnapshotParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config auto snapshot params -func (o *FindConfigAutoSnapshotParams) WithTimeout(timeout time.Duration) *FindConfigAutoSnapshotParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config auto snapshot params -func (o *FindConfigAutoSnapshotParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config auto snapshot params -func (o *FindConfigAutoSnapshotParams) WithContext(ctx context.Context) *FindConfigAutoSnapshotParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config auto snapshot params -func (o *FindConfigAutoSnapshotParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config auto snapshot params -func (o *FindConfigAutoSnapshotParams) WithHTTPClient(client *http.Client) *FindConfigAutoSnapshotParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config auto snapshot params -func (o *FindConfigAutoSnapshotParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigAutoSnapshotParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_auto_snapshot_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_auto_snapshot_responses.go deleted file mode 100644 index 2ee4f0d0b6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_auto_snapshot_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigAutoSnapshotReader is a Reader for the FindConfigAutoSnapshot structure. -type FindConfigAutoSnapshotReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigAutoSnapshotReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigAutoSnapshotOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigAutoSnapshotDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigAutoSnapshotOK creates a FindConfigAutoSnapshotOK with default headers values -func NewFindConfigAutoSnapshotOK() *FindConfigAutoSnapshotOK { - return &FindConfigAutoSnapshotOK{} -} - -/* -FindConfigAutoSnapshotOK handles this case with default header values. - -Config value -*/ -type FindConfigAutoSnapshotOK struct { - Payload bool -} - -func (o *FindConfigAutoSnapshotOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigAutoSnapshotOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigAutoSnapshotDefault creates a FindConfigAutoSnapshotDefault with default headers values -func NewFindConfigAutoSnapshotDefault(code int) *FindConfigAutoSnapshotDefault { - return &FindConfigAutoSnapshotDefault{ - _statusCode: code, - } -} - -/* -FindConfigAutoSnapshotDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigAutoSnapshotDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config auto snapshot default response -func (o *FindConfigAutoSnapshotDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigAutoSnapshotDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigAutoSnapshotDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigAutoSnapshotDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_background_writer_scheduling_quota_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_background_writer_scheduling_quota_parameters.go deleted file mode 100644 index 03c7d8747d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_background_writer_scheduling_quota_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigBackgroundWriterSchedulingQuotaParams creates a new FindConfigBackgroundWriterSchedulingQuotaParams object -// with the default values initialized. -func NewFindConfigBackgroundWriterSchedulingQuotaParams() *FindConfigBackgroundWriterSchedulingQuotaParams { - - return &FindConfigBackgroundWriterSchedulingQuotaParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigBackgroundWriterSchedulingQuotaParamsWithTimeout creates a new FindConfigBackgroundWriterSchedulingQuotaParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigBackgroundWriterSchedulingQuotaParamsWithTimeout(timeout time.Duration) *FindConfigBackgroundWriterSchedulingQuotaParams { - - return &FindConfigBackgroundWriterSchedulingQuotaParams{ - - timeout: timeout, - } -} - -// NewFindConfigBackgroundWriterSchedulingQuotaParamsWithContext creates a new FindConfigBackgroundWriterSchedulingQuotaParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigBackgroundWriterSchedulingQuotaParamsWithContext(ctx context.Context) *FindConfigBackgroundWriterSchedulingQuotaParams { - - return &FindConfigBackgroundWriterSchedulingQuotaParams{ - - Context: ctx, - } -} - -// NewFindConfigBackgroundWriterSchedulingQuotaParamsWithHTTPClient creates a new FindConfigBackgroundWriterSchedulingQuotaParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigBackgroundWriterSchedulingQuotaParamsWithHTTPClient(client *http.Client) *FindConfigBackgroundWriterSchedulingQuotaParams { - - return &FindConfigBackgroundWriterSchedulingQuotaParams{ - HTTPClient: client, - } -} - -/* -FindConfigBackgroundWriterSchedulingQuotaParams contains all the parameters to send to the API endpoint -for the find config background writer scheduling quota operation typically these are written to a http.Request -*/ -type FindConfigBackgroundWriterSchedulingQuotaParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config background writer scheduling quota params -func (o *FindConfigBackgroundWriterSchedulingQuotaParams) WithTimeout(timeout time.Duration) *FindConfigBackgroundWriterSchedulingQuotaParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config background writer scheduling quota params -func (o *FindConfigBackgroundWriterSchedulingQuotaParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config background writer scheduling quota params -func (o *FindConfigBackgroundWriterSchedulingQuotaParams) WithContext(ctx context.Context) *FindConfigBackgroundWriterSchedulingQuotaParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config background writer scheduling quota params -func (o *FindConfigBackgroundWriterSchedulingQuotaParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config background writer scheduling quota params -func (o *FindConfigBackgroundWriterSchedulingQuotaParams) WithHTTPClient(client *http.Client) *FindConfigBackgroundWriterSchedulingQuotaParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config background writer scheduling quota params -func (o *FindConfigBackgroundWriterSchedulingQuotaParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigBackgroundWriterSchedulingQuotaParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_background_writer_scheduling_quota_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_background_writer_scheduling_quota_responses.go deleted file mode 100644 index 86f0616565..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_background_writer_scheduling_quota_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigBackgroundWriterSchedulingQuotaReader is a Reader for the FindConfigBackgroundWriterSchedulingQuota structure. -type FindConfigBackgroundWriterSchedulingQuotaReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigBackgroundWriterSchedulingQuotaReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigBackgroundWriterSchedulingQuotaOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigBackgroundWriterSchedulingQuotaDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigBackgroundWriterSchedulingQuotaOK creates a FindConfigBackgroundWriterSchedulingQuotaOK with default headers values -func NewFindConfigBackgroundWriterSchedulingQuotaOK() *FindConfigBackgroundWriterSchedulingQuotaOK { - return &FindConfigBackgroundWriterSchedulingQuotaOK{} -} - -/* -FindConfigBackgroundWriterSchedulingQuotaOK handles this case with default header values. - -Config value -*/ -type FindConfigBackgroundWriterSchedulingQuotaOK struct { - Payload float64 -} - -func (o *FindConfigBackgroundWriterSchedulingQuotaOK) GetPayload() float64 { - return o.Payload -} - -func (o *FindConfigBackgroundWriterSchedulingQuotaOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigBackgroundWriterSchedulingQuotaDefault creates a FindConfigBackgroundWriterSchedulingQuotaDefault with default headers values -func NewFindConfigBackgroundWriterSchedulingQuotaDefault(code int) *FindConfigBackgroundWriterSchedulingQuotaDefault { - return &FindConfigBackgroundWriterSchedulingQuotaDefault{ - _statusCode: code, - } -} - -/* -FindConfigBackgroundWriterSchedulingQuotaDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigBackgroundWriterSchedulingQuotaDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config background writer scheduling quota default response -func (o *FindConfigBackgroundWriterSchedulingQuotaDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigBackgroundWriterSchedulingQuotaDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigBackgroundWriterSchedulingQuotaDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigBackgroundWriterSchedulingQuotaDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_batch_size_fail_threshold_in_kb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_batch_size_fail_threshold_in_kb_parameters.go deleted file mode 100644 index d0ebb4df6d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_batch_size_fail_threshold_in_kb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigBatchSizeFailThresholdInKbParams creates a new FindConfigBatchSizeFailThresholdInKbParams object -// with the default values initialized. -func NewFindConfigBatchSizeFailThresholdInKbParams() *FindConfigBatchSizeFailThresholdInKbParams { - - return &FindConfigBatchSizeFailThresholdInKbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigBatchSizeFailThresholdInKbParamsWithTimeout creates a new FindConfigBatchSizeFailThresholdInKbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigBatchSizeFailThresholdInKbParamsWithTimeout(timeout time.Duration) *FindConfigBatchSizeFailThresholdInKbParams { - - return &FindConfigBatchSizeFailThresholdInKbParams{ - - timeout: timeout, - } -} - -// NewFindConfigBatchSizeFailThresholdInKbParamsWithContext creates a new FindConfigBatchSizeFailThresholdInKbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigBatchSizeFailThresholdInKbParamsWithContext(ctx context.Context) *FindConfigBatchSizeFailThresholdInKbParams { - - return &FindConfigBatchSizeFailThresholdInKbParams{ - - Context: ctx, - } -} - -// NewFindConfigBatchSizeFailThresholdInKbParamsWithHTTPClient creates a new FindConfigBatchSizeFailThresholdInKbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigBatchSizeFailThresholdInKbParamsWithHTTPClient(client *http.Client) *FindConfigBatchSizeFailThresholdInKbParams { - - return &FindConfigBatchSizeFailThresholdInKbParams{ - HTTPClient: client, - } -} - -/* -FindConfigBatchSizeFailThresholdInKbParams contains all the parameters to send to the API endpoint -for the find config batch size fail threshold in kb operation typically these are written to a http.Request -*/ -type FindConfigBatchSizeFailThresholdInKbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config batch size fail threshold in kb params -func (o *FindConfigBatchSizeFailThresholdInKbParams) WithTimeout(timeout time.Duration) *FindConfigBatchSizeFailThresholdInKbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config batch size fail threshold in kb params -func (o *FindConfigBatchSizeFailThresholdInKbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config batch size fail threshold in kb params -func (o *FindConfigBatchSizeFailThresholdInKbParams) WithContext(ctx context.Context) *FindConfigBatchSizeFailThresholdInKbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config batch size fail threshold in kb params -func (o *FindConfigBatchSizeFailThresholdInKbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config batch size fail threshold in kb params -func (o *FindConfigBatchSizeFailThresholdInKbParams) WithHTTPClient(client *http.Client) *FindConfigBatchSizeFailThresholdInKbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config batch size fail threshold in kb params -func (o *FindConfigBatchSizeFailThresholdInKbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigBatchSizeFailThresholdInKbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_batch_size_fail_threshold_in_kb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_batch_size_fail_threshold_in_kb_responses.go deleted file mode 100644 index 797b3dcffd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_batch_size_fail_threshold_in_kb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigBatchSizeFailThresholdInKbReader is a Reader for the FindConfigBatchSizeFailThresholdInKb structure. -type FindConfigBatchSizeFailThresholdInKbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigBatchSizeFailThresholdInKbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigBatchSizeFailThresholdInKbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigBatchSizeFailThresholdInKbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigBatchSizeFailThresholdInKbOK creates a FindConfigBatchSizeFailThresholdInKbOK with default headers values -func NewFindConfigBatchSizeFailThresholdInKbOK() *FindConfigBatchSizeFailThresholdInKbOK { - return &FindConfigBatchSizeFailThresholdInKbOK{} -} - -/* -FindConfigBatchSizeFailThresholdInKbOK handles this case with default header values. - -Config value -*/ -type FindConfigBatchSizeFailThresholdInKbOK struct { - Payload int64 -} - -func (o *FindConfigBatchSizeFailThresholdInKbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigBatchSizeFailThresholdInKbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigBatchSizeFailThresholdInKbDefault creates a FindConfigBatchSizeFailThresholdInKbDefault with default headers values -func NewFindConfigBatchSizeFailThresholdInKbDefault(code int) *FindConfigBatchSizeFailThresholdInKbDefault { - return &FindConfigBatchSizeFailThresholdInKbDefault{ - _statusCode: code, - } -} - -/* -FindConfigBatchSizeFailThresholdInKbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigBatchSizeFailThresholdInKbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config batch size fail threshold in kb default response -func (o *FindConfigBatchSizeFailThresholdInKbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigBatchSizeFailThresholdInKbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigBatchSizeFailThresholdInKbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigBatchSizeFailThresholdInKbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_batch_size_warn_threshold_in_kb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_batch_size_warn_threshold_in_kb_parameters.go deleted file mode 100644 index 51a108bae6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_batch_size_warn_threshold_in_kb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigBatchSizeWarnThresholdInKbParams creates a new FindConfigBatchSizeWarnThresholdInKbParams object -// with the default values initialized. -func NewFindConfigBatchSizeWarnThresholdInKbParams() *FindConfigBatchSizeWarnThresholdInKbParams { - - return &FindConfigBatchSizeWarnThresholdInKbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigBatchSizeWarnThresholdInKbParamsWithTimeout creates a new FindConfigBatchSizeWarnThresholdInKbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigBatchSizeWarnThresholdInKbParamsWithTimeout(timeout time.Duration) *FindConfigBatchSizeWarnThresholdInKbParams { - - return &FindConfigBatchSizeWarnThresholdInKbParams{ - - timeout: timeout, - } -} - -// NewFindConfigBatchSizeWarnThresholdInKbParamsWithContext creates a new FindConfigBatchSizeWarnThresholdInKbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigBatchSizeWarnThresholdInKbParamsWithContext(ctx context.Context) *FindConfigBatchSizeWarnThresholdInKbParams { - - return &FindConfigBatchSizeWarnThresholdInKbParams{ - - Context: ctx, - } -} - -// NewFindConfigBatchSizeWarnThresholdInKbParamsWithHTTPClient creates a new FindConfigBatchSizeWarnThresholdInKbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigBatchSizeWarnThresholdInKbParamsWithHTTPClient(client *http.Client) *FindConfigBatchSizeWarnThresholdInKbParams { - - return &FindConfigBatchSizeWarnThresholdInKbParams{ - HTTPClient: client, - } -} - -/* -FindConfigBatchSizeWarnThresholdInKbParams contains all the parameters to send to the API endpoint -for the find config batch size warn threshold in kb operation typically these are written to a http.Request -*/ -type FindConfigBatchSizeWarnThresholdInKbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config batch size warn threshold in kb params -func (o *FindConfigBatchSizeWarnThresholdInKbParams) WithTimeout(timeout time.Duration) *FindConfigBatchSizeWarnThresholdInKbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config batch size warn threshold in kb params -func (o *FindConfigBatchSizeWarnThresholdInKbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config batch size warn threshold in kb params -func (o *FindConfigBatchSizeWarnThresholdInKbParams) WithContext(ctx context.Context) *FindConfigBatchSizeWarnThresholdInKbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config batch size warn threshold in kb params -func (o *FindConfigBatchSizeWarnThresholdInKbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config batch size warn threshold in kb params -func (o *FindConfigBatchSizeWarnThresholdInKbParams) WithHTTPClient(client *http.Client) *FindConfigBatchSizeWarnThresholdInKbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config batch size warn threshold in kb params -func (o *FindConfigBatchSizeWarnThresholdInKbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigBatchSizeWarnThresholdInKbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_batch_size_warn_threshold_in_kb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_batch_size_warn_threshold_in_kb_responses.go deleted file mode 100644 index 5eabac32fa..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_batch_size_warn_threshold_in_kb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigBatchSizeWarnThresholdInKbReader is a Reader for the FindConfigBatchSizeWarnThresholdInKb structure. -type FindConfigBatchSizeWarnThresholdInKbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigBatchSizeWarnThresholdInKbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigBatchSizeWarnThresholdInKbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigBatchSizeWarnThresholdInKbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigBatchSizeWarnThresholdInKbOK creates a FindConfigBatchSizeWarnThresholdInKbOK with default headers values -func NewFindConfigBatchSizeWarnThresholdInKbOK() *FindConfigBatchSizeWarnThresholdInKbOK { - return &FindConfigBatchSizeWarnThresholdInKbOK{} -} - -/* -FindConfigBatchSizeWarnThresholdInKbOK handles this case with default header values. - -Config value -*/ -type FindConfigBatchSizeWarnThresholdInKbOK struct { - Payload int64 -} - -func (o *FindConfigBatchSizeWarnThresholdInKbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigBatchSizeWarnThresholdInKbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigBatchSizeWarnThresholdInKbDefault creates a FindConfigBatchSizeWarnThresholdInKbDefault with default headers values -func NewFindConfigBatchSizeWarnThresholdInKbDefault(code int) *FindConfigBatchSizeWarnThresholdInKbDefault { - return &FindConfigBatchSizeWarnThresholdInKbDefault{ - _statusCode: code, - } -} - -/* -FindConfigBatchSizeWarnThresholdInKbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigBatchSizeWarnThresholdInKbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config batch size warn threshold in kb default response -func (o *FindConfigBatchSizeWarnThresholdInKbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigBatchSizeWarnThresholdInKbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigBatchSizeWarnThresholdInKbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigBatchSizeWarnThresholdInKbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_batchlog_replay_throttle_in_kb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_batchlog_replay_throttle_in_kb_parameters.go deleted file mode 100644 index 881be05bf1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_batchlog_replay_throttle_in_kb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigBatchlogReplayThrottleInKbParams creates a new FindConfigBatchlogReplayThrottleInKbParams object -// with the default values initialized. -func NewFindConfigBatchlogReplayThrottleInKbParams() *FindConfigBatchlogReplayThrottleInKbParams { - - return &FindConfigBatchlogReplayThrottleInKbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigBatchlogReplayThrottleInKbParamsWithTimeout creates a new FindConfigBatchlogReplayThrottleInKbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigBatchlogReplayThrottleInKbParamsWithTimeout(timeout time.Duration) *FindConfigBatchlogReplayThrottleInKbParams { - - return &FindConfigBatchlogReplayThrottleInKbParams{ - - timeout: timeout, - } -} - -// NewFindConfigBatchlogReplayThrottleInKbParamsWithContext creates a new FindConfigBatchlogReplayThrottleInKbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigBatchlogReplayThrottleInKbParamsWithContext(ctx context.Context) *FindConfigBatchlogReplayThrottleInKbParams { - - return &FindConfigBatchlogReplayThrottleInKbParams{ - - Context: ctx, - } -} - -// NewFindConfigBatchlogReplayThrottleInKbParamsWithHTTPClient creates a new FindConfigBatchlogReplayThrottleInKbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigBatchlogReplayThrottleInKbParamsWithHTTPClient(client *http.Client) *FindConfigBatchlogReplayThrottleInKbParams { - - return &FindConfigBatchlogReplayThrottleInKbParams{ - HTTPClient: client, - } -} - -/* -FindConfigBatchlogReplayThrottleInKbParams contains all the parameters to send to the API endpoint -for the find config batchlog replay throttle in kb operation typically these are written to a http.Request -*/ -type FindConfigBatchlogReplayThrottleInKbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config batchlog replay throttle in kb params -func (o *FindConfigBatchlogReplayThrottleInKbParams) WithTimeout(timeout time.Duration) *FindConfigBatchlogReplayThrottleInKbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config batchlog replay throttle in kb params -func (o *FindConfigBatchlogReplayThrottleInKbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config batchlog replay throttle in kb params -func (o *FindConfigBatchlogReplayThrottleInKbParams) WithContext(ctx context.Context) *FindConfigBatchlogReplayThrottleInKbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config batchlog replay throttle in kb params -func (o *FindConfigBatchlogReplayThrottleInKbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config batchlog replay throttle in kb params -func (o *FindConfigBatchlogReplayThrottleInKbParams) WithHTTPClient(client *http.Client) *FindConfigBatchlogReplayThrottleInKbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config batchlog replay throttle in kb params -func (o *FindConfigBatchlogReplayThrottleInKbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigBatchlogReplayThrottleInKbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_batchlog_replay_throttle_in_kb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_batchlog_replay_throttle_in_kb_responses.go deleted file mode 100644 index 6c39f3944a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_batchlog_replay_throttle_in_kb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigBatchlogReplayThrottleInKbReader is a Reader for the FindConfigBatchlogReplayThrottleInKb structure. -type FindConfigBatchlogReplayThrottleInKbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigBatchlogReplayThrottleInKbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigBatchlogReplayThrottleInKbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigBatchlogReplayThrottleInKbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigBatchlogReplayThrottleInKbOK creates a FindConfigBatchlogReplayThrottleInKbOK with default headers values -func NewFindConfigBatchlogReplayThrottleInKbOK() *FindConfigBatchlogReplayThrottleInKbOK { - return &FindConfigBatchlogReplayThrottleInKbOK{} -} - -/* -FindConfigBatchlogReplayThrottleInKbOK handles this case with default header values. - -Config value -*/ -type FindConfigBatchlogReplayThrottleInKbOK struct { - Payload int64 -} - -func (o *FindConfigBatchlogReplayThrottleInKbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigBatchlogReplayThrottleInKbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigBatchlogReplayThrottleInKbDefault creates a FindConfigBatchlogReplayThrottleInKbDefault with default headers values -func NewFindConfigBatchlogReplayThrottleInKbDefault(code int) *FindConfigBatchlogReplayThrottleInKbDefault { - return &FindConfigBatchlogReplayThrottleInKbDefault{ - _statusCode: code, - } -} - -/* -FindConfigBatchlogReplayThrottleInKbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigBatchlogReplayThrottleInKbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config batchlog replay throttle in kb default response -func (o *FindConfigBatchlogReplayThrottleInKbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigBatchlogReplayThrottleInKbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigBatchlogReplayThrottleInKbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigBatchlogReplayThrottleInKbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_broadcast_address_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_broadcast_address_parameters.go deleted file mode 100644 index d9b6584905..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_broadcast_address_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigBroadcastAddressParams creates a new FindConfigBroadcastAddressParams object -// with the default values initialized. -func NewFindConfigBroadcastAddressParams() *FindConfigBroadcastAddressParams { - - return &FindConfigBroadcastAddressParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigBroadcastAddressParamsWithTimeout creates a new FindConfigBroadcastAddressParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigBroadcastAddressParamsWithTimeout(timeout time.Duration) *FindConfigBroadcastAddressParams { - - return &FindConfigBroadcastAddressParams{ - - timeout: timeout, - } -} - -// NewFindConfigBroadcastAddressParamsWithContext creates a new FindConfigBroadcastAddressParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigBroadcastAddressParamsWithContext(ctx context.Context) *FindConfigBroadcastAddressParams { - - return &FindConfigBroadcastAddressParams{ - - Context: ctx, - } -} - -// NewFindConfigBroadcastAddressParamsWithHTTPClient creates a new FindConfigBroadcastAddressParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigBroadcastAddressParamsWithHTTPClient(client *http.Client) *FindConfigBroadcastAddressParams { - - return &FindConfigBroadcastAddressParams{ - HTTPClient: client, - } -} - -/* -FindConfigBroadcastAddressParams contains all the parameters to send to the API endpoint -for the find config broadcast address operation typically these are written to a http.Request -*/ -type FindConfigBroadcastAddressParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config broadcast address params -func (o *FindConfigBroadcastAddressParams) WithTimeout(timeout time.Duration) *FindConfigBroadcastAddressParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config broadcast address params -func (o *FindConfigBroadcastAddressParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config broadcast address params -func (o *FindConfigBroadcastAddressParams) WithContext(ctx context.Context) *FindConfigBroadcastAddressParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config broadcast address params -func (o *FindConfigBroadcastAddressParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config broadcast address params -func (o *FindConfigBroadcastAddressParams) WithHTTPClient(client *http.Client) *FindConfigBroadcastAddressParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config broadcast address params -func (o *FindConfigBroadcastAddressParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigBroadcastAddressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_broadcast_address_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_broadcast_address_responses.go deleted file mode 100644 index 6796c1b8e1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_broadcast_address_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigBroadcastAddressReader is a Reader for the FindConfigBroadcastAddress structure. -type FindConfigBroadcastAddressReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigBroadcastAddressReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigBroadcastAddressOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigBroadcastAddressDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigBroadcastAddressOK creates a FindConfigBroadcastAddressOK with default headers values -func NewFindConfigBroadcastAddressOK() *FindConfigBroadcastAddressOK { - return &FindConfigBroadcastAddressOK{} -} - -/* -FindConfigBroadcastAddressOK handles this case with default header values. - -Config value -*/ -type FindConfigBroadcastAddressOK struct { - Payload string -} - -func (o *FindConfigBroadcastAddressOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigBroadcastAddressOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigBroadcastAddressDefault creates a FindConfigBroadcastAddressDefault with default headers values -func NewFindConfigBroadcastAddressDefault(code int) *FindConfigBroadcastAddressDefault { - return &FindConfigBroadcastAddressDefault{ - _statusCode: code, - } -} - -/* -FindConfigBroadcastAddressDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigBroadcastAddressDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config broadcast address default response -func (o *FindConfigBroadcastAddressDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigBroadcastAddressDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigBroadcastAddressDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigBroadcastAddressDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_broadcast_rpc_address_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_broadcast_rpc_address_parameters.go deleted file mode 100644 index d677b903d0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_broadcast_rpc_address_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigBroadcastRPCAddressParams creates a new FindConfigBroadcastRPCAddressParams object -// with the default values initialized. -func NewFindConfigBroadcastRPCAddressParams() *FindConfigBroadcastRPCAddressParams { - - return &FindConfigBroadcastRPCAddressParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigBroadcastRPCAddressParamsWithTimeout creates a new FindConfigBroadcastRPCAddressParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigBroadcastRPCAddressParamsWithTimeout(timeout time.Duration) *FindConfigBroadcastRPCAddressParams { - - return &FindConfigBroadcastRPCAddressParams{ - - timeout: timeout, - } -} - -// NewFindConfigBroadcastRPCAddressParamsWithContext creates a new FindConfigBroadcastRPCAddressParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigBroadcastRPCAddressParamsWithContext(ctx context.Context) *FindConfigBroadcastRPCAddressParams { - - return &FindConfigBroadcastRPCAddressParams{ - - Context: ctx, - } -} - -// NewFindConfigBroadcastRPCAddressParamsWithHTTPClient creates a new FindConfigBroadcastRPCAddressParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigBroadcastRPCAddressParamsWithHTTPClient(client *http.Client) *FindConfigBroadcastRPCAddressParams { - - return &FindConfigBroadcastRPCAddressParams{ - HTTPClient: client, - } -} - -/* -FindConfigBroadcastRPCAddressParams contains all the parameters to send to the API endpoint -for the find config broadcast rpc address operation typically these are written to a http.Request -*/ -type FindConfigBroadcastRPCAddressParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config broadcast rpc address params -func (o *FindConfigBroadcastRPCAddressParams) WithTimeout(timeout time.Duration) *FindConfigBroadcastRPCAddressParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config broadcast rpc address params -func (o *FindConfigBroadcastRPCAddressParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config broadcast rpc address params -func (o *FindConfigBroadcastRPCAddressParams) WithContext(ctx context.Context) *FindConfigBroadcastRPCAddressParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config broadcast rpc address params -func (o *FindConfigBroadcastRPCAddressParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config broadcast rpc address params -func (o *FindConfigBroadcastRPCAddressParams) WithHTTPClient(client *http.Client) *FindConfigBroadcastRPCAddressParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config broadcast rpc address params -func (o *FindConfigBroadcastRPCAddressParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigBroadcastRPCAddressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_broadcast_rpc_address_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_broadcast_rpc_address_responses.go deleted file mode 100644 index bf1fce08ba..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_broadcast_rpc_address_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigBroadcastRPCAddressReader is a Reader for the FindConfigBroadcastRPCAddress structure. -type FindConfigBroadcastRPCAddressReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigBroadcastRPCAddressReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigBroadcastRPCAddressOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigBroadcastRPCAddressDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigBroadcastRPCAddressOK creates a FindConfigBroadcastRPCAddressOK with default headers values -func NewFindConfigBroadcastRPCAddressOK() *FindConfigBroadcastRPCAddressOK { - return &FindConfigBroadcastRPCAddressOK{} -} - -/* -FindConfigBroadcastRPCAddressOK handles this case with default header values. - -Config value -*/ -type FindConfigBroadcastRPCAddressOK struct { - Payload string -} - -func (o *FindConfigBroadcastRPCAddressOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigBroadcastRPCAddressOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigBroadcastRPCAddressDefault creates a FindConfigBroadcastRPCAddressDefault with default headers values -func NewFindConfigBroadcastRPCAddressDefault(code int) *FindConfigBroadcastRPCAddressDefault { - return &FindConfigBroadcastRPCAddressDefault{ - _statusCode: code, - } -} - -/* -FindConfigBroadcastRPCAddressDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigBroadcastRPCAddressDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config broadcast rpc address default response -func (o *FindConfigBroadcastRPCAddressDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigBroadcastRPCAddressDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigBroadcastRPCAddressDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigBroadcastRPCAddressDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cache_hit_rate_read_balancing_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cache_hit_rate_read_balancing_parameters.go deleted file mode 100644 index 4eb96427af..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cache_hit_rate_read_balancing_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCacheHitRateReadBalancingParams creates a new FindConfigCacheHitRateReadBalancingParams object -// with the default values initialized. -func NewFindConfigCacheHitRateReadBalancingParams() *FindConfigCacheHitRateReadBalancingParams { - - return &FindConfigCacheHitRateReadBalancingParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCacheHitRateReadBalancingParamsWithTimeout creates a new FindConfigCacheHitRateReadBalancingParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCacheHitRateReadBalancingParamsWithTimeout(timeout time.Duration) *FindConfigCacheHitRateReadBalancingParams { - - return &FindConfigCacheHitRateReadBalancingParams{ - - timeout: timeout, - } -} - -// NewFindConfigCacheHitRateReadBalancingParamsWithContext creates a new FindConfigCacheHitRateReadBalancingParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCacheHitRateReadBalancingParamsWithContext(ctx context.Context) *FindConfigCacheHitRateReadBalancingParams { - - return &FindConfigCacheHitRateReadBalancingParams{ - - Context: ctx, - } -} - -// NewFindConfigCacheHitRateReadBalancingParamsWithHTTPClient creates a new FindConfigCacheHitRateReadBalancingParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCacheHitRateReadBalancingParamsWithHTTPClient(client *http.Client) *FindConfigCacheHitRateReadBalancingParams { - - return &FindConfigCacheHitRateReadBalancingParams{ - HTTPClient: client, - } -} - -/* -FindConfigCacheHitRateReadBalancingParams contains all the parameters to send to the API endpoint -for the find config cache hit rate read balancing operation typically these are written to a http.Request -*/ -type FindConfigCacheHitRateReadBalancingParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config cache hit rate read balancing params -func (o *FindConfigCacheHitRateReadBalancingParams) WithTimeout(timeout time.Duration) *FindConfigCacheHitRateReadBalancingParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config cache hit rate read balancing params -func (o *FindConfigCacheHitRateReadBalancingParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config cache hit rate read balancing params -func (o *FindConfigCacheHitRateReadBalancingParams) WithContext(ctx context.Context) *FindConfigCacheHitRateReadBalancingParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config cache hit rate read balancing params -func (o *FindConfigCacheHitRateReadBalancingParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config cache hit rate read balancing params -func (o *FindConfigCacheHitRateReadBalancingParams) WithHTTPClient(client *http.Client) *FindConfigCacheHitRateReadBalancingParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config cache hit rate read balancing params -func (o *FindConfigCacheHitRateReadBalancingParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCacheHitRateReadBalancingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cache_hit_rate_read_balancing_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cache_hit_rate_read_balancing_responses.go deleted file mode 100644 index 2110ef146c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cache_hit_rate_read_balancing_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCacheHitRateReadBalancingReader is a Reader for the FindConfigCacheHitRateReadBalancing structure. -type FindConfigCacheHitRateReadBalancingReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCacheHitRateReadBalancingReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCacheHitRateReadBalancingOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCacheHitRateReadBalancingDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCacheHitRateReadBalancingOK creates a FindConfigCacheHitRateReadBalancingOK with default headers values -func NewFindConfigCacheHitRateReadBalancingOK() *FindConfigCacheHitRateReadBalancingOK { - return &FindConfigCacheHitRateReadBalancingOK{} -} - -/* -FindConfigCacheHitRateReadBalancingOK handles this case with default header values. - -Config value -*/ -type FindConfigCacheHitRateReadBalancingOK struct { - Payload bool -} - -func (o *FindConfigCacheHitRateReadBalancingOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigCacheHitRateReadBalancingOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCacheHitRateReadBalancingDefault creates a FindConfigCacheHitRateReadBalancingDefault with default headers values -func NewFindConfigCacheHitRateReadBalancingDefault(code int) *FindConfigCacheHitRateReadBalancingDefault { - return &FindConfigCacheHitRateReadBalancingDefault{ - _statusCode: code, - } -} - -/* -FindConfigCacheHitRateReadBalancingDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCacheHitRateReadBalancingDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config cache hit rate read balancing default response -func (o *FindConfigCacheHitRateReadBalancingDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCacheHitRateReadBalancingDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCacheHitRateReadBalancingDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCacheHitRateReadBalancingDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cas_contention_timeout_in_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cas_contention_timeout_in_ms_parameters.go deleted file mode 100644 index da89c7dae8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cas_contention_timeout_in_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCasContentionTimeoutInMsParams creates a new FindConfigCasContentionTimeoutInMsParams object -// with the default values initialized. -func NewFindConfigCasContentionTimeoutInMsParams() *FindConfigCasContentionTimeoutInMsParams { - - return &FindConfigCasContentionTimeoutInMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCasContentionTimeoutInMsParamsWithTimeout creates a new FindConfigCasContentionTimeoutInMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCasContentionTimeoutInMsParamsWithTimeout(timeout time.Duration) *FindConfigCasContentionTimeoutInMsParams { - - return &FindConfigCasContentionTimeoutInMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigCasContentionTimeoutInMsParamsWithContext creates a new FindConfigCasContentionTimeoutInMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCasContentionTimeoutInMsParamsWithContext(ctx context.Context) *FindConfigCasContentionTimeoutInMsParams { - - return &FindConfigCasContentionTimeoutInMsParams{ - - Context: ctx, - } -} - -// NewFindConfigCasContentionTimeoutInMsParamsWithHTTPClient creates a new FindConfigCasContentionTimeoutInMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCasContentionTimeoutInMsParamsWithHTTPClient(client *http.Client) *FindConfigCasContentionTimeoutInMsParams { - - return &FindConfigCasContentionTimeoutInMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigCasContentionTimeoutInMsParams contains all the parameters to send to the API endpoint -for the find config cas contention timeout in ms operation typically these are written to a http.Request -*/ -type FindConfigCasContentionTimeoutInMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config cas contention timeout in ms params -func (o *FindConfigCasContentionTimeoutInMsParams) WithTimeout(timeout time.Duration) *FindConfigCasContentionTimeoutInMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config cas contention timeout in ms params -func (o *FindConfigCasContentionTimeoutInMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config cas contention timeout in ms params -func (o *FindConfigCasContentionTimeoutInMsParams) WithContext(ctx context.Context) *FindConfigCasContentionTimeoutInMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config cas contention timeout in ms params -func (o *FindConfigCasContentionTimeoutInMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config cas contention timeout in ms params -func (o *FindConfigCasContentionTimeoutInMsParams) WithHTTPClient(client *http.Client) *FindConfigCasContentionTimeoutInMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config cas contention timeout in ms params -func (o *FindConfigCasContentionTimeoutInMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCasContentionTimeoutInMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cas_contention_timeout_in_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cas_contention_timeout_in_ms_responses.go deleted file mode 100644 index bda6e4b0b4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cas_contention_timeout_in_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCasContentionTimeoutInMsReader is a Reader for the FindConfigCasContentionTimeoutInMs structure. -type FindConfigCasContentionTimeoutInMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCasContentionTimeoutInMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCasContentionTimeoutInMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCasContentionTimeoutInMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCasContentionTimeoutInMsOK creates a FindConfigCasContentionTimeoutInMsOK with default headers values -func NewFindConfigCasContentionTimeoutInMsOK() *FindConfigCasContentionTimeoutInMsOK { - return &FindConfigCasContentionTimeoutInMsOK{} -} - -/* -FindConfigCasContentionTimeoutInMsOK handles this case with default header values. - -Config value -*/ -type FindConfigCasContentionTimeoutInMsOK struct { - Payload int64 -} - -func (o *FindConfigCasContentionTimeoutInMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigCasContentionTimeoutInMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCasContentionTimeoutInMsDefault creates a FindConfigCasContentionTimeoutInMsDefault with default headers values -func NewFindConfigCasContentionTimeoutInMsDefault(code int) *FindConfigCasContentionTimeoutInMsDefault { - return &FindConfigCasContentionTimeoutInMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigCasContentionTimeoutInMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCasContentionTimeoutInMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config cas contention timeout in ms default response -func (o *FindConfigCasContentionTimeoutInMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCasContentionTimeoutInMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCasContentionTimeoutInMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCasContentionTimeoutInMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_client_encryption_options_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_client_encryption_options_parameters.go deleted file mode 100644 index fdc092c699..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_client_encryption_options_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigClientEncryptionOptionsParams creates a new FindConfigClientEncryptionOptionsParams object -// with the default values initialized. -func NewFindConfigClientEncryptionOptionsParams() *FindConfigClientEncryptionOptionsParams { - - return &FindConfigClientEncryptionOptionsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigClientEncryptionOptionsParamsWithTimeout creates a new FindConfigClientEncryptionOptionsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigClientEncryptionOptionsParamsWithTimeout(timeout time.Duration) *FindConfigClientEncryptionOptionsParams { - - return &FindConfigClientEncryptionOptionsParams{ - - timeout: timeout, - } -} - -// NewFindConfigClientEncryptionOptionsParamsWithContext creates a new FindConfigClientEncryptionOptionsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigClientEncryptionOptionsParamsWithContext(ctx context.Context) *FindConfigClientEncryptionOptionsParams { - - return &FindConfigClientEncryptionOptionsParams{ - - Context: ctx, - } -} - -// NewFindConfigClientEncryptionOptionsParamsWithHTTPClient creates a new FindConfigClientEncryptionOptionsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigClientEncryptionOptionsParamsWithHTTPClient(client *http.Client) *FindConfigClientEncryptionOptionsParams { - - return &FindConfigClientEncryptionOptionsParams{ - HTTPClient: client, - } -} - -/* -FindConfigClientEncryptionOptionsParams contains all the parameters to send to the API endpoint -for the find config client encryption options operation typically these are written to a http.Request -*/ -type FindConfigClientEncryptionOptionsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config client encryption options params -func (o *FindConfigClientEncryptionOptionsParams) WithTimeout(timeout time.Duration) *FindConfigClientEncryptionOptionsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config client encryption options params -func (o *FindConfigClientEncryptionOptionsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config client encryption options params -func (o *FindConfigClientEncryptionOptionsParams) WithContext(ctx context.Context) *FindConfigClientEncryptionOptionsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config client encryption options params -func (o *FindConfigClientEncryptionOptionsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config client encryption options params -func (o *FindConfigClientEncryptionOptionsParams) WithHTTPClient(client *http.Client) *FindConfigClientEncryptionOptionsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config client encryption options params -func (o *FindConfigClientEncryptionOptionsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigClientEncryptionOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_client_encryption_options_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_client_encryption_options_responses.go deleted file mode 100644 index 3c30d10e5a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_client_encryption_options_responses.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigClientEncryptionOptionsReader is a Reader for the FindConfigClientEncryptionOptions structure. -type FindConfigClientEncryptionOptionsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigClientEncryptionOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigClientEncryptionOptionsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigClientEncryptionOptionsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigClientEncryptionOptionsOK creates a FindConfigClientEncryptionOptionsOK with default headers values -func NewFindConfigClientEncryptionOptionsOK() *FindConfigClientEncryptionOptionsOK { - return &FindConfigClientEncryptionOptionsOK{} -} - -/* -FindConfigClientEncryptionOptionsOK handles this case with default header values. - -Config value -*/ -type FindConfigClientEncryptionOptionsOK struct { - Payload *models.ClientEncryptionOptions -} - -func (o *FindConfigClientEncryptionOptionsOK) GetPayload() *models.ClientEncryptionOptions { - return o.Payload -} - -func (o *FindConfigClientEncryptionOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ClientEncryptionOptions) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigClientEncryptionOptionsDefault creates a FindConfigClientEncryptionOptionsDefault with default headers values -func NewFindConfigClientEncryptionOptionsDefault(code int) *FindConfigClientEncryptionOptionsDefault { - return &FindConfigClientEncryptionOptionsDefault{ - _statusCode: code, - } -} - -/* -FindConfigClientEncryptionOptionsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigClientEncryptionOptionsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config client encryption options default response -func (o *FindConfigClientEncryptionOptionsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigClientEncryptionOptionsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigClientEncryptionOptionsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigClientEncryptionOptionsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cluster_name_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cluster_name_parameters.go deleted file mode 100644 index e1715f6e5f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cluster_name_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigClusterNameParams creates a new FindConfigClusterNameParams object -// with the default values initialized. -func NewFindConfigClusterNameParams() *FindConfigClusterNameParams { - - return &FindConfigClusterNameParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigClusterNameParamsWithTimeout creates a new FindConfigClusterNameParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigClusterNameParamsWithTimeout(timeout time.Duration) *FindConfigClusterNameParams { - - return &FindConfigClusterNameParams{ - - timeout: timeout, - } -} - -// NewFindConfigClusterNameParamsWithContext creates a new FindConfigClusterNameParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigClusterNameParamsWithContext(ctx context.Context) *FindConfigClusterNameParams { - - return &FindConfigClusterNameParams{ - - Context: ctx, - } -} - -// NewFindConfigClusterNameParamsWithHTTPClient creates a new FindConfigClusterNameParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigClusterNameParamsWithHTTPClient(client *http.Client) *FindConfigClusterNameParams { - - return &FindConfigClusterNameParams{ - HTTPClient: client, - } -} - -/* -FindConfigClusterNameParams contains all the parameters to send to the API endpoint -for the find config cluster name operation typically these are written to a http.Request -*/ -type FindConfigClusterNameParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config cluster name params -func (o *FindConfigClusterNameParams) WithTimeout(timeout time.Duration) *FindConfigClusterNameParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config cluster name params -func (o *FindConfigClusterNameParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config cluster name params -func (o *FindConfigClusterNameParams) WithContext(ctx context.Context) *FindConfigClusterNameParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config cluster name params -func (o *FindConfigClusterNameParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config cluster name params -func (o *FindConfigClusterNameParams) WithHTTPClient(client *http.Client) *FindConfigClusterNameParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config cluster name params -func (o *FindConfigClusterNameParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigClusterNameParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cluster_name_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cluster_name_responses.go deleted file mode 100644 index 13686eb5fd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cluster_name_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigClusterNameReader is a Reader for the FindConfigClusterName structure. -type FindConfigClusterNameReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigClusterNameReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigClusterNameOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigClusterNameDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigClusterNameOK creates a FindConfigClusterNameOK with default headers values -func NewFindConfigClusterNameOK() *FindConfigClusterNameOK { - return &FindConfigClusterNameOK{} -} - -/* -FindConfigClusterNameOK handles this case with default header values. - -Config value -*/ -type FindConfigClusterNameOK struct { - Payload string -} - -func (o *FindConfigClusterNameOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigClusterNameOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigClusterNameDefault creates a FindConfigClusterNameDefault with default headers values -func NewFindConfigClusterNameDefault(code int) *FindConfigClusterNameDefault { - return &FindConfigClusterNameDefault{ - _statusCode: code, - } -} - -/* -FindConfigClusterNameDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigClusterNameDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config cluster name default response -func (o *FindConfigClusterNameDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigClusterNameDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigClusterNameDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigClusterNameDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_column_index_size_in_kb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_column_index_size_in_kb_parameters.go deleted file mode 100644 index 6594af387d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_column_index_size_in_kb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigColumnIndexSizeInKbParams creates a new FindConfigColumnIndexSizeInKbParams object -// with the default values initialized. -func NewFindConfigColumnIndexSizeInKbParams() *FindConfigColumnIndexSizeInKbParams { - - return &FindConfigColumnIndexSizeInKbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigColumnIndexSizeInKbParamsWithTimeout creates a new FindConfigColumnIndexSizeInKbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigColumnIndexSizeInKbParamsWithTimeout(timeout time.Duration) *FindConfigColumnIndexSizeInKbParams { - - return &FindConfigColumnIndexSizeInKbParams{ - - timeout: timeout, - } -} - -// NewFindConfigColumnIndexSizeInKbParamsWithContext creates a new FindConfigColumnIndexSizeInKbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigColumnIndexSizeInKbParamsWithContext(ctx context.Context) *FindConfigColumnIndexSizeInKbParams { - - return &FindConfigColumnIndexSizeInKbParams{ - - Context: ctx, - } -} - -// NewFindConfigColumnIndexSizeInKbParamsWithHTTPClient creates a new FindConfigColumnIndexSizeInKbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigColumnIndexSizeInKbParamsWithHTTPClient(client *http.Client) *FindConfigColumnIndexSizeInKbParams { - - return &FindConfigColumnIndexSizeInKbParams{ - HTTPClient: client, - } -} - -/* -FindConfigColumnIndexSizeInKbParams contains all the parameters to send to the API endpoint -for the find config column index size in kb operation typically these are written to a http.Request -*/ -type FindConfigColumnIndexSizeInKbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config column index size in kb params -func (o *FindConfigColumnIndexSizeInKbParams) WithTimeout(timeout time.Duration) *FindConfigColumnIndexSizeInKbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config column index size in kb params -func (o *FindConfigColumnIndexSizeInKbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config column index size in kb params -func (o *FindConfigColumnIndexSizeInKbParams) WithContext(ctx context.Context) *FindConfigColumnIndexSizeInKbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config column index size in kb params -func (o *FindConfigColumnIndexSizeInKbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config column index size in kb params -func (o *FindConfigColumnIndexSizeInKbParams) WithHTTPClient(client *http.Client) *FindConfigColumnIndexSizeInKbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config column index size in kb params -func (o *FindConfigColumnIndexSizeInKbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigColumnIndexSizeInKbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_column_index_size_in_kb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_column_index_size_in_kb_responses.go deleted file mode 100644 index d74569dc82..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_column_index_size_in_kb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigColumnIndexSizeInKbReader is a Reader for the FindConfigColumnIndexSizeInKb structure. -type FindConfigColumnIndexSizeInKbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigColumnIndexSizeInKbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigColumnIndexSizeInKbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigColumnIndexSizeInKbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigColumnIndexSizeInKbOK creates a FindConfigColumnIndexSizeInKbOK with default headers values -func NewFindConfigColumnIndexSizeInKbOK() *FindConfigColumnIndexSizeInKbOK { - return &FindConfigColumnIndexSizeInKbOK{} -} - -/* -FindConfigColumnIndexSizeInKbOK handles this case with default header values. - -Config value -*/ -type FindConfigColumnIndexSizeInKbOK struct { - Payload int64 -} - -func (o *FindConfigColumnIndexSizeInKbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigColumnIndexSizeInKbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigColumnIndexSizeInKbDefault creates a FindConfigColumnIndexSizeInKbDefault with default headers values -func NewFindConfigColumnIndexSizeInKbDefault(code int) *FindConfigColumnIndexSizeInKbDefault { - return &FindConfigColumnIndexSizeInKbDefault{ - _statusCode: code, - } -} - -/* -FindConfigColumnIndexSizeInKbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigColumnIndexSizeInKbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config column index size in kb default response -func (o *FindConfigColumnIndexSizeInKbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigColumnIndexSizeInKbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigColumnIndexSizeInKbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigColumnIndexSizeInKbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commit_failure_policy_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commit_failure_policy_parameters.go deleted file mode 100644 index 4ab4bd75b0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commit_failure_policy_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCommitFailurePolicyParams creates a new FindConfigCommitFailurePolicyParams object -// with the default values initialized. -func NewFindConfigCommitFailurePolicyParams() *FindConfigCommitFailurePolicyParams { - - return &FindConfigCommitFailurePolicyParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCommitFailurePolicyParamsWithTimeout creates a new FindConfigCommitFailurePolicyParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCommitFailurePolicyParamsWithTimeout(timeout time.Duration) *FindConfigCommitFailurePolicyParams { - - return &FindConfigCommitFailurePolicyParams{ - - timeout: timeout, - } -} - -// NewFindConfigCommitFailurePolicyParamsWithContext creates a new FindConfigCommitFailurePolicyParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCommitFailurePolicyParamsWithContext(ctx context.Context) *FindConfigCommitFailurePolicyParams { - - return &FindConfigCommitFailurePolicyParams{ - - Context: ctx, - } -} - -// NewFindConfigCommitFailurePolicyParamsWithHTTPClient creates a new FindConfigCommitFailurePolicyParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCommitFailurePolicyParamsWithHTTPClient(client *http.Client) *FindConfigCommitFailurePolicyParams { - - return &FindConfigCommitFailurePolicyParams{ - HTTPClient: client, - } -} - -/* -FindConfigCommitFailurePolicyParams contains all the parameters to send to the API endpoint -for the find config commit failure policy operation typically these are written to a http.Request -*/ -type FindConfigCommitFailurePolicyParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config commit failure policy params -func (o *FindConfigCommitFailurePolicyParams) WithTimeout(timeout time.Duration) *FindConfigCommitFailurePolicyParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config commit failure policy params -func (o *FindConfigCommitFailurePolicyParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config commit failure policy params -func (o *FindConfigCommitFailurePolicyParams) WithContext(ctx context.Context) *FindConfigCommitFailurePolicyParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config commit failure policy params -func (o *FindConfigCommitFailurePolicyParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config commit failure policy params -func (o *FindConfigCommitFailurePolicyParams) WithHTTPClient(client *http.Client) *FindConfigCommitFailurePolicyParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config commit failure policy params -func (o *FindConfigCommitFailurePolicyParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCommitFailurePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commit_failure_policy_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commit_failure_policy_responses.go deleted file mode 100644 index bd575c174d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commit_failure_policy_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCommitFailurePolicyReader is a Reader for the FindConfigCommitFailurePolicy structure. -type FindConfigCommitFailurePolicyReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCommitFailurePolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCommitFailurePolicyOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCommitFailurePolicyDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCommitFailurePolicyOK creates a FindConfigCommitFailurePolicyOK with default headers values -func NewFindConfigCommitFailurePolicyOK() *FindConfigCommitFailurePolicyOK { - return &FindConfigCommitFailurePolicyOK{} -} - -/* -FindConfigCommitFailurePolicyOK handles this case with default header values. - -Config value -*/ -type FindConfigCommitFailurePolicyOK struct { - Payload string -} - -func (o *FindConfigCommitFailurePolicyOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigCommitFailurePolicyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCommitFailurePolicyDefault creates a FindConfigCommitFailurePolicyDefault with default headers values -func NewFindConfigCommitFailurePolicyDefault(code int) *FindConfigCommitFailurePolicyDefault { - return &FindConfigCommitFailurePolicyDefault{ - _statusCode: code, - } -} - -/* -FindConfigCommitFailurePolicyDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCommitFailurePolicyDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config commit failure policy default response -func (o *FindConfigCommitFailurePolicyDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCommitFailurePolicyDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCommitFailurePolicyDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCommitFailurePolicyDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_directory_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_directory_parameters.go deleted file mode 100644 index 7dcbd7b1f9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_directory_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCommitlogDirectoryParams creates a new FindConfigCommitlogDirectoryParams object -// with the default values initialized. -func NewFindConfigCommitlogDirectoryParams() *FindConfigCommitlogDirectoryParams { - - return &FindConfigCommitlogDirectoryParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCommitlogDirectoryParamsWithTimeout creates a new FindConfigCommitlogDirectoryParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCommitlogDirectoryParamsWithTimeout(timeout time.Duration) *FindConfigCommitlogDirectoryParams { - - return &FindConfigCommitlogDirectoryParams{ - - timeout: timeout, - } -} - -// NewFindConfigCommitlogDirectoryParamsWithContext creates a new FindConfigCommitlogDirectoryParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCommitlogDirectoryParamsWithContext(ctx context.Context) *FindConfigCommitlogDirectoryParams { - - return &FindConfigCommitlogDirectoryParams{ - - Context: ctx, - } -} - -// NewFindConfigCommitlogDirectoryParamsWithHTTPClient creates a new FindConfigCommitlogDirectoryParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCommitlogDirectoryParamsWithHTTPClient(client *http.Client) *FindConfigCommitlogDirectoryParams { - - return &FindConfigCommitlogDirectoryParams{ - HTTPClient: client, - } -} - -/* -FindConfigCommitlogDirectoryParams contains all the parameters to send to the API endpoint -for the find config commitlog directory operation typically these are written to a http.Request -*/ -type FindConfigCommitlogDirectoryParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config commitlog directory params -func (o *FindConfigCommitlogDirectoryParams) WithTimeout(timeout time.Duration) *FindConfigCommitlogDirectoryParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config commitlog directory params -func (o *FindConfigCommitlogDirectoryParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config commitlog directory params -func (o *FindConfigCommitlogDirectoryParams) WithContext(ctx context.Context) *FindConfigCommitlogDirectoryParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config commitlog directory params -func (o *FindConfigCommitlogDirectoryParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config commitlog directory params -func (o *FindConfigCommitlogDirectoryParams) WithHTTPClient(client *http.Client) *FindConfigCommitlogDirectoryParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config commitlog directory params -func (o *FindConfigCommitlogDirectoryParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCommitlogDirectoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_directory_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_directory_responses.go deleted file mode 100644 index ddaecbae8e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_directory_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCommitlogDirectoryReader is a Reader for the FindConfigCommitlogDirectory structure. -type FindConfigCommitlogDirectoryReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCommitlogDirectoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCommitlogDirectoryOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCommitlogDirectoryDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCommitlogDirectoryOK creates a FindConfigCommitlogDirectoryOK with default headers values -func NewFindConfigCommitlogDirectoryOK() *FindConfigCommitlogDirectoryOK { - return &FindConfigCommitlogDirectoryOK{} -} - -/* -FindConfigCommitlogDirectoryOK handles this case with default header values. - -Config value -*/ -type FindConfigCommitlogDirectoryOK struct { - Payload string -} - -func (o *FindConfigCommitlogDirectoryOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigCommitlogDirectoryOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCommitlogDirectoryDefault creates a FindConfigCommitlogDirectoryDefault with default headers values -func NewFindConfigCommitlogDirectoryDefault(code int) *FindConfigCommitlogDirectoryDefault { - return &FindConfigCommitlogDirectoryDefault{ - _statusCode: code, - } -} - -/* -FindConfigCommitlogDirectoryDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCommitlogDirectoryDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config commitlog directory default response -func (o *FindConfigCommitlogDirectoryDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCommitlogDirectoryDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCommitlogDirectoryDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCommitlogDirectoryDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_reuse_segments_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_reuse_segments_parameters.go deleted file mode 100644 index 9452947ea1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_reuse_segments_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCommitlogReuseSegmentsParams creates a new FindConfigCommitlogReuseSegmentsParams object -// with the default values initialized. -func NewFindConfigCommitlogReuseSegmentsParams() *FindConfigCommitlogReuseSegmentsParams { - - return &FindConfigCommitlogReuseSegmentsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCommitlogReuseSegmentsParamsWithTimeout creates a new FindConfigCommitlogReuseSegmentsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCommitlogReuseSegmentsParamsWithTimeout(timeout time.Duration) *FindConfigCommitlogReuseSegmentsParams { - - return &FindConfigCommitlogReuseSegmentsParams{ - - timeout: timeout, - } -} - -// NewFindConfigCommitlogReuseSegmentsParamsWithContext creates a new FindConfigCommitlogReuseSegmentsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCommitlogReuseSegmentsParamsWithContext(ctx context.Context) *FindConfigCommitlogReuseSegmentsParams { - - return &FindConfigCommitlogReuseSegmentsParams{ - - Context: ctx, - } -} - -// NewFindConfigCommitlogReuseSegmentsParamsWithHTTPClient creates a new FindConfigCommitlogReuseSegmentsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCommitlogReuseSegmentsParamsWithHTTPClient(client *http.Client) *FindConfigCommitlogReuseSegmentsParams { - - return &FindConfigCommitlogReuseSegmentsParams{ - HTTPClient: client, - } -} - -/* -FindConfigCommitlogReuseSegmentsParams contains all the parameters to send to the API endpoint -for the find config commitlog reuse segments operation typically these are written to a http.Request -*/ -type FindConfigCommitlogReuseSegmentsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config commitlog reuse segments params -func (o *FindConfigCommitlogReuseSegmentsParams) WithTimeout(timeout time.Duration) *FindConfigCommitlogReuseSegmentsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config commitlog reuse segments params -func (o *FindConfigCommitlogReuseSegmentsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config commitlog reuse segments params -func (o *FindConfigCommitlogReuseSegmentsParams) WithContext(ctx context.Context) *FindConfigCommitlogReuseSegmentsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config commitlog reuse segments params -func (o *FindConfigCommitlogReuseSegmentsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config commitlog reuse segments params -func (o *FindConfigCommitlogReuseSegmentsParams) WithHTTPClient(client *http.Client) *FindConfigCommitlogReuseSegmentsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config commitlog reuse segments params -func (o *FindConfigCommitlogReuseSegmentsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCommitlogReuseSegmentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_reuse_segments_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_reuse_segments_responses.go deleted file mode 100644 index e1b6320bed..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_reuse_segments_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCommitlogReuseSegmentsReader is a Reader for the FindConfigCommitlogReuseSegments structure. -type FindConfigCommitlogReuseSegmentsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCommitlogReuseSegmentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCommitlogReuseSegmentsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCommitlogReuseSegmentsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCommitlogReuseSegmentsOK creates a FindConfigCommitlogReuseSegmentsOK with default headers values -func NewFindConfigCommitlogReuseSegmentsOK() *FindConfigCommitlogReuseSegmentsOK { - return &FindConfigCommitlogReuseSegmentsOK{} -} - -/* -FindConfigCommitlogReuseSegmentsOK handles this case with default header values. - -Config value -*/ -type FindConfigCommitlogReuseSegmentsOK struct { - Payload bool -} - -func (o *FindConfigCommitlogReuseSegmentsOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigCommitlogReuseSegmentsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCommitlogReuseSegmentsDefault creates a FindConfigCommitlogReuseSegmentsDefault with default headers values -func NewFindConfigCommitlogReuseSegmentsDefault(code int) *FindConfigCommitlogReuseSegmentsDefault { - return &FindConfigCommitlogReuseSegmentsDefault{ - _statusCode: code, - } -} - -/* -FindConfigCommitlogReuseSegmentsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCommitlogReuseSegmentsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config commitlog reuse segments default response -func (o *FindConfigCommitlogReuseSegmentsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCommitlogReuseSegmentsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCommitlogReuseSegmentsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCommitlogReuseSegmentsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_segment_size_in_mb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_segment_size_in_mb_parameters.go deleted file mode 100644 index 4791c73cae..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_segment_size_in_mb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCommitlogSegmentSizeInMbParams creates a new FindConfigCommitlogSegmentSizeInMbParams object -// with the default values initialized. -func NewFindConfigCommitlogSegmentSizeInMbParams() *FindConfigCommitlogSegmentSizeInMbParams { - - return &FindConfigCommitlogSegmentSizeInMbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCommitlogSegmentSizeInMbParamsWithTimeout creates a new FindConfigCommitlogSegmentSizeInMbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCommitlogSegmentSizeInMbParamsWithTimeout(timeout time.Duration) *FindConfigCommitlogSegmentSizeInMbParams { - - return &FindConfigCommitlogSegmentSizeInMbParams{ - - timeout: timeout, - } -} - -// NewFindConfigCommitlogSegmentSizeInMbParamsWithContext creates a new FindConfigCommitlogSegmentSizeInMbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCommitlogSegmentSizeInMbParamsWithContext(ctx context.Context) *FindConfigCommitlogSegmentSizeInMbParams { - - return &FindConfigCommitlogSegmentSizeInMbParams{ - - Context: ctx, - } -} - -// NewFindConfigCommitlogSegmentSizeInMbParamsWithHTTPClient creates a new FindConfigCommitlogSegmentSizeInMbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCommitlogSegmentSizeInMbParamsWithHTTPClient(client *http.Client) *FindConfigCommitlogSegmentSizeInMbParams { - - return &FindConfigCommitlogSegmentSizeInMbParams{ - HTTPClient: client, - } -} - -/* -FindConfigCommitlogSegmentSizeInMbParams contains all the parameters to send to the API endpoint -for the find config commitlog segment size in mb operation typically these are written to a http.Request -*/ -type FindConfigCommitlogSegmentSizeInMbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config commitlog segment size in mb params -func (o *FindConfigCommitlogSegmentSizeInMbParams) WithTimeout(timeout time.Duration) *FindConfigCommitlogSegmentSizeInMbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config commitlog segment size in mb params -func (o *FindConfigCommitlogSegmentSizeInMbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config commitlog segment size in mb params -func (o *FindConfigCommitlogSegmentSizeInMbParams) WithContext(ctx context.Context) *FindConfigCommitlogSegmentSizeInMbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config commitlog segment size in mb params -func (o *FindConfigCommitlogSegmentSizeInMbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config commitlog segment size in mb params -func (o *FindConfigCommitlogSegmentSizeInMbParams) WithHTTPClient(client *http.Client) *FindConfigCommitlogSegmentSizeInMbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config commitlog segment size in mb params -func (o *FindConfigCommitlogSegmentSizeInMbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCommitlogSegmentSizeInMbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_segment_size_in_mb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_segment_size_in_mb_responses.go deleted file mode 100644 index 0677b63e60..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_segment_size_in_mb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCommitlogSegmentSizeInMbReader is a Reader for the FindConfigCommitlogSegmentSizeInMb structure. -type FindConfigCommitlogSegmentSizeInMbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCommitlogSegmentSizeInMbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCommitlogSegmentSizeInMbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCommitlogSegmentSizeInMbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCommitlogSegmentSizeInMbOK creates a FindConfigCommitlogSegmentSizeInMbOK with default headers values -func NewFindConfigCommitlogSegmentSizeInMbOK() *FindConfigCommitlogSegmentSizeInMbOK { - return &FindConfigCommitlogSegmentSizeInMbOK{} -} - -/* -FindConfigCommitlogSegmentSizeInMbOK handles this case with default header values. - -Config value -*/ -type FindConfigCommitlogSegmentSizeInMbOK struct { - Payload int64 -} - -func (o *FindConfigCommitlogSegmentSizeInMbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigCommitlogSegmentSizeInMbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCommitlogSegmentSizeInMbDefault creates a FindConfigCommitlogSegmentSizeInMbDefault with default headers values -func NewFindConfigCommitlogSegmentSizeInMbDefault(code int) *FindConfigCommitlogSegmentSizeInMbDefault { - return &FindConfigCommitlogSegmentSizeInMbDefault{ - _statusCode: code, - } -} - -/* -FindConfigCommitlogSegmentSizeInMbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCommitlogSegmentSizeInMbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config commitlog segment size in mb default response -func (o *FindConfigCommitlogSegmentSizeInMbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCommitlogSegmentSizeInMbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCommitlogSegmentSizeInMbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCommitlogSegmentSizeInMbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_sync_batch_window_in_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_sync_batch_window_in_ms_parameters.go deleted file mode 100644 index 4bb3705b8a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_sync_batch_window_in_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCommitlogSyncBatchWindowInMsParams creates a new FindConfigCommitlogSyncBatchWindowInMsParams object -// with the default values initialized. -func NewFindConfigCommitlogSyncBatchWindowInMsParams() *FindConfigCommitlogSyncBatchWindowInMsParams { - - return &FindConfigCommitlogSyncBatchWindowInMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCommitlogSyncBatchWindowInMsParamsWithTimeout creates a new FindConfigCommitlogSyncBatchWindowInMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCommitlogSyncBatchWindowInMsParamsWithTimeout(timeout time.Duration) *FindConfigCommitlogSyncBatchWindowInMsParams { - - return &FindConfigCommitlogSyncBatchWindowInMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigCommitlogSyncBatchWindowInMsParamsWithContext creates a new FindConfigCommitlogSyncBatchWindowInMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCommitlogSyncBatchWindowInMsParamsWithContext(ctx context.Context) *FindConfigCommitlogSyncBatchWindowInMsParams { - - return &FindConfigCommitlogSyncBatchWindowInMsParams{ - - Context: ctx, - } -} - -// NewFindConfigCommitlogSyncBatchWindowInMsParamsWithHTTPClient creates a new FindConfigCommitlogSyncBatchWindowInMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCommitlogSyncBatchWindowInMsParamsWithHTTPClient(client *http.Client) *FindConfigCommitlogSyncBatchWindowInMsParams { - - return &FindConfigCommitlogSyncBatchWindowInMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigCommitlogSyncBatchWindowInMsParams contains all the parameters to send to the API endpoint -for the find config commitlog sync batch window in ms operation typically these are written to a http.Request -*/ -type FindConfigCommitlogSyncBatchWindowInMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config commitlog sync batch window in ms params -func (o *FindConfigCommitlogSyncBatchWindowInMsParams) WithTimeout(timeout time.Duration) *FindConfigCommitlogSyncBatchWindowInMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config commitlog sync batch window in ms params -func (o *FindConfigCommitlogSyncBatchWindowInMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config commitlog sync batch window in ms params -func (o *FindConfigCommitlogSyncBatchWindowInMsParams) WithContext(ctx context.Context) *FindConfigCommitlogSyncBatchWindowInMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config commitlog sync batch window in ms params -func (o *FindConfigCommitlogSyncBatchWindowInMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config commitlog sync batch window in ms params -func (o *FindConfigCommitlogSyncBatchWindowInMsParams) WithHTTPClient(client *http.Client) *FindConfigCommitlogSyncBatchWindowInMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config commitlog sync batch window in ms params -func (o *FindConfigCommitlogSyncBatchWindowInMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCommitlogSyncBatchWindowInMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_sync_batch_window_in_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_sync_batch_window_in_ms_responses.go deleted file mode 100644 index a3257d683f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_sync_batch_window_in_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCommitlogSyncBatchWindowInMsReader is a Reader for the FindConfigCommitlogSyncBatchWindowInMs structure. -type FindConfigCommitlogSyncBatchWindowInMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCommitlogSyncBatchWindowInMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCommitlogSyncBatchWindowInMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCommitlogSyncBatchWindowInMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCommitlogSyncBatchWindowInMsOK creates a FindConfigCommitlogSyncBatchWindowInMsOK with default headers values -func NewFindConfigCommitlogSyncBatchWindowInMsOK() *FindConfigCommitlogSyncBatchWindowInMsOK { - return &FindConfigCommitlogSyncBatchWindowInMsOK{} -} - -/* -FindConfigCommitlogSyncBatchWindowInMsOK handles this case with default header values. - -Config value -*/ -type FindConfigCommitlogSyncBatchWindowInMsOK struct { - Payload int64 -} - -func (o *FindConfigCommitlogSyncBatchWindowInMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigCommitlogSyncBatchWindowInMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCommitlogSyncBatchWindowInMsDefault creates a FindConfigCommitlogSyncBatchWindowInMsDefault with default headers values -func NewFindConfigCommitlogSyncBatchWindowInMsDefault(code int) *FindConfigCommitlogSyncBatchWindowInMsDefault { - return &FindConfigCommitlogSyncBatchWindowInMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigCommitlogSyncBatchWindowInMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCommitlogSyncBatchWindowInMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config commitlog sync batch window in ms default response -func (o *FindConfigCommitlogSyncBatchWindowInMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCommitlogSyncBatchWindowInMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCommitlogSyncBatchWindowInMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCommitlogSyncBatchWindowInMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_sync_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_sync_parameters.go deleted file mode 100644 index 8c5ba7d1ee..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_sync_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCommitlogSyncParams creates a new FindConfigCommitlogSyncParams object -// with the default values initialized. -func NewFindConfigCommitlogSyncParams() *FindConfigCommitlogSyncParams { - - return &FindConfigCommitlogSyncParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCommitlogSyncParamsWithTimeout creates a new FindConfigCommitlogSyncParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCommitlogSyncParamsWithTimeout(timeout time.Duration) *FindConfigCommitlogSyncParams { - - return &FindConfigCommitlogSyncParams{ - - timeout: timeout, - } -} - -// NewFindConfigCommitlogSyncParamsWithContext creates a new FindConfigCommitlogSyncParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCommitlogSyncParamsWithContext(ctx context.Context) *FindConfigCommitlogSyncParams { - - return &FindConfigCommitlogSyncParams{ - - Context: ctx, - } -} - -// NewFindConfigCommitlogSyncParamsWithHTTPClient creates a new FindConfigCommitlogSyncParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCommitlogSyncParamsWithHTTPClient(client *http.Client) *FindConfigCommitlogSyncParams { - - return &FindConfigCommitlogSyncParams{ - HTTPClient: client, - } -} - -/* -FindConfigCommitlogSyncParams contains all the parameters to send to the API endpoint -for the find config commitlog sync operation typically these are written to a http.Request -*/ -type FindConfigCommitlogSyncParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config commitlog sync params -func (o *FindConfigCommitlogSyncParams) WithTimeout(timeout time.Duration) *FindConfigCommitlogSyncParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config commitlog sync params -func (o *FindConfigCommitlogSyncParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config commitlog sync params -func (o *FindConfigCommitlogSyncParams) WithContext(ctx context.Context) *FindConfigCommitlogSyncParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config commitlog sync params -func (o *FindConfigCommitlogSyncParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config commitlog sync params -func (o *FindConfigCommitlogSyncParams) WithHTTPClient(client *http.Client) *FindConfigCommitlogSyncParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config commitlog sync params -func (o *FindConfigCommitlogSyncParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCommitlogSyncParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_sync_period_in_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_sync_period_in_ms_parameters.go deleted file mode 100644 index f7dd5c2ddf..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_sync_period_in_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCommitlogSyncPeriodInMsParams creates a new FindConfigCommitlogSyncPeriodInMsParams object -// with the default values initialized. -func NewFindConfigCommitlogSyncPeriodInMsParams() *FindConfigCommitlogSyncPeriodInMsParams { - - return &FindConfigCommitlogSyncPeriodInMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCommitlogSyncPeriodInMsParamsWithTimeout creates a new FindConfigCommitlogSyncPeriodInMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCommitlogSyncPeriodInMsParamsWithTimeout(timeout time.Duration) *FindConfigCommitlogSyncPeriodInMsParams { - - return &FindConfigCommitlogSyncPeriodInMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigCommitlogSyncPeriodInMsParamsWithContext creates a new FindConfigCommitlogSyncPeriodInMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCommitlogSyncPeriodInMsParamsWithContext(ctx context.Context) *FindConfigCommitlogSyncPeriodInMsParams { - - return &FindConfigCommitlogSyncPeriodInMsParams{ - - Context: ctx, - } -} - -// NewFindConfigCommitlogSyncPeriodInMsParamsWithHTTPClient creates a new FindConfigCommitlogSyncPeriodInMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCommitlogSyncPeriodInMsParamsWithHTTPClient(client *http.Client) *FindConfigCommitlogSyncPeriodInMsParams { - - return &FindConfigCommitlogSyncPeriodInMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigCommitlogSyncPeriodInMsParams contains all the parameters to send to the API endpoint -for the find config commitlog sync period in ms operation typically these are written to a http.Request -*/ -type FindConfigCommitlogSyncPeriodInMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config commitlog sync period in ms params -func (o *FindConfigCommitlogSyncPeriodInMsParams) WithTimeout(timeout time.Duration) *FindConfigCommitlogSyncPeriodInMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config commitlog sync period in ms params -func (o *FindConfigCommitlogSyncPeriodInMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config commitlog sync period in ms params -func (o *FindConfigCommitlogSyncPeriodInMsParams) WithContext(ctx context.Context) *FindConfigCommitlogSyncPeriodInMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config commitlog sync period in ms params -func (o *FindConfigCommitlogSyncPeriodInMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config commitlog sync period in ms params -func (o *FindConfigCommitlogSyncPeriodInMsParams) WithHTTPClient(client *http.Client) *FindConfigCommitlogSyncPeriodInMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config commitlog sync period in ms params -func (o *FindConfigCommitlogSyncPeriodInMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCommitlogSyncPeriodInMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_sync_period_in_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_sync_period_in_ms_responses.go deleted file mode 100644 index 7da56e40d6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_sync_period_in_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCommitlogSyncPeriodInMsReader is a Reader for the FindConfigCommitlogSyncPeriodInMs structure. -type FindConfigCommitlogSyncPeriodInMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCommitlogSyncPeriodInMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCommitlogSyncPeriodInMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCommitlogSyncPeriodInMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCommitlogSyncPeriodInMsOK creates a FindConfigCommitlogSyncPeriodInMsOK with default headers values -func NewFindConfigCommitlogSyncPeriodInMsOK() *FindConfigCommitlogSyncPeriodInMsOK { - return &FindConfigCommitlogSyncPeriodInMsOK{} -} - -/* -FindConfigCommitlogSyncPeriodInMsOK handles this case with default header values. - -Config value -*/ -type FindConfigCommitlogSyncPeriodInMsOK struct { - Payload int64 -} - -func (o *FindConfigCommitlogSyncPeriodInMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigCommitlogSyncPeriodInMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCommitlogSyncPeriodInMsDefault creates a FindConfigCommitlogSyncPeriodInMsDefault with default headers values -func NewFindConfigCommitlogSyncPeriodInMsDefault(code int) *FindConfigCommitlogSyncPeriodInMsDefault { - return &FindConfigCommitlogSyncPeriodInMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigCommitlogSyncPeriodInMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCommitlogSyncPeriodInMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config commitlog sync period in ms default response -func (o *FindConfigCommitlogSyncPeriodInMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCommitlogSyncPeriodInMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCommitlogSyncPeriodInMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCommitlogSyncPeriodInMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_sync_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_sync_responses.go deleted file mode 100644 index 479391bce3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_sync_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCommitlogSyncReader is a Reader for the FindConfigCommitlogSync structure. -type FindConfigCommitlogSyncReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCommitlogSyncReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCommitlogSyncOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCommitlogSyncDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCommitlogSyncOK creates a FindConfigCommitlogSyncOK with default headers values -func NewFindConfigCommitlogSyncOK() *FindConfigCommitlogSyncOK { - return &FindConfigCommitlogSyncOK{} -} - -/* -FindConfigCommitlogSyncOK handles this case with default header values. - -Config value -*/ -type FindConfigCommitlogSyncOK struct { - Payload string -} - -func (o *FindConfigCommitlogSyncOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigCommitlogSyncOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCommitlogSyncDefault creates a FindConfigCommitlogSyncDefault with default headers values -func NewFindConfigCommitlogSyncDefault(code int) *FindConfigCommitlogSyncDefault { - return &FindConfigCommitlogSyncDefault{ - _statusCode: code, - } -} - -/* -FindConfigCommitlogSyncDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCommitlogSyncDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config commitlog sync default response -func (o *FindConfigCommitlogSyncDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCommitlogSyncDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCommitlogSyncDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCommitlogSyncDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_total_space_in_mb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_total_space_in_mb_parameters.go deleted file mode 100644 index ba72738fd9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_total_space_in_mb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCommitlogTotalSpaceInMbParams creates a new FindConfigCommitlogTotalSpaceInMbParams object -// with the default values initialized. -func NewFindConfigCommitlogTotalSpaceInMbParams() *FindConfigCommitlogTotalSpaceInMbParams { - - return &FindConfigCommitlogTotalSpaceInMbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCommitlogTotalSpaceInMbParamsWithTimeout creates a new FindConfigCommitlogTotalSpaceInMbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCommitlogTotalSpaceInMbParamsWithTimeout(timeout time.Duration) *FindConfigCommitlogTotalSpaceInMbParams { - - return &FindConfigCommitlogTotalSpaceInMbParams{ - - timeout: timeout, - } -} - -// NewFindConfigCommitlogTotalSpaceInMbParamsWithContext creates a new FindConfigCommitlogTotalSpaceInMbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCommitlogTotalSpaceInMbParamsWithContext(ctx context.Context) *FindConfigCommitlogTotalSpaceInMbParams { - - return &FindConfigCommitlogTotalSpaceInMbParams{ - - Context: ctx, - } -} - -// NewFindConfigCommitlogTotalSpaceInMbParamsWithHTTPClient creates a new FindConfigCommitlogTotalSpaceInMbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCommitlogTotalSpaceInMbParamsWithHTTPClient(client *http.Client) *FindConfigCommitlogTotalSpaceInMbParams { - - return &FindConfigCommitlogTotalSpaceInMbParams{ - HTTPClient: client, - } -} - -/* -FindConfigCommitlogTotalSpaceInMbParams contains all the parameters to send to the API endpoint -for the find config commitlog total space in mb operation typically these are written to a http.Request -*/ -type FindConfigCommitlogTotalSpaceInMbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config commitlog total space in mb params -func (o *FindConfigCommitlogTotalSpaceInMbParams) WithTimeout(timeout time.Duration) *FindConfigCommitlogTotalSpaceInMbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config commitlog total space in mb params -func (o *FindConfigCommitlogTotalSpaceInMbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config commitlog total space in mb params -func (o *FindConfigCommitlogTotalSpaceInMbParams) WithContext(ctx context.Context) *FindConfigCommitlogTotalSpaceInMbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config commitlog total space in mb params -func (o *FindConfigCommitlogTotalSpaceInMbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config commitlog total space in mb params -func (o *FindConfigCommitlogTotalSpaceInMbParams) WithHTTPClient(client *http.Client) *FindConfigCommitlogTotalSpaceInMbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config commitlog total space in mb params -func (o *FindConfigCommitlogTotalSpaceInMbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCommitlogTotalSpaceInMbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_total_space_in_mb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_total_space_in_mb_responses.go deleted file mode 100644 index e2bd77c0f6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_total_space_in_mb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCommitlogTotalSpaceInMbReader is a Reader for the FindConfigCommitlogTotalSpaceInMb structure. -type FindConfigCommitlogTotalSpaceInMbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCommitlogTotalSpaceInMbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCommitlogTotalSpaceInMbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCommitlogTotalSpaceInMbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCommitlogTotalSpaceInMbOK creates a FindConfigCommitlogTotalSpaceInMbOK with default headers values -func NewFindConfigCommitlogTotalSpaceInMbOK() *FindConfigCommitlogTotalSpaceInMbOK { - return &FindConfigCommitlogTotalSpaceInMbOK{} -} - -/* -FindConfigCommitlogTotalSpaceInMbOK handles this case with default header values. - -Config value -*/ -type FindConfigCommitlogTotalSpaceInMbOK struct { - Payload int64 -} - -func (o *FindConfigCommitlogTotalSpaceInMbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigCommitlogTotalSpaceInMbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCommitlogTotalSpaceInMbDefault creates a FindConfigCommitlogTotalSpaceInMbDefault with default headers values -func NewFindConfigCommitlogTotalSpaceInMbDefault(code int) *FindConfigCommitlogTotalSpaceInMbDefault { - return &FindConfigCommitlogTotalSpaceInMbDefault{ - _statusCode: code, - } -} - -/* -FindConfigCommitlogTotalSpaceInMbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCommitlogTotalSpaceInMbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config commitlog total space in mb default response -func (o *FindConfigCommitlogTotalSpaceInMbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCommitlogTotalSpaceInMbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCommitlogTotalSpaceInMbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCommitlogTotalSpaceInMbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_useo_dsync_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_useo_dsync_parameters.go deleted file mode 100644 index fef5437af8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_useo_dsync_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCommitlogUseoDsyncParams creates a new FindConfigCommitlogUseoDsyncParams object -// with the default values initialized. -func NewFindConfigCommitlogUseoDsyncParams() *FindConfigCommitlogUseoDsyncParams { - - return &FindConfigCommitlogUseoDsyncParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCommitlogUseoDsyncParamsWithTimeout creates a new FindConfigCommitlogUseoDsyncParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCommitlogUseoDsyncParamsWithTimeout(timeout time.Duration) *FindConfigCommitlogUseoDsyncParams { - - return &FindConfigCommitlogUseoDsyncParams{ - - timeout: timeout, - } -} - -// NewFindConfigCommitlogUseoDsyncParamsWithContext creates a new FindConfigCommitlogUseoDsyncParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCommitlogUseoDsyncParamsWithContext(ctx context.Context) *FindConfigCommitlogUseoDsyncParams { - - return &FindConfigCommitlogUseoDsyncParams{ - - Context: ctx, - } -} - -// NewFindConfigCommitlogUseoDsyncParamsWithHTTPClient creates a new FindConfigCommitlogUseoDsyncParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCommitlogUseoDsyncParamsWithHTTPClient(client *http.Client) *FindConfigCommitlogUseoDsyncParams { - - return &FindConfigCommitlogUseoDsyncParams{ - HTTPClient: client, - } -} - -/* -FindConfigCommitlogUseoDsyncParams contains all the parameters to send to the API endpoint -for the find config commitlog use o dsync operation typically these are written to a http.Request -*/ -type FindConfigCommitlogUseoDsyncParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config commitlog use o dsync params -func (o *FindConfigCommitlogUseoDsyncParams) WithTimeout(timeout time.Duration) *FindConfigCommitlogUseoDsyncParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config commitlog use o dsync params -func (o *FindConfigCommitlogUseoDsyncParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config commitlog use o dsync params -func (o *FindConfigCommitlogUseoDsyncParams) WithContext(ctx context.Context) *FindConfigCommitlogUseoDsyncParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config commitlog use o dsync params -func (o *FindConfigCommitlogUseoDsyncParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config commitlog use o dsync params -func (o *FindConfigCommitlogUseoDsyncParams) WithHTTPClient(client *http.Client) *FindConfigCommitlogUseoDsyncParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config commitlog use o dsync params -func (o *FindConfigCommitlogUseoDsyncParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCommitlogUseoDsyncParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_useo_dsync_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_useo_dsync_responses.go deleted file mode 100644 index 4d4ba360d5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_commitlog_useo_dsync_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCommitlogUseoDsyncReader is a Reader for the FindConfigCommitlogUseoDsync structure. -type FindConfigCommitlogUseoDsyncReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCommitlogUseoDsyncReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCommitlogUseODsyncOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCommitlogUseoDsyncDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCommitlogUseODsyncOK creates a FindConfigCommitlogUseODsyncOK with default headers values -func NewFindConfigCommitlogUseODsyncOK() *FindConfigCommitlogUseODsyncOK { - return &FindConfigCommitlogUseODsyncOK{} -} - -/* -FindConfigCommitlogUseODsyncOK handles this case with default header values. - -Config value -*/ -type FindConfigCommitlogUseODsyncOK struct { - Payload bool -} - -func (o *FindConfigCommitlogUseODsyncOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigCommitlogUseODsyncOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCommitlogUseoDsyncDefault creates a FindConfigCommitlogUseoDsyncDefault with default headers values -func NewFindConfigCommitlogUseoDsyncDefault(code int) *FindConfigCommitlogUseoDsyncDefault { - return &FindConfigCommitlogUseoDsyncDefault{ - _statusCode: code, - } -} - -/* -FindConfigCommitlogUseoDsyncDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCommitlogUseoDsyncDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config commitlog use o dsync default response -func (o *FindConfigCommitlogUseoDsyncDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCommitlogUseoDsyncDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCommitlogUseoDsyncDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCommitlogUseoDsyncDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_enforce_min_threshold_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_enforce_min_threshold_parameters.go deleted file mode 100644 index 1f7fcff544..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_enforce_min_threshold_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCompactionEnforceMinThresholdParams creates a new FindConfigCompactionEnforceMinThresholdParams object -// with the default values initialized. -func NewFindConfigCompactionEnforceMinThresholdParams() *FindConfigCompactionEnforceMinThresholdParams { - - return &FindConfigCompactionEnforceMinThresholdParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCompactionEnforceMinThresholdParamsWithTimeout creates a new FindConfigCompactionEnforceMinThresholdParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCompactionEnforceMinThresholdParamsWithTimeout(timeout time.Duration) *FindConfigCompactionEnforceMinThresholdParams { - - return &FindConfigCompactionEnforceMinThresholdParams{ - - timeout: timeout, - } -} - -// NewFindConfigCompactionEnforceMinThresholdParamsWithContext creates a new FindConfigCompactionEnforceMinThresholdParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCompactionEnforceMinThresholdParamsWithContext(ctx context.Context) *FindConfigCompactionEnforceMinThresholdParams { - - return &FindConfigCompactionEnforceMinThresholdParams{ - - Context: ctx, - } -} - -// NewFindConfigCompactionEnforceMinThresholdParamsWithHTTPClient creates a new FindConfigCompactionEnforceMinThresholdParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCompactionEnforceMinThresholdParamsWithHTTPClient(client *http.Client) *FindConfigCompactionEnforceMinThresholdParams { - - return &FindConfigCompactionEnforceMinThresholdParams{ - HTTPClient: client, - } -} - -/* -FindConfigCompactionEnforceMinThresholdParams contains all the parameters to send to the API endpoint -for the find config compaction enforce min threshold operation typically these are written to a http.Request -*/ -type FindConfigCompactionEnforceMinThresholdParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config compaction enforce min threshold params -func (o *FindConfigCompactionEnforceMinThresholdParams) WithTimeout(timeout time.Duration) *FindConfigCompactionEnforceMinThresholdParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config compaction enforce min threshold params -func (o *FindConfigCompactionEnforceMinThresholdParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config compaction enforce min threshold params -func (o *FindConfigCompactionEnforceMinThresholdParams) WithContext(ctx context.Context) *FindConfigCompactionEnforceMinThresholdParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config compaction enforce min threshold params -func (o *FindConfigCompactionEnforceMinThresholdParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config compaction enforce min threshold params -func (o *FindConfigCompactionEnforceMinThresholdParams) WithHTTPClient(client *http.Client) *FindConfigCompactionEnforceMinThresholdParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config compaction enforce min threshold params -func (o *FindConfigCompactionEnforceMinThresholdParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCompactionEnforceMinThresholdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_enforce_min_threshold_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_enforce_min_threshold_responses.go deleted file mode 100644 index 5795744add..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_enforce_min_threshold_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCompactionEnforceMinThresholdReader is a Reader for the FindConfigCompactionEnforceMinThreshold structure. -type FindConfigCompactionEnforceMinThresholdReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCompactionEnforceMinThresholdReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCompactionEnforceMinThresholdOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCompactionEnforceMinThresholdDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCompactionEnforceMinThresholdOK creates a FindConfigCompactionEnforceMinThresholdOK with default headers values -func NewFindConfigCompactionEnforceMinThresholdOK() *FindConfigCompactionEnforceMinThresholdOK { - return &FindConfigCompactionEnforceMinThresholdOK{} -} - -/* -FindConfigCompactionEnforceMinThresholdOK handles this case with default header values. - -Config value -*/ -type FindConfigCompactionEnforceMinThresholdOK struct { - Payload bool -} - -func (o *FindConfigCompactionEnforceMinThresholdOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigCompactionEnforceMinThresholdOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCompactionEnforceMinThresholdDefault creates a FindConfigCompactionEnforceMinThresholdDefault with default headers values -func NewFindConfigCompactionEnforceMinThresholdDefault(code int) *FindConfigCompactionEnforceMinThresholdDefault { - return &FindConfigCompactionEnforceMinThresholdDefault{ - _statusCode: code, - } -} - -/* -FindConfigCompactionEnforceMinThresholdDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCompactionEnforceMinThresholdDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config compaction enforce min threshold default response -func (o *FindConfigCompactionEnforceMinThresholdDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCompactionEnforceMinThresholdDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCompactionEnforceMinThresholdDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCompactionEnforceMinThresholdDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_large_cell_warning_threshold_mb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_large_cell_warning_threshold_mb_parameters.go deleted file mode 100644 index 71dab2dc2b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_large_cell_warning_threshold_mb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCompactionLargeCellWarningThresholdMbParams creates a new FindConfigCompactionLargeCellWarningThresholdMbParams object -// with the default values initialized. -func NewFindConfigCompactionLargeCellWarningThresholdMbParams() *FindConfigCompactionLargeCellWarningThresholdMbParams { - - return &FindConfigCompactionLargeCellWarningThresholdMbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCompactionLargeCellWarningThresholdMbParamsWithTimeout creates a new FindConfigCompactionLargeCellWarningThresholdMbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCompactionLargeCellWarningThresholdMbParamsWithTimeout(timeout time.Duration) *FindConfigCompactionLargeCellWarningThresholdMbParams { - - return &FindConfigCompactionLargeCellWarningThresholdMbParams{ - - timeout: timeout, - } -} - -// NewFindConfigCompactionLargeCellWarningThresholdMbParamsWithContext creates a new FindConfigCompactionLargeCellWarningThresholdMbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCompactionLargeCellWarningThresholdMbParamsWithContext(ctx context.Context) *FindConfigCompactionLargeCellWarningThresholdMbParams { - - return &FindConfigCompactionLargeCellWarningThresholdMbParams{ - - Context: ctx, - } -} - -// NewFindConfigCompactionLargeCellWarningThresholdMbParamsWithHTTPClient creates a new FindConfigCompactionLargeCellWarningThresholdMbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCompactionLargeCellWarningThresholdMbParamsWithHTTPClient(client *http.Client) *FindConfigCompactionLargeCellWarningThresholdMbParams { - - return &FindConfigCompactionLargeCellWarningThresholdMbParams{ - HTTPClient: client, - } -} - -/* -FindConfigCompactionLargeCellWarningThresholdMbParams contains all the parameters to send to the API endpoint -for the find config compaction large cell warning threshold mb operation typically these are written to a http.Request -*/ -type FindConfigCompactionLargeCellWarningThresholdMbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config compaction large cell warning threshold mb params -func (o *FindConfigCompactionLargeCellWarningThresholdMbParams) WithTimeout(timeout time.Duration) *FindConfigCompactionLargeCellWarningThresholdMbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config compaction large cell warning threshold mb params -func (o *FindConfigCompactionLargeCellWarningThresholdMbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config compaction large cell warning threshold mb params -func (o *FindConfigCompactionLargeCellWarningThresholdMbParams) WithContext(ctx context.Context) *FindConfigCompactionLargeCellWarningThresholdMbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config compaction large cell warning threshold mb params -func (o *FindConfigCompactionLargeCellWarningThresholdMbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config compaction large cell warning threshold mb params -func (o *FindConfigCompactionLargeCellWarningThresholdMbParams) WithHTTPClient(client *http.Client) *FindConfigCompactionLargeCellWarningThresholdMbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config compaction large cell warning threshold mb params -func (o *FindConfigCompactionLargeCellWarningThresholdMbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCompactionLargeCellWarningThresholdMbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_large_cell_warning_threshold_mb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_large_cell_warning_threshold_mb_responses.go deleted file mode 100644 index 00d531e8b7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_large_cell_warning_threshold_mb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCompactionLargeCellWarningThresholdMbReader is a Reader for the FindConfigCompactionLargeCellWarningThresholdMb structure. -type FindConfigCompactionLargeCellWarningThresholdMbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCompactionLargeCellWarningThresholdMbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCompactionLargeCellWarningThresholdMbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCompactionLargeCellWarningThresholdMbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCompactionLargeCellWarningThresholdMbOK creates a FindConfigCompactionLargeCellWarningThresholdMbOK with default headers values -func NewFindConfigCompactionLargeCellWarningThresholdMbOK() *FindConfigCompactionLargeCellWarningThresholdMbOK { - return &FindConfigCompactionLargeCellWarningThresholdMbOK{} -} - -/* -FindConfigCompactionLargeCellWarningThresholdMbOK handles this case with default header values. - -Config value -*/ -type FindConfigCompactionLargeCellWarningThresholdMbOK struct { - Payload int64 -} - -func (o *FindConfigCompactionLargeCellWarningThresholdMbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigCompactionLargeCellWarningThresholdMbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCompactionLargeCellWarningThresholdMbDefault creates a FindConfigCompactionLargeCellWarningThresholdMbDefault with default headers values -func NewFindConfigCompactionLargeCellWarningThresholdMbDefault(code int) *FindConfigCompactionLargeCellWarningThresholdMbDefault { - return &FindConfigCompactionLargeCellWarningThresholdMbDefault{ - _statusCode: code, - } -} - -/* -FindConfigCompactionLargeCellWarningThresholdMbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCompactionLargeCellWarningThresholdMbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config compaction large cell warning threshold mb default response -func (o *FindConfigCompactionLargeCellWarningThresholdMbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCompactionLargeCellWarningThresholdMbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCompactionLargeCellWarningThresholdMbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCompactionLargeCellWarningThresholdMbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_large_partition_warning_threshold_mb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_large_partition_warning_threshold_mb_parameters.go deleted file mode 100644 index 56ba39a736..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_large_partition_warning_threshold_mb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCompactionLargePartitionWarningThresholdMbParams creates a new FindConfigCompactionLargePartitionWarningThresholdMbParams object -// with the default values initialized. -func NewFindConfigCompactionLargePartitionWarningThresholdMbParams() *FindConfigCompactionLargePartitionWarningThresholdMbParams { - - return &FindConfigCompactionLargePartitionWarningThresholdMbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCompactionLargePartitionWarningThresholdMbParamsWithTimeout creates a new FindConfigCompactionLargePartitionWarningThresholdMbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCompactionLargePartitionWarningThresholdMbParamsWithTimeout(timeout time.Duration) *FindConfigCompactionLargePartitionWarningThresholdMbParams { - - return &FindConfigCompactionLargePartitionWarningThresholdMbParams{ - - timeout: timeout, - } -} - -// NewFindConfigCompactionLargePartitionWarningThresholdMbParamsWithContext creates a new FindConfigCompactionLargePartitionWarningThresholdMbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCompactionLargePartitionWarningThresholdMbParamsWithContext(ctx context.Context) *FindConfigCompactionLargePartitionWarningThresholdMbParams { - - return &FindConfigCompactionLargePartitionWarningThresholdMbParams{ - - Context: ctx, - } -} - -// NewFindConfigCompactionLargePartitionWarningThresholdMbParamsWithHTTPClient creates a new FindConfigCompactionLargePartitionWarningThresholdMbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCompactionLargePartitionWarningThresholdMbParamsWithHTTPClient(client *http.Client) *FindConfigCompactionLargePartitionWarningThresholdMbParams { - - return &FindConfigCompactionLargePartitionWarningThresholdMbParams{ - HTTPClient: client, - } -} - -/* -FindConfigCompactionLargePartitionWarningThresholdMbParams contains all the parameters to send to the API endpoint -for the find config compaction large partition warning threshold mb operation typically these are written to a http.Request -*/ -type FindConfigCompactionLargePartitionWarningThresholdMbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config compaction large partition warning threshold mb params -func (o *FindConfigCompactionLargePartitionWarningThresholdMbParams) WithTimeout(timeout time.Duration) *FindConfigCompactionLargePartitionWarningThresholdMbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config compaction large partition warning threshold mb params -func (o *FindConfigCompactionLargePartitionWarningThresholdMbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config compaction large partition warning threshold mb params -func (o *FindConfigCompactionLargePartitionWarningThresholdMbParams) WithContext(ctx context.Context) *FindConfigCompactionLargePartitionWarningThresholdMbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config compaction large partition warning threshold mb params -func (o *FindConfigCompactionLargePartitionWarningThresholdMbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config compaction large partition warning threshold mb params -func (o *FindConfigCompactionLargePartitionWarningThresholdMbParams) WithHTTPClient(client *http.Client) *FindConfigCompactionLargePartitionWarningThresholdMbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config compaction large partition warning threshold mb params -func (o *FindConfigCompactionLargePartitionWarningThresholdMbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCompactionLargePartitionWarningThresholdMbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_large_partition_warning_threshold_mb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_large_partition_warning_threshold_mb_responses.go deleted file mode 100644 index 73762fc4ce..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_large_partition_warning_threshold_mb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCompactionLargePartitionWarningThresholdMbReader is a Reader for the FindConfigCompactionLargePartitionWarningThresholdMb structure. -type FindConfigCompactionLargePartitionWarningThresholdMbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCompactionLargePartitionWarningThresholdMbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCompactionLargePartitionWarningThresholdMbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCompactionLargePartitionWarningThresholdMbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCompactionLargePartitionWarningThresholdMbOK creates a FindConfigCompactionLargePartitionWarningThresholdMbOK with default headers values -func NewFindConfigCompactionLargePartitionWarningThresholdMbOK() *FindConfigCompactionLargePartitionWarningThresholdMbOK { - return &FindConfigCompactionLargePartitionWarningThresholdMbOK{} -} - -/* -FindConfigCompactionLargePartitionWarningThresholdMbOK handles this case with default header values. - -Config value -*/ -type FindConfigCompactionLargePartitionWarningThresholdMbOK struct { - Payload int64 -} - -func (o *FindConfigCompactionLargePartitionWarningThresholdMbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigCompactionLargePartitionWarningThresholdMbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCompactionLargePartitionWarningThresholdMbDefault creates a FindConfigCompactionLargePartitionWarningThresholdMbDefault with default headers values -func NewFindConfigCompactionLargePartitionWarningThresholdMbDefault(code int) *FindConfigCompactionLargePartitionWarningThresholdMbDefault { - return &FindConfigCompactionLargePartitionWarningThresholdMbDefault{ - _statusCode: code, - } -} - -/* -FindConfigCompactionLargePartitionWarningThresholdMbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCompactionLargePartitionWarningThresholdMbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config compaction large partition warning threshold mb default response -func (o *FindConfigCompactionLargePartitionWarningThresholdMbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCompactionLargePartitionWarningThresholdMbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCompactionLargePartitionWarningThresholdMbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCompactionLargePartitionWarningThresholdMbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_large_row_warning_threshold_mb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_large_row_warning_threshold_mb_parameters.go deleted file mode 100644 index 0377ebeb53..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_large_row_warning_threshold_mb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCompactionLargeRowWarningThresholdMbParams creates a new FindConfigCompactionLargeRowWarningThresholdMbParams object -// with the default values initialized. -func NewFindConfigCompactionLargeRowWarningThresholdMbParams() *FindConfigCompactionLargeRowWarningThresholdMbParams { - - return &FindConfigCompactionLargeRowWarningThresholdMbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCompactionLargeRowWarningThresholdMbParamsWithTimeout creates a new FindConfigCompactionLargeRowWarningThresholdMbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCompactionLargeRowWarningThresholdMbParamsWithTimeout(timeout time.Duration) *FindConfigCompactionLargeRowWarningThresholdMbParams { - - return &FindConfigCompactionLargeRowWarningThresholdMbParams{ - - timeout: timeout, - } -} - -// NewFindConfigCompactionLargeRowWarningThresholdMbParamsWithContext creates a new FindConfigCompactionLargeRowWarningThresholdMbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCompactionLargeRowWarningThresholdMbParamsWithContext(ctx context.Context) *FindConfigCompactionLargeRowWarningThresholdMbParams { - - return &FindConfigCompactionLargeRowWarningThresholdMbParams{ - - Context: ctx, - } -} - -// NewFindConfigCompactionLargeRowWarningThresholdMbParamsWithHTTPClient creates a new FindConfigCompactionLargeRowWarningThresholdMbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCompactionLargeRowWarningThresholdMbParamsWithHTTPClient(client *http.Client) *FindConfigCompactionLargeRowWarningThresholdMbParams { - - return &FindConfigCompactionLargeRowWarningThresholdMbParams{ - HTTPClient: client, - } -} - -/* -FindConfigCompactionLargeRowWarningThresholdMbParams contains all the parameters to send to the API endpoint -for the find config compaction large row warning threshold mb operation typically these are written to a http.Request -*/ -type FindConfigCompactionLargeRowWarningThresholdMbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config compaction large row warning threshold mb params -func (o *FindConfigCompactionLargeRowWarningThresholdMbParams) WithTimeout(timeout time.Duration) *FindConfigCompactionLargeRowWarningThresholdMbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config compaction large row warning threshold mb params -func (o *FindConfigCompactionLargeRowWarningThresholdMbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config compaction large row warning threshold mb params -func (o *FindConfigCompactionLargeRowWarningThresholdMbParams) WithContext(ctx context.Context) *FindConfigCompactionLargeRowWarningThresholdMbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config compaction large row warning threshold mb params -func (o *FindConfigCompactionLargeRowWarningThresholdMbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config compaction large row warning threshold mb params -func (o *FindConfigCompactionLargeRowWarningThresholdMbParams) WithHTTPClient(client *http.Client) *FindConfigCompactionLargeRowWarningThresholdMbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config compaction large row warning threshold mb params -func (o *FindConfigCompactionLargeRowWarningThresholdMbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCompactionLargeRowWarningThresholdMbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_large_row_warning_threshold_mb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_large_row_warning_threshold_mb_responses.go deleted file mode 100644 index e9b19f384c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_large_row_warning_threshold_mb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCompactionLargeRowWarningThresholdMbReader is a Reader for the FindConfigCompactionLargeRowWarningThresholdMb structure. -type FindConfigCompactionLargeRowWarningThresholdMbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCompactionLargeRowWarningThresholdMbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCompactionLargeRowWarningThresholdMbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCompactionLargeRowWarningThresholdMbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCompactionLargeRowWarningThresholdMbOK creates a FindConfigCompactionLargeRowWarningThresholdMbOK with default headers values -func NewFindConfigCompactionLargeRowWarningThresholdMbOK() *FindConfigCompactionLargeRowWarningThresholdMbOK { - return &FindConfigCompactionLargeRowWarningThresholdMbOK{} -} - -/* -FindConfigCompactionLargeRowWarningThresholdMbOK handles this case with default header values. - -Config value -*/ -type FindConfigCompactionLargeRowWarningThresholdMbOK struct { - Payload int64 -} - -func (o *FindConfigCompactionLargeRowWarningThresholdMbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigCompactionLargeRowWarningThresholdMbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCompactionLargeRowWarningThresholdMbDefault creates a FindConfigCompactionLargeRowWarningThresholdMbDefault with default headers values -func NewFindConfigCompactionLargeRowWarningThresholdMbDefault(code int) *FindConfigCompactionLargeRowWarningThresholdMbDefault { - return &FindConfigCompactionLargeRowWarningThresholdMbDefault{ - _statusCode: code, - } -} - -/* -FindConfigCompactionLargeRowWarningThresholdMbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCompactionLargeRowWarningThresholdMbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config compaction large row warning threshold mb default response -func (o *FindConfigCompactionLargeRowWarningThresholdMbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCompactionLargeRowWarningThresholdMbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCompactionLargeRowWarningThresholdMbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCompactionLargeRowWarningThresholdMbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_preheat_key_cache_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_preheat_key_cache_parameters.go deleted file mode 100644 index 0d35dad2d8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_preheat_key_cache_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCompactionPreheatKeyCacheParams creates a new FindConfigCompactionPreheatKeyCacheParams object -// with the default values initialized. -func NewFindConfigCompactionPreheatKeyCacheParams() *FindConfigCompactionPreheatKeyCacheParams { - - return &FindConfigCompactionPreheatKeyCacheParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCompactionPreheatKeyCacheParamsWithTimeout creates a new FindConfigCompactionPreheatKeyCacheParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCompactionPreheatKeyCacheParamsWithTimeout(timeout time.Duration) *FindConfigCompactionPreheatKeyCacheParams { - - return &FindConfigCompactionPreheatKeyCacheParams{ - - timeout: timeout, - } -} - -// NewFindConfigCompactionPreheatKeyCacheParamsWithContext creates a new FindConfigCompactionPreheatKeyCacheParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCompactionPreheatKeyCacheParamsWithContext(ctx context.Context) *FindConfigCompactionPreheatKeyCacheParams { - - return &FindConfigCompactionPreheatKeyCacheParams{ - - Context: ctx, - } -} - -// NewFindConfigCompactionPreheatKeyCacheParamsWithHTTPClient creates a new FindConfigCompactionPreheatKeyCacheParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCompactionPreheatKeyCacheParamsWithHTTPClient(client *http.Client) *FindConfigCompactionPreheatKeyCacheParams { - - return &FindConfigCompactionPreheatKeyCacheParams{ - HTTPClient: client, - } -} - -/* -FindConfigCompactionPreheatKeyCacheParams contains all the parameters to send to the API endpoint -for the find config compaction preheat key cache operation typically these are written to a http.Request -*/ -type FindConfigCompactionPreheatKeyCacheParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config compaction preheat key cache params -func (o *FindConfigCompactionPreheatKeyCacheParams) WithTimeout(timeout time.Duration) *FindConfigCompactionPreheatKeyCacheParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config compaction preheat key cache params -func (o *FindConfigCompactionPreheatKeyCacheParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config compaction preheat key cache params -func (o *FindConfigCompactionPreheatKeyCacheParams) WithContext(ctx context.Context) *FindConfigCompactionPreheatKeyCacheParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config compaction preheat key cache params -func (o *FindConfigCompactionPreheatKeyCacheParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config compaction preheat key cache params -func (o *FindConfigCompactionPreheatKeyCacheParams) WithHTTPClient(client *http.Client) *FindConfigCompactionPreheatKeyCacheParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config compaction preheat key cache params -func (o *FindConfigCompactionPreheatKeyCacheParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCompactionPreheatKeyCacheParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_preheat_key_cache_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_preheat_key_cache_responses.go deleted file mode 100644 index 4dc09c40a0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_preheat_key_cache_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCompactionPreheatKeyCacheReader is a Reader for the FindConfigCompactionPreheatKeyCache structure. -type FindConfigCompactionPreheatKeyCacheReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCompactionPreheatKeyCacheReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCompactionPreheatKeyCacheOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCompactionPreheatKeyCacheDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCompactionPreheatKeyCacheOK creates a FindConfigCompactionPreheatKeyCacheOK with default headers values -func NewFindConfigCompactionPreheatKeyCacheOK() *FindConfigCompactionPreheatKeyCacheOK { - return &FindConfigCompactionPreheatKeyCacheOK{} -} - -/* -FindConfigCompactionPreheatKeyCacheOK handles this case with default header values. - -Config value -*/ -type FindConfigCompactionPreheatKeyCacheOK struct { - Payload bool -} - -func (o *FindConfigCompactionPreheatKeyCacheOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigCompactionPreheatKeyCacheOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCompactionPreheatKeyCacheDefault creates a FindConfigCompactionPreheatKeyCacheDefault with default headers values -func NewFindConfigCompactionPreheatKeyCacheDefault(code int) *FindConfigCompactionPreheatKeyCacheDefault { - return &FindConfigCompactionPreheatKeyCacheDefault{ - _statusCode: code, - } -} - -/* -FindConfigCompactionPreheatKeyCacheDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCompactionPreheatKeyCacheDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config compaction preheat key cache default response -func (o *FindConfigCompactionPreheatKeyCacheDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCompactionPreheatKeyCacheDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCompactionPreheatKeyCacheDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCompactionPreheatKeyCacheDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_rows_count_warning_threshold_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_rows_count_warning_threshold_parameters.go deleted file mode 100644 index b9eb40ba15..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_rows_count_warning_threshold_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCompactionRowsCountWarningThresholdParams creates a new FindConfigCompactionRowsCountWarningThresholdParams object -// with the default values initialized. -func NewFindConfigCompactionRowsCountWarningThresholdParams() *FindConfigCompactionRowsCountWarningThresholdParams { - - return &FindConfigCompactionRowsCountWarningThresholdParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCompactionRowsCountWarningThresholdParamsWithTimeout creates a new FindConfigCompactionRowsCountWarningThresholdParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCompactionRowsCountWarningThresholdParamsWithTimeout(timeout time.Duration) *FindConfigCompactionRowsCountWarningThresholdParams { - - return &FindConfigCompactionRowsCountWarningThresholdParams{ - - timeout: timeout, - } -} - -// NewFindConfigCompactionRowsCountWarningThresholdParamsWithContext creates a new FindConfigCompactionRowsCountWarningThresholdParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCompactionRowsCountWarningThresholdParamsWithContext(ctx context.Context) *FindConfigCompactionRowsCountWarningThresholdParams { - - return &FindConfigCompactionRowsCountWarningThresholdParams{ - - Context: ctx, - } -} - -// NewFindConfigCompactionRowsCountWarningThresholdParamsWithHTTPClient creates a new FindConfigCompactionRowsCountWarningThresholdParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCompactionRowsCountWarningThresholdParamsWithHTTPClient(client *http.Client) *FindConfigCompactionRowsCountWarningThresholdParams { - - return &FindConfigCompactionRowsCountWarningThresholdParams{ - HTTPClient: client, - } -} - -/* -FindConfigCompactionRowsCountWarningThresholdParams contains all the parameters to send to the API endpoint -for the find config compaction rows count warning threshold operation typically these are written to a http.Request -*/ -type FindConfigCompactionRowsCountWarningThresholdParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config compaction rows count warning threshold params -func (o *FindConfigCompactionRowsCountWarningThresholdParams) WithTimeout(timeout time.Duration) *FindConfigCompactionRowsCountWarningThresholdParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config compaction rows count warning threshold params -func (o *FindConfigCompactionRowsCountWarningThresholdParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config compaction rows count warning threshold params -func (o *FindConfigCompactionRowsCountWarningThresholdParams) WithContext(ctx context.Context) *FindConfigCompactionRowsCountWarningThresholdParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config compaction rows count warning threshold params -func (o *FindConfigCompactionRowsCountWarningThresholdParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config compaction rows count warning threshold params -func (o *FindConfigCompactionRowsCountWarningThresholdParams) WithHTTPClient(client *http.Client) *FindConfigCompactionRowsCountWarningThresholdParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config compaction rows count warning threshold params -func (o *FindConfigCompactionRowsCountWarningThresholdParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCompactionRowsCountWarningThresholdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_rows_count_warning_threshold_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_rows_count_warning_threshold_responses.go deleted file mode 100644 index 463234bfa1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_rows_count_warning_threshold_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCompactionRowsCountWarningThresholdReader is a Reader for the FindConfigCompactionRowsCountWarningThreshold structure. -type FindConfigCompactionRowsCountWarningThresholdReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCompactionRowsCountWarningThresholdReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCompactionRowsCountWarningThresholdOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCompactionRowsCountWarningThresholdDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCompactionRowsCountWarningThresholdOK creates a FindConfigCompactionRowsCountWarningThresholdOK with default headers values -func NewFindConfigCompactionRowsCountWarningThresholdOK() *FindConfigCompactionRowsCountWarningThresholdOK { - return &FindConfigCompactionRowsCountWarningThresholdOK{} -} - -/* -FindConfigCompactionRowsCountWarningThresholdOK handles this case with default header values. - -Config value -*/ -type FindConfigCompactionRowsCountWarningThresholdOK struct { - Payload int64 -} - -func (o *FindConfigCompactionRowsCountWarningThresholdOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigCompactionRowsCountWarningThresholdOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCompactionRowsCountWarningThresholdDefault creates a FindConfigCompactionRowsCountWarningThresholdDefault with default headers values -func NewFindConfigCompactionRowsCountWarningThresholdDefault(code int) *FindConfigCompactionRowsCountWarningThresholdDefault { - return &FindConfigCompactionRowsCountWarningThresholdDefault{ - _statusCode: code, - } -} - -/* -FindConfigCompactionRowsCountWarningThresholdDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCompactionRowsCountWarningThresholdDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config compaction rows count warning threshold default response -func (o *FindConfigCompactionRowsCountWarningThresholdDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCompactionRowsCountWarningThresholdDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCompactionRowsCountWarningThresholdDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCompactionRowsCountWarningThresholdDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_static_shares_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_static_shares_parameters.go deleted file mode 100644 index 0df61e228e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_static_shares_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCompactionStaticSharesParams creates a new FindConfigCompactionStaticSharesParams object -// with the default values initialized. -func NewFindConfigCompactionStaticSharesParams() *FindConfigCompactionStaticSharesParams { - - return &FindConfigCompactionStaticSharesParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCompactionStaticSharesParamsWithTimeout creates a new FindConfigCompactionStaticSharesParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCompactionStaticSharesParamsWithTimeout(timeout time.Duration) *FindConfigCompactionStaticSharesParams { - - return &FindConfigCompactionStaticSharesParams{ - - timeout: timeout, - } -} - -// NewFindConfigCompactionStaticSharesParamsWithContext creates a new FindConfigCompactionStaticSharesParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCompactionStaticSharesParamsWithContext(ctx context.Context) *FindConfigCompactionStaticSharesParams { - - return &FindConfigCompactionStaticSharesParams{ - - Context: ctx, - } -} - -// NewFindConfigCompactionStaticSharesParamsWithHTTPClient creates a new FindConfigCompactionStaticSharesParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCompactionStaticSharesParamsWithHTTPClient(client *http.Client) *FindConfigCompactionStaticSharesParams { - - return &FindConfigCompactionStaticSharesParams{ - HTTPClient: client, - } -} - -/* -FindConfigCompactionStaticSharesParams contains all the parameters to send to the API endpoint -for the find config compaction static shares operation typically these are written to a http.Request -*/ -type FindConfigCompactionStaticSharesParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config compaction static shares params -func (o *FindConfigCompactionStaticSharesParams) WithTimeout(timeout time.Duration) *FindConfigCompactionStaticSharesParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config compaction static shares params -func (o *FindConfigCompactionStaticSharesParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config compaction static shares params -func (o *FindConfigCompactionStaticSharesParams) WithContext(ctx context.Context) *FindConfigCompactionStaticSharesParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config compaction static shares params -func (o *FindConfigCompactionStaticSharesParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config compaction static shares params -func (o *FindConfigCompactionStaticSharesParams) WithHTTPClient(client *http.Client) *FindConfigCompactionStaticSharesParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config compaction static shares params -func (o *FindConfigCompactionStaticSharesParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCompactionStaticSharesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_static_shares_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_static_shares_responses.go deleted file mode 100644 index fdbaa0a265..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_static_shares_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCompactionStaticSharesReader is a Reader for the FindConfigCompactionStaticShares structure. -type FindConfigCompactionStaticSharesReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCompactionStaticSharesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCompactionStaticSharesOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCompactionStaticSharesDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCompactionStaticSharesOK creates a FindConfigCompactionStaticSharesOK with default headers values -func NewFindConfigCompactionStaticSharesOK() *FindConfigCompactionStaticSharesOK { - return &FindConfigCompactionStaticSharesOK{} -} - -/* -FindConfigCompactionStaticSharesOK handles this case with default header values. - -Config value -*/ -type FindConfigCompactionStaticSharesOK struct { - Payload float64 -} - -func (o *FindConfigCompactionStaticSharesOK) GetPayload() float64 { - return o.Payload -} - -func (o *FindConfigCompactionStaticSharesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCompactionStaticSharesDefault creates a FindConfigCompactionStaticSharesDefault with default headers values -func NewFindConfigCompactionStaticSharesDefault(code int) *FindConfigCompactionStaticSharesDefault { - return &FindConfigCompactionStaticSharesDefault{ - _statusCode: code, - } -} - -/* -FindConfigCompactionStaticSharesDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCompactionStaticSharesDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config compaction static shares default response -func (o *FindConfigCompactionStaticSharesDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCompactionStaticSharesDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCompactionStaticSharesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCompactionStaticSharesDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_throughput_mb_per_sec_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_throughput_mb_per_sec_parameters.go deleted file mode 100644 index 7d1e75f40e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_throughput_mb_per_sec_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCompactionThroughputMbPerSecParams creates a new FindConfigCompactionThroughputMbPerSecParams object -// with the default values initialized. -func NewFindConfigCompactionThroughputMbPerSecParams() *FindConfigCompactionThroughputMbPerSecParams { - - return &FindConfigCompactionThroughputMbPerSecParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCompactionThroughputMbPerSecParamsWithTimeout creates a new FindConfigCompactionThroughputMbPerSecParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCompactionThroughputMbPerSecParamsWithTimeout(timeout time.Duration) *FindConfigCompactionThroughputMbPerSecParams { - - return &FindConfigCompactionThroughputMbPerSecParams{ - - timeout: timeout, - } -} - -// NewFindConfigCompactionThroughputMbPerSecParamsWithContext creates a new FindConfigCompactionThroughputMbPerSecParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCompactionThroughputMbPerSecParamsWithContext(ctx context.Context) *FindConfigCompactionThroughputMbPerSecParams { - - return &FindConfigCompactionThroughputMbPerSecParams{ - - Context: ctx, - } -} - -// NewFindConfigCompactionThroughputMbPerSecParamsWithHTTPClient creates a new FindConfigCompactionThroughputMbPerSecParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCompactionThroughputMbPerSecParamsWithHTTPClient(client *http.Client) *FindConfigCompactionThroughputMbPerSecParams { - - return &FindConfigCompactionThroughputMbPerSecParams{ - HTTPClient: client, - } -} - -/* -FindConfigCompactionThroughputMbPerSecParams contains all the parameters to send to the API endpoint -for the find config compaction throughput mb per sec operation typically these are written to a http.Request -*/ -type FindConfigCompactionThroughputMbPerSecParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config compaction throughput mb per sec params -func (o *FindConfigCompactionThroughputMbPerSecParams) WithTimeout(timeout time.Duration) *FindConfigCompactionThroughputMbPerSecParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config compaction throughput mb per sec params -func (o *FindConfigCompactionThroughputMbPerSecParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config compaction throughput mb per sec params -func (o *FindConfigCompactionThroughputMbPerSecParams) WithContext(ctx context.Context) *FindConfigCompactionThroughputMbPerSecParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config compaction throughput mb per sec params -func (o *FindConfigCompactionThroughputMbPerSecParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config compaction throughput mb per sec params -func (o *FindConfigCompactionThroughputMbPerSecParams) WithHTTPClient(client *http.Client) *FindConfigCompactionThroughputMbPerSecParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config compaction throughput mb per sec params -func (o *FindConfigCompactionThroughputMbPerSecParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCompactionThroughputMbPerSecParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_throughput_mb_per_sec_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_throughput_mb_per_sec_responses.go deleted file mode 100644 index 530018abfb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_compaction_throughput_mb_per_sec_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCompactionThroughputMbPerSecReader is a Reader for the FindConfigCompactionThroughputMbPerSec structure. -type FindConfigCompactionThroughputMbPerSecReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCompactionThroughputMbPerSecReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCompactionThroughputMbPerSecOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCompactionThroughputMbPerSecDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCompactionThroughputMbPerSecOK creates a FindConfigCompactionThroughputMbPerSecOK with default headers values -func NewFindConfigCompactionThroughputMbPerSecOK() *FindConfigCompactionThroughputMbPerSecOK { - return &FindConfigCompactionThroughputMbPerSecOK{} -} - -/* -FindConfigCompactionThroughputMbPerSecOK handles this case with default header values. - -Config value -*/ -type FindConfigCompactionThroughputMbPerSecOK struct { - Payload int64 -} - -func (o *FindConfigCompactionThroughputMbPerSecOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigCompactionThroughputMbPerSecOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCompactionThroughputMbPerSecDefault creates a FindConfigCompactionThroughputMbPerSecDefault with default headers values -func NewFindConfigCompactionThroughputMbPerSecDefault(code int) *FindConfigCompactionThroughputMbPerSecDefault { - return &FindConfigCompactionThroughputMbPerSecDefault{ - _statusCode: code, - } -} - -/* -FindConfigCompactionThroughputMbPerSecDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCompactionThroughputMbPerSecDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config compaction throughput mb per sec default response -func (o *FindConfigCompactionThroughputMbPerSecDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCompactionThroughputMbPerSecDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCompactionThroughputMbPerSecDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCompactionThroughputMbPerSecDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_compactors_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_compactors_parameters.go deleted file mode 100644 index 69eca25dee..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_compactors_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigConcurrentCompactorsParams creates a new FindConfigConcurrentCompactorsParams object -// with the default values initialized. -func NewFindConfigConcurrentCompactorsParams() *FindConfigConcurrentCompactorsParams { - - return &FindConfigConcurrentCompactorsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigConcurrentCompactorsParamsWithTimeout creates a new FindConfigConcurrentCompactorsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigConcurrentCompactorsParamsWithTimeout(timeout time.Duration) *FindConfigConcurrentCompactorsParams { - - return &FindConfigConcurrentCompactorsParams{ - - timeout: timeout, - } -} - -// NewFindConfigConcurrentCompactorsParamsWithContext creates a new FindConfigConcurrentCompactorsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigConcurrentCompactorsParamsWithContext(ctx context.Context) *FindConfigConcurrentCompactorsParams { - - return &FindConfigConcurrentCompactorsParams{ - - Context: ctx, - } -} - -// NewFindConfigConcurrentCompactorsParamsWithHTTPClient creates a new FindConfigConcurrentCompactorsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigConcurrentCompactorsParamsWithHTTPClient(client *http.Client) *FindConfigConcurrentCompactorsParams { - - return &FindConfigConcurrentCompactorsParams{ - HTTPClient: client, - } -} - -/* -FindConfigConcurrentCompactorsParams contains all the parameters to send to the API endpoint -for the find config concurrent compactors operation typically these are written to a http.Request -*/ -type FindConfigConcurrentCompactorsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config concurrent compactors params -func (o *FindConfigConcurrentCompactorsParams) WithTimeout(timeout time.Duration) *FindConfigConcurrentCompactorsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config concurrent compactors params -func (o *FindConfigConcurrentCompactorsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config concurrent compactors params -func (o *FindConfigConcurrentCompactorsParams) WithContext(ctx context.Context) *FindConfigConcurrentCompactorsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config concurrent compactors params -func (o *FindConfigConcurrentCompactorsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config concurrent compactors params -func (o *FindConfigConcurrentCompactorsParams) WithHTTPClient(client *http.Client) *FindConfigConcurrentCompactorsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config concurrent compactors params -func (o *FindConfigConcurrentCompactorsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigConcurrentCompactorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_compactors_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_compactors_responses.go deleted file mode 100644 index 5d2bd20e8d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_compactors_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigConcurrentCompactorsReader is a Reader for the FindConfigConcurrentCompactors structure. -type FindConfigConcurrentCompactorsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigConcurrentCompactorsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigConcurrentCompactorsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigConcurrentCompactorsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigConcurrentCompactorsOK creates a FindConfigConcurrentCompactorsOK with default headers values -func NewFindConfigConcurrentCompactorsOK() *FindConfigConcurrentCompactorsOK { - return &FindConfigConcurrentCompactorsOK{} -} - -/* -FindConfigConcurrentCompactorsOK handles this case with default header values. - -Config value -*/ -type FindConfigConcurrentCompactorsOK struct { - Payload int64 -} - -func (o *FindConfigConcurrentCompactorsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigConcurrentCompactorsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigConcurrentCompactorsDefault creates a FindConfigConcurrentCompactorsDefault with default headers values -func NewFindConfigConcurrentCompactorsDefault(code int) *FindConfigConcurrentCompactorsDefault { - return &FindConfigConcurrentCompactorsDefault{ - _statusCode: code, - } -} - -/* -FindConfigConcurrentCompactorsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigConcurrentCompactorsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config concurrent compactors default response -func (o *FindConfigConcurrentCompactorsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigConcurrentCompactorsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigConcurrentCompactorsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigConcurrentCompactorsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_counter_writes_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_counter_writes_parameters.go deleted file mode 100644 index e841322bc9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_counter_writes_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigConcurrentCounterWritesParams creates a new FindConfigConcurrentCounterWritesParams object -// with the default values initialized. -func NewFindConfigConcurrentCounterWritesParams() *FindConfigConcurrentCounterWritesParams { - - return &FindConfigConcurrentCounterWritesParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigConcurrentCounterWritesParamsWithTimeout creates a new FindConfigConcurrentCounterWritesParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigConcurrentCounterWritesParamsWithTimeout(timeout time.Duration) *FindConfigConcurrentCounterWritesParams { - - return &FindConfigConcurrentCounterWritesParams{ - - timeout: timeout, - } -} - -// NewFindConfigConcurrentCounterWritesParamsWithContext creates a new FindConfigConcurrentCounterWritesParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigConcurrentCounterWritesParamsWithContext(ctx context.Context) *FindConfigConcurrentCounterWritesParams { - - return &FindConfigConcurrentCounterWritesParams{ - - Context: ctx, - } -} - -// NewFindConfigConcurrentCounterWritesParamsWithHTTPClient creates a new FindConfigConcurrentCounterWritesParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigConcurrentCounterWritesParamsWithHTTPClient(client *http.Client) *FindConfigConcurrentCounterWritesParams { - - return &FindConfigConcurrentCounterWritesParams{ - HTTPClient: client, - } -} - -/* -FindConfigConcurrentCounterWritesParams contains all the parameters to send to the API endpoint -for the find config concurrent counter writes operation typically these are written to a http.Request -*/ -type FindConfigConcurrentCounterWritesParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config concurrent counter writes params -func (o *FindConfigConcurrentCounterWritesParams) WithTimeout(timeout time.Duration) *FindConfigConcurrentCounterWritesParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config concurrent counter writes params -func (o *FindConfigConcurrentCounterWritesParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config concurrent counter writes params -func (o *FindConfigConcurrentCounterWritesParams) WithContext(ctx context.Context) *FindConfigConcurrentCounterWritesParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config concurrent counter writes params -func (o *FindConfigConcurrentCounterWritesParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config concurrent counter writes params -func (o *FindConfigConcurrentCounterWritesParams) WithHTTPClient(client *http.Client) *FindConfigConcurrentCounterWritesParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config concurrent counter writes params -func (o *FindConfigConcurrentCounterWritesParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigConcurrentCounterWritesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_counter_writes_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_counter_writes_responses.go deleted file mode 100644 index a48b78d9dd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_counter_writes_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigConcurrentCounterWritesReader is a Reader for the FindConfigConcurrentCounterWrites structure. -type FindConfigConcurrentCounterWritesReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigConcurrentCounterWritesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigConcurrentCounterWritesOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigConcurrentCounterWritesDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigConcurrentCounterWritesOK creates a FindConfigConcurrentCounterWritesOK with default headers values -func NewFindConfigConcurrentCounterWritesOK() *FindConfigConcurrentCounterWritesOK { - return &FindConfigConcurrentCounterWritesOK{} -} - -/* -FindConfigConcurrentCounterWritesOK handles this case with default header values. - -Config value -*/ -type FindConfigConcurrentCounterWritesOK struct { - Payload int64 -} - -func (o *FindConfigConcurrentCounterWritesOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigConcurrentCounterWritesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigConcurrentCounterWritesDefault creates a FindConfigConcurrentCounterWritesDefault with default headers values -func NewFindConfigConcurrentCounterWritesDefault(code int) *FindConfigConcurrentCounterWritesDefault { - return &FindConfigConcurrentCounterWritesDefault{ - _statusCode: code, - } -} - -/* -FindConfigConcurrentCounterWritesDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigConcurrentCounterWritesDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config concurrent counter writes default response -func (o *FindConfigConcurrentCounterWritesDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigConcurrentCounterWritesDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigConcurrentCounterWritesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigConcurrentCounterWritesDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_reads_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_reads_parameters.go deleted file mode 100644 index e7506404b6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_reads_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigConcurrentReadsParams creates a new FindConfigConcurrentReadsParams object -// with the default values initialized. -func NewFindConfigConcurrentReadsParams() *FindConfigConcurrentReadsParams { - - return &FindConfigConcurrentReadsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigConcurrentReadsParamsWithTimeout creates a new FindConfigConcurrentReadsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigConcurrentReadsParamsWithTimeout(timeout time.Duration) *FindConfigConcurrentReadsParams { - - return &FindConfigConcurrentReadsParams{ - - timeout: timeout, - } -} - -// NewFindConfigConcurrentReadsParamsWithContext creates a new FindConfigConcurrentReadsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigConcurrentReadsParamsWithContext(ctx context.Context) *FindConfigConcurrentReadsParams { - - return &FindConfigConcurrentReadsParams{ - - Context: ctx, - } -} - -// NewFindConfigConcurrentReadsParamsWithHTTPClient creates a new FindConfigConcurrentReadsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigConcurrentReadsParamsWithHTTPClient(client *http.Client) *FindConfigConcurrentReadsParams { - - return &FindConfigConcurrentReadsParams{ - HTTPClient: client, - } -} - -/* -FindConfigConcurrentReadsParams contains all the parameters to send to the API endpoint -for the find config concurrent reads operation typically these are written to a http.Request -*/ -type FindConfigConcurrentReadsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config concurrent reads params -func (o *FindConfigConcurrentReadsParams) WithTimeout(timeout time.Duration) *FindConfigConcurrentReadsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config concurrent reads params -func (o *FindConfigConcurrentReadsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config concurrent reads params -func (o *FindConfigConcurrentReadsParams) WithContext(ctx context.Context) *FindConfigConcurrentReadsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config concurrent reads params -func (o *FindConfigConcurrentReadsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config concurrent reads params -func (o *FindConfigConcurrentReadsParams) WithHTTPClient(client *http.Client) *FindConfigConcurrentReadsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config concurrent reads params -func (o *FindConfigConcurrentReadsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigConcurrentReadsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_reads_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_reads_responses.go deleted file mode 100644 index f8dae54cbb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_reads_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigConcurrentReadsReader is a Reader for the FindConfigConcurrentReads structure. -type FindConfigConcurrentReadsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigConcurrentReadsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigConcurrentReadsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigConcurrentReadsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigConcurrentReadsOK creates a FindConfigConcurrentReadsOK with default headers values -func NewFindConfigConcurrentReadsOK() *FindConfigConcurrentReadsOK { - return &FindConfigConcurrentReadsOK{} -} - -/* -FindConfigConcurrentReadsOK handles this case with default header values. - -Config value -*/ -type FindConfigConcurrentReadsOK struct { - Payload int64 -} - -func (o *FindConfigConcurrentReadsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigConcurrentReadsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigConcurrentReadsDefault creates a FindConfigConcurrentReadsDefault with default headers values -func NewFindConfigConcurrentReadsDefault(code int) *FindConfigConcurrentReadsDefault { - return &FindConfigConcurrentReadsDefault{ - _statusCode: code, - } -} - -/* -FindConfigConcurrentReadsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigConcurrentReadsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config concurrent reads default response -func (o *FindConfigConcurrentReadsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigConcurrentReadsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigConcurrentReadsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigConcurrentReadsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_writes_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_writes_parameters.go deleted file mode 100644 index 2e2208b467..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_writes_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigConcurrentWritesParams creates a new FindConfigConcurrentWritesParams object -// with the default values initialized. -func NewFindConfigConcurrentWritesParams() *FindConfigConcurrentWritesParams { - - return &FindConfigConcurrentWritesParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigConcurrentWritesParamsWithTimeout creates a new FindConfigConcurrentWritesParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigConcurrentWritesParamsWithTimeout(timeout time.Duration) *FindConfigConcurrentWritesParams { - - return &FindConfigConcurrentWritesParams{ - - timeout: timeout, - } -} - -// NewFindConfigConcurrentWritesParamsWithContext creates a new FindConfigConcurrentWritesParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigConcurrentWritesParamsWithContext(ctx context.Context) *FindConfigConcurrentWritesParams { - - return &FindConfigConcurrentWritesParams{ - - Context: ctx, - } -} - -// NewFindConfigConcurrentWritesParamsWithHTTPClient creates a new FindConfigConcurrentWritesParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigConcurrentWritesParamsWithHTTPClient(client *http.Client) *FindConfigConcurrentWritesParams { - - return &FindConfigConcurrentWritesParams{ - HTTPClient: client, - } -} - -/* -FindConfigConcurrentWritesParams contains all the parameters to send to the API endpoint -for the find config concurrent writes operation typically these are written to a http.Request -*/ -type FindConfigConcurrentWritesParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config concurrent writes params -func (o *FindConfigConcurrentWritesParams) WithTimeout(timeout time.Duration) *FindConfigConcurrentWritesParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config concurrent writes params -func (o *FindConfigConcurrentWritesParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config concurrent writes params -func (o *FindConfigConcurrentWritesParams) WithContext(ctx context.Context) *FindConfigConcurrentWritesParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config concurrent writes params -func (o *FindConfigConcurrentWritesParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config concurrent writes params -func (o *FindConfigConcurrentWritesParams) WithHTTPClient(client *http.Client) *FindConfigConcurrentWritesParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config concurrent writes params -func (o *FindConfigConcurrentWritesParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigConcurrentWritesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_writes_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_writes_responses.go deleted file mode 100644 index 071fefb5ad..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_concurrent_writes_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigConcurrentWritesReader is a Reader for the FindConfigConcurrentWrites structure. -type FindConfigConcurrentWritesReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigConcurrentWritesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigConcurrentWritesOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigConcurrentWritesDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigConcurrentWritesOK creates a FindConfigConcurrentWritesOK with default headers values -func NewFindConfigConcurrentWritesOK() *FindConfigConcurrentWritesOK { - return &FindConfigConcurrentWritesOK{} -} - -/* -FindConfigConcurrentWritesOK handles this case with default header values. - -Config value -*/ -type FindConfigConcurrentWritesOK struct { - Payload int64 -} - -func (o *FindConfigConcurrentWritesOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigConcurrentWritesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigConcurrentWritesDefault creates a FindConfigConcurrentWritesDefault with default headers values -func NewFindConfigConcurrentWritesDefault(code int) *FindConfigConcurrentWritesDefault { - return &FindConfigConcurrentWritesDefault{ - _statusCode: code, - } -} - -/* -FindConfigConcurrentWritesDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigConcurrentWritesDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config concurrent writes default response -func (o *FindConfigConcurrentWritesDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigConcurrentWritesDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigConcurrentWritesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigConcurrentWritesDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_consistent_cluster_management_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_consistent_cluster_management_parameters.go deleted file mode 100644 index 692b79ba92..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_consistent_cluster_management_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigConsistentClusterManagementParams creates a new FindConfigConsistentClusterManagementParams object -// with the default values initialized. -func NewFindConfigConsistentClusterManagementParams() *FindConfigConsistentClusterManagementParams { - - return &FindConfigConsistentClusterManagementParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigConsistentClusterManagementParamsWithTimeout creates a new FindConfigConsistentClusterManagementParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigConsistentClusterManagementParamsWithTimeout(timeout time.Duration) *FindConfigConsistentClusterManagementParams { - - return &FindConfigConsistentClusterManagementParams{ - - timeout: timeout, - } -} - -// NewFindConfigConsistentClusterManagementParamsWithContext creates a new FindConfigConsistentClusterManagementParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigConsistentClusterManagementParamsWithContext(ctx context.Context) *FindConfigConsistentClusterManagementParams { - - return &FindConfigConsistentClusterManagementParams{ - - Context: ctx, - } -} - -// NewFindConfigConsistentClusterManagementParamsWithHTTPClient creates a new FindConfigConsistentClusterManagementParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigConsistentClusterManagementParamsWithHTTPClient(client *http.Client) *FindConfigConsistentClusterManagementParams { - - return &FindConfigConsistentClusterManagementParams{ - HTTPClient: client, - } -} - -/* -FindConfigConsistentClusterManagementParams contains all the parameters to send to the API endpoint -for the find config consistent cluster management operation typically these are written to a http.Request -*/ -type FindConfigConsistentClusterManagementParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config consistent cluster management params -func (o *FindConfigConsistentClusterManagementParams) WithTimeout(timeout time.Duration) *FindConfigConsistentClusterManagementParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config consistent cluster management params -func (o *FindConfigConsistentClusterManagementParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config consistent cluster management params -func (o *FindConfigConsistentClusterManagementParams) WithContext(ctx context.Context) *FindConfigConsistentClusterManagementParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config consistent cluster management params -func (o *FindConfigConsistentClusterManagementParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config consistent cluster management params -func (o *FindConfigConsistentClusterManagementParams) WithHTTPClient(client *http.Client) *FindConfigConsistentClusterManagementParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config consistent cluster management params -func (o *FindConfigConsistentClusterManagementParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigConsistentClusterManagementParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_consistent_cluster_management_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_consistent_cluster_management_responses.go deleted file mode 100644 index 7cef53f909..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_consistent_cluster_management_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigConsistentClusterManagementReader is a Reader for the FindConfigConsistentClusterManagement structure. -type FindConfigConsistentClusterManagementReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigConsistentClusterManagementReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigConsistentClusterManagementOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigConsistentClusterManagementDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigConsistentClusterManagementOK creates a FindConfigConsistentClusterManagementOK with default headers values -func NewFindConfigConsistentClusterManagementOK() *FindConfigConsistentClusterManagementOK { - return &FindConfigConsistentClusterManagementOK{} -} - -/* -FindConfigConsistentClusterManagementOK handles this case with default header values. - -Config value -*/ -type FindConfigConsistentClusterManagementOK struct { - Payload bool -} - -func (o *FindConfigConsistentClusterManagementOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigConsistentClusterManagementOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigConsistentClusterManagementDefault creates a FindConfigConsistentClusterManagementDefault with default headers values -func NewFindConfigConsistentClusterManagementDefault(code int) *FindConfigConsistentClusterManagementDefault { - return &FindConfigConsistentClusterManagementDefault{ - _statusCode: code, - } -} - -/* -FindConfigConsistentClusterManagementDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigConsistentClusterManagementDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config consistent cluster management default response -func (o *FindConfigConsistentClusterManagementDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigConsistentClusterManagementDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigConsistentClusterManagementDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigConsistentClusterManagementDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_consistent_rangemovement_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_consistent_rangemovement_parameters.go deleted file mode 100644 index f8176d7dfb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_consistent_rangemovement_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigConsistentRangemovementParams creates a new FindConfigConsistentRangemovementParams object -// with the default values initialized. -func NewFindConfigConsistentRangemovementParams() *FindConfigConsistentRangemovementParams { - - return &FindConfigConsistentRangemovementParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigConsistentRangemovementParamsWithTimeout creates a new FindConfigConsistentRangemovementParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigConsistentRangemovementParamsWithTimeout(timeout time.Duration) *FindConfigConsistentRangemovementParams { - - return &FindConfigConsistentRangemovementParams{ - - timeout: timeout, - } -} - -// NewFindConfigConsistentRangemovementParamsWithContext creates a new FindConfigConsistentRangemovementParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigConsistentRangemovementParamsWithContext(ctx context.Context) *FindConfigConsistentRangemovementParams { - - return &FindConfigConsistentRangemovementParams{ - - Context: ctx, - } -} - -// NewFindConfigConsistentRangemovementParamsWithHTTPClient creates a new FindConfigConsistentRangemovementParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigConsistentRangemovementParamsWithHTTPClient(client *http.Client) *FindConfigConsistentRangemovementParams { - - return &FindConfigConsistentRangemovementParams{ - HTTPClient: client, - } -} - -/* -FindConfigConsistentRangemovementParams contains all the parameters to send to the API endpoint -for the find config consistent rangemovement operation typically these are written to a http.Request -*/ -type FindConfigConsistentRangemovementParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config consistent rangemovement params -func (o *FindConfigConsistentRangemovementParams) WithTimeout(timeout time.Duration) *FindConfigConsistentRangemovementParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config consistent rangemovement params -func (o *FindConfigConsistentRangemovementParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config consistent rangemovement params -func (o *FindConfigConsistentRangemovementParams) WithContext(ctx context.Context) *FindConfigConsistentRangemovementParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config consistent rangemovement params -func (o *FindConfigConsistentRangemovementParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config consistent rangemovement params -func (o *FindConfigConsistentRangemovementParams) WithHTTPClient(client *http.Client) *FindConfigConsistentRangemovementParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config consistent rangemovement params -func (o *FindConfigConsistentRangemovementParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigConsistentRangemovementParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_consistent_rangemovement_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_consistent_rangemovement_responses.go deleted file mode 100644 index ed97cd9569..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_consistent_rangemovement_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigConsistentRangemovementReader is a Reader for the FindConfigConsistentRangemovement structure. -type FindConfigConsistentRangemovementReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigConsistentRangemovementReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigConsistentRangemovementOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigConsistentRangemovementDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigConsistentRangemovementOK creates a FindConfigConsistentRangemovementOK with default headers values -func NewFindConfigConsistentRangemovementOK() *FindConfigConsistentRangemovementOK { - return &FindConfigConsistentRangemovementOK{} -} - -/* -FindConfigConsistentRangemovementOK handles this case with default header values. - -Config value -*/ -type FindConfigConsistentRangemovementOK struct { - Payload bool -} - -func (o *FindConfigConsistentRangemovementOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigConsistentRangemovementOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigConsistentRangemovementDefault creates a FindConfigConsistentRangemovementDefault with default headers values -func NewFindConfigConsistentRangemovementDefault(code int) *FindConfigConsistentRangemovementDefault { - return &FindConfigConsistentRangemovementDefault{ - _statusCode: code, - } -} - -/* -FindConfigConsistentRangemovementDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigConsistentRangemovementDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config consistent rangemovement default response -func (o *FindConfigConsistentRangemovementDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigConsistentRangemovementDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigConsistentRangemovementDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigConsistentRangemovementDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_cache_keys_to_save_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_cache_keys_to_save_parameters.go deleted file mode 100644 index 3c76ed753c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_cache_keys_to_save_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCounterCacheKeysToSaveParams creates a new FindConfigCounterCacheKeysToSaveParams object -// with the default values initialized. -func NewFindConfigCounterCacheKeysToSaveParams() *FindConfigCounterCacheKeysToSaveParams { - - return &FindConfigCounterCacheKeysToSaveParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCounterCacheKeysToSaveParamsWithTimeout creates a new FindConfigCounterCacheKeysToSaveParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCounterCacheKeysToSaveParamsWithTimeout(timeout time.Duration) *FindConfigCounterCacheKeysToSaveParams { - - return &FindConfigCounterCacheKeysToSaveParams{ - - timeout: timeout, - } -} - -// NewFindConfigCounterCacheKeysToSaveParamsWithContext creates a new FindConfigCounterCacheKeysToSaveParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCounterCacheKeysToSaveParamsWithContext(ctx context.Context) *FindConfigCounterCacheKeysToSaveParams { - - return &FindConfigCounterCacheKeysToSaveParams{ - - Context: ctx, - } -} - -// NewFindConfigCounterCacheKeysToSaveParamsWithHTTPClient creates a new FindConfigCounterCacheKeysToSaveParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCounterCacheKeysToSaveParamsWithHTTPClient(client *http.Client) *FindConfigCounterCacheKeysToSaveParams { - - return &FindConfigCounterCacheKeysToSaveParams{ - HTTPClient: client, - } -} - -/* -FindConfigCounterCacheKeysToSaveParams contains all the parameters to send to the API endpoint -for the find config counter cache keys to save operation typically these are written to a http.Request -*/ -type FindConfigCounterCacheKeysToSaveParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config counter cache keys to save params -func (o *FindConfigCounterCacheKeysToSaveParams) WithTimeout(timeout time.Duration) *FindConfigCounterCacheKeysToSaveParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config counter cache keys to save params -func (o *FindConfigCounterCacheKeysToSaveParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config counter cache keys to save params -func (o *FindConfigCounterCacheKeysToSaveParams) WithContext(ctx context.Context) *FindConfigCounterCacheKeysToSaveParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config counter cache keys to save params -func (o *FindConfigCounterCacheKeysToSaveParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config counter cache keys to save params -func (o *FindConfigCounterCacheKeysToSaveParams) WithHTTPClient(client *http.Client) *FindConfigCounterCacheKeysToSaveParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config counter cache keys to save params -func (o *FindConfigCounterCacheKeysToSaveParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCounterCacheKeysToSaveParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_cache_keys_to_save_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_cache_keys_to_save_responses.go deleted file mode 100644 index a1d1216679..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_cache_keys_to_save_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCounterCacheKeysToSaveReader is a Reader for the FindConfigCounterCacheKeysToSave structure. -type FindConfigCounterCacheKeysToSaveReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCounterCacheKeysToSaveReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCounterCacheKeysToSaveOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCounterCacheKeysToSaveDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCounterCacheKeysToSaveOK creates a FindConfigCounterCacheKeysToSaveOK with default headers values -func NewFindConfigCounterCacheKeysToSaveOK() *FindConfigCounterCacheKeysToSaveOK { - return &FindConfigCounterCacheKeysToSaveOK{} -} - -/* -FindConfigCounterCacheKeysToSaveOK handles this case with default header values. - -Config value -*/ -type FindConfigCounterCacheKeysToSaveOK struct { - Payload int64 -} - -func (o *FindConfigCounterCacheKeysToSaveOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigCounterCacheKeysToSaveOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCounterCacheKeysToSaveDefault creates a FindConfigCounterCacheKeysToSaveDefault with default headers values -func NewFindConfigCounterCacheKeysToSaveDefault(code int) *FindConfigCounterCacheKeysToSaveDefault { - return &FindConfigCounterCacheKeysToSaveDefault{ - _statusCode: code, - } -} - -/* -FindConfigCounterCacheKeysToSaveDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCounterCacheKeysToSaveDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config counter cache keys to save default response -func (o *FindConfigCounterCacheKeysToSaveDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCounterCacheKeysToSaveDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCounterCacheKeysToSaveDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCounterCacheKeysToSaveDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_cache_save_period_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_cache_save_period_parameters.go deleted file mode 100644 index 2b44949760..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_cache_save_period_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCounterCacheSavePeriodParams creates a new FindConfigCounterCacheSavePeriodParams object -// with the default values initialized. -func NewFindConfigCounterCacheSavePeriodParams() *FindConfigCounterCacheSavePeriodParams { - - return &FindConfigCounterCacheSavePeriodParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCounterCacheSavePeriodParamsWithTimeout creates a new FindConfigCounterCacheSavePeriodParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCounterCacheSavePeriodParamsWithTimeout(timeout time.Duration) *FindConfigCounterCacheSavePeriodParams { - - return &FindConfigCounterCacheSavePeriodParams{ - - timeout: timeout, - } -} - -// NewFindConfigCounterCacheSavePeriodParamsWithContext creates a new FindConfigCounterCacheSavePeriodParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCounterCacheSavePeriodParamsWithContext(ctx context.Context) *FindConfigCounterCacheSavePeriodParams { - - return &FindConfigCounterCacheSavePeriodParams{ - - Context: ctx, - } -} - -// NewFindConfigCounterCacheSavePeriodParamsWithHTTPClient creates a new FindConfigCounterCacheSavePeriodParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCounterCacheSavePeriodParamsWithHTTPClient(client *http.Client) *FindConfigCounterCacheSavePeriodParams { - - return &FindConfigCounterCacheSavePeriodParams{ - HTTPClient: client, - } -} - -/* -FindConfigCounterCacheSavePeriodParams contains all the parameters to send to the API endpoint -for the find config counter cache save period operation typically these are written to a http.Request -*/ -type FindConfigCounterCacheSavePeriodParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config counter cache save period params -func (o *FindConfigCounterCacheSavePeriodParams) WithTimeout(timeout time.Duration) *FindConfigCounterCacheSavePeriodParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config counter cache save period params -func (o *FindConfigCounterCacheSavePeriodParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config counter cache save period params -func (o *FindConfigCounterCacheSavePeriodParams) WithContext(ctx context.Context) *FindConfigCounterCacheSavePeriodParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config counter cache save period params -func (o *FindConfigCounterCacheSavePeriodParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config counter cache save period params -func (o *FindConfigCounterCacheSavePeriodParams) WithHTTPClient(client *http.Client) *FindConfigCounterCacheSavePeriodParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config counter cache save period params -func (o *FindConfigCounterCacheSavePeriodParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCounterCacheSavePeriodParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_cache_save_period_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_cache_save_period_responses.go deleted file mode 100644 index 966c7ed5e4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_cache_save_period_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCounterCacheSavePeriodReader is a Reader for the FindConfigCounterCacheSavePeriod structure. -type FindConfigCounterCacheSavePeriodReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCounterCacheSavePeriodReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCounterCacheSavePeriodOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCounterCacheSavePeriodDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCounterCacheSavePeriodOK creates a FindConfigCounterCacheSavePeriodOK with default headers values -func NewFindConfigCounterCacheSavePeriodOK() *FindConfigCounterCacheSavePeriodOK { - return &FindConfigCounterCacheSavePeriodOK{} -} - -/* -FindConfigCounterCacheSavePeriodOK handles this case with default header values. - -Config value -*/ -type FindConfigCounterCacheSavePeriodOK struct { - Payload int64 -} - -func (o *FindConfigCounterCacheSavePeriodOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigCounterCacheSavePeriodOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCounterCacheSavePeriodDefault creates a FindConfigCounterCacheSavePeriodDefault with default headers values -func NewFindConfigCounterCacheSavePeriodDefault(code int) *FindConfigCounterCacheSavePeriodDefault { - return &FindConfigCounterCacheSavePeriodDefault{ - _statusCode: code, - } -} - -/* -FindConfigCounterCacheSavePeriodDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCounterCacheSavePeriodDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config counter cache save period default response -func (o *FindConfigCounterCacheSavePeriodDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCounterCacheSavePeriodDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCounterCacheSavePeriodDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCounterCacheSavePeriodDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_cache_size_in_mb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_cache_size_in_mb_parameters.go deleted file mode 100644 index d517c2897a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_cache_size_in_mb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCounterCacheSizeInMbParams creates a new FindConfigCounterCacheSizeInMbParams object -// with the default values initialized. -func NewFindConfigCounterCacheSizeInMbParams() *FindConfigCounterCacheSizeInMbParams { - - return &FindConfigCounterCacheSizeInMbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCounterCacheSizeInMbParamsWithTimeout creates a new FindConfigCounterCacheSizeInMbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCounterCacheSizeInMbParamsWithTimeout(timeout time.Duration) *FindConfigCounterCacheSizeInMbParams { - - return &FindConfigCounterCacheSizeInMbParams{ - - timeout: timeout, - } -} - -// NewFindConfigCounterCacheSizeInMbParamsWithContext creates a new FindConfigCounterCacheSizeInMbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCounterCacheSizeInMbParamsWithContext(ctx context.Context) *FindConfigCounterCacheSizeInMbParams { - - return &FindConfigCounterCacheSizeInMbParams{ - - Context: ctx, - } -} - -// NewFindConfigCounterCacheSizeInMbParamsWithHTTPClient creates a new FindConfigCounterCacheSizeInMbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCounterCacheSizeInMbParamsWithHTTPClient(client *http.Client) *FindConfigCounterCacheSizeInMbParams { - - return &FindConfigCounterCacheSizeInMbParams{ - HTTPClient: client, - } -} - -/* -FindConfigCounterCacheSizeInMbParams contains all the parameters to send to the API endpoint -for the find config counter cache size in mb operation typically these are written to a http.Request -*/ -type FindConfigCounterCacheSizeInMbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config counter cache size in mb params -func (o *FindConfigCounterCacheSizeInMbParams) WithTimeout(timeout time.Duration) *FindConfigCounterCacheSizeInMbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config counter cache size in mb params -func (o *FindConfigCounterCacheSizeInMbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config counter cache size in mb params -func (o *FindConfigCounterCacheSizeInMbParams) WithContext(ctx context.Context) *FindConfigCounterCacheSizeInMbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config counter cache size in mb params -func (o *FindConfigCounterCacheSizeInMbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config counter cache size in mb params -func (o *FindConfigCounterCacheSizeInMbParams) WithHTTPClient(client *http.Client) *FindConfigCounterCacheSizeInMbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config counter cache size in mb params -func (o *FindConfigCounterCacheSizeInMbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCounterCacheSizeInMbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_cache_size_in_mb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_cache_size_in_mb_responses.go deleted file mode 100644 index 996a74c80c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_cache_size_in_mb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCounterCacheSizeInMbReader is a Reader for the FindConfigCounterCacheSizeInMb structure. -type FindConfigCounterCacheSizeInMbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCounterCacheSizeInMbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCounterCacheSizeInMbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCounterCacheSizeInMbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCounterCacheSizeInMbOK creates a FindConfigCounterCacheSizeInMbOK with default headers values -func NewFindConfigCounterCacheSizeInMbOK() *FindConfigCounterCacheSizeInMbOK { - return &FindConfigCounterCacheSizeInMbOK{} -} - -/* -FindConfigCounterCacheSizeInMbOK handles this case with default header values. - -Config value -*/ -type FindConfigCounterCacheSizeInMbOK struct { - Payload int64 -} - -func (o *FindConfigCounterCacheSizeInMbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigCounterCacheSizeInMbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCounterCacheSizeInMbDefault creates a FindConfigCounterCacheSizeInMbDefault with default headers values -func NewFindConfigCounterCacheSizeInMbDefault(code int) *FindConfigCounterCacheSizeInMbDefault { - return &FindConfigCounterCacheSizeInMbDefault{ - _statusCode: code, - } -} - -/* -FindConfigCounterCacheSizeInMbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCounterCacheSizeInMbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config counter cache size in mb default response -func (o *FindConfigCounterCacheSizeInMbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCounterCacheSizeInMbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCounterCacheSizeInMbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCounterCacheSizeInMbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_write_request_timeout_in_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_write_request_timeout_in_ms_parameters.go deleted file mode 100644 index aadc6cbab6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_write_request_timeout_in_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCounterWriteRequestTimeoutInMsParams creates a new FindConfigCounterWriteRequestTimeoutInMsParams object -// with the default values initialized. -func NewFindConfigCounterWriteRequestTimeoutInMsParams() *FindConfigCounterWriteRequestTimeoutInMsParams { - - return &FindConfigCounterWriteRequestTimeoutInMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCounterWriteRequestTimeoutInMsParamsWithTimeout creates a new FindConfigCounterWriteRequestTimeoutInMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCounterWriteRequestTimeoutInMsParamsWithTimeout(timeout time.Duration) *FindConfigCounterWriteRequestTimeoutInMsParams { - - return &FindConfigCounterWriteRequestTimeoutInMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigCounterWriteRequestTimeoutInMsParamsWithContext creates a new FindConfigCounterWriteRequestTimeoutInMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCounterWriteRequestTimeoutInMsParamsWithContext(ctx context.Context) *FindConfigCounterWriteRequestTimeoutInMsParams { - - return &FindConfigCounterWriteRequestTimeoutInMsParams{ - - Context: ctx, - } -} - -// NewFindConfigCounterWriteRequestTimeoutInMsParamsWithHTTPClient creates a new FindConfigCounterWriteRequestTimeoutInMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCounterWriteRequestTimeoutInMsParamsWithHTTPClient(client *http.Client) *FindConfigCounterWriteRequestTimeoutInMsParams { - - return &FindConfigCounterWriteRequestTimeoutInMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigCounterWriteRequestTimeoutInMsParams contains all the parameters to send to the API endpoint -for the find config counter write request timeout in ms operation typically these are written to a http.Request -*/ -type FindConfigCounterWriteRequestTimeoutInMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config counter write request timeout in ms params -func (o *FindConfigCounterWriteRequestTimeoutInMsParams) WithTimeout(timeout time.Duration) *FindConfigCounterWriteRequestTimeoutInMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config counter write request timeout in ms params -func (o *FindConfigCounterWriteRequestTimeoutInMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config counter write request timeout in ms params -func (o *FindConfigCounterWriteRequestTimeoutInMsParams) WithContext(ctx context.Context) *FindConfigCounterWriteRequestTimeoutInMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config counter write request timeout in ms params -func (o *FindConfigCounterWriteRequestTimeoutInMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config counter write request timeout in ms params -func (o *FindConfigCounterWriteRequestTimeoutInMsParams) WithHTTPClient(client *http.Client) *FindConfigCounterWriteRequestTimeoutInMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config counter write request timeout in ms params -func (o *FindConfigCounterWriteRequestTimeoutInMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCounterWriteRequestTimeoutInMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_write_request_timeout_in_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_write_request_timeout_in_ms_responses.go deleted file mode 100644 index 3d2a81eedd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_counter_write_request_timeout_in_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCounterWriteRequestTimeoutInMsReader is a Reader for the FindConfigCounterWriteRequestTimeoutInMs structure. -type FindConfigCounterWriteRequestTimeoutInMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCounterWriteRequestTimeoutInMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCounterWriteRequestTimeoutInMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCounterWriteRequestTimeoutInMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCounterWriteRequestTimeoutInMsOK creates a FindConfigCounterWriteRequestTimeoutInMsOK with default headers values -func NewFindConfigCounterWriteRequestTimeoutInMsOK() *FindConfigCounterWriteRequestTimeoutInMsOK { - return &FindConfigCounterWriteRequestTimeoutInMsOK{} -} - -/* -FindConfigCounterWriteRequestTimeoutInMsOK handles this case with default header values. - -Config value -*/ -type FindConfigCounterWriteRequestTimeoutInMsOK struct { - Payload int64 -} - -func (o *FindConfigCounterWriteRequestTimeoutInMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigCounterWriteRequestTimeoutInMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCounterWriteRequestTimeoutInMsDefault creates a FindConfigCounterWriteRequestTimeoutInMsDefault with default headers values -func NewFindConfigCounterWriteRequestTimeoutInMsDefault(code int) *FindConfigCounterWriteRequestTimeoutInMsDefault { - return &FindConfigCounterWriteRequestTimeoutInMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigCounterWriteRequestTimeoutInMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCounterWriteRequestTimeoutInMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config counter write request timeout in ms default response -func (o *FindConfigCounterWriteRequestTimeoutInMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCounterWriteRequestTimeoutInMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCounterWriteRequestTimeoutInMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCounterWriteRequestTimeoutInMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cpu_scheduler_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cpu_scheduler_parameters.go deleted file mode 100644 index 4f648d9465..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cpu_scheduler_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCPUSchedulerParams creates a new FindConfigCPUSchedulerParams object -// with the default values initialized. -func NewFindConfigCPUSchedulerParams() *FindConfigCPUSchedulerParams { - - return &FindConfigCPUSchedulerParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCPUSchedulerParamsWithTimeout creates a new FindConfigCPUSchedulerParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCPUSchedulerParamsWithTimeout(timeout time.Duration) *FindConfigCPUSchedulerParams { - - return &FindConfigCPUSchedulerParams{ - - timeout: timeout, - } -} - -// NewFindConfigCPUSchedulerParamsWithContext creates a new FindConfigCPUSchedulerParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCPUSchedulerParamsWithContext(ctx context.Context) *FindConfigCPUSchedulerParams { - - return &FindConfigCPUSchedulerParams{ - - Context: ctx, - } -} - -// NewFindConfigCPUSchedulerParamsWithHTTPClient creates a new FindConfigCPUSchedulerParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCPUSchedulerParamsWithHTTPClient(client *http.Client) *FindConfigCPUSchedulerParams { - - return &FindConfigCPUSchedulerParams{ - HTTPClient: client, - } -} - -/* -FindConfigCPUSchedulerParams contains all the parameters to send to the API endpoint -for the find config cpu scheduler operation typically these are written to a http.Request -*/ -type FindConfigCPUSchedulerParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config cpu scheduler params -func (o *FindConfigCPUSchedulerParams) WithTimeout(timeout time.Duration) *FindConfigCPUSchedulerParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config cpu scheduler params -func (o *FindConfigCPUSchedulerParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config cpu scheduler params -func (o *FindConfigCPUSchedulerParams) WithContext(ctx context.Context) *FindConfigCPUSchedulerParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config cpu scheduler params -func (o *FindConfigCPUSchedulerParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config cpu scheduler params -func (o *FindConfigCPUSchedulerParams) WithHTTPClient(client *http.Client) *FindConfigCPUSchedulerParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config cpu scheduler params -func (o *FindConfigCPUSchedulerParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCPUSchedulerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cpu_scheduler_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cpu_scheduler_responses.go deleted file mode 100644 index cf8771d6dd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cpu_scheduler_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCPUSchedulerReader is a Reader for the FindConfigCPUScheduler structure. -type FindConfigCPUSchedulerReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCPUSchedulerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCPUSchedulerOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCPUSchedulerDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCPUSchedulerOK creates a FindConfigCPUSchedulerOK with default headers values -func NewFindConfigCPUSchedulerOK() *FindConfigCPUSchedulerOK { - return &FindConfigCPUSchedulerOK{} -} - -/* -FindConfigCPUSchedulerOK handles this case with default header values. - -Config value -*/ -type FindConfigCPUSchedulerOK struct { - Payload bool -} - -func (o *FindConfigCPUSchedulerOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigCPUSchedulerOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCPUSchedulerDefault creates a FindConfigCPUSchedulerDefault with default headers values -func NewFindConfigCPUSchedulerDefault(code int) *FindConfigCPUSchedulerDefault { - return &FindConfigCPUSchedulerDefault{ - _statusCode: code, - } -} - -/* -FindConfigCPUSchedulerDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCPUSchedulerDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config cpu scheduler default response -func (o *FindConfigCPUSchedulerDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCPUSchedulerDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCPUSchedulerDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCPUSchedulerDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cross_node_timeout_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cross_node_timeout_parameters.go deleted file mode 100644 index dd3122b38e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cross_node_timeout_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigCrossNodeTimeoutParams creates a new FindConfigCrossNodeTimeoutParams object -// with the default values initialized. -func NewFindConfigCrossNodeTimeoutParams() *FindConfigCrossNodeTimeoutParams { - - return &FindConfigCrossNodeTimeoutParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigCrossNodeTimeoutParamsWithTimeout creates a new FindConfigCrossNodeTimeoutParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigCrossNodeTimeoutParamsWithTimeout(timeout time.Duration) *FindConfigCrossNodeTimeoutParams { - - return &FindConfigCrossNodeTimeoutParams{ - - timeout: timeout, - } -} - -// NewFindConfigCrossNodeTimeoutParamsWithContext creates a new FindConfigCrossNodeTimeoutParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigCrossNodeTimeoutParamsWithContext(ctx context.Context) *FindConfigCrossNodeTimeoutParams { - - return &FindConfigCrossNodeTimeoutParams{ - - Context: ctx, - } -} - -// NewFindConfigCrossNodeTimeoutParamsWithHTTPClient creates a new FindConfigCrossNodeTimeoutParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigCrossNodeTimeoutParamsWithHTTPClient(client *http.Client) *FindConfigCrossNodeTimeoutParams { - - return &FindConfigCrossNodeTimeoutParams{ - HTTPClient: client, - } -} - -/* -FindConfigCrossNodeTimeoutParams contains all the parameters to send to the API endpoint -for the find config cross node timeout operation typically these are written to a http.Request -*/ -type FindConfigCrossNodeTimeoutParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config cross node timeout params -func (o *FindConfigCrossNodeTimeoutParams) WithTimeout(timeout time.Duration) *FindConfigCrossNodeTimeoutParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config cross node timeout params -func (o *FindConfigCrossNodeTimeoutParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config cross node timeout params -func (o *FindConfigCrossNodeTimeoutParams) WithContext(ctx context.Context) *FindConfigCrossNodeTimeoutParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config cross node timeout params -func (o *FindConfigCrossNodeTimeoutParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config cross node timeout params -func (o *FindConfigCrossNodeTimeoutParams) WithHTTPClient(client *http.Client) *FindConfigCrossNodeTimeoutParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config cross node timeout params -func (o *FindConfigCrossNodeTimeoutParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigCrossNodeTimeoutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cross_node_timeout_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cross_node_timeout_responses.go deleted file mode 100644 index 67a97bc92c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_cross_node_timeout_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigCrossNodeTimeoutReader is a Reader for the FindConfigCrossNodeTimeout structure. -type FindConfigCrossNodeTimeoutReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigCrossNodeTimeoutReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigCrossNodeTimeoutOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigCrossNodeTimeoutDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigCrossNodeTimeoutOK creates a FindConfigCrossNodeTimeoutOK with default headers values -func NewFindConfigCrossNodeTimeoutOK() *FindConfigCrossNodeTimeoutOK { - return &FindConfigCrossNodeTimeoutOK{} -} - -/* -FindConfigCrossNodeTimeoutOK handles this case with default header values. - -Config value -*/ -type FindConfigCrossNodeTimeoutOK struct { - Payload bool -} - -func (o *FindConfigCrossNodeTimeoutOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigCrossNodeTimeoutOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigCrossNodeTimeoutDefault creates a FindConfigCrossNodeTimeoutDefault with default headers values -func NewFindConfigCrossNodeTimeoutDefault(code int) *FindConfigCrossNodeTimeoutDefault { - return &FindConfigCrossNodeTimeoutDefault{ - _statusCode: code, - } -} - -/* -FindConfigCrossNodeTimeoutDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigCrossNodeTimeoutDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config cross node timeout default response -func (o *FindConfigCrossNodeTimeoutDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigCrossNodeTimeoutDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigCrossNodeTimeoutDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigCrossNodeTimeoutDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_data_file_directories_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_data_file_directories_parameters.go deleted file mode 100644 index a5121c8cb0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_data_file_directories_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigDataFileDirectoriesParams creates a new FindConfigDataFileDirectoriesParams object -// with the default values initialized. -func NewFindConfigDataFileDirectoriesParams() *FindConfigDataFileDirectoriesParams { - - return &FindConfigDataFileDirectoriesParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigDataFileDirectoriesParamsWithTimeout creates a new FindConfigDataFileDirectoriesParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigDataFileDirectoriesParamsWithTimeout(timeout time.Duration) *FindConfigDataFileDirectoriesParams { - - return &FindConfigDataFileDirectoriesParams{ - - timeout: timeout, - } -} - -// NewFindConfigDataFileDirectoriesParamsWithContext creates a new FindConfigDataFileDirectoriesParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigDataFileDirectoriesParamsWithContext(ctx context.Context) *FindConfigDataFileDirectoriesParams { - - return &FindConfigDataFileDirectoriesParams{ - - Context: ctx, - } -} - -// NewFindConfigDataFileDirectoriesParamsWithHTTPClient creates a new FindConfigDataFileDirectoriesParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigDataFileDirectoriesParamsWithHTTPClient(client *http.Client) *FindConfigDataFileDirectoriesParams { - - return &FindConfigDataFileDirectoriesParams{ - HTTPClient: client, - } -} - -/* -FindConfigDataFileDirectoriesParams contains all the parameters to send to the API endpoint -for the find config data file directories operation typically these are written to a http.Request -*/ -type FindConfigDataFileDirectoriesParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config data file directories params -func (o *FindConfigDataFileDirectoriesParams) WithTimeout(timeout time.Duration) *FindConfigDataFileDirectoriesParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config data file directories params -func (o *FindConfigDataFileDirectoriesParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config data file directories params -func (o *FindConfigDataFileDirectoriesParams) WithContext(ctx context.Context) *FindConfigDataFileDirectoriesParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config data file directories params -func (o *FindConfigDataFileDirectoriesParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config data file directories params -func (o *FindConfigDataFileDirectoriesParams) WithHTTPClient(client *http.Client) *FindConfigDataFileDirectoriesParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config data file directories params -func (o *FindConfigDataFileDirectoriesParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigDataFileDirectoriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_data_file_directories_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_data_file_directories_responses.go deleted file mode 100644 index 12797a1e40..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_data_file_directories_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigDataFileDirectoriesReader is a Reader for the FindConfigDataFileDirectories structure. -type FindConfigDataFileDirectoriesReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigDataFileDirectoriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigDataFileDirectoriesOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigDataFileDirectoriesDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigDataFileDirectoriesOK creates a FindConfigDataFileDirectoriesOK with default headers values -func NewFindConfigDataFileDirectoriesOK() *FindConfigDataFileDirectoriesOK { - return &FindConfigDataFileDirectoriesOK{} -} - -/* -FindConfigDataFileDirectoriesOK handles this case with default header values. - -Config value -*/ -type FindConfigDataFileDirectoriesOK struct { - Payload []string -} - -func (o *FindConfigDataFileDirectoriesOK) GetPayload() []string { - return o.Payload -} - -func (o *FindConfigDataFileDirectoriesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigDataFileDirectoriesDefault creates a FindConfigDataFileDirectoriesDefault with default headers values -func NewFindConfigDataFileDirectoriesDefault(code int) *FindConfigDataFileDirectoriesDefault { - return &FindConfigDataFileDirectoriesDefault{ - _statusCode: code, - } -} - -/* -FindConfigDataFileDirectoriesDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigDataFileDirectoriesDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config data file directories default response -func (o *FindConfigDataFileDirectoriesDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigDataFileDirectoriesDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigDataFileDirectoriesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigDataFileDirectoriesDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_default_log_level_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_default_log_level_parameters.go deleted file mode 100644 index 8fba9fbe24..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_default_log_level_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigDefaultLogLevelParams creates a new FindConfigDefaultLogLevelParams object -// with the default values initialized. -func NewFindConfigDefaultLogLevelParams() *FindConfigDefaultLogLevelParams { - - return &FindConfigDefaultLogLevelParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigDefaultLogLevelParamsWithTimeout creates a new FindConfigDefaultLogLevelParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigDefaultLogLevelParamsWithTimeout(timeout time.Duration) *FindConfigDefaultLogLevelParams { - - return &FindConfigDefaultLogLevelParams{ - - timeout: timeout, - } -} - -// NewFindConfigDefaultLogLevelParamsWithContext creates a new FindConfigDefaultLogLevelParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigDefaultLogLevelParamsWithContext(ctx context.Context) *FindConfigDefaultLogLevelParams { - - return &FindConfigDefaultLogLevelParams{ - - Context: ctx, - } -} - -// NewFindConfigDefaultLogLevelParamsWithHTTPClient creates a new FindConfigDefaultLogLevelParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigDefaultLogLevelParamsWithHTTPClient(client *http.Client) *FindConfigDefaultLogLevelParams { - - return &FindConfigDefaultLogLevelParams{ - HTTPClient: client, - } -} - -/* -FindConfigDefaultLogLevelParams contains all the parameters to send to the API endpoint -for the find config default log level operation typically these are written to a http.Request -*/ -type FindConfigDefaultLogLevelParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config default log level params -func (o *FindConfigDefaultLogLevelParams) WithTimeout(timeout time.Duration) *FindConfigDefaultLogLevelParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config default log level params -func (o *FindConfigDefaultLogLevelParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config default log level params -func (o *FindConfigDefaultLogLevelParams) WithContext(ctx context.Context) *FindConfigDefaultLogLevelParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config default log level params -func (o *FindConfigDefaultLogLevelParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config default log level params -func (o *FindConfigDefaultLogLevelParams) WithHTTPClient(client *http.Client) *FindConfigDefaultLogLevelParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config default log level params -func (o *FindConfigDefaultLogLevelParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigDefaultLogLevelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_default_log_level_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_default_log_level_responses.go deleted file mode 100644 index 3ab76b6e3e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_default_log_level_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigDefaultLogLevelReader is a Reader for the FindConfigDefaultLogLevel structure. -type FindConfigDefaultLogLevelReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigDefaultLogLevelReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigDefaultLogLevelOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigDefaultLogLevelDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigDefaultLogLevelOK creates a FindConfigDefaultLogLevelOK with default headers values -func NewFindConfigDefaultLogLevelOK() *FindConfigDefaultLogLevelOK { - return &FindConfigDefaultLogLevelOK{} -} - -/* -FindConfigDefaultLogLevelOK handles this case with default header values. - -Config value -*/ -type FindConfigDefaultLogLevelOK struct { - Payload string -} - -func (o *FindConfigDefaultLogLevelOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigDefaultLogLevelOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigDefaultLogLevelDefault creates a FindConfigDefaultLogLevelDefault with default headers values -func NewFindConfigDefaultLogLevelDefault(code int) *FindConfigDefaultLogLevelDefault { - return &FindConfigDefaultLogLevelDefault{ - _statusCode: code, - } -} - -/* -FindConfigDefaultLogLevelDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigDefaultLogLevelDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config default log level default response -func (o *FindConfigDefaultLogLevelDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigDefaultLogLevelDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigDefaultLogLevelDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigDefaultLogLevelDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_defragment_memory_on_idle_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_defragment_memory_on_idle_parameters.go deleted file mode 100644 index 31f1699805..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_defragment_memory_on_idle_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigDefragmentMemoryOnIdleParams creates a new FindConfigDefragmentMemoryOnIdleParams object -// with the default values initialized. -func NewFindConfigDefragmentMemoryOnIdleParams() *FindConfigDefragmentMemoryOnIdleParams { - - return &FindConfigDefragmentMemoryOnIdleParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigDefragmentMemoryOnIdleParamsWithTimeout creates a new FindConfigDefragmentMemoryOnIdleParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigDefragmentMemoryOnIdleParamsWithTimeout(timeout time.Duration) *FindConfigDefragmentMemoryOnIdleParams { - - return &FindConfigDefragmentMemoryOnIdleParams{ - - timeout: timeout, - } -} - -// NewFindConfigDefragmentMemoryOnIdleParamsWithContext creates a new FindConfigDefragmentMemoryOnIdleParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigDefragmentMemoryOnIdleParamsWithContext(ctx context.Context) *FindConfigDefragmentMemoryOnIdleParams { - - return &FindConfigDefragmentMemoryOnIdleParams{ - - Context: ctx, - } -} - -// NewFindConfigDefragmentMemoryOnIdleParamsWithHTTPClient creates a new FindConfigDefragmentMemoryOnIdleParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigDefragmentMemoryOnIdleParamsWithHTTPClient(client *http.Client) *FindConfigDefragmentMemoryOnIdleParams { - - return &FindConfigDefragmentMemoryOnIdleParams{ - HTTPClient: client, - } -} - -/* -FindConfigDefragmentMemoryOnIdleParams contains all the parameters to send to the API endpoint -for the find config defragment memory on idle operation typically these are written to a http.Request -*/ -type FindConfigDefragmentMemoryOnIdleParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config defragment memory on idle params -func (o *FindConfigDefragmentMemoryOnIdleParams) WithTimeout(timeout time.Duration) *FindConfigDefragmentMemoryOnIdleParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config defragment memory on idle params -func (o *FindConfigDefragmentMemoryOnIdleParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config defragment memory on idle params -func (o *FindConfigDefragmentMemoryOnIdleParams) WithContext(ctx context.Context) *FindConfigDefragmentMemoryOnIdleParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config defragment memory on idle params -func (o *FindConfigDefragmentMemoryOnIdleParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config defragment memory on idle params -func (o *FindConfigDefragmentMemoryOnIdleParams) WithHTTPClient(client *http.Client) *FindConfigDefragmentMemoryOnIdleParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config defragment memory on idle params -func (o *FindConfigDefragmentMemoryOnIdleParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigDefragmentMemoryOnIdleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_defragment_memory_on_idle_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_defragment_memory_on_idle_responses.go deleted file mode 100644 index cdced0be12..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_defragment_memory_on_idle_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigDefragmentMemoryOnIdleReader is a Reader for the FindConfigDefragmentMemoryOnIdle structure. -type FindConfigDefragmentMemoryOnIdleReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigDefragmentMemoryOnIdleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigDefragmentMemoryOnIdleOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigDefragmentMemoryOnIdleDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigDefragmentMemoryOnIdleOK creates a FindConfigDefragmentMemoryOnIdleOK with default headers values -func NewFindConfigDefragmentMemoryOnIdleOK() *FindConfigDefragmentMemoryOnIdleOK { - return &FindConfigDefragmentMemoryOnIdleOK{} -} - -/* -FindConfigDefragmentMemoryOnIdleOK handles this case with default header values. - -Config value -*/ -type FindConfigDefragmentMemoryOnIdleOK struct { - Payload bool -} - -func (o *FindConfigDefragmentMemoryOnIdleOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigDefragmentMemoryOnIdleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigDefragmentMemoryOnIdleDefault creates a FindConfigDefragmentMemoryOnIdleDefault with default headers values -func NewFindConfigDefragmentMemoryOnIdleDefault(code int) *FindConfigDefragmentMemoryOnIdleDefault { - return &FindConfigDefragmentMemoryOnIdleDefault{ - _statusCode: code, - } -} - -/* -FindConfigDefragmentMemoryOnIdleDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigDefragmentMemoryOnIdleDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config defragment memory on idle default response -func (o *FindConfigDefragmentMemoryOnIdleDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigDefragmentMemoryOnIdleDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigDefragmentMemoryOnIdleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigDefragmentMemoryOnIdleDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_developer_mode_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_developer_mode_parameters.go deleted file mode 100644 index 2df5b6607b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_developer_mode_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigDeveloperModeParams creates a new FindConfigDeveloperModeParams object -// with the default values initialized. -func NewFindConfigDeveloperModeParams() *FindConfigDeveloperModeParams { - - return &FindConfigDeveloperModeParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigDeveloperModeParamsWithTimeout creates a new FindConfigDeveloperModeParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigDeveloperModeParamsWithTimeout(timeout time.Duration) *FindConfigDeveloperModeParams { - - return &FindConfigDeveloperModeParams{ - - timeout: timeout, - } -} - -// NewFindConfigDeveloperModeParamsWithContext creates a new FindConfigDeveloperModeParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigDeveloperModeParamsWithContext(ctx context.Context) *FindConfigDeveloperModeParams { - - return &FindConfigDeveloperModeParams{ - - Context: ctx, - } -} - -// NewFindConfigDeveloperModeParamsWithHTTPClient creates a new FindConfigDeveloperModeParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigDeveloperModeParamsWithHTTPClient(client *http.Client) *FindConfigDeveloperModeParams { - - return &FindConfigDeveloperModeParams{ - HTTPClient: client, - } -} - -/* -FindConfigDeveloperModeParams contains all the parameters to send to the API endpoint -for the find config developer mode operation typically these are written to a http.Request -*/ -type FindConfigDeveloperModeParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config developer mode params -func (o *FindConfigDeveloperModeParams) WithTimeout(timeout time.Duration) *FindConfigDeveloperModeParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config developer mode params -func (o *FindConfigDeveloperModeParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config developer mode params -func (o *FindConfigDeveloperModeParams) WithContext(ctx context.Context) *FindConfigDeveloperModeParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config developer mode params -func (o *FindConfigDeveloperModeParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config developer mode params -func (o *FindConfigDeveloperModeParams) WithHTTPClient(client *http.Client) *FindConfigDeveloperModeParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config developer mode params -func (o *FindConfigDeveloperModeParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigDeveloperModeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_developer_mode_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_developer_mode_responses.go deleted file mode 100644 index dead89bffe..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_developer_mode_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigDeveloperModeReader is a Reader for the FindConfigDeveloperMode structure. -type FindConfigDeveloperModeReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigDeveloperModeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigDeveloperModeOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigDeveloperModeDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigDeveloperModeOK creates a FindConfigDeveloperModeOK with default headers values -func NewFindConfigDeveloperModeOK() *FindConfigDeveloperModeOK { - return &FindConfigDeveloperModeOK{} -} - -/* -FindConfigDeveloperModeOK handles this case with default header values. - -Config value -*/ -type FindConfigDeveloperModeOK struct { - Payload bool -} - -func (o *FindConfigDeveloperModeOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigDeveloperModeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigDeveloperModeDefault creates a FindConfigDeveloperModeDefault with default headers values -func NewFindConfigDeveloperModeDefault(code int) *FindConfigDeveloperModeDefault { - return &FindConfigDeveloperModeDefault{ - _statusCode: code, - } -} - -/* -FindConfigDeveloperModeDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigDeveloperModeDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config developer mode default response -func (o *FindConfigDeveloperModeDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigDeveloperModeDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigDeveloperModeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigDeveloperModeDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_disk_failure_policy_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_disk_failure_policy_parameters.go deleted file mode 100644 index f93d17aca3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_disk_failure_policy_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigDiskFailurePolicyParams creates a new FindConfigDiskFailurePolicyParams object -// with the default values initialized. -func NewFindConfigDiskFailurePolicyParams() *FindConfigDiskFailurePolicyParams { - - return &FindConfigDiskFailurePolicyParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigDiskFailurePolicyParamsWithTimeout creates a new FindConfigDiskFailurePolicyParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigDiskFailurePolicyParamsWithTimeout(timeout time.Duration) *FindConfigDiskFailurePolicyParams { - - return &FindConfigDiskFailurePolicyParams{ - - timeout: timeout, - } -} - -// NewFindConfigDiskFailurePolicyParamsWithContext creates a new FindConfigDiskFailurePolicyParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigDiskFailurePolicyParamsWithContext(ctx context.Context) *FindConfigDiskFailurePolicyParams { - - return &FindConfigDiskFailurePolicyParams{ - - Context: ctx, - } -} - -// NewFindConfigDiskFailurePolicyParamsWithHTTPClient creates a new FindConfigDiskFailurePolicyParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigDiskFailurePolicyParamsWithHTTPClient(client *http.Client) *FindConfigDiskFailurePolicyParams { - - return &FindConfigDiskFailurePolicyParams{ - HTTPClient: client, - } -} - -/* -FindConfigDiskFailurePolicyParams contains all the parameters to send to the API endpoint -for the find config disk failure policy operation typically these are written to a http.Request -*/ -type FindConfigDiskFailurePolicyParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config disk failure policy params -func (o *FindConfigDiskFailurePolicyParams) WithTimeout(timeout time.Duration) *FindConfigDiskFailurePolicyParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config disk failure policy params -func (o *FindConfigDiskFailurePolicyParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config disk failure policy params -func (o *FindConfigDiskFailurePolicyParams) WithContext(ctx context.Context) *FindConfigDiskFailurePolicyParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config disk failure policy params -func (o *FindConfigDiskFailurePolicyParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config disk failure policy params -func (o *FindConfigDiskFailurePolicyParams) WithHTTPClient(client *http.Client) *FindConfigDiskFailurePolicyParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config disk failure policy params -func (o *FindConfigDiskFailurePolicyParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigDiskFailurePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_disk_failure_policy_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_disk_failure_policy_responses.go deleted file mode 100644 index e236b39f7b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_disk_failure_policy_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigDiskFailurePolicyReader is a Reader for the FindConfigDiskFailurePolicy structure. -type FindConfigDiskFailurePolicyReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigDiskFailurePolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigDiskFailurePolicyOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigDiskFailurePolicyDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigDiskFailurePolicyOK creates a FindConfigDiskFailurePolicyOK with default headers values -func NewFindConfigDiskFailurePolicyOK() *FindConfigDiskFailurePolicyOK { - return &FindConfigDiskFailurePolicyOK{} -} - -/* -FindConfigDiskFailurePolicyOK handles this case with default header values. - -Config value -*/ -type FindConfigDiskFailurePolicyOK struct { - Payload string -} - -func (o *FindConfigDiskFailurePolicyOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigDiskFailurePolicyOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigDiskFailurePolicyDefault creates a FindConfigDiskFailurePolicyDefault with default headers values -func NewFindConfigDiskFailurePolicyDefault(code int) *FindConfigDiskFailurePolicyDefault { - return &FindConfigDiskFailurePolicyDefault{ - _statusCode: code, - } -} - -/* -FindConfigDiskFailurePolicyDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigDiskFailurePolicyDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config disk failure policy default response -func (o *FindConfigDiskFailurePolicyDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigDiskFailurePolicyDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigDiskFailurePolicyDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigDiskFailurePolicyDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_dynamic_snitch_badness_threshold_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_dynamic_snitch_badness_threshold_parameters.go deleted file mode 100644 index 0808ac8beb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_dynamic_snitch_badness_threshold_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigDynamicSnitchBadnessThresholdParams creates a new FindConfigDynamicSnitchBadnessThresholdParams object -// with the default values initialized. -func NewFindConfigDynamicSnitchBadnessThresholdParams() *FindConfigDynamicSnitchBadnessThresholdParams { - - return &FindConfigDynamicSnitchBadnessThresholdParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigDynamicSnitchBadnessThresholdParamsWithTimeout creates a new FindConfigDynamicSnitchBadnessThresholdParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigDynamicSnitchBadnessThresholdParamsWithTimeout(timeout time.Duration) *FindConfigDynamicSnitchBadnessThresholdParams { - - return &FindConfigDynamicSnitchBadnessThresholdParams{ - - timeout: timeout, - } -} - -// NewFindConfigDynamicSnitchBadnessThresholdParamsWithContext creates a new FindConfigDynamicSnitchBadnessThresholdParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigDynamicSnitchBadnessThresholdParamsWithContext(ctx context.Context) *FindConfigDynamicSnitchBadnessThresholdParams { - - return &FindConfigDynamicSnitchBadnessThresholdParams{ - - Context: ctx, - } -} - -// NewFindConfigDynamicSnitchBadnessThresholdParamsWithHTTPClient creates a new FindConfigDynamicSnitchBadnessThresholdParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigDynamicSnitchBadnessThresholdParamsWithHTTPClient(client *http.Client) *FindConfigDynamicSnitchBadnessThresholdParams { - - return &FindConfigDynamicSnitchBadnessThresholdParams{ - HTTPClient: client, - } -} - -/* -FindConfigDynamicSnitchBadnessThresholdParams contains all the parameters to send to the API endpoint -for the find config dynamic snitch badness threshold operation typically these are written to a http.Request -*/ -type FindConfigDynamicSnitchBadnessThresholdParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config dynamic snitch badness threshold params -func (o *FindConfigDynamicSnitchBadnessThresholdParams) WithTimeout(timeout time.Duration) *FindConfigDynamicSnitchBadnessThresholdParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config dynamic snitch badness threshold params -func (o *FindConfigDynamicSnitchBadnessThresholdParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config dynamic snitch badness threshold params -func (o *FindConfigDynamicSnitchBadnessThresholdParams) WithContext(ctx context.Context) *FindConfigDynamicSnitchBadnessThresholdParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config dynamic snitch badness threshold params -func (o *FindConfigDynamicSnitchBadnessThresholdParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config dynamic snitch badness threshold params -func (o *FindConfigDynamicSnitchBadnessThresholdParams) WithHTTPClient(client *http.Client) *FindConfigDynamicSnitchBadnessThresholdParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config dynamic snitch badness threshold params -func (o *FindConfigDynamicSnitchBadnessThresholdParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigDynamicSnitchBadnessThresholdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_dynamic_snitch_badness_threshold_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_dynamic_snitch_badness_threshold_responses.go deleted file mode 100644 index fab9795fee..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_dynamic_snitch_badness_threshold_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigDynamicSnitchBadnessThresholdReader is a Reader for the FindConfigDynamicSnitchBadnessThreshold structure. -type FindConfigDynamicSnitchBadnessThresholdReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigDynamicSnitchBadnessThresholdReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigDynamicSnitchBadnessThresholdOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigDynamicSnitchBadnessThresholdDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigDynamicSnitchBadnessThresholdOK creates a FindConfigDynamicSnitchBadnessThresholdOK with default headers values -func NewFindConfigDynamicSnitchBadnessThresholdOK() *FindConfigDynamicSnitchBadnessThresholdOK { - return &FindConfigDynamicSnitchBadnessThresholdOK{} -} - -/* -FindConfigDynamicSnitchBadnessThresholdOK handles this case with default header values. - -Config value -*/ -type FindConfigDynamicSnitchBadnessThresholdOK struct { - Payload float64 -} - -func (o *FindConfigDynamicSnitchBadnessThresholdOK) GetPayload() float64 { - return o.Payload -} - -func (o *FindConfigDynamicSnitchBadnessThresholdOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigDynamicSnitchBadnessThresholdDefault creates a FindConfigDynamicSnitchBadnessThresholdDefault with default headers values -func NewFindConfigDynamicSnitchBadnessThresholdDefault(code int) *FindConfigDynamicSnitchBadnessThresholdDefault { - return &FindConfigDynamicSnitchBadnessThresholdDefault{ - _statusCode: code, - } -} - -/* -FindConfigDynamicSnitchBadnessThresholdDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigDynamicSnitchBadnessThresholdDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config dynamic snitch badness threshold default response -func (o *FindConfigDynamicSnitchBadnessThresholdDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigDynamicSnitchBadnessThresholdDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigDynamicSnitchBadnessThresholdDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigDynamicSnitchBadnessThresholdDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_dynamic_snitch_reset_interval_in_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_dynamic_snitch_reset_interval_in_ms_parameters.go deleted file mode 100644 index 1da0fbba74..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_dynamic_snitch_reset_interval_in_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigDynamicSnitchResetIntervalInMsParams creates a new FindConfigDynamicSnitchResetIntervalInMsParams object -// with the default values initialized. -func NewFindConfigDynamicSnitchResetIntervalInMsParams() *FindConfigDynamicSnitchResetIntervalInMsParams { - - return &FindConfigDynamicSnitchResetIntervalInMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigDynamicSnitchResetIntervalInMsParamsWithTimeout creates a new FindConfigDynamicSnitchResetIntervalInMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigDynamicSnitchResetIntervalInMsParamsWithTimeout(timeout time.Duration) *FindConfigDynamicSnitchResetIntervalInMsParams { - - return &FindConfigDynamicSnitchResetIntervalInMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigDynamicSnitchResetIntervalInMsParamsWithContext creates a new FindConfigDynamicSnitchResetIntervalInMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigDynamicSnitchResetIntervalInMsParamsWithContext(ctx context.Context) *FindConfigDynamicSnitchResetIntervalInMsParams { - - return &FindConfigDynamicSnitchResetIntervalInMsParams{ - - Context: ctx, - } -} - -// NewFindConfigDynamicSnitchResetIntervalInMsParamsWithHTTPClient creates a new FindConfigDynamicSnitchResetIntervalInMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigDynamicSnitchResetIntervalInMsParamsWithHTTPClient(client *http.Client) *FindConfigDynamicSnitchResetIntervalInMsParams { - - return &FindConfigDynamicSnitchResetIntervalInMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigDynamicSnitchResetIntervalInMsParams contains all the parameters to send to the API endpoint -for the find config dynamic snitch reset interval in ms operation typically these are written to a http.Request -*/ -type FindConfigDynamicSnitchResetIntervalInMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config dynamic snitch reset interval in ms params -func (o *FindConfigDynamicSnitchResetIntervalInMsParams) WithTimeout(timeout time.Duration) *FindConfigDynamicSnitchResetIntervalInMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config dynamic snitch reset interval in ms params -func (o *FindConfigDynamicSnitchResetIntervalInMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config dynamic snitch reset interval in ms params -func (o *FindConfigDynamicSnitchResetIntervalInMsParams) WithContext(ctx context.Context) *FindConfigDynamicSnitchResetIntervalInMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config dynamic snitch reset interval in ms params -func (o *FindConfigDynamicSnitchResetIntervalInMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config dynamic snitch reset interval in ms params -func (o *FindConfigDynamicSnitchResetIntervalInMsParams) WithHTTPClient(client *http.Client) *FindConfigDynamicSnitchResetIntervalInMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config dynamic snitch reset interval in ms params -func (o *FindConfigDynamicSnitchResetIntervalInMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigDynamicSnitchResetIntervalInMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_dynamic_snitch_reset_interval_in_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_dynamic_snitch_reset_interval_in_ms_responses.go deleted file mode 100644 index 760e2534d1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_dynamic_snitch_reset_interval_in_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigDynamicSnitchResetIntervalInMsReader is a Reader for the FindConfigDynamicSnitchResetIntervalInMs structure. -type FindConfigDynamicSnitchResetIntervalInMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigDynamicSnitchResetIntervalInMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigDynamicSnitchResetIntervalInMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigDynamicSnitchResetIntervalInMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigDynamicSnitchResetIntervalInMsOK creates a FindConfigDynamicSnitchResetIntervalInMsOK with default headers values -func NewFindConfigDynamicSnitchResetIntervalInMsOK() *FindConfigDynamicSnitchResetIntervalInMsOK { - return &FindConfigDynamicSnitchResetIntervalInMsOK{} -} - -/* -FindConfigDynamicSnitchResetIntervalInMsOK handles this case with default header values. - -Config value -*/ -type FindConfigDynamicSnitchResetIntervalInMsOK struct { - Payload int64 -} - -func (o *FindConfigDynamicSnitchResetIntervalInMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigDynamicSnitchResetIntervalInMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigDynamicSnitchResetIntervalInMsDefault creates a FindConfigDynamicSnitchResetIntervalInMsDefault with default headers values -func NewFindConfigDynamicSnitchResetIntervalInMsDefault(code int) *FindConfigDynamicSnitchResetIntervalInMsDefault { - return &FindConfigDynamicSnitchResetIntervalInMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigDynamicSnitchResetIntervalInMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigDynamicSnitchResetIntervalInMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config dynamic snitch reset interval in ms default response -func (o *FindConfigDynamicSnitchResetIntervalInMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigDynamicSnitchResetIntervalInMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigDynamicSnitchResetIntervalInMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigDynamicSnitchResetIntervalInMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_dynamic_snitch_update_interval_in_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_dynamic_snitch_update_interval_in_ms_parameters.go deleted file mode 100644 index 63fd6ace1d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_dynamic_snitch_update_interval_in_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigDynamicSnitchUpdateIntervalInMsParams creates a new FindConfigDynamicSnitchUpdateIntervalInMsParams object -// with the default values initialized. -func NewFindConfigDynamicSnitchUpdateIntervalInMsParams() *FindConfigDynamicSnitchUpdateIntervalInMsParams { - - return &FindConfigDynamicSnitchUpdateIntervalInMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigDynamicSnitchUpdateIntervalInMsParamsWithTimeout creates a new FindConfigDynamicSnitchUpdateIntervalInMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigDynamicSnitchUpdateIntervalInMsParamsWithTimeout(timeout time.Duration) *FindConfigDynamicSnitchUpdateIntervalInMsParams { - - return &FindConfigDynamicSnitchUpdateIntervalInMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigDynamicSnitchUpdateIntervalInMsParamsWithContext creates a new FindConfigDynamicSnitchUpdateIntervalInMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigDynamicSnitchUpdateIntervalInMsParamsWithContext(ctx context.Context) *FindConfigDynamicSnitchUpdateIntervalInMsParams { - - return &FindConfigDynamicSnitchUpdateIntervalInMsParams{ - - Context: ctx, - } -} - -// NewFindConfigDynamicSnitchUpdateIntervalInMsParamsWithHTTPClient creates a new FindConfigDynamicSnitchUpdateIntervalInMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigDynamicSnitchUpdateIntervalInMsParamsWithHTTPClient(client *http.Client) *FindConfigDynamicSnitchUpdateIntervalInMsParams { - - return &FindConfigDynamicSnitchUpdateIntervalInMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigDynamicSnitchUpdateIntervalInMsParams contains all the parameters to send to the API endpoint -for the find config dynamic snitch update interval in ms operation typically these are written to a http.Request -*/ -type FindConfigDynamicSnitchUpdateIntervalInMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config dynamic snitch update interval in ms params -func (o *FindConfigDynamicSnitchUpdateIntervalInMsParams) WithTimeout(timeout time.Duration) *FindConfigDynamicSnitchUpdateIntervalInMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config dynamic snitch update interval in ms params -func (o *FindConfigDynamicSnitchUpdateIntervalInMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config dynamic snitch update interval in ms params -func (o *FindConfigDynamicSnitchUpdateIntervalInMsParams) WithContext(ctx context.Context) *FindConfigDynamicSnitchUpdateIntervalInMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config dynamic snitch update interval in ms params -func (o *FindConfigDynamicSnitchUpdateIntervalInMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config dynamic snitch update interval in ms params -func (o *FindConfigDynamicSnitchUpdateIntervalInMsParams) WithHTTPClient(client *http.Client) *FindConfigDynamicSnitchUpdateIntervalInMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config dynamic snitch update interval in ms params -func (o *FindConfigDynamicSnitchUpdateIntervalInMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigDynamicSnitchUpdateIntervalInMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_dynamic_snitch_update_interval_in_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_dynamic_snitch_update_interval_in_ms_responses.go deleted file mode 100644 index 184d9b9363..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_dynamic_snitch_update_interval_in_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigDynamicSnitchUpdateIntervalInMsReader is a Reader for the FindConfigDynamicSnitchUpdateIntervalInMs structure. -type FindConfigDynamicSnitchUpdateIntervalInMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigDynamicSnitchUpdateIntervalInMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigDynamicSnitchUpdateIntervalInMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigDynamicSnitchUpdateIntervalInMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigDynamicSnitchUpdateIntervalInMsOK creates a FindConfigDynamicSnitchUpdateIntervalInMsOK with default headers values -func NewFindConfigDynamicSnitchUpdateIntervalInMsOK() *FindConfigDynamicSnitchUpdateIntervalInMsOK { - return &FindConfigDynamicSnitchUpdateIntervalInMsOK{} -} - -/* -FindConfigDynamicSnitchUpdateIntervalInMsOK handles this case with default header values. - -Config value -*/ -type FindConfigDynamicSnitchUpdateIntervalInMsOK struct { - Payload int64 -} - -func (o *FindConfigDynamicSnitchUpdateIntervalInMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigDynamicSnitchUpdateIntervalInMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigDynamicSnitchUpdateIntervalInMsDefault creates a FindConfigDynamicSnitchUpdateIntervalInMsDefault with default headers values -func NewFindConfigDynamicSnitchUpdateIntervalInMsDefault(code int) *FindConfigDynamicSnitchUpdateIntervalInMsDefault { - return &FindConfigDynamicSnitchUpdateIntervalInMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigDynamicSnitchUpdateIntervalInMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigDynamicSnitchUpdateIntervalInMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config dynamic snitch update interval in ms default response -func (o *FindConfigDynamicSnitchUpdateIntervalInMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigDynamicSnitchUpdateIntervalInMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigDynamicSnitchUpdateIntervalInMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigDynamicSnitchUpdateIntervalInMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_cache_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_cache_parameters.go deleted file mode 100644 index 848d9b8e26..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_cache_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigEnableCacheParams creates a new FindConfigEnableCacheParams object -// with the default values initialized. -func NewFindConfigEnableCacheParams() *FindConfigEnableCacheParams { - - return &FindConfigEnableCacheParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigEnableCacheParamsWithTimeout creates a new FindConfigEnableCacheParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigEnableCacheParamsWithTimeout(timeout time.Duration) *FindConfigEnableCacheParams { - - return &FindConfigEnableCacheParams{ - - timeout: timeout, - } -} - -// NewFindConfigEnableCacheParamsWithContext creates a new FindConfigEnableCacheParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigEnableCacheParamsWithContext(ctx context.Context) *FindConfigEnableCacheParams { - - return &FindConfigEnableCacheParams{ - - Context: ctx, - } -} - -// NewFindConfigEnableCacheParamsWithHTTPClient creates a new FindConfigEnableCacheParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigEnableCacheParamsWithHTTPClient(client *http.Client) *FindConfigEnableCacheParams { - - return &FindConfigEnableCacheParams{ - HTTPClient: client, - } -} - -/* -FindConfigEnableCacheParams contains all the parameters to send to the API endpoint -for the find config enable cache operation typically these are written to a http.Request -*/ -type FindConfigEnableCacheParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config enable cache params -func (o *FindConfigEnableCacheParams) WithTimeout(timeout time.Duration) *FindConfigEnableCacheParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config enable cache params -func (o *FindConfigEnableCacheParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config enable cache params -func (o *FindConfigEnableCacheParams) WithContext(ctx context.Context) *FindConfigEnableCacheParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config enable cache params -func (o *FindConfigEnableCacheParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config enable cache params -func (o *FindConfigEnableCacheParams) WithHTTPClient(client *http.Client) *FindConfigEnableCacheParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config enable cache params -func (o *FindConfigEnableCacheParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigEnableCacheParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_cache_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_cache_responses.go deleted file mode 100644 index 5e998b0939..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_cache_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigEnableCacheReader is a Reader for the FindConfigEnableCache structure. -type FindConfigEnableCacheReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigEnableCacheReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigEnableCacheOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigEnableCacheDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigEnableCacheOK creates a FindConfigEnableCacheOK with default headers values -func NewFindConfigEnableCacheOK() *FindConfigEnableCacheOK { - return &FindConfigEnableCacheOK{} -} - -/* -FindConfigEnableCacheOK handles this case with default header values. - -Config value -*/ -type FindConfigEnableCacheOK struct { - Payload bool -} - -func (o *FindConfigEnableCacheOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigEnableCacheOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigEnableCacheDefault creates a FindConfigEnableCacheDefault with default headers values -func NewFindConfigEnableCacheDefault(code int) *FindConfigEnableCacheDefault { - return &FindConfigEnableCacheDefault{ - _statusCode: code, - } -} - -/* -FindConfigEnableCacheDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigEnableCacheDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config enable cache default response -func (o *FindConfigEnableCacheDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigEnableCacheDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigEnableCacheDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigEnableCacheDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_commitlog_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_commitlog_parameters.go deleted file mode 100644 index 8a3d55e69b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_commitlog_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigEnableCommitlogParams creates a new FindConfigEnableCommitlogParams object -// with the default values initialized. -func NewFindConfigEnableCommitlogParams() *FindConfigEnableCommitlogParams { - - return &FindConfigEnableCommitlogParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigEnableCommitlogParamsWithTimeout creates a new FindConfigEnableCommitlogParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigEnableCommitlogParamsWithTimeout(timeout time.Duration) *FindConfigEnableCommitlogParams { - - return &FindConfigEnableCommitlogParams{ - - timeout: timeout, - } -} - -// NewFindConfigEnableCommitlogParamsWithContext creates a new FindConfigEnableCommitlogParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigEnableCommitlogParamsWithContext(ctx context.Context) *FindConfigEnableCommitlogParams { - - return &FindConfigEnableCommitlogParams{ - - Context: ctx, - } -} - -// NewFindConfigEnableCommitlogParamsWithHTTPClient creates a new FindConfigEnableCommitlogParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigEnableCommitlogParamsWithHTTPClient(client *http.Client) *FindConfigEnableCommitlogParams { - - return &FindConfigEnableCommitlogParams{ - HTTPClient: client, - } -} - -/* -FindConfigEnableCommitlogParams contains all the parameters to send to the API endpoint -for the find config enable commitlog operation typically these are written to a http.Request -*/ -type FindConfigEnableCommitlogParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config enable commitlog params -func (o *FindConfigEnableCommitlogParams) WithTimeout(timeout time.Duration) *FindConfigEnableCommitlogParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config enable commitlog params -func (o *FindConfigEnableCommitlogParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config enable commitlog params -func (o *FindConfigEnableCommitlogParams) WithContext(ctx context.Context) *FindConfigEnableCommitlogParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config enable commitlog params -func (o *FindConfigEnableCommitlogParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config enable commitlog params -func (o *FindConfigEnableCommitlogParams) WithHTTPClient(client *http.Client) *FindConfigEnableCommitlogParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config enable commitlog params -func (o *FindConfigEnableCommitlogParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigEnableCommitlogParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_commitlog_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_commitlog_responses.go deleted file mode 100644 index e99c48a5d4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_commitlog_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigEnableCommitlogReader is a Reader for the FindConfigEnableCommitlog structure. -type FindConfigEnableCommitlogReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigEnableCommitlogReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigEnableCommitlogOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigEnableCommitlogDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigEnableCommitlogOK creates a FindConfigEnableCommitlogOK with default headers values -func NewFindConfigEnableCommitlogOK() *FindConfigEnableCommitlogOK { - return &FindConfigEnableCommitlogOK{} -} - -/* -FindConfigEnableCommitlogOK handles this case with default header values. - -Config value -*/ -type FindConfigEnableCommitlogOK struct { - Payload bool -} - -func (o *FindConfigEnableCommitlogOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigEnableCommitlogOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigEnableCommitlogDefault creates a FindConfigEnableCommitlogDefault with default headers values -func NewFindConfigEnableCommitlogDefault(code int) *FindConfigEnableCommitlogDefault { - return &FindConfigEnableCommitlogDefault{ - _statusCode: code, - } -} - -/* -FindConfigEnableCommitlogDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigEnableCommitlogDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config enable commitlog default response -func (o *FindConfigEnableCommitlogDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigEnableCommitlogDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigEnableCommitlogDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigEnableCommitlogDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_dangerous_direct_import_of_cassandra_counters_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_dangerous_direct_import_of_cassandra_counters_parameters.go deleted file mode 100644 index a4be468969..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_dangerous_direct_import_of_cassandra_counters_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigEnableDangerousDirectImportOfCassandraCountersParams creates a new FindConfigEnableDangerousDirectImportOfCassandraCountersParams object -// with the default values initialized. -func NewFindConfigEnableDangerousDirectImportOfCassandraCountersParams() *FindConfigEnableDangerousDirectImportOfCassandraCountersParams { - - return &FindConfigEnableDangerousDirectImportOfCassandraCountersParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigEnableDangerousDirectImportOfCassandraCountersParamsWithTimeout creates a new FindConfigEnableDangerousDirectImportOfCassandraCountersParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigEnableDangerousDirectImportOfCassandraCountersParamsWithTimeout(timeout time.Duration) *FindConfigEnableDangerousDirectImportOfCassandraCountersParams { - - return &FindConfigEnableDangerousDirectImportOfCassandraCountersParams{ - - timeout: timeout, - } -} - -// NewFindConfigEnableDangerousDirectImportOfCassandraCountersParamsWithContext creates a new FindConfigEnableDangerousDirectImportOfCassandraCountersParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigEnableDangerousDirectImportOfCassandraCountersParamsWithContext(ctx context.Context) *FindConfigEnableDangerousDirectImportOfCassandraCountersParams { - - return &FindConfigEnableDangerousDirectImportOfCassandraCountersParams{ - - Context: ctx, - } -} - -// NewFindConfigEnableDangerousDirectImportOfCassandraCountersParamsWithHTTPClient creates a new FindConfigEnableDangerousDirectImportOfCassandraCountersParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigEnableDangerousDirectImportOfCassandraCountersParamsWithHTTPClient(client *http.Client) *FindConfigEnableDangerousDirectImportOfCassandraCountersParams { - - return &FindConfigEnableDangerousDirectImportOfCassandraCountersParams{ - HTTPClient: client, - } -} - -/* -FindConfigEnableDangerousDirectImportOfCassandraCountersParams contains all the parameters to send to the API endpoint -for the find config enable dangerous direct import of cassandra counters operation typically these are written to a http.Request -*/ -type FindConfigEnableDangerousDirectImportOfCassandraCountersParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config enable dangerous direct import of cassandra counters params -func (o *FindConfigEnableDangerousDirectImportOfCassandraCountersParams) WithTimeout(timeout time.Duration) *FindConfigEnableDangerousDirectImportOfCassandraCountersParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config enable dangerous direct import of cassandra counters params -func (o *FindConfigEnableDangerousDirectImportOfCassandraCountersParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config enable dangerous direct import of cassandra counters params -func (o *FindConfigEnableDangerousDirectImportOfCassandraCountersParams) WithContext(ctx context.Context) *FindConfigEnableDangerousDirectImportOfCassandraCountersParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config enable dangerous direct import of cassandra counters params -func (o *FindConfigEnableDangerousDirectImportOfCassandraCountersParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config enable dangerous direct import of cassandra counters params -func (o *FindConfigEnableDangerousDirectImportOfCassandraCountersParams) WithHTTPClient(client *http.Client) *FindConfigEnableDangerousDirectImportOfCassandraCountersParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config enable dangerous direct import of cassandra counters params -func (o *FindConfigEnableDangerousDirectImportOfCassandraCountersParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigEnableDangerousDirectImportOfCassandraCountersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_dangerous_direct_import_of_cassandra_counters_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_dangerous_direct_import_of_cassandra_counters_responses.go deleted file mode 100644 index c562580b7d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_dangerous_direct_import_of_cassandra_counters_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigEnableDangerousDirectImportOfCassandraCountersReader is a Reader for the FindConfigEnableDangerousDirectImportOfCassandraCounters structure. -type FindConfigEnableDangerousDirectImportOfCassandraCountersReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigEnableDangerousDirectImportOfCassandraCountersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigEnableDangerousDirectImportOfCassandraCountersOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigEnableDangerousDirectImportOfCassandraCountersDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigEnableDangerousDirectImportOfCassandraCountersOK creates a FindConfigEnableDangerousDirectImportOfCassandraCountersOK with default headers values -func NewFindConfigEnableDangerousDirectImportOfCassandraCountersOK() *FindConfigEnableDangerousDirectImportOfCassandraCountersOK { - return &FindConfigEnableDangerousDirectImportOfCassandraCountersOK{} -} - -/* -FindConfigEnableDangerousDirectImportOfCassandraCountersOK handles this case with default header values. - -Config value -*/ -type FindConfigEnableDangerousDirectImportOfCassandraCountersOK struct { - Payload bool -} - -func (o *FindConfigEnableDangerousDirectImportOfCassandraCountersOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigEnableDangerousDirectImportOfCassandraCountersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigEnableDangerousDirectImportOfCassandraCountersDefault creates a FindConfigEnableDangerousDirectImportOfCassandraCountersDefault with default headers values -func NewFindConfigEnableDangerousDirectImportOfCassandraCountersDefault(code int) *FindConfigEnableDangerousDirectImportOfCassandraCountersDefault { - return &FindConfigEnableDangerousDirectImportOfCassandraCountersDefault{ - _statusCode: code, - } -} - -/* -FindConfigEnableDangerousDirectImportOfCassandraCountersDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigEnableDangerousDirectImportOfCassandraCountersDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config enable dangerous direct import of cassandra counters default response -func (o *FindConfigEnableDangerousDirectImportOfCassandraCountersDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigEnableDangerousDirectImportOfCassandraCountersDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigEnableDangerousDirectImportOfCassandraCountersDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigEnableDangerousDirectImportOfCassandraCountersDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_deprecated_partitioners_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_deprecated_partitioners_parameters.go deleted file mode 100644 index 137ab80c82..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_deprecated_partitioners_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigEnableDeprecatedPartitionersParams creates a new FindConfigEnableDeprecatedPartitionersParams object -// with the default values initialized. -func NewFindConfigEnableDeprecatedPartitionersParams() *FindConfigEnableDeprecatedPartitionersParams { - - return &FindConfigEnableDeprecatedPartitionersParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigEnableDeprecatedPartitionersParamsWithTimeout creates a new FindConfigEnableDeprecatedPartitionersParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigEnableDeprecatedPartitionersParamsWithTimeout(timeout time.Duration) *FindConfigEnableDeprecatedPartitionersParams { - - return &FindConfigEnableDeprecatedPartitionersParams{ - - timeout: timeout, - } -} - -// NewFindConfigEnableDeprecatedPartitionersParamsWithContext creates a new FindConfigEnableDeprecatedPartitionersParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigEnableDeprecatedPartitionersParamsWithContext(ctx context.Context) *FindConfigEnableDeprecatedPartitionersParams { - - return &FindConfigEnableDeprecatedPartitionersParams{ - - Context: ctx, - } -} - -// NewFindConfigEnableDeprecatedPartitionersParamsWithHTTPClient creates a new FindConfigEnableDeprecatedPartitionersParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigEnableDeprecatedPartitionersParamsWithHTTPClient(client *http.Client) *FindConfigEnableDeprecatedPartitionersParams { - - return &FindConfigEnableDeprecatedPartitionersParams{ - HTTPClient: client, - } -} - -/* -FindConfigEnableDeprecatedPartitionersParams contains all the parameters to send to the API endpoint -for the find config enable deprecated partitioners operation typically these are written to a http.Request -*/ -type FindConfigEnableDeprecatedPartitionersParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config enable deprecated partitioners params -func (o *FindConfigEnableDeprecatedPartitionersParams) WithTimeout(timeout time.Duration) *FindConfigEnableDeprecatedPartitionersParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config enable deprecated partitioners params -func (o *FindConfigEnableDeprecatedPartitionersParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config enable deprecated partitioners params -func (o *FindConfigEnableDeprecatedPartitionersParams) WithContext(ctx context.Context) *FindConfigEnableDeprecatedPartitionersParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config enable deprecated partitioners params -func (o *FindConfigEnableDeprecatedPartitionersParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config enable deprecated partitioners params -func (o *FindConfigEnableDeprecatedPartitionersParams) WithHTTPClient(client *http.Client) *FindConfigEnableDeprecatedPartitionersParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config enable deprecated partitioners params -func (o *FindConfigEnableDeprecatedPartitionersParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigEnableDeprecatedPartitionersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_deprecated_partitioners_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_deprecated_partitioners_responses.go deleted file mode 100644 index e17eba4308..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_deprecated_partitioners_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigEnableDeprecatedPartitionersReader is a Reader for the FindConfigEnableDeprecatedPartitioners structure. -type FindConfigEnableDeprecatedPartitionersReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigEnableDeprecatedPartitionersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigEnableDeprecatedPartitionersOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigEnableDeprecatedPartitionersDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigEnableDeprecatedPartitionersOK creates a FindConfigEnableDeprecatedPartitionersOK with default headers values -func NewFindConfigEnableDeprecatedPartitionersOK() *FindConfigEnableDeprecatedPartitionersOK { - return &FindConfigEnableDeprecatedPartitionersOK{} -} - -/* -FindConfigEnableDeprecatedPartitionersOK handles this case with default header values. - -Config value -*/ -type FindConfigEnableDeprecatedPartitionersOK struct { - Payload bool -} - -func (o *FindConfigEnableDeprecatedPartitionersOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigEnableDeprecatedPartitionersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigEnableDeprecatedPartitionersDefault creates a FindConfigEnableDeprecatedPartitionersDefault with default headers values -func NewFindConfigEnableDeprecatedPartitionersDefault(code int) *FindConfigEnableDeprecatedPartitionersDefault { - return &FindConfigEnableDeprecatedPartitionersDefault{ - _statusCode: code, - } -} - -/* -FindConfigEnableDeprecatedPartitionersDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigEnableDeprecatedPartitionersDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config enable deprecated partitioners default response -func (o *FindConfigEnableDeprecatedPartitionersDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigEnableDeprecatedPartitionersDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigEnableDeprecatedPartitionersDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigEnableDeprecatedPartitionersDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_in_memory_data_store_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_in_memory_data_store_parameters.go deleted file mode 100644 index 07a740d2ff..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_in_memory_data_store_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigEnableInMemoryDataStoreParams creates a new FindConfigEnableInMemoryDataStoreParams object -// with the default values initialized. -func NewFindConfigEnableInMemoryDataStoreParams() *FindConfigEnableInMemoryDataStoreParams { - - return &FindConfigEnableInMemoryDataStoreParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigEnableInMemoryDataStoreParamsWithTimeout creates a new FindConfigEnableInMemoryDataStoreParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigEnableInMemoryDataStoreParamsWithTimeout(timeout time.Duration) *FindConfigEnableInMemoryDataStoreParams { - - return &FindConfigEnableInMemoryDataStoreParams{ - - timeout: timeout, - } -} - -// NewFindConfigEnableInMemoryDataStoreParamsWithContext creates a new FindConfigEnableInMemoryDataStoreParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigEnableInMemoryDataStoreParamsWithContext(ctx context.Context) *FindConfigEnableInMemoryDataStoreParams { - - return &FindConfigEnableInMemoryDataStoreParams{ - - Context: ctx, - } -} - -// NewFindConfigEnableInMemoryDataStoreParamsWithHTTPClient creates a new FindConfigEnableInMemoryDataStoreParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigEnableInMemoryDataStoreParamsWithHTTPClient(client *http.Client) *FindConfigEnableInMemoryDataStoreParams { - - return &FindConfigEnableInMemoryDataStoreParams{ - HTTPClient: client, - } -} - -/* -FindConfigEnableInMemoryDataStoreParams contains all the parameters to send to the API endpoint -for the find config enable in memory data store operation typically these are written to a http.Request -*/ -type FindConfigEnableInMemoryDataStoreParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config enable in memory data store params -func (o *FindConfigEnableInMemoryDataStoreParams) WithTimeout(timeout time.Duration) *FindConfigEnableInMemoryDataStoreParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config enable in memory data store params -func (o *FindConfigEnableInMemoryDataStoreParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config enable in memory data store params -func (o *FindConfigEnableInMemoryDataStoreParams) WithContext(ctx context.Context) *FindConfigEnableInMemoryDataStoreParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config enable in memory data store params -func (o *FindConfigEnableInMemoryDataStoreParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config enable in memory data store params -func (o *FindConfigEnableInMemoryDataStoreParams) WithHTTPClient(client *http.Client) *FindConfigEnableInMemoryDataStoreParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config enable in memory data store params -func (o *FindConfigEnableInMemoryDataStoreParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigEnableInMemoryDataStoreParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_in_memory_data_store_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_in_memory_data_store_responses.go deleted file mode 100644 index aa9e2a58ca..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_in_memory_data_store_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigEnableInMemoryDataStoreReader is a Reader for the FindConfigEnableInMemoryDataStore structure. -type FindConfigEnableInMemoryDataStoreReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigEnableInMemoryDataStoreReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigEnableInMemoryDataStoreOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigEnableInMemoryDataStoreDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigEnableInMemoryDataStoreOK creates a FindConfigEnableInMemoryDataStoreOK with default headers values -func NewFindConfigEnableInMemoryDataStoreOK() *FindConfigEnableInMemoryDataStoreOK { - return &FindConfigEnableInMemoryDataStoreOK{} -} - -/* -FindConfigEnableInMemoryDataStoreOK handles this case with default header values. - -Config value -*/ -type FindConfigEnableInMemoryDataStoreOK struct { - Payload bool -} - -func (o *FindConfigEnableInMemoryDataStoreOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigEnableInMemoryDataStoreOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigEnableInMemoryDataStoreDefault creates a FindConfigEnableInMemoryDataStoreDefault with default headers values -func NewFindConfigEnableInMemoryDataStoreDefault(code int) *FindConfigEnableInMemoryDataStoreDefault { - return &FindConfigEnableInMemoryDataStoreDefault{ - _statusCode: code, - } -} - -/* -FindConfigEnableInMemoryDataStoreDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigEnableInMemoryDataStoreDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config enable in memory data store default response -func (o *FindConfigEnableInMemoryDataStoreDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigEnableInMemoryDataStoreDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigEnableInMemoryDataStoreDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigEnableInMemoryDataStoreDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_keyspace_column_family_metrics_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_keyspace_column_family_metrics_parameters.go deleted file mode 100644 index 6cc99b6ebe..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_keyspace_column_family_metrics_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigEnableKeyspaceColumnFamilyMetricsParams creates a new FindConfigEnableKeyspaceColumnFamilyMetricsParams object -// with the default values initialized. -func NewFindConfigEnableKeyspaceColumnFamilyMetricsParams() *FindConfigEnableKeyspaceColumnFamilyMetricsParams { - - return &FindConfigEnableKeyspaceColumnFamilyMetricsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigEnableKeyspaceColumnFamilyMetricsParamsWithTimeout creates a new FindConfigEnableKeyspaceColumnFamilyMetricsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigEnableKeyspaceColumnFamilyMetricsParamsWithTimeout(timeout time.Duration) *FindConfigEnableKeyspaceColumnFamilyMetricsParams { - - return &FindConfigEnableKeyspaceColumnFamilyMetricsParams{ - - timeout: timeout, - } -} - -// NewFindConfigEnableKeyspaceColumnFamilyMetricsParamsWithContext creates a new FindConfigEnableKeyspaceColumnFamilyMetricsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigEnableKeyspaceColumnFamilyMetricsParamsWithContext(ctx context.Context) *FindConfigEnableKeyspaceColumnFamilyMetricsParams { - - return &FindConfigEnableKeyspaceColumnFamilyMetricsParams{ - - Context: ctx, - } -} - -// NewFindConfigEnableKeyspaceColumnFamilyMetricsParamsWithHTTPClient creates a new FindConfigEnableKeyspaceColumnFamilyMetricsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigEnableKeyspaceColumnFamilyMetricsParamsWithHTTPClient(client *http.Client) *FindConfigEnableKeyspaceColumnFamilyMetricsParams { - - return &FindConfigEnableKeyspaceColumnFamilyMetricsParams{ - HTTPClient: client, - } -} - -/* -FindConfigEnableKeyspaceColumnFamilyMetricsParams contains all the parameters to send to the API endpoint -for the find config enable keyspace column family metrics operation typically these are written to a http.Request -*/ -type FindConfigEnableKeyspaceColumnFamilyMetricsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config enable keyspace column family metrics params -func (o *FindConfigEnableKeyspaceColumnFamilyMetricsParams) WithTimeout(timeout time.Duration) *FindConfigEnableKeyspaceColumnFamilyMetricsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config enable keyspace column family metrics params -func (o *FindConfigEnableKeyspaceColumnFamilyMetricsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config enable keyspace column family metrics params -func (o *FindConfigEnableKeyspaceColumnFamilyMetricsParams) WithContext(ctx context.Context) *FindConfigEnableKeyspaceColumnFamilyMetricsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config enable keyspace column family metrics params -func (o *FindConfigEnableKeyspaceColumnFamilyMetricsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config enable keyspace column family metrics params -func (o *FindConfigEnableKeyspaceColumnFamilyMetricsParams) WithHTTPClient(client *http.Client) *FindConfigEnableKeyspaceColumnFamilyMetricsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config enable keyspace column family metrics params -func (o *FindConfigEnableKeyspaceColumnFamilyMetricsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigEnableKeyspaceColumnFamilyMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_keyspace_column_family_metrics_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_keyspace_column_family_metrics_responses.go deleted file mode 100644 index 863e9c6a5f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_keyspace_column_family_metrics_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigEnableKeyspaceColumnFamilyMetricsReader is a Reader for the FindConfigEnableKeyspaceColumnFamilyMetrics structure. -type FindConfigEnableKeyspaceColumnFamilyMetricsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigEnableKeyspaceColumnFamilyMetricsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigEnableKeyspaceColumnFamilyMetricsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigEnableKeyspaceColumnFamilyMetricsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigEnableKeyspaceColumnFamilyMetricsOK creates a FindConfigEnableKeyspaceColumnFamilyMetricsOK with default headers values -func NewFindConfigEnableKeyspaceColumnFamilyMetricsOK() *FindConfigEnableKeyspaceColumnFamilyMetricsOK { - return &FindConfigEnableKeyspaceColumnFamilyMetricsOK{} -} - -/* -FindConfigEnableKeyspaceColumnFamilyMetricsOK handles this case with default header values. - -Config value -*/ -type FindConfigEnableKeyspaceColumnFamilyMetricsOK struct { - Payload bool -} - -func (o *FindConfigEnableKeyspaceColumnFamilyMetricsOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigEnableKeyspaceColumnFamilyMetricsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigEnableKeyspaceColumnFamilyMetricsDefault creates a FindConfigEnableKeyspaceColumnFamilyMetricsDefault with default headers values -func NewFindConfigEnableKeyspaceColumnFamilyMetricsDefault(code int) *FindConfigEnableKeyspaceColumnFamilyMetricsDefault { - return &FindConfigEnableKeyspaceColumnFamilyMetricsDefault{ - _statusCode: code, - } -} - -/* -FindConfigEnableKeyspaceColumnFamilyMetricsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigEnableKeyspaceColumnFamilyMetricsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config enable keyspace column family metrics default response -func (o *FindConfigEnableKeyspaceColumnFamilyMetricsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigEnableKeyspaceColumnFamilyMetricsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigEnableKeyspaceColumnFamilyMetricsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigEnableKeyspaceColumnFamilyMetricsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_shard_aware_drivers_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_shard_aware_drivers_parameters.go deleted file mode 100644 index e532a086d6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_shard_aware_drivers_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigEnableShardAwareDriversParams creates a new FindConfigEnableShardAwareDriversParams object -// with the default values initialized. -func NewFindConfigEnableShardAwareDriversParams() *FindConfigEnableShardAwareDriversParams { - - return &FindConfigEnableShardAwareDriversParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigEnableShardAwareDriversParamsWithTimeout creates a new FindConfigEnableShardAwareDriversParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigEnableShardAwareDriversParamsWithTimeout(timeout time.Duration) *FindConfigEnableShardAwareDriversParams { - - return &FindConfigEnableShardAwareDriversParams{ - - timeout: timeout, - } -} - -// NewFindConfigEnableShardAwareDriversParamsWithContext creates a new FindConfigEnableShardAwareDriversParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigEnableShardAwareDriversParamsWithContext(ctx context.Context) *FindConfigEnableShardAwareDriversParams { - - return &FindConfigEnableShardAwareDriversParams{ - - Context: ctx, - } -} - -// NewFindConfigEnableShardAwareDriversParamsWithHTTPClient creates a new FindConfigEnableShardAwareDriversParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigEnableShardAwareDriversParamsWithHTTPClient(client *http.Client) *FindConfigEnableShardAwareDriversParams { - - return &FindConfigEnableShardAwareDriversParams{ - HTTPClient: client, - } -} - -/* -FindConfigEnableShardAwareDriversParams contains all the parameters to send to the API endpoint -for the find config enable shard aware drivers operation typically these are written to a http.Request -*/ -type FindConfigEnableShardAwareDriversParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config enable shard aware drivers params -func (o *FindConfigEnableShardAwareDriversParams) WithTimeout(timeout time.Duration) *FindConfigEnableShardAwareDriversParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config enable shard aware drivers params -func (o *FindConfigEnableShardAwareDriversParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config enable shard aware drivers params -func (o *FindConfigEnableShardAwareDriversParams) WithContext(ctx context.Context) *FindConfigEnableShardAwareDriversParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config enable shard aware drivers params -func (o *FindConfigEnableShardAwareDriversParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config enable shard aware drivers params -func (o *FindConfigEnableShardAwareDriversParams) WithHTTPClient(client *http.Client) *FindConfigEnableShardAwareDriversParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config enable shard aware drivers params -func (o *FindConfigEnableShardAwareDriversParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigEnableShardAwareDriversParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_shard_aware_drivers_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_shard_aware_drivers_responses.go deleted file mode 100644 index 505e6c1f98..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_shard_aware_drivers_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigEnableShardAwareDriversReader is a Reader for the FindConfigEnableShardAwareDrivers structure. -type FindConfigEnableShardAwareDriversReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigEnableShardAwareDriversReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigEnableShardAwareDriversOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigEnableShardAwareDriversDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigEnableShardAwareDriversOK creates a FindConfigEnableShardAwareDriversOK with default headers values -func NewFindConfigEnableShardAwareDriversOK() *FindConfigEnableShardAwareDriversOK { - return &FindConfigEnableShardAwareDriversOK{} -} - -/* -FindConfigEnableShardAwareDriversOK handles this case with default header values. - -Config value -*/ -type FindConfigEnableShardAwareDriversOK struct { - Payload bool -} - -func (o *FindConfigEnableShardAwareDriversOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigEnableShardAwareDriversOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigEnableShardAwareDriversDefault creates a FindConfigEnableShardAwareDriversDefault with default headers values -func NewFindConfigEnableShardAwareDriversDefault(code int) *FindConfigEnableShardAwareDriversDefault { - return &FindConfigEnableShardAwareDriversDefault{ - _statusCode: code, - } -} - -/* -FindConfigEnableShardAwareDriversDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigEnableShardAwareDriversDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config enable shard aware drivers default response -func (o *FindConfigEnableShardAwareDriversDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigEnableShardAwareDriversDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigEnableShardAwareDriversDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigEnableShardAwareDriversDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_sstable_data_integrity_check_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_sstable_data_integrity_check_parameters.go deleted file mode 100644 index de1d40638f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_sstable_data_integrity_check_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigEnableSstableDataIntegrityCheckParams creates a new FindConfigEnableSstableDataIntegrityCheckParams object -// with the default values initialized. -func NewFindConfigEnableSstableDataIntegrityCheckParams() *FindConfigEnableSstableDataIntegrityCheckParams { - - return &FindConfigEnableSstableDataIntegrityCheckParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigEnableSstableDataIntegrityCheckParamsWithTimeout creates a new FindConfigEnableSstableDataIntegrityCheckParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigEnableSstableDataIntegrityCheckParamsWithTimeout(timeout time.Duration) *FindConfigEnableSstableDataIntegrityCheckParams { - - return &FindConfigEnableSstableDataIntegrityCheckParams{ - - timeout: timeout, - } -} - -// NewFindConfigEnableSstableDataIntegrityCheckParamsWithContext creates a new FindConfigEnableSstableDataIntegrityCheckParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigEnableSstableDataIntegrityCheckParamsWithContext(ctx context.Context) *FindConfigEnableSstableDataIntegrityCheckParams { - - return &FindConfigEnableSstableDataIntegrityCheckParams{ - - Context: ctx, - } -} - -// NewFindConfigEnableSstableDataIntegrityCheckParamsWithHTTPClient creates a new FindConfigEnableSstableDataIntegrityCheckParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigEnableSstableDataIntegrityCheckParamsWithHTTPClient(client *http.Client) *FindConfigEnableSstableDataIntegrityCheckParams { - - return &FindConfigEnableSstableDataIntegrityCheckParams{ - HTTPClient: client, - } -} - -/* -FindConfigEnableSstableDataIntegrityCheckParams contains all the parameters to send to the API endpoint -for the find config enable sstable data integrity check operation typically these are written to a http.Request -*/ -type FindConfigEnableSstableDataIntegrityCheckParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config enable sstable data integrity check params -func (o *FindConfigEnableSstableDataIntegrityCheckParams) WithTimeout(timeout time.Duration) *FindConfigEnableSstableDataIntegrityCheckParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config enable sstable data integrity check params -func (o *FindConfigEnableSstableDataIntegrityCheckParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config enable sstable data integrity check params -func (o *FindConfigEnableSstableDataIntegrityCheckParams) WithContext(ctx context.Context) *FindConfigEnableSstableDataIntegrityCheckParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config enable sstable data integrity check params -func (o *FindConfigEnableSstableDataIntegrityCheckParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config enable sstable data integrity check params -func (o *FindConfigEnableSstableDataIntegrityCheckParams) WithHTTPClient(client *http.Client) *FindConfigEnableSstableDataIntegrityCheckParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config enable sstable data integrity check params -func (o *FindConfigEnableSstableDataIntegrityCheckParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigEnableSstableDataIntegrityCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_sstable_data_integrity_check_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_sstable_data_integrity_check_responses.go deleted file mode 100644 index 62d03edc7c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_sstable_data_integrity_check_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigEnableSstableDataIntegrityCheckReader is a Reader for the FindConfigEnableSstableDataIntegrityCheck structure. -type FindConfigEnableSstableDataIntegrityCheckReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigEnableSstableDataIntegrityCheckReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigEnableSstableDataIntegrityCheckOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigEnableSstableDataIntegrityCheckDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigEnableSstableDataIntegrityCheckOK creates a FindConfigEnableSstableDataIntegrityCheckOK with default headers values -func NewFindConfigEnableSstableDataIntegrityCheckOK() *FindConfigEnableSstableDataIntegrityCheckOK { - return &FindConfigEnableSstableDataIntegrityCheckOK{} -} - -/* -FindConfigEnableSstableDataIntegrityCheckOK handles this case with default header values. - -Config value -*/ -type FindConfigEnableSstableDataIntegrityCheckOK struct { - Payload bool -} - -func (o *FindConfigEnableSstableDataIntegrityCheckOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigEnableSstableDataIntegrityCheckOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigEnableSstableDataIntegrityCheckDefault creates a FindConfigEnableSstableDataIntegrityCheckDefault with default headers values -func NewFindConfigEnableSstableDataIntegrityCheckDefault(code int) *FindConfigEnableSstableDataIntegrityCheckDefault { - return &FindConfigEnableSstableDataIntegrityCheckDefault{ - _statusCode: code, - } -} - -/* -FindConfigEnableSstableDataIntegrityCheckDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigEnableSstableDataIntegrityCheckDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config enable sstable data integrity check default response -func (o *FindConfigEnableSstableDataIntegrityCheckDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigEnableSstableDataIntegrityCheckDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigEnableSstableDataIntegrityCheckDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigEnableSstableDataIntegrityCheckDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_sstables_mc_format_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_sstables_mc_format_parameters.go deleted file mode 100644 index 0efb9484d6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_sstables_mc_format_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigEnableSstablesMcFormatParams creates a new FindConfigEnableSstablesMcFormatParams object -// with the default values initialized. -func NewFindConfigEnableSstablesMcFormatParams() *FindConfigEnableSstablesMcFormatParams { - - return &FindConfigEnableSstablesMcFormatParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigEnableSstablesMcFormatParamsWithTimeout creates a new FindConfigEnableSstablesMcFormatParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigEnableSstablesMcFormatParamsWithTimeout(timeout time.Duration) *FindConfigEnableSstablesMcFormatParams { - - return &FindConfigEnableSstablesMcFormatParams{ - - timeout: timeout, - } -} - -// NewFindConfigEnableSstablesMcFormatParamsWithContext creates a new FindConfigEnableSstablesMcFormatParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigEnableSstablesMcFormatParamsWithContext(ctx context.Context) *FindConfigEnableSstablesMcFormatParams { - - return &FindConfigEnableSstablesMcFormatParams{ - - Context: ctx, - } -} - -// NewFindConfigEnableSstablesMcFormatParamsWithHTTPClient creates a new FindConfigEnableSstablesMcFormatParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigEnableSstablesMcFormatParamsWithHTTPClient(client *http.Client) *FindConfigEnableSstablesMcFormatParams { - - return &FindConfigEnableSstablesMcFormatParams{ - HTTPClient: client, - } -} - -/* -FindConfigEnableSstablesMcFormatParams contains all the parameters to send to the API endpoint -for the find config enable sstables mc format operation typically these are written to a http.Request -*/ -type FindConfigEnableSstablesMcFormatParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config enable sstables mc format params -func (o *FindConfigEnableSstablesMcFormatParams) WithTimeout(timeout time.Duration) *FindConfigEnableSstablesMcFormatParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config enable sstables mc format params -func (o *FindConfigEnableSstablesMcFormatParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config enable sstables mc format params -func (o *FindConfigEnableSstablesMcFormatParams) WithContext(ctx context.Context) *FindConfigEnableSstablesMcFormatParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config enable sstables mc format params -func (o *FindConfigEnableSstablesMcFormatParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config enable sstables mc format params -func (o *FindConfigEnableSstablesMcFormatParams) WithHTTPClient(client *http.Client) *FindConfigEnableSstablesMcFormatParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config enable sstables mc format params -func (o *FindConfigEnableSstablesMcFormatParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigEnableSstablesMcFormatParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_sstables_mc_format_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_sstables_mc_format_responses.go deleted file mode 100644 index 60115e3ca6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_sstables_mc_format_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigEnableSstablesMcFormatReader is a Reader for the FindConfigEnableSstablesMcFormat structure. -type FindConfigEnableSstablesMcFormatReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigEnableSstablesMcFormatReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigEnableSstablesMcFormatOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigEnableSstablesMcFormatDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigEnableSstablesMcFormatOK creates a FindConfigEnableSstablesMcFormatOK with default headers values -func NewFindConfigEnableSstablesMcFormatOK() *FindConfigEnableSstablesMcFormatOK { - return &FindConfigEnableSstablesMcFormatOK{} -} - -/* -FindConfigEnableSstablesMcFormatOK handles this case with default header values. - -Config value -*/ -type FindConfigEnableSstablesMcFormatOK struct { - Payload bool -} - -func (o *FindConfigEnableSstablesMcFormatOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigEnableSstablesMcFormatOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigEnableSstablesMcFormatDefault creates a FindConfigEnableSstablesMcFormatDefault with default headers values -func NewFindConfigEnableSstablesMcFormatDefault(code int) *FindConfigEnableSstablesMcFormatDefault { - return &FindConfigEnableSstablesMcFormatDefault{ - _statusCode: code, - } -} - -/* -FindConfigEnableSstablesMcFormatDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigEnableSstablesMcFormatDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config enable sstables mc format default response -func (o *FindConfigEnableSstablesMcFormatDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigEnableSstablesMcFormatDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigEnableSstablesMcFormatDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigEnableSstablesMcFormatDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_tablets_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_tablets_parameters.go deleted file mode 100644 index fdca5c08f3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_tablets_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigEnableTabletsParams creates a new FindConfigEnableTabletsParams object -// with the default values initialized. -func NewFindConfigEnableTabletsParams() *FindConfigEnableTabletsParams { - - return &FindConfigEnableTabletsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigEnableTabletsParamsWithTimeout creates a new FindConfigEnableTabletsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigEnableTabletsParamsWithTimeout(timeout time.Duration) *FindConfigEnableTabletsParams { - - return &FindConfigEnableTabletsParams{ - - timeout: timeout, - } -} - -// NewFindConfigEnableTabletsParamsWithContext creates a new FindConfigEnableTabletsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigEnableTabletsParamsWithContext(ctx context.Context) *FindConfigEnableTabletsParams { - - return &FindConfigEnableTabletsParams{ - - Context: ctx, - } -} - -// NewFindConfigEnableTabletsParamsWithHTTPClient creates a new FindConfigEnableTabletsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigEnableTabletsParamsWithHTTPClient(client *http.Client) *FindConfigEnableTabletsParams { - - return &FindConfigEnableTabletsParams{ - HTTPClient: client, - } -} - -/* -FindConfigEnableTabletsParams contains all the parameters to send to the API endpoint -for the find config enable tablets operation typically these are written to a http.Request -*/ -type FindConfigEnableTabletsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config enable tablets params -func (o *FindConfigEnableTabletsParams) WithTimeout(timeout time.Duration) *FindConfigEnableTabletsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config enable tablets params -func (o *FindConfigEnableTabletsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config enable tablets params -func (o *FindConfigEnableTabletsParams) WithContext(ctx context.Context) *FindConfigEnableTabletsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config enable tablets params -func (o *FindConfigEnableTabletsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config enable tablets params -func (o *FindConfigEnableTabletsParams) WithHTTPClient(client *http.Client) *FindConfigEnableTabletsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config enable tablets params -func (o *FindConfigEnableTabletsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigEnableTabletsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_tablets_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_tablets_responses.go deleted file mode 100644 index 946b5dfa2d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_enable_tablets_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigEnableTabletsReader is a Reader for the FindConfigEnableTablets structure. -type FindConfigEnableTabletsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigEnableTabletsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigEnableTabletsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigEnableTabletsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigEnableTabletsOK creates a FindConfigEnableTabletsOK with default headers values -func NewFindConfigEnableTabletsOK() *FindConfigEnableTabletsOK { - return &FindConfigEnableTabletsOK{} -} - -/* -FindConfigEnableTabletsOK handles this case with default header values. - -Config value -*/ -type FindConfigEnableTabletsOK struct { - Payload bool -} - -func (o *FindConfigEnableTabletsOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigEnableTabletsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigEnableTabletsDefault creates a FindConfigEnableTabletsDefault with default headers values -func NewFindConfigEnableTabletsDefault(code int) *FindConfigEnableTabletsDefault { - return &FindConfigEnableTabletsDefault{ - _statusCode: code, - } -} - -/* -FindConfigEnableTabletsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigEnableTabletsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config enable tablets default response -func (o *FindConfigEnableTabletsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigEnableTabletsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigEnableTabletsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigEnableTabletsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_endpoint_snitch_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_endpoint_snitch_parameters.go deleted file mode 100644 index 46f5a1ec32..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_endpoint_snitch_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigEndpointSnitchParams creates a new FindConfigEndpointSnitchParams object -// with the default values initialized. -func NewFindConfigEndpointSnitchParams() *FindConfigEndpointSnitchParams { - - return &FindConfigEndpointSnitchParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigEndpointSnitchParamsWithTimeout creates a new FindConfigEndpointSnitchParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigEndpointSnitchParamsWithTimeout(timeout time.Duration) *FindConfigEndpointSnitchParams { - - return &FindConfigEndpointSnitchParams{ - - timeout: timeout, - } -} - -// NewFindConfigEndpointSnitchParamsWithContext creates a new FindConfigEndpointSnitchParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigEndpointSnitchParamsWithContext(ctx context.Context) *FindConfigEndpointSnitchParams { - - return &FindConfigEndpointSnitchParams{ - - Context: ctx, - } -} - -// NewFindConfigEndpointSnitchParamsWithHTTPClient creates a new FindConfigEndpointSnitchParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigEndpointSnitchParamsWithHTTPClient(client *http.Client) *FindConfigEndpointSnitchParams { - - return &FindConfigEndpointSnitchParams{ - HTTPClient: client, - } -} - -/* -FindConfigEndpointSnitchParams contains all the parameters to send to the API endpoint -for the find config endpoint snitch operation typically these are written to a http.Request -*/ -type FindConfigEndpointSnitchParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config endpoint snitch params -func (o *FindConfigEndpointSnitchParams) WithTimeout(timeout time.Duration) *FindConfigEndpointSnitchParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config endpoint snitch params -func (o *FindConfigEndpointSnitchParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config endpoint snitch params -func (o *FindConfigEndpointSnitchParams) WithContext(ctx context.Context) *FindConfigEndpointSnitchParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config endpoint snitch params -func (o *FindConfigEndpointSnitchParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config endpoint snitch params -func (o *FindConfigEndpointSnitchParams) WithHTTPClient(client *http.Client) *FindConfigEndpointSnitchParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config endpoint snitch params -func (o *FindConfigEndpointSnitchParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigEndpointSnitchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_endpoint_snitch_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_endpoint_snitch_responses.go deleted file mode 100644 index e6d95d46a9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_endpoint_snitch_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigEndpointSnitchReader is a Reader for the FindConfigEndpointSnitch structure. -type FindConfigEndpointSnitchReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigEndpointSnitchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigEndpointSnitchOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigEndpointSnitchDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigEndpointSnitchOK creates a FindConfigEndpointSnitchOK with default headers values -func NewFindConfigEndpointSnitchOK() *FindConfigEndpointSnitchOK { - return &FindConfigEndpointSnitchOK{} -} - -/* -FindConfigEndpointSnitchOK handles this case with default header values. - -Config value -*/ -type FindConfigEndpointSnitchOK struct { - Payload string -} - -func (o *FindConfigEndpointSnitchOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigEndpointSnitchOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigEndpointSnitchDefault creates a FindConfigEndpointSnitchDefault with default headers values -func NewFindConfigEndpointSnitchDefault(code int) *FindConfigEndpointSnitchDefault { - return &FindConfigEndpointSnitchDefault{ - _statusCode: code, - } -} - -/* -FindConfigEndpointSnitchDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigEndpointSnitchDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config endpoint snitch default response -func (o *FindConfigEndpointSnitchDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigEndpointSnitchDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigEndpointSnitchDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigEndpointSnitchDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_experimental_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_experimental_parameters.go deleted file mode 100644 index a398adef9f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_experimental_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigExperimentalParams creates a new FindConfigExperimentalParams object -// with the default values initialized. -func NewFindConfigExperimentalParams() *FindConfigExperimentalParams { - - return &FindConfigExperimentalParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigExperimentalParamsWithTimeout creates a new FindConfigExperimentalParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigExperimentalParamsWithTimeout(timeout time.Duration) *FindConfigExperimentalParams { - - return &FindConfigExperimentalParams{ - - timeout: timeout, - } -} - -// NewFindConfigExperimentalParamsWithContext creates a new FindConfigExperimentalParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigExperimentalParamsWithContext(ctx context.Context) *FindConfigExperimentalParams { - - return &FindConfigExperimentalParams{ - - Context: ctx, - } -} - -// NewFindConfigExperimentalParamsWithHTTPClient creates a new FindConfigExperimentalParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigExperimentalParamsWithHTTPClient(client *http.Client) *FindConfigExperimentalParams { - - return &FindConfigExperimentalParams{ - HTTPClient: client, - } -} - -/* -FindConfigExperimentalParams contains all the parameters to send to the API endpoint -for the find config experimental operation typically these are written to a http.Request -*/ -type FindConfigExperimentalParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config experimental params -func (o *FindConfigExperimentalParams) WithTimeout(timeout time.Duration) *FindConfigExperimentalParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config experimental params -func (o *FindConfigExperimentalParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config experimental params -func (o *FindConfigExperimentalParams) WithContext(ctx context.Context) *FindConfigExperimentalParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config experimental params -func (o *FindConfigExperimentalParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config experimental params -func (o *FindConfigExperimentalParams) WithHTTPClient(client *http.Client) *FindConfigExperimentalParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config experimental params -func (o *FindConfigExperimentalParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigExperimentalParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_experimental_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_experimental_responses.go deleted file mode 100644 index 25e785cba6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_experimental_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigExperimentalReader is a Reader for the FindConfigExperimental structure. -type FindConfigExperimentalReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigExperimentalReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigExperimentalOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigExperimentalDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigExperimentalOK creates a FindConfigExperimentalOK with default headers values -func NewFindConfigExperimentalOK() *FindConfigExperimentalOK { - return &FindConfigExperimentalOK{} -} - -/* -FindConfigExperimentalOK handles this case with default header values. - -Config value -*/ -type FindConfigExperimentalOK struct { - Payload bool -} - -func (o *FindConfigExperimentalOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigExperimentalOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigExperimentalDefault creates a FindConfigExperimentalDefault with default headers values -func NewFindConfigExperimentalDefault(code int) *FindConfigExperimentalDefault { - return &FindConfigExperimentalDefault{ - _statusCode: code, - } -} - -/* -FindConfigExperimentalDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigExperimentalDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config experimental default response -func (o *FindConfigExperimentalDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigExperimentalDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigExperimentalDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigExperimentalDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_fd_initial_value_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_fd_initial_value_ms_parameters.go deleted file mode 100644 index 2ddd1e7377..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_fd_initial_value_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigFdInitialValueMsParams creates a new FindConfigFdInitialValueMsParams object -// with the default values initialized. -func NewFindConfigFdInitialValueMsParams() *FindConfigFdInitialValueMsParams { - - return &FindConfigFdInitialValueMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigFdInitialValueMsParamsWithTimeout creates a new FindConfigFdInitialValueMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigFdInitialValueMsParamsWithTimeout(timeout time.Duration) *FindConfigFdInitialValueMsParams { - - return &FindConfigFdInitialValueMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigFdInitialValueMsParamsWithContext creates a new FindConfigFdInitialValueMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigFdInitialValueMsParamsWithContext(ctx context.Context) *FindConfigFdInitialValueMsParams { - - return &FindConfigFdInitialValueMsParams{ - - Context: ctx, - } -} - -// NewFindConfigFdInitialValueMsParamsWithHTTPClient creates a new FindConfigFdInitialValueMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigFdInitialValueMsParamsWithHTTPClient(client *http.Client) *FindConfigFdInitialValueMsParams { - - return &FindConfigFdInitialValueMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigFdInitialValueMsParams contains all the parameters to send to the API endpoint -for the find config fd initial value ms operation typically these are written to a http.Request -*/ -type FindConfigFdInitialValueMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config fd initial value ms params -func (o *FindConfigFdInitialValueMsParams) WithTimeout(timeout time.Duration) *FindConfigFdInitialValueMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config fd initial value ms params -func (o *FindConfigFdInitialValueMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config fd initial value ms params -func (o *FindConfigFdInitialValueMsParams) WithContext(ctx context.Context) *FindConfigFdInitialValueMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config fd initial value ms params -func (o *FindConfigFdInitialValueMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config fd initial value ms params -func (o *FindConfigFdInitialValueMsParams) WithHTTPClient(client *http.Client) *FindConfigFdInitialValueMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config fd initial value ms params -func (o *FindConfigFdInitialValueMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigFdInitialValueMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_fd_initial_value_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_fd_initial_value_ms_responses.go deleted file mode 100644 index f9aab81d6d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_fd_initial_value_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigFdInitialValueMsReader is a Reader for the FindConfigFdInitialValueMs structure. -type FindConfigFdInitialValueMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigFdInitialValueMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigFdInitialValueMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigFdInitialValueMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigFdInitialValueMsOK creates a FindConfigFdInitialValueMsOK with default headers values -func NewFindConfigFdInitialValueMsOK() *FindConfigFdInitialValueMsOK { - return &FindConfigFdInitialValueMsOK{} -} - -/* -FindConfigFdInitialValueMsOK handles this case with default header values. - -Config value -*/ -type FindConfigFdInitialValueMsOK struct { - Payload int64 -} - -func (o *FindConfigFdInitialValueMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigFdInitialValueMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigFdInitialValueMsDefault creates a FindConfigFdInitialValueMsDefault with default headers values -func NewFindConfigFdInitialValueMsDefault(code int) *FindConfigFdInitialValueMsDefault { - return &FindConfigFdInitialValueMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigFdInitialValueMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigFdInitialValueMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config fd initial value ms default response -func (o *FindConfigFdInitialValueMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigFdInitialValueMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigFdInitialValueMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigFdInitialValueMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_fd_max_interval_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_fd_max_interval_ms_parameters.go deleted file mode 100644 index 2c2734af59..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_fd_max_interval_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigFdMaxIntervalMsParams creates a new FindConfigFdMaxIntervalMsParams object -// with the default values initialized. -func NewFindConfigFdMaxIntervalMsParams() *FindConfigFdMaxIntervalMsParams { - - return &FindConfigFdMaxIntervalMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigFdMaxIntervalMsParamsWithTimeout creates a new FindConfigFdMaxIntervalMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigFdMaxIntervalMsParamsWithTimeout(timeout time.Duration) *FindConfigFdMaxIntervalMsParams { - - return &FindConfigFdMaxIntervalMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigFdMaxIntervalMsParamsWithContext creates a new FindConfigFdMaxIntervalMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigFdMaxIntervalMsParamsWithContext(ctx context.Context) *FindConfigFdMaxIntervalMsParams { - - return &FindConfigFdMaxIntervalMsParams{ - - Context: ctx, - } -} - -// NewFindConfigFdMaxIntervalMsParamsWithHTTPClient creates a new FindConfigFdMaxIntervalMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigFdMaxIntervalMsParamsWithHTTPClient(client *http.Client) *FindConfigFdMaxIntervalMsParams { - - return &FindConfigFdMaxIntervalMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigFdMaxIntervalMsParams contains all the parameters to send to the API endpoint -for the find config fd max interval ms operation typically these are written to a http.Request -*/ -type FindConfigFdMaxIntervalMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config fd max interval ms params -func (o *FindConfigFdMaxIntervalMsParams) WithTimeout(timeout time.Duration) *FindConfigFdMaxIntervalMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config fd max interval ms params -func (o *FindConfigFdMaxIntervalMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config fd max interval ms params -func (o *FindConfigFdMaxIntervalMsParams) WithContext(ctx context.Context) *FindConfigFdMaxIntervalMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config fd max interval ms params -func (o *FindConfigFdMaxIntervalMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config fd max interval ms params -func (o *FindConfigFdMaxIntervalMsParams) WithHTTPClient(client *http.Client) *FindConfigFdMaxIntervalMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config fd max interval ms params -func (o *FindConfigFdMaxIntervalMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigFdMaxIntervalMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_fd_max_interval_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_fd_max_interval_ms_responses.go deleted file mode 100644 index 16ef3ee647..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_fd_max_interval_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigFdMaxIntervalMsReader is a Reader for the FindConfigFdMaxIntervalMs structure. -type FindConfigFdMaxIntervalMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigFdMaxIntervalMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigFdMaxIntervalMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigFdMaxIntervalMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigFdMaxIntervalMsOK creates a FindConfigFdMaxIntervalMsOK with default headers values -func NewFindConfigFdMaxIntervalMsOK() *FindConfigFdMaxIntervalMsOK { - return &FindConfigFdMaxIntervalMsOK{} -} - -/* -FindConfigFdMaxIntervalMsOK handles this case with default header values. - -Config value -*/ -type FindConfigFdMaxIntervalMsOK struct { - Payload int64 -} - -func (o *FindConfigFdMaxIntervalMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigFdMaxIntervalMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigFdMaxIntervalMsDefault creates a FindConfigFdMaxIntervalMsDefault with default headers values -func NewFindConfigFdMaxIntervalMsDefault(code int) *FindConfigFdMaxIntervalMsDefault { - return &FindConfigFdMaxIntervalMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigFdMaxIntervalMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigFdMaxIntervalMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config fd max interval ms default response -func (o *FindConfigFdMaxIntervalMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigFdMaxIntervalMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigFdMaxIntervalMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigFdMaxIntervalMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_file_cache_size_in_mb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_file_cache_size_in_mb_parameters.go deleted file mode 100644 index b97422ad7d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_file_cache_size_in_mb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigFileCacheSizeInMbParams creates a new FindConfigFileCacheSizeInMbParams object -// with the default values initialized. -func NewFindConfigFileCacheSizeInMbParams() *FindConfigFileCacheSizeInMbParams { - - return &FindConfigFileCacheSizeInMbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigFileCacheSizeInMbParamsWithTimeout creates a new FindConfigFileCacheSizeInMbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigFileCacheSizeInMbParamsWithTimeout(timeout time.Duration) *FindConfigFileCacheSizeInMbParams { - - return &FindConfigFileCacheSizeInMbParams{ - - timeout: timeout, - } -} - -// NewFindConfigFileCacheSizeInMbParamsWithContext creates a new FindConfigFileCacheSizeInMbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigFileCacheSizeInMbParamsWithContext(ctx context.Context) *FindConfigFileCacheSizeInMbParams { - - return &FindConfigFileCacheSizeInMbParams{ - - Context: ctx, - } -} - -// NewFindConfigFileCacheSizeInMbParamsWithHTTPClient creates a new FindConfigFileCacheSizeInMbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigFileCacheSizeInMbParamsWithHTTPClient(client *http.Client) *FindConfigFileCacheSizeInMbParams { - - return &FindConfigFileCacheSizeInMbParams{ - HTTPClient: client, - } -} - -/* -FindConfigFileCacheSizeInMbParams contains all the parameters to send to the API endpoint -for the find config file cache size in mb operation typically these are written to a http.Request -*/ -type FindConfigFileCacheSizeInMbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config file cache size in mb params -func (o *FindConfigFileCacheSizeInMbParams) WithTimeout(timeout time.Duration) *FindConfigFileCacheSizeInMbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config file cache size in mb params -func (o *FindConfigFileCacheSizeInMbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config file cache size in mb params -func (o *FindConfigFileCacheSizeInMbParams) WithContext(ctx context.Context) *FindConfigFileCacheSizeInMbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config file cache size in mb params -func (o *FindConfigFileCacheSizeInMbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config file cache size in mb params -func (o *FindConfigFileCacheSizeInMbParams) WithHTTPClient(client *http.Client) *FindConfigFileCacheSizeInMbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config file cache size in mb params -func (o *FindConfigFileCacheSizeInMbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigFileCacheSizeInMbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_file_cache_size_in_mb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_file_cache_size_in_mb_responses.go deleted file mode 100644 index 1510462707..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_file_cache_size_in_mb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigFileCacheSizeInMbReader is a Reader for the FindConfigFileCacheSizeInMb structure. -type FindConfigFileCacheSizeInMbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigFileCacheSizeInMbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigFileCacheSizeInMbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigFileCacheSizeInMbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigFileCacheSizeInMbOK creates a FindConfigFileCacheSizeInMbOK with default headers values -func NewFindConfigFileCacheSizeInMbOK() *FindConfigFileCacheSizeInMbOK { - return &FindConfigFileCacheSizeInMbOK{} -} - -/* -FindConfigFileCacheSizeInMbOK handles this case with default header values. - -Config value -*/ -type FindConfigFileCacheSizeInMbOK struct { - Payload int64 -} - -func (o *FindConfigFileCacheSizeInMbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigFileCacheSizeInMbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigFileCacheSizeInMbDefault creates a FindConfigFileCacheSizeInMbDefault with default headers values -func NewFindConfigFileCacheSizeInMbDefault(code int) *FindConfigFileCacheSizeInMbDefault { - return &FindConfigFileCacheSizeInMbDefault{ - _statusCode: code, - } -} - -/* -FindConfigFileCacheSizeInMbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigFileCacheSizeInMbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config file cache size in mb default response -func (o *FindConfigFileCacheSizeInMbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigFileCacheSizeInMbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigFileCacheSizeInMbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigFileCacheSizeInMbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_hinted_handoff_enabled_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_hinted_handoff_enabled_parameters.go deleted file mode 100644 index 85fed76ebd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_hinted_handoff_enabled_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigHintedHandoffEnabledParams creates a new FindConfigHintedHandoffEnabledParams object -// with the default values initialized. -func NewFindConfigHintedHandoffEnabledParams() *FindConfigHintedHandoffEnabledParams { - - return &FindConfigHintedHandoffEnabledParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigHintedHandoffEnabledParamsWithTimeout creates a new FindConfigHintedHandoffEnabledParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigHintedHandoffEnabledParamsWithTimeout(timeout time.Duration) *FindConfigHintedHandoffEnabledParams { - - return &FindConfigHintedHandoffEnabledParams{ - - timeout: timeout, - } -} - -// NewFindConfigHintedHandoffEnabledParamsWithContext creates a new FindConfigHintedHandoffEnabledParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigHintedHandoffEnabledParamsWithContext(ctx context.Context) *FindConfigHintedHandoffEnabledParams { - - return &FindConfigHintedHandoffEnabledParams{ - - Context: ctx, - } -} - -// NewFindConfigHintedHandoffEnabledParamsWithHTTPClient creates a new FindConfigHintedHandoffEnabledParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigHintedHandoffEnabledParamsWithHTTPClient(client *http.Client) *FindConfigHintedHandoffEnabledParams { - - return &FindConfigHintedHandoffEnabledParams{ - HTTPClient: client, - } -} - -/* -FindConfigHintedHandoffEnabledParams contains all the parameters to send to the API endpoint -for the find config hinted handoff enabled operation typically these are written to a http.Request -*/ -type FindConfigHintedHandoffEnabledParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config hinted handoff enabled params -func (o *FindConfigHintedHandoffEnabledParams) WithTimeout(timeout time.Duration) *FindConfigHintedHandoffEnabledParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config hinted handoff enabled params -func (o *FindConfigHintedHandoffEnabledParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config hinted handoff enabled params -func (o *FindConfigHintedHandoffEnabledParams) WithContext(ctx context.Context) *FindConfigHintedHandoffEnabledParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config hinted handoff enabled params -func (o *FindConfigHintedHandoffEnabledParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config hinted handoff enabled params -func (o *FindConfigHintedHandoffEnabledParams) WithHTTPClient(client *http.Client) *FindConfigHintedHandoffEnabledParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config hinted handoff enabled params -func (o *FindConfigHintedHandoffEnabledParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigHintedHandoffEnabledParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_hinted_handoff_enabled_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_hinted_handoff_enabled_responses.go deleted file mode 100644 index 9e228552b0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_hinted_handoff_enabled_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigHintedHandoffEnabledReader is a Reader for the FindConfigHintedHandoffEnabled structure. -type FindConfigHintedHandoffEnabledReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigHintedHandoffEnabledReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigHintedHandoffEnabledOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigHintedHandoffEnabledDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigHintedHandoffEnabledOK creates a FindConfigHintedHandoffEnabledOK with default headers values -func NewFindConfigHintedHandoffEnabledOK() *FindConfigHintedHandoffEnabledOK { - return &FindConfigHintedHandoffEnabledOK{} -} - -/* -FindConfigHintedHandoffEnabledOK handles this case with default header values. - -Config value -*/ -type FindConfigHintedHandoffEnabledOK struct { - Payload string -} - -func (o *FindConfigHintedHandoffEnabledOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigHintedHandoffEnabledOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigHintedHandoffEnabledDefault creates a FindConfigHintedHandoffEnabledDefault with default headers values -func NewFindConfigHintedHandoffEnabledDefault(code int) *FindConfigHintedHandoffEnabledDefault { - return &FindConfigHintedHandoffEnabledDefault{ - _statusCode: code, - } -} - -/* -FindConfigHintedHandoffEnabledDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigHintedHandoffEnabledDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config hinted handoff enabled default response -func (o *FindConfigHintedHandoffEnabledDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigHintedHandoffEnabledDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigHintedHandoffEnabledDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigHintedHandoffEnabledDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_hinted_handoff_throttle_in_kb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_hinted_handoff_throttle_in_kb_parameters.go deleted file mode 100644 index f87c75fc8f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_hinted_handoff_throttle_in_kb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigHintedHandoffThrottleInKbParams creates a new FindConfigHintedHandoffThrottleInKbParams object -// with the default values initialized. -func NewFindConfigHintedHandoffThrottleInKbParams() *FindConfigHintedHandoffThrottleInKbParams { - - return &FindConfigHintedHandoffThrottleInKbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigHintedHandoffThrottleInKbParamsWithTimeout creates a new FindConfigHintedHandoffThrottleInKbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigHintedHandoffThrottleInKbParamsWithTimeout(timeout time.Duration) *FindConfigHintedHandoffThrottleInKbParams { - - return &FindConfigHintedHandoffThrottleInKbParams{ - - timeout: timeout, - } -} - -// NewFindConfigHintedHandoffThrottleInKbParamsWithContext creates a new FindConfigHintedHandoffThrottleInKbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigHintedHandoffThrottleInKbParamsWithContext(ctx context.Context) *FindConfigHintedHandoffThrottleInKbParams { - - return &FindConfigHintedHandoffThrottleInKbParams{ - - Context: ctx, - } -} - -// NewFindConfigHintedHandoffThrottleInKbParamsWithHTTPClient creates a new FindConfigHintedHandoffThrottleInKbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigHintedHandoffThrottleInKbParamsWithHTTPClient(client *http.Client) *FindConfigHintedHandoffThrottleInKbParams { - - return &FindConfigHintedHandoffThrottleInKbParams{ - HTTPClient: client, - } -} - -/* -FindConfigHintedHandoffThrottleInKbParams contains all the parameters to send to the API endpoint -for the find config hinted handoff throttle in kb operation typically these are written to a http.Request -*/ -type FindConfigHintedHandoffThrottleInKbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config hinted handoff throttle in kb params -func (o *FindConfigHintedHandoffThrottleInKbParams) WithTimeout(timeout time.Duration) *FindConfigHintedHandoffThrottleInKbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config hinted handoff throttle in kb params -func (o *FindConfigHintedHandoffThrottleInKbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config hinted handoff throttle in kb params -func (o *FindConfigHintedHandoffThrottleInKbParams) WithContext(ctx context.Context) *FindConfigHintedHandoffThrottleInKbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config hinted handoff throttle in kb params -func (o *FindConfigHintedHandoffThrottleInKbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config hinted handoff throttle in kb params -func (o *FindConfigHintedHandoffThrottleInKbParams) WithHTTPClient(client *http.Client) *FindConfigHintedHandoffThrottleInKbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config hinted handoff throttle in kb params -func (o *FindConfigHintedHandoffThrottleInKbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigHintedHandoffThrottleInKbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_hinted_handoff_throttle_in_kb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_hinted_handoff_throttle_in_kb_responses.go deleted file mode 100644 index 30bc8094a2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_hinted_handoff_throttle_in_kb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigHintedHandoffThrottleInKbReader is a Reader for the FindConfigHintedHandoffThrottleInKb structure. -type FindConfigHintedHandoffThrottleInKbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigHintedHandoffThrottleInKbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigHintedHandoffThrottleInKbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigHintedHandoffThrottleInKbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigHintedHandoffThrottleInKbOK creates a FindConfigHintedHandoffThrottleInKbOK with default headers values -func NewFindConfigHintedHandoffThrottleInKbOK() *FindConfigHintedHandoffThrottleInKbOK { - return &FindConfigHintedHandoffThrottleInKbOK{} -} - -/* -FindConfigHintedHandoffThrottleInKbOK handles this case with default header values. - -Config value -*/ -type FindConfigHintedHandoffThrottleInKbOK struct { - Payload int64 -} - -func (o *FindConfigHintedHandoffThrottleInKbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigHintedHandoffThrottleInKbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigHintedHandoffThrottleInKbDefault creates a FindConfigHintedHandoffThrottleInKbDefault with default headers values -func NewFindConfigHintedHandoffThrottleInKbDefault(code int) *FindConfigHintedHandoffThrottleInKbDefault { - return &FindConfigHintedHandoffThrottleInKbDefault{ - _statusCode: code, - } -} - -/* -FindConfigHintedHandoffThrottleInKbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigHintedHandoffThrottleInKbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config hinted handoff throttle in kb default response -func (o *FindConfigHintedHandoffThrottleInKbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigHintedHandoffThrottleInKbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigHintedHandoffThrottleInKbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigHintedHandoffThrottleInKbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_hints_directory_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_hints_directory_parameters.go deleted file mode 100644 index ef3bf712fd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_hints_directory_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigHintsDirectoryParams creates a new FindConfigHintsDirectoryParams object -// with the default values initialized. -func NewFindConfigHintsDirectoryParams() *FindConfigHintsDirectoryParams { - - return &FindConfigHintsDirectoryParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigHintsDirectoryParamsWithTimeout creates a new FindConfigHintsDirectoryParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigHintsDirectoryParamsWithTimeout(timeout time.Duration) *FindConfigHintsDirectoryParams { - - return &FindConfigHintsDirectoryParams{ - - timeout: timeout, - } -} - -// NewFindConfigHintsDirectoryParamsWithContext creates a new FindConfigHintsDirectoryParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigHintsDirectoryParamsWithContext(ctx context.Context) *FindConfigHintsDirectoryParams { - - return &FindConfigHintsDirectoryParams{ - - Context: ctx, - } -} - -// NewFindConfigHintsDirectoryParamsWithHTTPClient creates a new FindConfigHintsDirectoryParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigHintsDirectoryParamsWithHTTPClient(client *http.Client) *FindConfigHintsDirectoryParams { - - return &FindConfigHintsDirectoryParams{ - HTTPClient: client, - } -} - -/* -FindConfigHintsDirectoryParams contains all the parameters to send to the API endpoint -for the find config hints directory operation typically these are written to a http.Request -*/ -type FindConfigHintsDirectoryParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config hints directory params -func (o *FindConfigHintsDirectoryParams) WithTimeout(timeout time.Duration) *FindConfigHintsDirectoryParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config hints directory params -func (o *FindConfigHintsDirectoryParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config hints directory params -func (o *FindConfigHintsDirectoryParams) WithContext(ctx context.Context) *FindConfigHintsDirectoryParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config hints directory params -func (o *FindConfigHintsDirectoryParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config hints directory params -func (o *FindConfigHintsDirectoryParams) WithHTTPClient(client *http.Client) *FindConfigHintsDirectoryParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config hints directory params -func (o *FindConfigHintsDirectoryParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigHintsDirectoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_hints_directory_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_hints_directory_responses.go deleted file mode 100644 index 864679aad7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_hints_directory_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigHintsDirectoryReader is a Reader for the FindConfigHintsDirectory structure. -type FindConfigHintsDirectoryReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigHintsDirectoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigHintsDirectoryOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigHintsDirectoryDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigHintsDirectoryOK creates a FindConfigHintsDirectoryOK with default headers values -func NewFindConfigHintsDirectoryOK() *FindConfigHintsDirectoryOK { - return &FindConfigHintsDirectoryOK{} -} - -/* -FindConfigHintsDirectoryOK handles this case with default header values. - -Config value -*/ -type FindConfigHintsDirectoryOK struct { - Payload string -} - -func (o *FindConfigHintsDirectoryOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigHintsDirectoryOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigHintsDirectoryDefault creates a FindConfigHintsDirectoryDefault with default headers values -func NewFindConfigHintsDirectoryDefault(code int) *FindConfigHintsDirectoryDefault { - return &FindConfigHintsDirectoryDefault{ - _statusCode: code, - } -} - -/* -FindConfigHintsDirectoryDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigHintsDirectoryDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config hints directory default response -func (o *FindConfigHintsDirectoryDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigHintsDirectoryDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigHintsDirectoryDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigHintsDirectoryDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_in_memory_compaction_limit_in_mb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_in_memory_compaction_limit_in_mb_parameters.go deleted file mode 100644 index c5ef4c8989..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_in_memory_compaction_limit_in_mb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigInMemoryCompactionLimitInMbParams creates a new FindConfigInMemoryCompactionLimitInMbParams object -// with the default values initialized. -func NewFindConfigInMemoryCompactionLimitInMbParams() *FindConfigInMemoryCompactionLimitInMbParams { - - return &FindConfigInMemoryCompactionLimitInMbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigInMemoryCompactionLimitInMbParamsWithTimeout creates a new FindConfigInMemoryCompactionLimitInMbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigInMemoryCompactionLimitInMbParamsWithTimeout(timeout time.Duration) *FindConfigInMemoryCompactionLimitInMbParams { - - return &FindConfigInMemoryCompactionLimitInMbParams{ - - timeout: timeout, - } -} - -// NewFindConfigInMemoryCompactionLimitInMbParamsWithContext creates a new FindConfigInMemoryCompactionLimitInMbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigInMemoryCompactionLimitInMbParamsWithContext(ctx context.Context) *FindConfigInMemoryCompactionLimitInMbParams { - - return &FindConfigInMemoryCompactionLimitInMbParams{ - - Context: ctx, - } -} - -// NewFindConfigInMemoryCompactionLimitInMbParamsWithHTTPClient creates a new FindConfigInMemoryCompactionLimitInMbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigInMemoryCompactionLimitInMbParamsWithHTTPClient(client *http.Client) *FindConfigInMemoryCompactionLimitInMbParams { - - return &FindConfigInMemoryCompactionLimitInMbParams{ - HTTPClient: client, - } -} - -/* -FindConfigInMemoryCompactionLimitInMbParams contains all the parameters to send to the API endpoint -for the find config in memory compaction limit in mb operation typically these are written to a http.Request -*/ -type FindConfigInMemoryCompactionLimitInMbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config in memory compaction limit in mb params -func (o *FindConfigInMemoryCompactionLimitInMbParams) WithTimeout(timeout time.Duration) *FindConfigInMemoryCompactionLimitInMbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config in memory compaction limit in mb params -func (o *FindConfigInMemoryCompactionLimitInMbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config in memory compaction limit in mb params -func (o *FindConfigInMemoryCompactionLimitInMbParams) WithContext(ctx context.Context) *FindConfigInMemoryCompactionLimitInMbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config in memory compaction limit in mb params -func (o *FindConfigInMemoryCompactionLimitInMbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config in memory compaction limit in mb params -func (o *FindConfigInMemoryCompactionLimitInMbParams) WithHTTPClient(client *http.Client) *FindConfigInMemoryCompactionLimitInMbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config in memory compaction limit in mb params -func (o *FindConfigInMemoryCompactionLimitInMbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigInMemoryCompactionLimitInMbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_in_memory_compaction_limit_in_mb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_in_memory_compaction_limit_in_mb_responses.go deleted file mode 100644 index 6e22d0225c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_in_memory_compaction_limit_in_mb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigInMemoryCompactionLimitInMbReader is a Reader for the FindConfigInMemoryCompactionLimitInMb structure. -type FindConfigInMemoryCompactionLimitInMbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigInMemoryCompactionLimitInMbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigInMemoryCompactionLimitInMbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigInMemoryCompactionLimitInMbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigInMemoryCompactionLimitInMbOK creates a FindConfigInMemoryCompactionLimitInMbOK with default headers values -func NewFindConfigInMemoryCompactionLimitInMbOK() *FindConfigInMemoryCompactionLimitInMbOK { - return &FindConfigInMemoryCompactionLimitInMbOK{} -} - -/* -FindConfigInMemoryCompactionLimitInMbOK handles this case with default header values. - -Config value -*/ -type FindConfigInMemoryCompactionLimitInMbOK struct { - Payload int64 -} - -func (o *FindConfigInMemoryCompactionLimitInMbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigInMemoryCompactionLimitInMbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigInMemoryCompactionLimitInMbDefault creates a FindConfigInMemoryCompactionLimitInMbDefault with default headers values -func NewFindConfigInMemoryCompactionLimitInMbDefault(code int) *FindConfigInMemoryCompactionLimitInMbDefault { - return &FindConfigInMemoryCompactionLimitInMbDefault{ - _statusCode: code, - } -} - -/* -FindConfigInMemoryCompactionLimitInMbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigInMemoryCompactionLimitInMbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config in memory compaction limit in mb default response -func (o *FindConfigInMemoryCompactionLimitInMbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigInMemoryCompactionLimitInMbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigInMemoryCompactionLimitInMbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigInMemoryCompactionLimitInMbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_incremental_backups_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_incremental_backups_parameters.go deleted file mode 100644 index b55f93f0a5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_incremental_backups_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigIncrementalBackupsParams creates a new FindConfigIncrementalBackupsParams object -// with the default values initialized. -func NewFindConfigIncrementalBackupsParams() *FindConfigIncrementalBackupsParams { - - return &FindConfigIncrementalBackupsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigIncrementalBackupsParamsWithTimeout creates a new FindConfigIncrementalBackupsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigIncrementalBackupsParamsWithTimeout(timeout time.Duration) *FindConfigIncrementalBackupsParams { - - return &FindConfigIncrementalBackupsParams{ - - timeout: timeout, - } -} - -// NewFindConfigIncrementalBackupsParamsWithContext creates a new FindConfigIncrementalBackupsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigIncrementalBackupsParamsWithContext(ctx context.Context) *FindConfigIncrementalBackupsParams { - - return &FindConfigIncrementalBackupsParams{ - - Context: ctx, - } -} - -// NewFindConfigIncrementalBackupsParamsWithHTTPClient creates a new FindConfigIncrementalBackupsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigIncrementalBackupsParamsWithHTTPClient(client *http.Client) *FindConfigIncrementalBackupsParams { - - return &FindConfigIncrementalBackupsParams{ - HTTPClient: client, - } -} - -/* -FindConfigIncrementalBackupsParams contains all the parameters to send to the API endpoint -for the find config incremental backups operation typically these are written to a http.Request -*/ -type FindConfigIncrementalBackupsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config incremental backups params -func (o *FindConfigIncrementalBackupsParams) WithTimeout(timeout time.Duration) *FindConfigIncrementalBackupsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config incremental backups params -func (o *FindConfigIncrementalBackupsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config incremental backups params -func (o *FindConfigIncrementalBackupsParams) WithContext(ctx context.Context) *FindConfigIncrementalBackupsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config incremental backups params -func (o *FindConfigIncrementalBackupsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config incremental backups params -func (o *FindConfigIncrementalBackupsParams) WithHTTPClient(client *http.Client) *FindConfigIncrementalBackupsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config incremental backups params -func (o *FindConfigIncrementalBackupsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigIncrementalBackupsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_incremental_backups_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_incremental_backups_responses.go deleted file mode 100644 index 28e8d8f8a3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_incremental_backups_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigIncrementalBackupsReader is a Reader for the FindConfigIncrementalBackups structure. -type FindConfigIncrementalBackupsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigIncrementalBackupsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigIncrementalBackupsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigIncrementalBackupsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigIncrementalBackupsOK creates a FindConfigIncrementalBackupsOK with default headers values -func NewFindConfigIncrementalBackupsOK() *FindConfigIncrementalBackupsOK { - return &FindConfigIncrementalBackupsOK{} -} - -/* -FindConfigIncrementalBackupsOK handles this case with default header values. - -Config value -*/ -type FindConfigIncrementalBackupsOK struct { - Payload bool -} - -func (o *FindConfigIncrementalBackupsOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigIncrementalBackupsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigIncrementalBackupsDefault creates a FindConfigIncrementalBackupsDefault with default headers values -func NewFindConfigIncrementalBackupsDefault(code int) *FindConfigIncrementalBackupsDefault { - return &FindConfigIncrementalBackupsDefault{ - _statusCode: code, - } -} - -/* -FindConfigIncrementalBackupsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigIncrementalBackupsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config incremental backups default response -func (o *FindConfigIncrementalBackupsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigIncrementalBackupsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigIncrementalBackupsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigIncrementalBackupsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_index_summary_capacity_in_mb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_index_summary_capacity_in_mb_parameters.go deleted file mode 100644 index c49cb4e6e7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_index_summary_capacity_in_mb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigIndexSummaryCapacityInMbParams creates a new FindConfigIndexSummaryCapacityInMbParams object -// with the default values initialized. -func NewFindConfigIndexSummaryCapacityInMbParams() *FindConfigIndexSummaryCapacityInMbParams { - - return &FindConfigIndexSummaryCapacityInMbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigIndexSummaryCapacityInMbParamsWithTimeout creates a new FindConfigIndexSummaryCapacityInMbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigIndexSummaryCapacityInMbParamsWithTimeout(timeout time.Duration) *FindConfigIndexSummaryCapacityInMbParams { - - return &FindConfigIndexSummaryCapacityInMbParams{ - - timeout: timeout, - } -} - -// NewFindConfigIndexSummaryCapacityInMbParamsWithContext creates a new FindConfigIndexSummaryCapacityInMbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigIndexSummaryCapacityInMbParamsWithContext(ctx context.Context) *FindConfigIndexSummaryCapacityInMbParams { - - return &FindConfigIndexSummaryCapacityInMbParams{ - - Context: ctx, - } -} - -// NewFindConfigIndexSummaryCapacityInMbParamsWithHTTPClient creates a new FindConfigIndexSummaryCapacityInMbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigIndexSummaryCapacityInMbParamsWithHTTPClient(client *http.Client) *FindConfigIndexSummaryCapacityInMbParams { - - return &FindConfigIndexSummaryCapacityInMbParams{ - HTTPClient: client, - } -} - -/* -FindConfigIndexSummaryCapacityInMbParams contains all the parameters to send to the API endpoint -for the find config index summary capacity in mb operation typically these are written to a http.Request -*/ -type FindConfigIndexSummaryCapacityInMbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config index summary capacity in mb params -func (o *FindConfigIndexSummaryCapacityInMbParams) WithTimeout(timeout time.Duration) *FindConfigIndexSummaryCapacityInMbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config index summary capacity in mb params -func (o *FindConfigIndexSummaryCapacityInMbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config index summary capacity in mb params -func (o *FindConfigIndexSummaryCapacityInMbParams) WithContext(ctx context.Context) *FindConfigIndexSummaryCapacityInMbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config index summary capacity in mb params -func (o *FindConfigIndexSummaryCapacityInMbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config index summary capacity in mb params -func (o *FindConfigIndexSummaryCapacityInMbParams) WithHTTPClient(client *http.Client) *FindConfigIndexSummaryCapacityInMbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config index summary capacity in mb params -func (o *FindConfigIndexSummaryCapacityInMbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigIndexSummaryCapacityInMbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_index_summary_capacity_in_mb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_index_summary_capacity_in_mb_responses.go deleted file mode 100644 index d6d6e40fc3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_index_summary_capacity_in_mb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigIndexSummaryCapacityInMbReader is a Reader for the FindConfigIndexSummaryCapacityInMb structure. -type FindConfigIndexSummaryCapacityInMbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigIndexSummaryCapacityInMbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigIndexSummaryCapacityInMbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigIndexSummaryCapacityInMbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigIndexSummaryCapacityInMbOK creates a FindConfigIndexSummaryCapacityInMbOK with default headers values -func NewFindConfigIndexSummaryCapacityInMbOK() *FindConfigIndexSummaryCapacityInMbOK { - return &FindConfigIndexSummaryCapacityInMbOK{} -} - -/* -FindConfigIndexSummaryCapacityInMbOK handles this case with default header values. - -Config value -*/ -type FindConfigIndexSummaryCapacityInMbOK struct { - Payload int64 -} - -func (o *FindConfigIndexSummaryCapacityInMbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigIndexSummaryCapacityInMbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigIndexSummaryCapacityInMbDefault creates a FindConfigIndexSummaryCapacityInMbDefault with default headers values -func NewFindConfigIndexSummaryCapacityInMbDefault(code int) *FindConfigIndexSummaryCapacityInMbDefault { - return &FindConfigIndexSummaryCapacityInMbDefault{ - _statusCode: code, - } -} - -/* -FindConfigIndexSummaryCapacityInMbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigIndexSummaryCapacityInMbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config index summary capacity in mb default response -func (o *FindConfigIndexSummaryCapacityInMbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigIndexSummaryCapacityInMbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigIndexSummaryCapacityInMbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigIndexSummaryCapacityInMbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_index_summary_resize_interval_in_minutes_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_index_summary_resize_interval_in_minutes_parameters.go deleted file mode 100644 index f038617ef9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_index_summary_resize_interval_in_minutes_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigIndexSummaryResizeIntervalInMinutesParams creates a new FindConfigIndexSummaryResizeIntervalInMinutesParams object -// with the default values initialized. -func NewFindConfigIndexSummaryResizeIntervalInMinutesParams() *FindConfigIndexSummaryResizeIntervalInMinutesParams { - - return &FindConfigIndexSummaryResizeIntervalInMinutesParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigIndexSummaryResizeIntervalInMinutesParamsWithTimeout creates a new FindConfigIndexSummaryResizeIntervalInMinutesParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigIndexSummaryResizeIntervalInMinutesParamsWithTimeout(timeout time.Duration) *FindConfigIndexSummaryResizeIntervalInMinutesParams { - - return &FindConfigIndexSummaryResizeIntervalInMinutesParams{ - - timeout: timeout, - } -} - -// NewFindConfigIndexSummaryResizeIntervalInMinutesParamsWithContext creates a new FindConfigIndexSummaryResizeIntervalInMinutesParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigIndexSummaryResizeIntervalInMinutesParamsWithContext(ctx context.Context) *FindConfigIndexSummaryResizeIntervalInMinutesParams { - - return &FindConfigIndexSummaryResizeIntervalInMinutesParams{ - - Context: ctx, - } -} - -// NewFindConfigIndexSummaryResizeIntervalInMinutesParamsWithHTTPClient creates a new FindConfigIndexSummaryResizeIntervalInMinutesParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigIndexSummaryResizeIntervalInMinutesParamsWithHTTPClient(client *http.Client) *FindConfigIndexSummaryResizeIntervalInMinutesParams { - - return &FindConfigIndexSummaryResizeIntervalInMinutesParams{ - HTTPClient: client, - } -} - -/* -FindConfigIndexSummaryResizeIntervalInMinutesParams contains all the parameters to send to the API endpoint -for the find config index summary resize interval in minutes operation typically these are written to a http.Request -*/ -type FindConfigIndexSummaryResizeIntervalInMinutesParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config index summary resize interval in minutes params -func (o *FindConfigIndexSummaryResizeIntervalInMinutesParams) WithTimeout(timeout time.Duration) *FindConfigIndexSummaryResizeIntervalInMinutesParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config index summary resize interval in minutes params -func (o *FindConfigIndexSummaryResizeIntervalInMinutesParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config index summary resize interval in minutes params -func (o *FindConfigIndexSummaryResizeIntervalInMinutesParams) WithContext(ctx context.Context) *FindConfigIndexSummaryResizeIntervalInMinutesParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config index summary resize interval in minutes params -func (o *FindConfigIndexSummaryResizeIntervalInMinutesParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config index summary resize interval in minutes params -func (o *FindConfigIndexSummaryResizeIntervalInMinutesParams) WithHTTPClient(client *http.Client) *FindConfigIndexSummaryResizeIntervalInMinutesParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config index summary resize interval in minutes params -func (o *FindConfigIndexSummaryResizeIntervalInMinutesParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigIndexSummaryResizeIntervalInMinutesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_index_summary_resize_interval_in_minutes_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_index_summary_resize_interval_in_minutes_responses.go deleted file mode 100644 index e15812013d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_index_summary_resize_interval_in_minutes_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigIndexSummaryResizeIntervalInMinutesReader is a Reader for the FindConfigIndexSummaryResizeIntervalInMinutes structure. -type FindConfigIndexSummaryResizeIntervalInMinutesReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigIndexSummaryResizeIntervalInMinutesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigIndexSummaryResizeIntervalInMinutesOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigIndexSummaryResizeIntervalInMinutesDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigIndexSummaryResizeIntervalInMinutesOK creates a FindConfigIndexSummaryResizeIntervalInMinutesOK with default headers values -func NewFindConfigIndexSummaryResizeIntervalInMinutesOK() *FindConfigIndexSummaryResizeIntervalInMinutesOK { - return &FindConfigIndexSummaryResizeIntervalInMinutesOK{} -} - -/* -FindConfigIndexSummaryResizeIntervalInMinutesOK handles this case with default header values. - -Config value -*/ -type FindConfigIndexSummaryResizeIntervalInMinutesOK struct { - Payload int64 -} - -func (o *FindConfigIndexSummaryResizeIntervalInMinutesOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigIndexSummaryResizeIntervalInMinutesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigIndexSummaryResizeIntervalInMinutesDefault creates a FindConfigIndexSummaryResizeIntervalInMinutesDefault with default headers values -func NewFindConfigIndexSummaryResizeIntervalInMinutesDefault(code int) *FindConfigIndexSummaryResizeIntervalInMinutesDefault { - return &FindConfigIndexSummaryResizeIntervalInMinutesDefault{ - _statusCode: code, - } -} - -/* -FindConfigIndexSummaryResizeIntervalInMinutesDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigIndexSummaryResizeIntervalInMinutesDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config index summary resize interval in minutes default response -func (o *FindConfigIndexSummaryResizeIntervalInMinutesDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigIndexSummaryResizeIntervalInMinutesDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigIndexSummaryResizeIntervalInMinutesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigIndexSummaryResizeIntervalInMinutesDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_initial_token_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_initial_token_parameters.go deleted file mode 100644 index 037ed28212..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_initial_token_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigInitialTokenParams creates a new FindConfigInitialTokenParams object -// with the default values initialized. -func NewFindConfigInitialTokenParams() *FindConfigInitialTokenParams { - - return &FindConfigInitialTokenParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigInitialTokenParamsWithTimeout creates a new FindConfigInitialTokenParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigInitialTokenParamsWithTimeout(timeout time.Duration) *FindConfigInitialTokenParams { - - return &FindConfigInitialTokenParams{ - - timeout: timeout, - } -} - -// NewFindConfigInitialTokenParamsWithContext creates a new FindConfigInitialTokenParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigInitialTokenParamsWithContext(ctx context.Context) *FindConfigInitialTokenParams { - - return &FindConfigInitialTokenParams{ - - Context: ctx, - } -} - -// NewFindConfigInitialTokenParamsWithHTTPClient creates a new FindConfigInitialTokenParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigInitialTokenParamsWithHTTPClient(client *http.Client) *FindConfigInitialTokenParams { - - return &FindConfigInitialTokenParams{ - HTTPClient: client, - } -} - -/* -FindConfigInitialTokenParams contains all the parameters to send to the API endpoint -for the find config initial token operation typically these are written to a http.Request -*/ -type FindConfigInitialTokenParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config initial token params -func (o *FindConfigInitialTokenParams) WithTimeout(timeout time.Duration) *FindConfigInitialTokenParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config initial token params -func (o *FindConfigInitialTokenParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config initial token params -func (o *FindConfigInitialTokenParams) WithContext(ctx context.Context) *FindConfigInitialTokenParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config initial token params -func (o *FindConfigInitialTokenParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config initial token params -func (o *FindConfigInitialTokenParams) WithHTTPClient(client *http.Client) *FindConfigInitialTokenParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config initial token params -func (o *FindConfigInitialTokenParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigInitialTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_initial_token_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_initial_token_responses.go deleted file mode 100644 index f2ea2c7bc4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_initial_token_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigInitialTokenReader is a Reader for the FindConfigInitialToken structure. -type FindConfigInitialTokenReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigInitialTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigInitialTokenOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigInitialTokenDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigInitialTokenOK creates a FindConfigInitialTokenOK with default headers values -func NewFindConfigInitialTokenOK() *FindConfigInitialTokenOK { - return &FindConfigInitialTokenOK{} -} - -/* -FindConfigInitialTokenOK handles this case with default header values. - -Config value -*/ -type FindConfigInitialTokenOK struct { - Payload string -} - -func (o *FindConfigInitialTokenOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigInitialTokenOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigInitialTokenDefault creates a FindConfigInitialTokenDefault with default headers values -func NewFindConfigInitialTokenDefault(code int) *FindConfigInitialTokenDefault { - return &FindConfigInitialTokenDefault{ - _statusCode: code, - } -} - -/* -FindConfigInitialTokenDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigInitialTokenDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config initial token default response -func (o *FindConfigInitialTokenDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigInitialTokenDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigInitialTokenDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigInitialTokenDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_inter_dc_stream_throughput_outbound_megabits_per_sec_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_inter_dc_stream_throughput_outbound_megabits_per_sec_parameters.go deleted file mode 100644 index 8706a0ab78..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_inter_dc_stream_throughput_outbound_megabits_per_sec_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams creates a new FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams object -// with the default values initialized. -func NewFindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams() *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams { - - return &FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigInterDcStreamThroughputOutboundMegabitsPerSecParamsWithTimeout creates a new FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigInterDcStreamThroughputOutboundMegabitsPerSecParamsWithTimeout(timeout time.Duration) *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams { - - return &FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams{ - - timeout: timeout, - } -} - -// NewFindConfigInterDcStreamThroughputOutboundMegabitsPerSecParamsWithContext creates a new FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigInterDcStreamThroughputOutboundMegabitsPerSecParamsWithContext(ctx context.Context) *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams { - - return &FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams{ - - Context: ctx, - } -} - -// NewFindConfigInterDcStreamThroughputOutboundMegabitsPerSecParamsWithHTTPClient creates a new FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigInterDcStreamThroughputOutboundMegabitsPerSecParamsWithHTTPClient(client *http.Client) *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams { - - return &FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams{ - HTTPClient: client, - } -} - -/* -FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams contains all the parameters to send to the API endpoint -for the find config inter dc stream throughput outbound megabits per sec operation typically these are written to a http.Request -*/ -type FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config inter dc stream throughput outbound megabits per sec params -func (o *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams) WithTimeout(timeout time.Duration) *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config inter dc stream throughput outbound megabits per sec params -func (o *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config inter dc stream throughput outbound megabits per sec params -func (o *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams) WithContext(ctx context.Context) *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config inter dc stream throughput outbound megabits per sec params -func (o *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config inter dc stream throughput outbound megabits per sec params -func (o *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams) WithHTTPClient(client *http.Client) *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config inter dc stream throughput outbound megabits per sec params -func (o *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_inter_dc_stream_throughput_outbound_megabits_per_sec_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_inter_dc_stream_throughput_outbound_megabits_per_sec_responses.go deleted file mode 100644 index da132f051d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_inter_dc_stream_throughput_outbound_megabits_per_sec_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigInterDcStreamThroughputOutboundMegabitsPerSecReader is a Reader for the FindConfigInterDcStreamThroughputOutboundMegabitsPerSec structure. -type FindConfigInterDcStreamThroughputOutboundMegabitsPerSecReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigInterDcStreamThroughputOutboundMegabitsPerSecOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigInterDcStreamThroughputOutboundMegabitsPerSecDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigInterDcStreamThroughputOutboundMegabitsPerSecOK creates a FindConfigInterDcStreamThroughputOutboundMegabitsPerSecOK with default headers values -func NewFindConfigInterDcStreamThroughputOutboundMegabitsPerSecOK() *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecOK { - return &FindConfigInterDcStreamThroughputOutboundMegabitsPerSecOK{} -} - -/* -FindConfigInterDcStreamThroughputOutboundMegabitsPerSecOK handles this case with default header values. - -Config value -*/ -type FindConfigInterDcStreamThroughputOutboundMegabitsPerSecOK struct { - Payload int64 -} - -func (o *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigInterDcStreamThroughputOutboundMegabitsPerSecDefault creates a FindConfigInterDcStreamThroughputOutboundMegabitsPerSecDefault with default headers values -func NewFindConfigInterDcStreamThroughputOutboundMegabitsPerSecDefault(code int) *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecDefault { - return &FindConfigInterDcStreamThroughputOutboundMegabitsPerSecDefault{ - _statusCode: code, - } -} - -/* -FindConfigInterDcStreamThroughputOutboundMegabitsPerSecDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigInterDcStreamThroughputOutboundMegabitsPerSecDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config inter dc stream throughput outbound megabits per sec default response -func (o *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigInterDcStreamThroughputOutboundMegabitsPerSecDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_inter_dc_tcp_nodelay_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_inter_dc_tcp_nodelay_parameters.go deleted file mode 100644 index d6b6054f22..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_inter_dc_tcp_nodelay_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigInterDcTCPNodelayParams creates a new FindConfigInterDcTCPNodelayParams object -// with the default values initialized. -func NewFindConfigInterDcTCPNodelayParams() *FindConfigInterDcTCPNodelayParams { - - return &FindConfigInterDcTCPNodelayParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigInterDcTCPNodelayParamsWithTimeout creates a new FindConfigInterDcTCPNodelayParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigInterDcTCPNodelayParamsWithTimeout(timeout time.Duration) *FindConfigInterDcTCPNodelayParams { - - return &FindConfigInterDcTCPNodelayParams{ - - timeout: timeout, - } -} - -// NewFindConfigInterDcTCPNodelayParamsWithContext creates a new FindConfigInterDcTCPNodelayParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigInterDcTCPNodelayParamsWithContext(ctx context.Context) *FindConfigInterDcTCPNodelayParams { - - return &FindConfigInterDcTCPNodelayParams{ - - Context: ctx, - } -} - -// NewFindConfigInterDcTCPNodelayParamsWithHTTPClient creates a new FindConfigInterDcTCPNodelayParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigInterDcTCPNodelayParamsWithHTTPClient(client *http.Client) *FindConfigInterDcTCPNodelayParams { - - return &FindConfigInterDcTCPNodelayParams{ - HTTPClient: client, - } -} - -/* -FindConfigInterDcTCPNodelayParams contains all the parameters to send to the API endpoint -for the find config inter dc tcp nodelay operation typically these are written to a http.Request -*/ -type FindConfigInterDcTCPNodelayParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config inter dc tcp nodelay params -func (o *FindConfigInterDcTCPNodelayParams) WithTimeout(timeout time.Duration) *FindConfigInterDcTCPNodelayParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config inter dc tcp nodelay params -func (o *FindConfigInterDcTCPNodelayParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config inter dc tcp nodelay params -func (o *FindConfigInterDcTCPNodelayParams) WithContext(ctx context.Context) *FindConfigInterDcTCPNodelayParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config inter dc tcp nodelay params -func (o *FindConfigInterDcTCPNodelayParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config inter dc tcp nodelay params -func (o *FindConfigInterDcTCPNodelayParams) WithHTTPClient(client *http.Client) *FindConfigInterDcTCPNodelayParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config inter dc tcp nodelay params -func (o *FindConfigInterDcTCPNodelayParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigInterDcTCPNodelayParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_inter_dc_tcp_nodelay_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_inter_dc_tcp_nodelay_responses.go deleted file mode 100644 index c2c17e3b94..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_inter_dc_tcp_nodelay_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigInterDcTCPNodelayReader is a Reader for the FindConfigInterDcTCPNodelay structure. -type FindConfigInterDcTCPNodelayReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigInterDcTCPNodelayReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigInterDcTCPNodelayOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigInterDcTCPNodelayDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigInterDcTCPNodelayOK creates a FindConfigInterDcTCPNodelayOK with default headers values -func NewFindConfigInterDcTCPNodelayOK() *FindConfigInterDcTCPNodelayOK { - return &FindConfigInterDcTCPNodelayOK{} -} - -/* -FindConfigInterDcTCPNodelayOK handles this case with default header values. - -Config value -*/ -type FindConfigInterDcTCPNodelayOK struct { - Payload bool -} - -func (o *FindConfigInterDcTCPNodelayOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigInterDcTCPNodelayOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigInterDcTCPNodelayDefault creates a FindConfigInterDcTCPNodelayDefault with default headers values -func NewFindConfigInterDcTCPNodelayDefault(code int) *FindConfigInterDcTCPNodelayDefault { - return &FindConfigInterDcTCPNodelayDefault{ - _statusCode: code, - } -} - -/* -FindConfigInterDcTCPNodelayDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigInterDcTCPNodelayDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config inter dc tcp nodelay default response -func (o *FindConfigInterDcTCPNodelayDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigInterDcTCPNodelayDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigInterDcTCPNodelayDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigInterDcTCPNodelayDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_authenticator_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_authenticator_parameters.go deleted file mode 100644 index 28ced9e7bb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_authenticator_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigInternodeAuthenticatorParams creates a new FindConfigInternodeAuthenticatorParams object -// with the default values initialized. -func NewFindConfigInternodeAuthenticatorParams() *FindConfigInternodeAuthenticatorParams { - - return &FindConfigInternodeAuthenticatorParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigInternodeAuthenticatorParamsWithTimeout creates a new FindConfigInternodeAuthenticatorParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigInternodeAuthenticatorParamsWithTimeout(timeout time.Duration) *FindConfigInternodeAuthenticatorParams { - - return &FindConfigInternodeAuthenticatorParams{ - - timeout: timeout, - } -} - -// NewFindConfigInternodeAuthenticatorParamsWithContext creates a new FindConfigInternodeAuthenticatorParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigInternodeAuthenticatorParamsWithContext(ctx context.Context) *FindConfigInternodeAuthenticatorParams { - - return &FindConfigInternodeAuthenticatorParams{ - - Context: ctx, - } -} - -// NewFindConfigInternodeAuthenticatorParamsWithHTTPClient creates a new FindConfigInternodeAuthenticatorParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigInternodeAuthenticatorParamsWithHTTPClient(client *http.Client) *FindConfigInternodeAuthenticatorParams { - - return &FindConfigInternodeAuthenticatorParams{ - HTTPClient: client, - } -} - -/* -FindConfigInternodeAuthenticatorParams contains all the parameters to send to the API endpoint -for the find config internode authenticator operation typically these are written to a http.Request -*/ -type FindConfigInternodeAuthenticatorParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config internode authenticator params -func (o *FindConfigInternodeAuthenticatorParams) WithTimeout(timeout time.Duration) *FindConfigInternodeAuthenticatorParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config internode authenticator params -func (o *FindConfigInternodeAuthenticatorParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config internode authenticator params -func (o *FindConfigInternodeAuthenticatorParams) WithContext(ctx context.Context) *FindConfigInternodeAuthenticatorParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config internode authenticator params -func (o *FindConfigInternodeAuthenticatorParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config internode authenticator params -func (o *FindConfigInternodeAuthenticatorParams) WithHTTPClient(client *http.Client) *FindConfigInternodeAuthenticatorParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config internode authenticator params -func (o *FindConfigInternodeAuthenticatorParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigInternodeAuthenticatorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_authenticator_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_authenticator_responses.go deleted file mode 100644 index c5ff359f56..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_authenticator_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigInternodeAuthenticatorReader is a Reader for the FindConfigInternodeAuthenticator structure. -type FindConfigInternodeAuthenticatorReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigInternodeAuthenticatorReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigInternodeAuthenticatorOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigInternodeAuthenticatorDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigInternodeAuthenticatorOK creates a FindConfigInternodeAuthenticatorOK with default headers values -func NewFindConfigInternodeAuthenticatorOK() *FindConfigInternodeAuthenticatorOK { - return &FindConfigInternodeAuthenticatorOK{} -} - -/* -FindConfigInternodeAuthenticatorOK handles this case with default header values. - -Config value -*/ -type FindConfigInternodeAuthenticatorOK struct { - Payload string -} - -func (o *FindConfigInternodeAuthenticatorOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigInternodeAuthenticatorOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigInternodeAuthenticatorDefault creates a FindConfigInternodeAuthenticatorDefault with default headers values -func NewFindConfigInternodeAuthenticatorDefault(code int) *FindConfigInternodeAuthenticatorDefault { - return &FindConfigInternodeAuthenticatorDefault{ - _statusCode: code, - } -} - -/* -FindConfigInternodeAuthenticatorDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigInternodeAuthenticatorDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config internode authenticator default response -func (o *FindConfigInternodeAuthenticatorDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigInternodeAuthenticatorDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigInternodeAuthenticatorDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigInternodeAuthenticatorDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_compression_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_compression_parameters.go deleted file mode 100644 index 39e2f75f4c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_compression_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigInternodeCompressionParams creates a new FindConfigInternodeCompressionParams object -// with the default values initialized. -func NewFindConfigInternodeCompressionParams() *FindConfigInternodeCompressionParams { - - return &FindConfigInternodeCompressionParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigInternodeCompressionParamsWithTimeout creates a new FindConfigInternodeCompressionParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigInternodeCompressionParamsWithTimeout(timeout time.Duration) *FindConfigInternodeCompressionParams { - - return &FindConfigInternodeCompressionParams{ - - timeout: timeout, - } -} - -// NewFindConfigInternodeCompressionParamsWithContext creates a new FindConfigInternodeCompressionParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigInternodeCompressionParamsWithContext(ctx context.Context) *FindConfigInternodeCompressionParams { - - return &FindConfigInternodeCompressionParams{ - - Context: ctx, - } -} - -// NewFindConfigInternodeCompressionParamsWithHTTPClient creates a new FindConfigInternodeCompressionParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigInternodeCompressionParamsWithHTTPClient(client *http.Client) *FindConfigInternodeCompressionParams { - - return &FindConfigInternodeCompressionParams{ - HTTPClient: client, - } -} - -/* -FindConfigInternodeCompressionParams contains all the parameters to send to the API endpoint -for the find config internode compression operation typically these are written to a http.Request -*/ -type FindConfigInternodeCompressionParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config internode compression params -func (o *FindConfigInternodeCompressionParams) WithTimeout(timeout time.Duration) *FindConfigInternodeCompressionParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config internode compression params -func (o *FindConfigInternodeCompressionParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config internode compression params -func (o *FindConfigInternodeCompressionParams) WithContext(ctx context.Context) *FindConfigInternodeCompressionParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config internode compression params -func (o *FindConfigInternodeCompressionParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config internode compression params -func (o *FindConfigInternodeCompressionParams) WithHTTPClient(client *http.Client) *FindConfigInternodeCompressionParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config internode compression params -func (o *FindConfigInternodeCompressionParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigInternodeCompressionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_compression_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_compression_responses.go deleted file mode 100644 index 64ec357280..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_compression_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigInternodeCompressionReader is a Reader for the FindConfigInternodeCompression structure. -type FindConfigInternodeCompressionReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigInternodeCompressionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigInternodeCompressionOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigInternodeCompressionDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigInternodeCompressionOK creates a FindConfigInternodeCompressionOK with default headers values -func NewFindConfigInternodeCompressionOK() *FindConfigInternodeCompressionOK { - return &FindConfigInternodeCompressionOK{} -} - -/* -FindConfigInternodeCompressionOK handles this case with default header values. - -Config value -*/ -type FindConfigInternodeCompressionOK struct { - Payload string -} - -func (o *FindConfigInternodeCompressionOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigInternodeCompressionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigInternodeCompressionDefault creates a FindConfigInternodeCompressionDefault with default headers values -func NewFindConfigInternodeCompressionDefault(code int) *FindConfigInternodeCompressionDefault { - return &FindConfigInternodeCompressionDefault{ - _statusCode: code, - } -} - -/* -FindConfigInternodeCompressionDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigInternodeCompressionDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config internode compression default response -func (o *FindConfigInternodeCompressionDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigInternodeCompressionDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigInternodeCompressionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigInternodeCompressionDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_recv_buff_size_in_bytes_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_recv_buff_size_in_bytes_parameters.go deleted file mode 100644 index 34e10cf8d0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_recv_buff_size_in_bytes_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigInternodeRecvBuffSizeInBytesParams creates a new FindConfigInternodeRecvBuffSizeInBytesParams object -// with the default values initialized. -func NewFindConfigInternodeRecvBuffSizeInBytesParams() *FindConfigInternodeRecvBuffSizeInBytesParams { - - return &FindConfigInternodeRecvBuffSizeInBytesParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigInternodeRecvBuffSizeInBytesParamsWithTimeout creates a new FindConfigInternodeRecvBuffSizeInBytesParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigInternodeRecvBuffSizeInBytesParamsWithTimeout(timeout time.Duration) *FindConfigInternodeRecvBuffSizeInBytesParams { - - return &FindConfigInternodeRecvBuffSizeInBytesParams{ - - timeout: timeout, - } -} - -// NewFindConfigInternodeRecvBuffSizeInBytesParamsWithContext creates a new FindConfigInternodeRecvBuffSizeInBytesParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigInternodeRecvBuffSizeInBytesParamsWithContext(ctx context.Context) *FindConfigInternodeRecvBuffSizeInBytesParams { - - return &FindConfigInternodeRecvBuffSizeInBytesParams{ - - Context: ctx, - } -} - -// NewFindConfigInternodeRecvBuffSizeInBytesParamsWithHTTPClient creates a new FindConfigInternodeRecvBuffSizeInBytesParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigInternodeRecvBuffSizeInBytesParamsWithHTTPClient(client *http.Client) *FindConfigInternodeRecvBuffSizeInBytesParams { - - return &FindConfigInternodeRecvBuffSizeInBytesParams{ - HTTPClient: client, - } -} - -/* -FindConfigInternodeRecvBuffSizeInBytesParams contains all the parameters to send to the API endpoint -for the find config internode recv buff size in bytes operation typically these are written to a http.Request -*/ -type FindConfigInternodeRecvBuffSizeInBytesParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config internode recv buff size in bytes params -func (o *FindConfigInternodeRecvBuffSizeInBytesParams) WithTimeout(timeout time.Duration) *FindConfigInternodeRecvBuffSizeInBytesParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config internode recv buff size in bytes params -func (o *FindConfigInternodeRecvBuffSizeInBytesParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config internode recv buff size in bytes params -func (o *FindConfigInternodeRecvBuffSizeInBytesParams) WithContext(ctx context.Context) *FindConfigInternodeRecvBuffSizeInBytesParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config internode recv buff size in bytes params -func (o *FindConfigInternodeRecvBuffSizeInBytesParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config internode recv buff size in bytes params -func (o *FindConfigInternodeRecvBuffSizeInBytesParams) WithHTTPClient(client *http.Client) *FindConfigInternodeRecvBuffSizeInBytesParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config internode recv buff size in bytes params -func (o *FindConfigInternodeRecvBuffSizeInBytesParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigInternodeRecvBuffSizeInBytesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_recv_buff_size_in_bytes_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_recv_buff_size_in_bytes_responses.go deleted file mode 100644 index 4a6627975d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_recv_buff_size_in_bytes_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigInternodeRecvBuffSizeInBytesReader is a Reader for the FindConfigInternodeRecvBuffSizeInBytes structure. -type FindConfigInternodeRecvBuffSizeInBytesReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigInternodeRecvBuffSizeInBytesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigInternodeRecvBuffSizeInBytesOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigInternodeRecvBuffSizeInBytesDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigInternodeRecvBuffSizeInBytesOK creates a FindConfigInternodeRecvBuffSizeInBytesOK with default headers values -func NewFindConfigInternodeRecvBuffSizeInBytesOK() *FindConfigInternodeRecvBuffSizeInBytesOK { - return &FindConfigInternodeRecvBuffSizeInBytesOK{} -} - -/* -FindConfigInternodeRecvBuffSizeInBytesOK handles this case with default header values. - -Config value -*/ -type FindConfigInternodeRecvBuffSizeInBytesOK struct { - Payload int64 -} - -func (o *FindConfigInternodeRecvBuffSizeInBytesOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigInternodeRecvBuffSizeInBytesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigInternodeRecvBuffSizeInBytesDefault creates a FindConfigInternodeRecvBuffSizeInBytesDefault with default headers values -func NewFindConfigInternodeRecvBuffSizeInBytesDefault(code int) *FindConfigInternodeRecvBuffSizeInBytesDefault { - return &FindConfigInternodeRecvBuffSizeInBytesDefault{ - _statusCode: code, - } -} - -/* -FindConfigInternodeRecvBuffSizeInBytesDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigInternodeRecvBuffSizeInBytesDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config internode recv buff size in bytes default response -func (o *FindConfigInternodeRecvBuffSizeInBytesDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigInternodeRecvBuffSizeInBytesDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigInternodeRecvBuffSizeInBytesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigInternodeRecvBuffSizeInBytesDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_send_buff_size_in_bytes_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_send_buff_size_in_bytes_parameters.go deleted file mode 100644 index 37c24aa22c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_send_buff_size_in_bytes_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigInternodeSendBuffSizeInBytesParams creates a new FindConfigInternodeSendBuffSizeInBytesParams object -// with the default values initialized. -func NewFindConfigInternodeSendBuffSizeInBytesParams() *FindConfigInternodeSendBuffSizeInBytesParams { - - return &FindConfigInternodeSendBuffSizeInBytesParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigInternodeSendBuffSizeInBytesParamsWithTimeout creates a new FindConfigInternodeSendBuffSizeInBytesParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigInternodeSendBuffSizeInBytesParamsWithTimeout(timeout time.Duration) *FindConfigInternodeSendBuffSizeInBytesParams { - - return &FindConfigInternodeSendBuffSizeInBytesParams{ - - timeout: timeout, - } -} - -// NewFindConfigInternodeSendBuffSizeInBytesParamsWithContext creates a new FindConfigInternodeSendBuffSizeInBytesParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigInternodeSendBuffSizeInBytesParamsWithContext(ctx context.Context) *FindConfigInternodeSendBuffSizeInBytesParams { - - return &FindConfigInternodeSendBuffSizeInBytesParams{ - - Context: ctx, - } -} - -// NewFindConfigInternodeSendBuffSizeInBytesParamsWithHTTPClient creates a new FindConfigInternodeSendBuffSizeInBytesParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigInternodeSendBuffSizeInBytesParamsWithHTTPClient(client *http.Client) *FindConfigInternodeSendBuffSizeInBytesParams { - - return &FindConfigInternodeSendBuffSizeInBytesParams{ - HTTPClient: client, - } -} - -/* -FindConfigInternodeSendBuffSizeInBytesParams contains all the parameters to send to the API endpoint -for the find config internode send buff size in bytes operation typically these are written to a http.Request -*/ -type FindConfigInternodeSendBuffSizeInBytesParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config internode send buff size in bytes params -func (o *FindConfigInternodeSendBuffSizeInBytesParams) WithTimeout(timeout time.Duration) *FindConfigInternodeSendBuffSizeInBytesParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config internode send buff size in bytes params -func (o *FindConfigInternodeSendBuffSizeInBytesParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config internode send buff size in bytes params -func (o *FindConfigInternodeSendBuffSizeInBytesParams) WithContext(ctx context.Context) *FindConfigInternodeSendBuffSizeInBytesParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config internode send buff size in bytes params -func (o *FindConfigInternodeSendBuffSizeInBytesParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config internode send buff size in bytes params -func (o *FindConfigInternodeSendBuffSizeInBytesParams) WithHTTPClient(client *http.Client) *FindConfigInternodeSendBuffSizeInBytesParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config internode send buff size in bytes params -func (o *FindConfigInternodeSendBuffSizeInBytesParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigInternodeSendBuffSizeInBytesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_send_buff_size_in_bytes_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_send_buff_size_in_bytes_responses.go deleted file mode 100644 index 244f2ac424..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_internode_send_buff_size_in_bytes_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigInternodeSendBuffSizeInBytesReader is a Reader for the FindConfigInternodeSendBuffSizeInBytes structure. -type FindConfigInternodeSendBuffSizeInBytesReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigInternodeSendBuffSizeInBytesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigInternodeSendBuffSizeInBytesOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigInternodeSendBuffSizeInBytesDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigInternodeSendBuffSizeInBytesOK creates a FindConfigInternodeSendBuffSizeInBytesOK with default headers values -func NewFindConfigInternodeSendBuffSizeInBytesOK() *FindConfigInternodeSendBuffSizeInBytesOK { - return &FindConfigInternodeSendBuffSizeInBytesOK{} -} - -/* -FindConfigInternodeSendBuffSizeInBytesOK handles this case with default header values. - -Config value -*/ -type FindConfigInternodeSendBuffSizeInBytesOK struct { - Payload int64 -} - -func (o *FindConfigInternodeSendBuffSizeInBytesOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigInternodeSendBuffSizeInBytesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigInternodeSendBuffSizeInBytesDefault creates a FindConfigInternodeSendBuffSizeInBytesDefault with default headers values -func NewFindConfigInternodeSendBuffSizeInBytesDefault(code int) *FindConfigInternodeSendBuffSizeInBytesDefault { - return &FindConfigInternodeSendBuffSizeInBytesDefault{ - _statusCode: code, - } -} - -/* -FindConfigInternodeSendBuffSizeInBytesDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigInternodeSendBuffSizeInBytesDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config internode send buff size in bytes default response -func (o *FindConfigInternodeSendBuffSizeInBytesDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigInternodeSendBuffSizeInBytesDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigInternodeSendBuffSizeInBytesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigInternodeSendBuffSizeInBytesDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_join_ring_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_join_ring_parameters.go deleted file mode 100644 index 58331904fe..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_join_ring_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigJoinRingParams creates a new FindConfigJoinRingParams object -// with the default values initialized. -func NewFindConfigJoinRingParams() *FindConfigJoinRingParams { - - return &FindConfigJoinRingParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigJoinRingParamsWithTimeout creates a new FindConfigJoinRingParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigJoinRingParamsWithTimeout(timeout time.Duration) *FindConfigJoinRingParams { - - return &FindConfigJoinRingParams{ - - timeout: timeout, - } -} - -// NewFindConfigJoinRingParamsWithContext creates a new FindConfigJoinRingParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigJoinRingParamsWithContext(ctx context.Context) *FindConfigJoinRingParams { - - return &FindConfigJoinRingParams{ - - Context: ctx, - } -} - -// NewFindConfigJoinRingParamsWithHTTPClient creates a new FindConfigJoinRingParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigJoinRingParamsWithHTTPClient(client *http.Client) *FindConfigJoinRingParams { - - return &FindConfigJoinRingParams{ - HTTPClient: client, - } -} - -/* -FindConfigJoinRingParams contains all the parameters to send to the API endpoint -for the find config join ring operation typically these are written to a http.Request -*/ -type FindConfigJoinRingParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config join ring params -func (o *FindConfigJoinRingParams) WithTimeout(timeout time.Duration) *FindConfigJoinRingParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config join ring params -func (o *FindConfigJoinRingParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config join ring params -func (o *FindConfigJoinRingParams) WithContext(ctx context.Context) *FindConfigJoinRingParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config join ring params -func (o *FindConfigJoinRingParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config join ring params -func (o *FindConfigJoinRingParams) WithHTTPClient(client *http.Client) *FindConfigJoinRingParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config join ring params -func (o *FindConfigJoinRingParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigJoinRingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_join_ring_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_join_ring_responses.go deleted file mode 100644 index 77229477d4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_join_ring_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigJoinRingReader is a Reader for the FindConfigJoinRing structure. -type FindConfigJoinRingReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigJoinRingReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigJoinRingOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigJoinRingDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigJoinRingOK creates a FindConfigJoinRingOK with default headers values -func NewFindConfigJoinRingOK() *FindConfigJoinRingOK { - return &FindConfigJoinRingOK{} -} - -/* -FindConfigJoinRingOK handles this case with default header values. - -Config value -*/ -type FindConfigJoinRingOK struct { - Payload bool -} - -func (o *FindConfigJoinRingOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigJoinRingOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigJoinRingDefault creates a FindConfigJoinRingDefault with default headers values -func NewFindConfigJoinRingDefault(code int) *FindConfigJoinRingDefault { - return &FindConfigJoinRingDefault{ - _statusCode: code, - } -} - -/* -FindConfigJoinRingDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigJoinRingDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config join ring default response -func (o *FindConfigJoinRingDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigJoinRingDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigJoinRingDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigJoinRingDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_key_cache_keys_to_save_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_key_cache_keys_to_save_parameters.go deleted file mode 100644 index 33e2b3fa5c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_key_cache_keys_to_save_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigKeyCacheKeysToSaveParams creates a new FindConfigKeyCacheKeysToSaveParams object -// with the default values initialized. -func NewFindConfigKeyCacheKeysToSaveParams() *FindConfigKeyCacheKeysToSaveParams { - - return &FindConfigKeyCacheKeysToSaveParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigKeyCacheKeysToSaveParamsWithTimeout creates a new FindConfigKeyCacheKeysToSaveParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigKeyCacheKeysToSaveParamsWithTimeout(timeout time.Duration) *FindConfigKeyCacheKeysToSaveParams { - - return &FindConfigKeyCacheKeysToSaveParams{ - - timeout: timeout, - } -} - -// NewFindConfigKeyCacheKeysToSaveParamsWithContext creates a new FindConfigKeyCacheKeysToSaveParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigKeyCacheKeysToSaveParamsWithContext(ctx context.Context) *FindConfigKeyCacheKeysToSaveParams { - - return &FindConfigKeyCacheKeysToSaveParams{ - - Context: ctx, - } -} - -// NewFindConfigKeyCacheKeysToSaveParamsWithHTTPClient creates a new FindConfigKeyCacheKeysToSaveParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigKeyCacheKeysToSaveParamsWithHTTPClient(client *http.Client) *FindConfigKeyCacheKeysToSaveParams { - - return &FindConfigKeyCacheKeysToSaveParams{ - HTTPClient: client, - } -} - -/* -FindConfigKeyCacheKeysToSaveParams contains all the parameters to send to the API endpoint -for the find config key cache keys to save operation typically these are written to a http.Request -*/ -type FindConfigKeyCacheKeysToSaveParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config key cache keys to save params -func (o *FindConfigKeyCacheKeysToSaveParams) WithTimeout(timeout time.Duration) *FindConfigKeyCacheKeysToSaveParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config key cache keys to save params -func (o *FindConfigKeyCacheKeysToSaveParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config key cache keys to save params -func (o *FindConfigKeyCacheKeysToSaveParams) WithContext(ctx context.Context) *FindConfigKeyCacheKeysToSaveParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config key cache keys to save params -func (o *FindConfigKeyCacheKeysToSaveParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config key cache keys to save params -func (o *FindConfigKeyCacheKeysToSaveParams) WithHTTPClient(client *http.Client) *FindConfigKeyCacheKeysToSaveParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config key cache keys to save params -func (o *FindConfigKeyCacheKeysToSaveParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigKeyCacheKeysToSaveParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_key_cache_keys_to_save_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_key_cache_keys_to_save_responses.go deleted file mode 100644 index 0b9bc47a3b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_key_cache_keys_to_save_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigKeyCacheKeysToSaveReader is a Reader for the FindConfigKeyCacheKeysToSave structure. -type FindConfigKeyCacheKeysToSaveReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigKeyCacheKeysToSaveReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigKeyCacheKeysToSaveOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigKeyCacheKeysToSaveDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigKeyCacheKeysToSaveOK creates a FindConfigKeyCacheKeysToSaveOK with default headers values -func NewFindConfigKeyCacheKeysToSaveOK() *FindConfigKeyCacheKeysToSaveOK { - return &FindConfigKeyCacheKeysToSaveOK{} -} - -/* -FindConfigKeyCacheKeysToSaveOK handles this case with default header values. - -Config value -*/ -type FindConfigKeyCacheKeysToSaveOK struct { - Payload int64 -} - -func (o *FindConfigKeyCacheKeysToSaveOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigKeyCacheKeysToSaveOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigKeyCacheKeysToSaveDefault creates a FindConfigKeyCacheKeysToSaveDefault with default headers values -func NewFindConfigKeyCacheKeysToSaveDefault(code int) *FindConfigKeyCacheKeysToSaveDefault { - return &FindConfigKeyCacheKeysToSaveDefault{ - _statusCode: code, - } -} - -/* -FindConfigKeyCacheKeysToSaveDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigKeyCacheKeysToSaveDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config key cache keys to save default response -func (o *FindConfigKeyCacheKeysToSaveDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigKeyCacheKeysToSaveDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigKeyCacheKeysToSaveDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigKeyCacheKeysToSaveDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_key_cache_save_period_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_key_cache_save_period_parameters.go deleted file mode 100644 index 08fe254036..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_key_cache_save_period_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigKeyCacheSavePeriodParams creates a new FindConfigKeyCacheSavePeriodParams object -// with the default values initialized. -func NewFindConfigKeyCacheSavePeriodParams() *FindConfigKeyCacheSavePeriodParams { - - return &FindConfigKeyCacheSavePeriodParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigKeyCacheSavePeriodParamsWithTimeout creates a new FindConfigKeyCacheSavePeriodParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigKeyCacheSavePeriodParamsWithTimeout(timeout time.Duration) *FindConfigKeyCacheSavePeriodParams { - - return &FindConfigKeyCacheSavePeriodParams{ - - timeout: timeout, - } -} - -// NewFindConfigKeyCacheSavePeriodParamsWithContext creates a new FindConfigKeyCacheSavePeriodParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigKeyCacheSavePeriodParamsWithContext(ctx context.Context) *FindConfigKeyCacheSavePeriodParams { - - return &FindConfigKeyCacheSavePeriodParams{ - - Context: ctx, - } -} - -// NewFindConfigKeyCacheSavePeriodParamsWithHTTPClient creates a new FindConfigKeyCacheSavePeriodParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigKeyCacheSavePeriodParamsWithHTTPClient(client *http.Client) *FindConfigKeyCacheSavePeriodParams { - - return &FindConfigKeyCacheSavePeriodParams{ - HTTPClient: client, - } -} - -/* -FindConfigKeyCacheSavePeriodParams contains all the parameters to send to the API endpoint -for the find config key cache save period operation typically these are written to a http.Request -*/ -type FindConfigKeyCacheSavePeriodParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config key cache save period params -func (o *FindConfigKeyCacheSavePeriodParams) WithTimeout(timeout time.Duration) *FindConfigKeyCacheSavePeriodParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config key cache save period params -func (o *FindConfigKeyCacheSavePeriodParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config key cache save period params -func (o *FindConfigKeyCacheSavePeriodParams) WithContext(ctx context.Context) *FindConfigKeyCacheSavePeriodParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config key cache save period params -func (o *FindConfigKeyCacheSavePeriodParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config key cache save period params -func (o *FindConfigKeyCacheSavePeriodParams) WithHTTPClient(client *http.Client) *FindConfigKeyCacheSavePeriodParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config key cache save period params -func (o *FindConfigKeyCacheSavePeriodParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigKeyCacheSavePeriodParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_key_cache_save_period_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_key_cache_save_period_responses.go deleted file mode 100644 index d77f634756..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_key_cache_save_period_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigKeyCacheSavePeriodReader is a Reader for the FindConfigKeyCacheSavePeriod structure. -type FindConfigKeyCacheSavePeriodReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigKeyCacheSavePeriodReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigKeyCacheSavePeriodOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigKeyCacheSavePeriodDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigKeyCacheSavePeriodOK creates a FindConfigKeyCacheSavePeriodOK with default headers values -func NewFindConfigKeyCacheSavePeriodOK() *FindConfigKeyCacheSavePeriodOK { - return &FindConfigKeyCacheSavePeriodOK{} -} - -/* -FindConfigKeyCacheSavePeriodOK handles this case with default header values. - -Config value -*/ -type FindConfigKeyCacheSavePeriodOK struct { - Payload int64 -} - -func (o *FindConfigKeyCacheSavePeriodOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigKeyCacheSavePeriodOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigKeyCacheSavePeriodDefault creates a FindConfigKeyCacheSavePeriodDefault with default headers values -func NewFindConfigKeyCacheSavePeriodDefault(code int) *FindConfigKeyCacheSavePeriodDefault { - return &FindConfigKeyCacheSavePeriodDefault{ - _statusCode: code, - } -} - -/* -FindConfigKeyCacheSavePeriodDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigKeyCacheSavePeriodDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config key cache save period default response -func (o *FindConfigKeyCacheSavePeriodDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigKeyCacheSavePeriodDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigKeyCacheSavePeriodDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigKeyCacheSavePeriodDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_key_cache_size_in_mb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_key_cache_size_in_mb_parameters.go deleted file mode 100644 index 74c3d0adda..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_key_cache_size_in_mb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigKeyCacheSizeInMbParams creates a new FindConfigKeyCacheSizeInMbParams object -// with the default values initialized. -func NewFindConfigKeyCacheSizeInMbParams() *FindConfigKeyCacheSizeInMbParams { - - return &FindConfigKeyCacheSizeInMbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigKeyCacheSizeInMbParamsWithTimeout creates a new FindConfigKeyCacheSizeInMbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigKeyCacheSizeInMbParamsWithTimeout(timeout time.Duration) *FindConfigKeyCacheSizeInMbParams { - - return &FindConfigKeyCacheSizeInMbParams{ - - timeout: timeout, - } -} - -// NewFindConfigKeyCacheSizeInMbParamsWithContext creates a new FindConfigKeyCacheSizeInMbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigKeyCacheSizeInMbParamsWithContext(ctx context.Context) *FindConfigKeyCacheSizeInMbParams { - - return &FindConfigKeyCacheSizeInMbParams{ - - Context: ctx, - } -} - -// NewFindConfigKeyCacheSizeInMbParamsWithHTTPClient creates a new FindConfigKeyCacheSizeInMbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigKeyCacheSizeInMbParamsWithHTTPClient(client *http.Client) *FindConfigKeyCacheSizeInMbParams { - - return &FindConfigKeyCacheSizeInMbParams{ - HTTPClient: client, - } -} - -/* -FindConfigKeyCacheSizeInMbParams contains all the parameters to send to the API endpoint -for the find config key cache size in mb operation typically these are written to a http.Request -*/ -type FindConfigKeyCacheSizeInMbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config key cache size in mb params -func (o *FindConfigKeyCacheSizeInMbParams) WithTimeout(timeout time.Duration) *FindConfigKeyCacheSizeInMbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config key cache size in mb params -func (o *FindConfigKeyCacheSizeInMbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config key cache size in mb params -func (o *FindConfigKeyCacheSizeInMbParams) WithContext(ctx context.Context) *FindConfigKeyCacheSizeInMbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config key cache size in mb params -func (o *FindConfigKeyCacheSizeInMbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config key cache size in mb params -func (o *FindConfigKeyCacheSizeInMbParams) WithHTTPClient(client *http.Client) *FindConfigKeyCacheSizeInMbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config key cache size in mb params -func (o *FindConfigKeyCacheSizeInMbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigKeyCacheSizeInMbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_key_cache_size_in_mb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_key_cache_size_in_mb_responses.go deleted file mode 100644 index a6df456e3e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_key_cache_size_in_mb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigKeyCacheSizeInMbReader is a Reader for the FindConfigKeyCacheSizeInMb structure. -type FindConfigKeyCacheSizeInMbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigKeyCacheSizeInMbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigKeyCacheSizeInMbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigKeyCacheSizeInMbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigKeyCacheSizeInMbOK creates a FindConfigKeyCacheSizeInMbOK with default headers values -func NewFindConfigKeyCacheSizeInMbOK() *FindConfigKeyCacheSizeInMbOK { - return &FindConfigKeyCacheSizeInMbOK{} -} - -/* -FindConfigKeyCacheSizeInMbOK handles this case with default header values. - -Config value -*/ -type FindConfigKeyCacheSizeInMbOK struct { - Payload int64 -} - -func (o *FindConfigKeyCacheSizeInMbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigKeyCacheSizeInMbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigKeyCacheSizeInMbDefault creates a FindConfigKeyCacheSizeInMbDefault with default headers values -func NewFindConfigKeyCacheSizeInMbDefault(code int) *FindConfigKeyCacheSizeInMbDefault { - return &FindConfigKeyCacheSizeInMbDefault{ - _statusCode: code, - } -} - -/* -FindConfigKeyCacheSizeInMbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigKeyCacheSizeInMbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config key cache size in mb default response -func (o *FindConfigKeyCacheSizeInMbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigKeyCacheSizeInMbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigKeyCacheSizeInMbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigKeyCacheSizeInMbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_large_memory_allocation_warning_threshold_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_large_memory_allocation_warning_threshold_parameters.go deleted file mode 100644 index c79fc408d8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_large_memory_allocation_warning_threshold_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigLargeMemoryAllocationWarningThresholdParams creates a new FindConfigLargeMemoryAllocationWarningThresholdParams object -// with the default values initialized. -func NewFindConfigLargeMemoryAllocationWarningThresholdParams() *FindConfigLargeMemoryAllocationWarningThresholdParams { - - return &FindConfigLargeMemoryAllocationWarningThresholdParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigLargeMemoryAllocationWarningThresholdParamsWithTimeout creates a new FindConfigLargeMemoryAllocationWarningThresholdParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigLargeMemoryAllocationWarningThresholdParamsWithTimeout(timeout time.Duration) *FindConfigLargeMemoryAllocationWarningThresholdParams { - - return &FindConfigLargeMemoryAllocationWarningThresholdParams{ - - timeout: timeout, - } -} - -// NewFindConfigLargeMemoryAllocationWarningThresholdParamsWithContext creates a new FindConfigLargeMemoryAllocationWarningThresholdParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigLargeMemoryAllocationWarningThresholdParamsWithContext(ctx context.Context) *FindConfigLargeMemoryAllocationWarningThresholdParams { - - return &FindConfigLargeMemoryAllocationWarningThresholdParams{ - - Context: ctx, - } -} - -// NewFindConfigLargeMemoryAllocationWarningThresholdParamsWithHTTPClient creates a new FindConfigLargeMemoryAllocationWarningThresholdParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigLargeMemoryAllocationWarningThresholdParamsWithHTTPClient(client *http.Client) *FindConfigLargeMemoryAllocationWarningThresholdParams { - - return &FindConfigLargeMemoryAllocationWarningThresholdParams{ - HTTPClient: client, - } -} - -/* -FindConfigLargeMemoryAllocationWarningThresholdParams contains all the parameters to send to the API endpoint -for the find config large memory allocation warning threshold operation typically these are written to a http.Request -*/ -type FindConfigLargeMemoryAllocationWarningThresholdParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config large memory allocation warning threshold params -func (o *FindConfigLargeMemoryAllocationWarningThresholdParams) WithTimeout(timeout time.Duration) *FindConfigLargeMemoryAllocationWarningThresholdParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config large memory allocation warning threshold params -func (o *FindConfigLargeMemoryAllocationWarningThresholdParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config large memory allocation warning threshold params -func (o *FindConfigLargeMemoryAllocationWarningThresholdParams) WithContext(ctx context.Context) *FindConfigLargeMemoryAllocationWarningThresholdParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config large memory allocation warning threshold params -func (o *FindConfigLargeMemoryAllocationWarningThresholdParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config large memory allocation warning threshold params -func (o *FindConfigLargeMemoryAllocationWarningThresholdParams) WithHTTPClient(client *http.Client) *FindConfigLargeMemoryAllocationWarningThresholdParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config large memory allocation warning threshold params -func (o *FindConfigLargeMemoryAllocationWarningThresholdParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigLargeMemoryAllocationWarningThresholdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_large_memory_allocation_warning_threshold_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_large_memory_allocation_warning_threshold_responses.go deleted file mode 100644 index 85be34f8da..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_large_memory_allocation_warning_threshold_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigLargeMemoryAllocationWarningThresholdReader is a Reader for the FindConfigLargeMemoryAllocationWarningThreshold structure. -type FindConfigLargeMemoryAllocationWarningThresholdReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigLargeMemoryAllocationWarningThresholdReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigLargeMemoryAllocationWarningThresholdOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigLargeMemoryAllocationWarningThresholdDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigLargeMemoryAllocationWarningThresholdOK creates a FindConfigLargeMemoryAllocationWarningThresholdOK with default headers values -func NewFindConfigLargeMemoryAllocationWarningThresholdOK() *FindConfigLargeMemoryAllocationWarningThresholdOK { - return &FindConfigLargeMemoryAllocationWarningThresholdOK{} -} - -/* -FindConfigLargeMemoryAllocationWarningThresholdOK handles this case with default header values. - -Config value -*/ -type FindConfigLargeMemoryAllocationWarningThresholdOK struct { - Payload int64 -} - -func (o *FindConfigLargeMemoryAllocationWarningThresholdOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigLargeMemoryAllocationWarningThresholdOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigLargeMemoryAllocationWarningThresholdDefault creates a FindConfigLargeMemoryAllocationWarningThresholdDefault with default headers values -func NewFindConfigLargeMemoryAllocationWarningThresholdDefault(code int) *FindConfigLargeMemoryAllocationWarningThresholdDefault { - return &FindConfigLargeMemoryAllocationWarningThresholdDefault{ - _statusCode: code, - } -} - -/* -FindConfigLargeMemoryAllocationWarningThresholdDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigLargeMemoryAllocationWarningThresholdDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config large memory allocation warning threshold default response -func (o *FindConfigLargeMemoryAllocationWarningThresholdDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigLargeMemoryAllocationWarningThresholdDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigLargeMemoryAllocationWarningThresholdDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigLargeMemoryAllocationWarningThresholdDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_listen_address_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_listen_address_parameters.go deleted file mode 100644 index a9b170e64e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_listen_address_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigListenAddressParams creates a new FindConfigListenAddressParams object -// with the default values initialized. -func NewFindConfigListenAddressParams() *FindConfigListenAddressParams { - - return &FindConfigListenAddressParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigListenAddressParamsWithTimeout creates a new FindConfigListenAddressParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigListenAddressParamsWithTimeout(timeout time.Duration) *FindConfigListenAddressParams { - - return &FindConfigListenAddressParams{ - - timeout: timeout, - } -} - -// NewFindConfigListenAddressParamsWithContext creates a new FindConfigListenAddressParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigListenAddressParamsWithContext(ctx context.Context) *FindConfigListenAddressParams { - - return &FindConfigListenAddressParams{ - - Context: ctx, - } -} - -// NewFindConfigListenAddressParamsWithHTTPClient creates a new FindConfigListenAddressParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigListenAddressParamsWithHTTPClient(client *http.Client) *FindConfigListenAddressParams { - - return &FindConfigListenAddressParams{ - HTTPClient: client, - } -} - -/* -FindConfigListenAddressParams contains all the parameters to send to the API endpoint -for the find config listen address operation typically these are written to a http.Request -*/ -type FindConfigListenAddressParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config listen address params -func (o *FindConfigListenAddressParams) WithTimeout(timeout time.Duration) *FindConfigListenAddressParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config listen address params -func (o *FindConfigListenAddressParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config listen address params -func (o *FindConfigListenAddressParams) WithContext(ctx context.Context) *FindConfigListenAddressParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config listen address params -func (o *FindConfigListenAddressParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config listen address params -func (o *FindConfigListenAddressParams) WithHTTPClient(client *http.Client) *FindConfigListenAddressParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config listen address params -func (o *FindConfigListenAddressParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigListenAddressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_listen_address_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_listen_address_responses.go deleted file mode 100644 index 419fa65338..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_listen_address_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigListenAddressReader is a Reader for the FindConfigListenAddress structure. -type FindConfigListenAddressReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigListenAddressReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigListenAddressOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigListenAddressDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigListenAddressOK creates a FindConfigListenAddressOK with default headers values -func NewFindConfigListenAddressOK() *FindConfigListenAddressOK { - return &FindConfigListenAddressOK{} -} - -/* -FindConfigListenAddressOK handles this case with default header values. - -Config value -*/ -type FindConfigListenAddressOK struct { - Payload string -} - -func (o *FindConfigListenAddressOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigListenAddressOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigListenAddressDefault creates a FindConfigListenAddressDefault with default headers values -func NewFindConfigListenAddressDefault(code int) *FindConfigListenAddressDefault { - return &FindConfigListenAddressDefault{ - _statusCode: code, - } -} - -/* -FindConfigListenAddressDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigListenAddressDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config listen address default response -func (o *FindConfigListenAddressDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigListenAddressDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigListenAddressDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigListenAddressDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_listen_interface_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_listen_interface_parameters.go deleted file mode 100644 index da55e93176..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_listen_interface_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigListenInterfaceParams creates a new FindConfigListenInterfaceParams object -// with the default values initialized. -func NewFindConfigListenInterfaceParams() *FindConfigListenInterfaceParams { - - return &FindConfigListenInterfaceParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigListenInterfaceParamsWithTimeout creates a new FindConfigListenInterfaceParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigListenInterfaceParamsWithTimeout(timeout time.Duration) *FindConfigListenInterfaceParams { - - return &FindConfigListenInterfaceParams{ - - timeout: timeout, - } -} - -// NewFindConfigListenInterfaceParamsWithContext creates a new FindConfigListenInterfaceParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigListenInterfaceParamsWithContext(ctx context.Context) *FindConfigListenInterfaceParams { - - return &FindConfigListenInterfaceParams{ - - Context: ctx, - } -} - -// NewFindConfigListenInterfaceParamsWithHTTPClient creates a new FindConfigListenInterfaceParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigListenInterfaceParamsWithHTTPClient(client *http.Client) *FindConfigListenInterfaceParams { - - return &FindConfigListenInterfaceParams{ - HTTPClient: client, - } -} - -/* -FindConfigListenInterfaceParams contains all the parameters to send to the API endpoint -for the find config listen interface operation typically these are written to a http.Request -*/ -type FindConfigListenInterfaceParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config listen interface params -func (o *FindConfigListenInterfaceParams) WithTimeout(timeout time.Duration) *FindConfigListenInterfaceParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config listen interface params -func (o *FindConfigListenInterfaceParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config listen interface params -func (o *FindConfigListenInterfaceParams) WithContext(ctx context.Context) *FindConfigListenInterfaceParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config listen interface params -func (o *FindConfigListenInterfaceParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config listen interface params -func (o *FindConfigListenInterfaceParams) WithHTTPClient(client *http.Client) *FindConfigListenInterfaceParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config listen interface params -func (o *FindConfigListenInterfaceParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigListenInterfaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_listen_interface_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_listen_interface_responses.go deleted file mode 100644 index 8ec3983700..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_listen_interface_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigListenInterfaceReader is a Reader for the FindConfigListenInterface structure. -type FindConfigListenInterfaceReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigListenInterfaceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigListenInterfaceOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigListenInterfaceDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigListenInterfaceOK creates a FindConfigListenInterfaceOK with default headers values -func NewFindConfigListenInterfaceOK() *FindConfigListenInterfaceOK { - return &FindConfigListenInterfaceOK{} -} - -/* -FindConfigListenInterfaceOK handles this case with default header values. - -Config value -*/ -type FindConfigListenInterfaceOK struct { - Payload string -} - -func (o *FindConfigListenInterfaceOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigListenInterfaceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigListenInterfaceDefault creates a FindConfigListenInterfaceDefault with default headers values -func NewFindConfigListenInterfaceDefault(code int) *FindConfigListenInterfaceDefault { - return &FindConfigListenInterfaceDefault{ - _statusCode: code, - } -} - -/* -FindConfigListenInterfaceDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigListenInterfaceDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config listen interface default response -func (o *FindConfigListenInterfaceDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigListenInterfaceDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigListenInterfaceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigListenInterfaceDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_listen_on_broadcast_address_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_listen_on_broadcast_address_parameters.go deleted file mode 100644 index 3d7314983f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_listen_on_broadcast_address_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigListenOnBroadcastAddressParams creates a new FindConfigListenOnBroadcastAddressParams object -// with the default values initialized. -func NewFindConfigListenOnBroadcastAddressParams() *FindConfigListenOnBroadcastAddressParams { - - return &FindConfigListenOnBroadcastAddressParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigListenOnBroadcastAddressParamsWithTimeout creates a new FindConfigListenOnBroadcastAddressParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigListenOnBroadcastAddressParamsWithTimeout(timeout time.Duration) *FindConfigListenOnBroadcastAddressParams { - - return &FindConfigListenOnBroadcastAddressParams{ - - timeout: timeout, - } -} - -// NewFindConfigListenOnBroadcastAddressParamsWithContext creates a new FindConfigListenOnBroadcastAddressParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigListenOnBroadcastAddressParamsWithContext(ctx context.Context) *FindConfigListenOnBroadcastAddressParams { - - return &FindConfigListenOnBroadcastAddressParams{ - - Context: ctx, - } -} - -// NewFindConfigListenOnBroadcastAddressParamsWithHTTPClient creates a new FindConfigListenOnBroadcastAddressParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigListenOnBroadcastAddressParamsWithHTTPClient(client *http.Client) *FindConfigListenOnBroadcastAddressParams { - - return &FindConfigListenOnBroadcastAddressParams{ - HTTPClient: client, - } -} - -/* -FindConfigListenOnBroadcastAddressParams contains all the parameters to send to the API endpoint -for the find config listen on broadcast address operation typically these are written to a http.Request -*/ -type FindConfigListenOnBroadcastAddressParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config listen on broadcast address params -func (o *FindConfigListenOnBroadcastAddressParams) WithTimeout(timeout time.Duration) *FindConfigListenOnBroadcastAddressParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config listen on broadcast address params -func (o *FindConfigListenOnBroadcastAddressParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config listen on broadcast address params -func (o *FindConfigListenOnBroadcastAddressParams) WithContext(ctx context.Context) *FindConfigListenOnBroadcastAddressParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config listen on broadcast address params -func (o *FindConfigListenOnBroadcastAddressParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config listen on broadcast address params -func (o *FindConfigListenOnBroadcastAddressParams) WithHTTPClient(client *http.Client) *FindConfigListenOnBroadcastAddressParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config listen on broadcast address params -func (o *FindConfigListenOnBroadcastAddressParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigListenOnBroadcastAddressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_listen_on_broadcast_address_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_listen_on_broadcast_address_responses.go deleted file mode 100644 index b0bef0c03e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_listen_on_broadcast_address_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigListenOnBroadcastAddressReader is a Reader for the FindConfigListenOnBroadcastAddress structure. -type FindConfigListenOnBroadcastAddressReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigListenOnBroadcastAddressReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigListenOnBroadcastAddressOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigListenOnBroadcastAddressDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigListenOnBroadcastAddressOK creates a FindConfigListenOnBroadcastAddressOK with default headers values -func NewFindConfigListenOnBroadcastAddressOK() *FindConfigListenOnBroadcastAddressOK { - return &FindConfigListenOnBroadcastAddressOK{} -} - -/* -FindConfigListenOnBroadcastAddressOK handles this case with default header values. - -Config value -*/ -type FindConfigListenOnBroadcastAddressOK struct { - Payload bool -} - -func (o *FindConfigListenOnBroadcastAddressOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigListenOnBroadcastAddressOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigListenOnBroadcastAddressDefault creates a FindConfigListenOnBroadcastAddressDefault with default headers values -func NewFindConfigListenOnBroadcastAddressDefault(code int) *FindConfigListenOnBroadcastAddressDefault { - return &FindConfigListenOnBroadcastAddressDefault{ - _statusCode: code, - } -} - -/* -FindConfigListenOnBroadcastAddressDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigListenOnBroadcastAddressDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config listen on broadcast address default response -func (o *FindConfigListenOnBroadcastAddressDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigListenOnBroadcastAddressDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigListenOnBroadcastAddressDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigListenOnBroadcastAddressDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_load_balance_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_load_balance_parameters.go deleted file mode 100644 index a40e870a9d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_load_balance_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigLoadBalanceParams creates a new FindConfigLoadBalanceParams object -// with the default values initialized. -func NewFindConfigLoadBalanceParams() *FindConfigLoadBalanceParams { - - return &FindConfigLoadBalanceParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigLoadBalanceParamsWithTimeout creates a new FindConfigLoadBalanceParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigLoadBalanceParamsWithTimeout(timeout time.Duration) *FindConfigLoadBalanceParams { - - return &FindConfigLoadBalanceParams{ - - timeout: timeout, - } -} - -// NewFindConfigLoadBalanceParamsWithContext creates a new FindConfigLoadBalanceParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigLoadBalanceParamsWithContext(ctx context.Context) *FindConfigLoadBalanceParams { - - return &FindConfigLoadBalanceParams{ - - Context: ctx, - } -} - -// NewFindConfigLoadBalanceParamsWithHTTPClient creates a new FindConfigLoadBalanceParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigLoadBalanceParamsWithHTTPClient(client *http.Client) *FindConfigLoadBalanceParams { - - return &FindConfigLoadBalanceParams{ - HTTPClient: client, - } -} - -/* -FindConfigLoadBalanceParams contains all the parameters to send to the API endpoint -for the find config load balance operation typically these are written to a http.Request -*/ -type FindConfigLoadBalanceParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config load balance params -func (o *FindConfigLoadBalanceParams) WithTimeout(timeout time.Duration) *FindConfigLoadBalanceParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config load balance params -func (o *FindConfigLoadBalanceParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config load balance params -func (o *FindConfigLoadBalanceParams) WithContext(ctx context.Context) *FindConfigLoadBalanceParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config load balance params -func (o *FindConfigLoadBalanceParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config load balance params -func (o *FindConfigLoadBalanceParams) WithHTTPClient(client *http.Client) *FindConfigLoadBalanceParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config load balance params -func (o *FindConfigLoadBalanceParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigLoadBalanceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_load_balance_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_load_balance_responses.go deleted file mode 100644 index b681adaa27..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_load_balance_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigLoadBalanceReader is a Reader for the FindConfigLoadBalance structure. -type FindConfigLoadBalanceReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigLoadBalanceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigLoadBalanceOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigLoadBalanceDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigLoadBalanceOK creates a FindConfigLoadBalanceOK with default headers values -func NewFindConfigLoadBalanceOK() *FindConfigLoadBalanceOK { - return &FindConfigLoadBalanceOK{} -} - -/* -FindConfigLoadBalanceOK handles this case with default header values. - -Config value -*/ -type FindConfigLoadBalanceOK struct { - Payload string -} - -func (o *FindConfigLoadBalanceOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigLoadBalanceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigLoadBalanceDefault creates a FindConfigLoadBalanceDefault with default headers values -func NewFindConfigLoadBalanceDefault(code int) *FindConfigLoadBalanceDefault { - return &FindConfigLoadBalanceDefault{ - _statusCode: code, - } -} - -/* -FindConfigLoadBalanceDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigLoadBalanceDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config load balance default response -func (o *FindConfigLoadBalanceDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigLoadBalanceDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigLoadBalanceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigLoadBalanceDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_load_ring_state_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_load_ring_state_parameters.go deleted file mode 100644 index 290c158cd6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_load_ring_state_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigLoadRingStateParams creates a new FindConfigLoadRingStateParams object -// with the default values initialized. -func NewFindConfigLoadRingStateParams() *FindConfigLoadRingStateParams { - - return &FindConfigLoadRingStateParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigLoadRingStateParamsWithTimeout creates a new FindConfigLoadRingStateParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigLoadRingStateParamsWithTimeout(timeout time.Duration) *FindConfigLoadRingStateParams { - - return &FindConfigLoadRingStateParams{ - - timeout: timeout, - } -} - -// NewFindConfigLoadRingStateParamsWithContext creates a new FindConfigLoadRingStateParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigLoadRingStateParamsWithContext(ctx context.Context) *FindConfigLoadRingStateParams { - - return &FindConfigLoadRingStateParams{ - - Context: ctx, - } -} - -// NewFindConfigLoadRingStateParamsWithHTTPClient creates a new FindConfigLoadRingStateParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigLoadRingStateParamsWithHTTPClient(client *http.Client) *FindConfigLoadRingStateParams { - - return &FindConfigLoadRingStateParams{ - HTTPClient: client, - } -} - -/* -FindConfigLoadRingStateParams contains all the parameters to send to the API endpoint -for the find config load ring state operation typically these are written to a http.Request -*/ -type FindConfigLoadRingStateParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config load ring state params -func (o *FindConfigLoadRingStateParams) WithTimeout(timeout time.Duration) *FindConfigLoadRingStateParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config load ring state params -func (o *FindConfigLoadRingStateParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config load ring state params -func (o *FindConfigLoadRingStateParams) WithContext(ctx context.Context) *FindConfigLoadRingStateParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config load ring state params -func (o *FindConfigLoadRingStateParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config load ring state params -func (o *FindConfigLoadRingStateParams) WithHTTPClient(client *http.Client) *FindConfigLoadRingStateParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config load ring state params -func (o *FindConfigLoadRingStateParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigLoadRingStateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_load_ring_state_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_load_ring_state_responses.go deleted file mode 100644 index 3e6352dc01..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_load_ring_state_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigLoadRingStateReader is a Reader for the FindConfigLoadRingState structure. -type FindConfigLoadRingStateReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigLoadRingStateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigLoadRingStateOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigLoadRingStateDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigLoadRingStateOK creates a FindConfigLoadRingStateOK with default headers values -func NewFindConfigLoadRingStateOK() *FindConfigLoadRingStateOK { - return &FindConfigLoadRingStateOK{} -} - -/* -FindConfigLoadRingStateOK handles this case with default header values. - -Config value -*/ -type FindConfigLoadRingStateOK struct { - Payload bool -} - -func (o *FindConfigLoadRingStateOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigLoadRingStateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigLoadRingStateDefault creates a FindConfigLoadRingStateDefault with default headers values -func NewFindConfigLoadRingStateDefault(code int) *FindConfigLoadRingStateDefault { - return &FindConfigLoadRingStateDefault{ - _statusCode: code, - } -} - -/* -FindConfigLoadRingStateDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigLoadRingStateDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config load ring state default response -func (o *FindConfigLoadRingStateDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigLoadRingStateDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigLoadRingStateDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigLoadRingStateDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_log_to_stdout_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_log_to_stdout_parameters.go deleted file mode 100644 index 32180b8a29..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_log_to_stdout_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigLogToStdoutParams creates a new FindConfigLogToStdoutParams object -// with the default values initialized. -func NewFindConfigLogToStdoutParams() *FindConfigLogToStdoutParams { - - return &FindConfigLogToStdoutParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigLogToStdoutParamsWithTimeout creates a new FindConfigLogToStdoutParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigLogToStdoutParamsWithTimeout(timeout time.Duration) *FindConfigLogToStdoutParams { - - return &FindConfigLogToStdoutParams{ - - timeout: timeout, - } -} - -// NewFindConfigLogToStdoutParamsWithContext creates a new FindConfigLogToStdoutParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigLogToStdoutParamsWithContext(ctx context.Context) *FindConfigLogToStdoutParams { - - return &FindConfigLogToStdoutParams{ - - Context: ctx, - } -} - -// NewFindConfigLogToStdoutParamsWithHTTPClient creates a new FindConfigLogToStdoutParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigLogToStdoutParamsWithHTTPClient(client *http.Client) *FindConfigLogToStdoutParams { - - return &FindConfigLogToStdoutParams{ - HTTPClient: client, - } -} - -/* -FindConfigLogToStdoutParams contains all the parameters to send to the API endpoint -for the find config log to stdout operation typically these are written to a http.Request -*/ -type FindConfigLogToStdoutParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config log to stdout params -func (o *FindConfigLogToStdoutParams) WithTimeout(timeout time.Duration) *FindConfigLogToStdoutParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config log to stdout params -func (o *FindConfigLogToStdoutParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config log to stdout params -func (o *FindConfigLogToStdoutParams) WithContext(ctx context.Context) *FindConfigLogToStdoutParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config log to stdout params -func (o *FindConfigLogToStdoutParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config log to stdout params -func (o *FindConfigLogToStdoutParams) WithHTTPClient(client *http.Client) *FindConfigLogToStdoutParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config log to stdout params -func (o *FindConfigLogToStdoutParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigLogToStdoutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_log_to_stdout_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_log_to_stdout_responses.go deleted file mode 100644 index 769d4632fd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_log_to_stdout_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigLogToStdoutReader is a Reader for the FindConfigLogToStdout structure. -type FindConfigLogToStdoutReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigLogToStdoutReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigLogToStdoutOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigLogToStdoutDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigLogToStdoutOK creates a FindConfigLogToStdoutOK with default headers values -func NewFindConfigLogToStdoutOK() *FindConfigLogToStdoutOK { - return &FindConfigLogToStdoutOK{} -} - -/* -FindConfigLogToStdoutOK handles this case with default header values. - -Config value -*/ -type FindConfigLogToStdoutOK struct { - Payload bool -} - -func (o *FindConfigLogToStdoutOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigLogToStdoutOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigLogToStdoutDefault creates a FindConfigLogToStdoutDefault with default headers values -func NewFindConfigLogToStdoutDefault(code int) *FindConfigLogToStdoutDefault { - return &FindConfigLogToStdoutDefault{ - _statusCode: code, - } -} - -/* -FindConfigLogToStdoutDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigLogToStdoutDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config log to stdout default response -func (o *FindConfigLogToStdoutDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigLogToStdoutDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigLogToStdoutDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigLogToStdoutDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_log_to_syslog_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_log_to_syslog_parameters.go deleted file mode 100644 index cd33acbd51..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_log_to_syslog_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigLogToSyslogParams creates a new FindConfigLogToSyslogParams object -// with the default values initialized. -func NewFindConfigLogToSyslogParams() *FindConfigLogToSyslogParams { - - return &FindConfigLogToSyslogParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigLogToSyslogParamsWithTimeout creates a new FindConfigLogToSyslogParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigLogToSyslogParamsWithTimeout(timeout time.Duration) *FindConfigLogToSyslogParams { - - return &FindConfigLogToSyslogParams{ - - timeout: timeout, - } -} - -// NewFindConfigLogToSyslogParamsWithContext creates a new FindConfigLogToSyslogParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigLogToSyslogParamsWithContext(ctx context.Context) *FindConfigLogToSyslogParams { - - return &FindConfigLogToSyslogParams{ - - Context: ctx, - } -} - -// NewFindConfigLogToSyslogParamsWithHTTPClient creates a new FindConfigLogToSyslogParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigLogToSyslogParamsWithHTTPClient(client *http.Client) *FindConfigLogToSyslogParams { - - return &FindConfigLogToSyslogParams{ - HTTPClient: client, - } -} - -/* -FindConfigLogToSyslogParams contains all the parameters to send to the API endpoint -for the find config log to syslog operation typically these are written to a http.Request -*/ -type FindConfigLogToSyslogParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config log to syslog params -func (o *FindConfigLogToSyslogParams) WithTimeout(timeout time.Duration) *FindConfigLogToSyslogParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config log to syslog params -func (o *FindConfigLogToSyslogParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config log to syslog params -func (o *FindConfigLogToSyslogParams) WithContext(ctx context.Context) *FindConfigLogToSyslogParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config log to syslog params -func (o *FindConfigLogToSyslogParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config log to syslog params -func (o *FindConfigLogToSyslogParams) WithHTTPClient(client *http.Client) *FindConfigLogToSyslogParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config log to syslog params -func (o *FindConfigLogToSyslogParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigLogToSyslogParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_log_to_syslog_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_log_to_syslog_responses.go deleted file mode 100644 index 1f30ad1507..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_log_to_syslog_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigLogToSyslogReader is a Reader for the FindConfigLogToSyslog structure. -type FindConfigLogToSyslogReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigLogToSyslogReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigLogToSyslogOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigLogToSyslogDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigLogToSyslogOK creates a FindConfigLogToSyslogOK with default headers values -func NewFindConfigLogToSyslogOK() *FindConfigLogToSyslogOK { - return &FindConfigLogToSyslogOK{} -} - -/* -FindConfigLogToSyslogOK handles this case with default header values. - -Config value -*/ -type FindConfigLogToSyslogOK struct { - Payload bool -} - -func (o *FindConfigLogToSyslogOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigLogToSyslogOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigLogToSyslogDefault creates a FindConfigLogToSyslogDefault with default headers values -func NewFindConfigLogToSyslogDefault(code int) *FindConfigLogToSyslogDefault { - return &FindConfigLogToSyslogDefault{ - _statusCode: code, - } -} - -/* -FindConfigLogToSyslogDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigLogToSyslogDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config log to syslog default response -func (o *FindConfigLogToSyslogDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigLogToSyslogDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigLogToSyslogDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigLogToSyslogDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_logger_log_level_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_logger_log_level_parameters.go deleted file mode 100644 index 4671581e1f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_logger_log_level_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigLoggerLogLevelParams creates a new FindConfigLoggerLogLevelParams object -// with the default values initialized. -func NewFindConfigLoggerLogLevelParams() *FindConfigLoggerLogLevelParams { - - return &FindConfigLoggerLogLevelParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigLoggerLogLevelParamsWithTimeout creates a new FindConfigLoggerLogLevelParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigLoggerLogLevelParamsWithTimeout(timeout time.Duration) *FindConfigLoggerLogLevelParams { - - return &FindConfigLoggerLogLevelParams{ - - timeout: timeout, - } -} - -// NewFindConfigLoggerLogLevelParamsWithContext creates a new FindConfigLoggerLogLevelParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigLoggerLogLevelParamsWithContext(ctx context.Context) *FindConfigLoggerLogLevelParams { - - return &FindConfigLoggerLogLevelParams{ - - Context: ctx, - } -} - -// NewFindConfigLoggerLogLevelParamsWithHTTPClient creates a new FindConfigLoggerLogLevelParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigLoggerLogLevelParamsWithHTTPClient(client *http.Client) *FindConfigLoggerLogLevelParams { - - return &FindConfigLoggerLogLevelParams{ - HTTPClient: client, - } -} - -/* -FindConfigLoggerLogLevelParams contains all the parameters to send to the API endpoint -for the find config logger log level operation typically these are written to a http.Request -*/ -type FindConfigLoggerLogLevelParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config logger log level params -func (o *FindConfigLoggerLogLevelParams) WithTimeout(timeout time.Duration) *FindConfigLoggerLogLevelParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config logger log level params -func (o *FindConfigLoggerLogLevelParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config logger log level params -func (o *FindConfigLoggerLogLevelParams) WithContext(ctx context.Context) *FindConfigLoggerLogLevelParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config logger log level params -func (o *FindConfigLoggerLogLevelParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config logger log level params -func (o *FindConfigLoggerLogLevelParams) WithHTTPClient(client *http.Client) *FindConfigLoggerLogLevelParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config logger log level params -func (o *FindConfigLoggerLogLevelParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigLoggerLogLevelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_logger_log_level_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_logger_log_level_responses.go deleted file mode 100644 index 9fc3c1f0eb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_logger_log_level_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigLoggerLogLevelReader is a Reader for the FindConfigLoggerLogLevel structure. -type FindConfigLoggerLogLevelReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigLoggerLogLevelReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigLoggerLogLevelOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigLoggerLogLevelDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigLoggerLogLevelOK creates a FindConfigLoggerLogLevelOK with default headers values -func NewFindConfigLoggerLogLevelOK() *FindConfigLoggerLogLevelOK { - return &FindConfigLoggerLogLevelOK{} -} - -/* -FindConfigLoggerLogLevelOK handles this case with default header values. - -Config value -*/ -type FindConfigLoggerLogLevelOK struct { - Payload []string -} - -func (o *FindConfigLoggerLogLevelOK) GetPayload() []string { - return o.Payload -} - -func (o *FindConfigLoggerLogLevelOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigLoggerLogLevelDefault creates a FindConfigLoggerLogLevelDefault with default headers values -func NewFindConfigLoggerLogLevelDefault(code int) *FindConfigLoggerLogLevelDefault { - return &FindConfigLoggerLogLevelDefault{ - _statusCode: code, - } -} - -/* -FindConfigLoggerLogLevelDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigLoggerLogLevelDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config logger log level default response -func (o *FindConfigLoggerLogLevelDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigLoggerLogLevelDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigLoggerLogLevelDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigLoggerLogLevelDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_lsa_reclamation_step_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_lsa_reclamation_step_parameters.go deleted file mode 100644 index 2d96d41472..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_lsa_reclamation_step_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigLsaReclamationStepParams creates a new FindConfigLsaReclamationStepParams object -// with the default values initialized. -func NewFindConfigLsaReclamationStepParams() *FindConfigLsaReclamationStepParams { - - return &FindConfigLsaReclamationStepParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigLsaReclamationStepParamsWithTimeout creates a new FindConfigLsaReclamationStepParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigLsaReclamationStepParamsWithTimeout(timeout time.Duration) *FindConfigLsaReclamationStepParams { - - return &FindConfigLsaReclamationStepParams{ - - timeout: timeout, - } -} - -// NewFindConfigLsaReclamationStepParamsWithContext creates a new FindConfigLsaReclamationStepParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigLsaReclamationStepParamsWithContext(ctx context.Context) *FindConfigLsaReclamationStepParams { - - return &FindConfigLsaReclamationStepParams{ - - Context: ctx, - } -} - -// NewFindConfigLsaReclamationStepParamsWithHTTPClient creates a new FindConfigLsaReclamationStepParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigLsaReclamationStepParamsWithHTTPClient(client *http.Client) *FindConfigLsaReclamationStepParams { - - return &FindConfigLsaReclamationStepParams{ - HTTPClient: client, - } -} - -/* -FindConfigLsaReclamationStepParams contains all the parameters to send to the API endpoint -for the find config lsa reclamation step operation typically these are written to a http.Request -*/ -type FindConfigLsaReclamationStepParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config lsa reclamation step params -func (o *FindConfigLsaReclamationStepParams) WithTimeout(timeout time.Duration) *FindConfigLsaReclamationStepParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config lsa reclamation step params -func (o *FindConfigLsaReclamationStepParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config lsa reclamation step params -func (o *FindConfigLsaReclamationStepParams) WithContext(ctx context.Context) *FindConfigLsaReclamationStepParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config lsa reclamation step params -func (o *FindConfigLsaReclamationStepParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config lsa reclamation step params -func (o *FindConfigLsaReclamationStepParams) WithHTTPClient(client *http.Client) *FindConfigLsaReclamationStepParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config lsa reclamation step params -func (o *FindConfigLsaReclamationStepParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigLsaReclamationStepParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_lsa_reclamation_step_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_lsa_reclamation_step_responses.go deleted file mode 100644 index 13b4bd2c07..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_lsa_reclamation_step_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigLsaReclamationStepReader is a Reader for the FindConfigLsaReclamationStep structure. -type FindConfigLsaReclamationStepReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigLsaReclamationStepReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigLsaReclamationStepOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigLsaReclamationStepDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigLsaReclamationStepOK creates a FindConfigLsaReclamationStepOK with default headers values -func NewFindConfigLsaReclamationStepOK() *FindConfigLsaReclamationStepOK { - return &FindConfigLsaReclamationStepOK{} -} - -/* -FindConfigLsaReclamationStepOK handles this case with default header values. - -Config value -*/ -type FindConfigLsaReclamationStepOK struct { - Payload int64 -} - -func (o *FindConfigLsaReclamationStepOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigLsaReclamationStepOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigLsaReclamationStepDefault creates a FindConfigLsaReclamationStepDefault with default headers values -func NewFindConfigLsaReclamationStepDefault(code int) *FindConfigLsaReclamationStepDefault { - return &FindConfigLsaReclamationStepDefault{ - _statusCode: code, - } -} - -/* -FindConfigLsaReclamationStepDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigLsaReclamationStepDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config lsa reclamation step default response -func (o *FindConfigLsaReclamationStepDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigLsaReclamationStepDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigLsaReclamationStepDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigLsaReclamationStepDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_max_hint_window_in_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_max_hint_window_in_ms_parameters.go deleted file mode 100644 index 89d4672060..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_max_hint_window_in_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigMaxHintWindowInMsParams creates a new FindConfigMaxHintWindowInMsParams object -// with the default values initialized. -func NewFindConfigMaxHintWindowInMsParams() *FindConfigMaxHintWindowInMsParams { - - return &FindConfigMaxHintWindowInMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigMaxHintWindowInMsParamsWithTimeout creates a new FindConfigMaxHintWindowInMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigMaxHintWindowInMsParamsWithTimeout(timeout time.Duration) *FindConfigMaxHintWindowInMsParams { - - return &FindConfigMaxHintWindowInMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigMaxHintWindowInMsParamsWithContext creates a new FindConfigMaxHintWindowInMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigMaxHintWindowInMsParamsWithContext(ctx context.Context) *FindConfigMaxHintWindowInMsParams { - - return &FindConfigMaxHintWindowInMsParams{ - - Context: ctx, - } -} - -// NewFindConfigMaxHintWindowInMsParamsWithHTTPClient creates a new FindConfigMaxHintWindowInMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigMaxHintWindowInMsParamsWithHTTPClient(client *http.Client) *FindConfigMaxHintWindowInMsParams { - - return &FindConfigMaxHintWindowInMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigMaxHintWindowInMsParams contains all the parameters to send to the API endpoint -for the find config max hint window in ms operation typically these are written to a http.Request -*/ -type FindConfigMaxHintWindowInMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config max hint window in ms params -func (o *FindConfigMaxHintWindowInMsParams) WithTimeout(timeout time.Duration) *FindConfigMaxHintWindowInMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config max hint window in ms params -func (o *FindConfigMaxHintWindowInMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config max hint window in ms params -func (o *FindConfigMaxHintWindowInMsParams) WithContext(ctx context.Context) *FindConfigMaxHintWindowInMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config max hint window in ms params -func (o *FindConfigMaxHintWindowInMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config max hint window in ms params -func (o *FindConfigMaxHintWindowInMsParams) WithHTTPClient(client *http.Client) *FindConfigMaxHintWindowInMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config max hint window in ms params -func (o *FindConfigMaxHintWindowInMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigMaxHintWindowInMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_max_hint_window_in_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_max_hint_window_in_ms_responses.go deleted file mode 100644 index 4249efd02c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_max_hint_window_in_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigMaxHintWindowInMsReader is a Reader for the FindConfigMaxHintWindowInMs structure. -type FindConfigMaxHintWindowInMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigMaxHintWindowInMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigMaxHintWindowInMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigMaxHintWindowInMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigMaxHintWindowInMsOK creates a FindConfigMaxHintWindowInMsOK with default headers values -func NewFindConfigMaxHintWindowInMsOK() *FindConfigMaxHintWindowInMsOK { - return &FindConfigMaxHintWindowInMsOK{} -} - -/* -FindConfigMaxHintWindowInMsOK handles this case with default header values. - -Config value -*/ -type FindConfigMaxHintWindowInMsOK struct { - Payload int64 -} - -func (o *FindConfigMaxHintWindowInMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigMaxHintWindowInMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigMaxHintWindowInMsDefault creates a FindConfigMaxHintWindowInMsDefault with default headers values -func NewFindConfigMaxHintWindowInMsDefault(code int) *FindConfigMaxHintWindowInMsDefault { - return &FindConfigMaxHintWindowInMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigMaxHintWindowInMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigMaxHintWindowInMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config max hint window in ms default response -func (o *FindConfigMaxHintWindowInMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigMaxHintWindowInMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigMaxHintWindowInMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigMaxHintWindowInMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_max_hints_delivery_threads_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_max_hints_delivery_threads_parameters.go deleted file mode 100644 index 0897f87d5f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_max_hints_delivery_threads_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigMaxHintsDeliveryThreadsParams creates a new FindConfigMaxHintsDeliveryThreadsParams object -// with the default values initialized. -func NewFindConfigMaxHintsDeliveryThreadsParams() *FindConfigMaxHintsDeliveryThreadsParams { - - return &FindConfigMaxHintsDeliveryThreadsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigMaxHintsDeliveryThreadsParamsWithTimeout creates a new FindConfigMaxHintsDeliveryThreadsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigMaxHintsDeliveryThreadsParamsWithTimeout(timeout time.Duration) *FindConfigMaxHintsDeliveryThreadsParams { - - return &FindConfigMaxHintsDeliveryThreadsParams{ - - timeout: timeout, - } -} - -// NewFindConfigMaxHintsDeliveryThreadsParamsWithContext creates a new FindConfigMaxHintsDeliveryThreadsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigMaxHintsDeliveryThreadsParamsWithContext(ctx context.Context) *FindConfigMaxHintsDeliveryThreadsParams { - - return &FindConfigMaxHintsDeliveryThreadsParams{ - - Context: ctx, - } -} - -// NewFindConfigMaxHintsDeliveryThreadsParamsWithHTTPClient creates a new FindConfigMaxHintsDeliveryThreadsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigMaxHintsDeliveryThreadsParamsWithHTTPClient(client *http.Client) *FindConfigMaxHintsDeliveryThreadsParams { - - return &FindConfigMaxHintsDeliveryThreadsParams{ - HTTPClient: client, - } -} - -/* -FindConfigMaxHintsDeliveryThreadsParams contains all the parameters to send to the API endpoint -for the find config max hints delivery threads operation typically these are written to a http.Request -*/ -type FindConfigMaxHintsDeliveryThreadsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config max hints delivery threads params -func (o *FindConfigMaxHintsDeliveryThreadsParams) WithTimeout(timeout time.Duration) *FindConfigMaxHintsDeliveryThreadsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config max hints delivery threads params -func (o *FindConfigMaxHintsDeliveryThreadsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config max hints delivery threads params -func (o *FindConfigMaxHintsDeliveryThreadsParams) WithContext(ctx context.Context) *FindConfigMaxHintsDeliveryThreadsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config max hints delivery threads params -func (o *FindConfigMaxHintsDeliveryThreadsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config max hints delivery threads params -func (o *FindConfigMaxHintsDeliveryThreadsParams) WithHTTPClient(client *http.Client) *FindConfigMaxHintsDeliveryThreadsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config max hints delivery threads params -func (o *FindConfigMaxHintsDeliveryThreadsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigMaxHintsDeliveryThreadsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_max_hints_delivery_threads_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_max_hints_delivery_threads_responses.go deleted file mode 100644 index a5f350f39a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_max_hints_delivery_threads_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigMaxHintsDeliveryThreadsReader is a Reader for the FindConfigMaxHintsDeliveryThreads structure. -type FindConfigMaxHintsDeliveryThreadsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigMaxHintsDeliveryThreadsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigMaxHintsDeliveryThreadsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigMaxHintsDeliveryThreadsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigMaxHintsDeliveryThreadsOK creates a FindConfigMaxHintsDeliveryThreadsOK with default headers values -func NewFindConfigMaxHintsDeliveryThreadsOK() *FindConfigMaxHintsDeliveryThreadsOK { - return &FindConfigMaxHintsDeliveryThreadsOK{} -} - -/* -FindConfigMaxHintsDeliveryThreadsOK handles this case with default header values. - -Config value -*/ -type FindConfigMaxHintsDeliveryThreadsOK struct { - Payload int64 -} - -func (o *FindConfigMaxHintsDeliveryThreadsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigMaxHintsDeliveryThreadsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigMaxHintsDeliveryThreadsDefault creates a FindConfigMaxHintsDeliveryThreadsDefault with default headers values -func NewFindConfigMaxHintsDeliveryThreadsDefault(code int) *FindConfigMaxHintsDeliveryThreadsDefault { - return &FindConfigMaxHintsDeliveryThreadsDefault{ - _statusCode: code, - } -} - -/* -FindConfigMaxHintsDeliveryThreadsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigMaxHintsDeliveryThreadsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config max hints delivery threads default response -func (o *FindConfigMaxHintsDeliveryThreadsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigMaxHintsDeliveryThreadsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigMaxHintsDeliveryThreadsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigMaxHintsDeliveryThreadsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memory_allocator_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memory_allocator_parameters.go deleted file mode 100644 index f9f44bd14a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memory_allocator_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigMemoryAllocatorParams creates a new FindConfigMemoryAllocatorParams object -// with the default values initialized. -func NewFindConfigMemoryAllocatorParams() *FindConfigMemoryAllocatorParams { - - return &FindConfigMemoryAllocatorParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigMemoryAllocatorParamsWithTimeout creates a new FindConfigMemoryAllocatorParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigMemoryAllocatorParamsWithTimeout(timeout time.Duration) *FindConfigMemoryAllocatorParams { - - return &FindConfigMemoryAllocatorParams{ - - timeout: timeout, - } -} - -// NewFindConfigMemoryAllocatorParamsWithContext creates a new FindConfigMemoryAllocatorParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigMemoryAllocatorParamsWithContext(ctx context.Context) *FindConfigMemoryAllocatorParams { - - return &FindConfigMemoryAllocatorParams{ - - Context: ctx, - } -} - -// NewFindConfigMemoryAllocatorParamsWithHTTPClient creates a new FindConfigMemoryAllocatorParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigMemoryAllocatorParamsWithHTTPClient(client *http.Client) *FindConfigMemoryAllocatorParams { - - return &FindConfigMemoryAllocatorParams{ - HTTPClient: client, - } -} - -/* -FindConfigMemoryAllocatorParams contains all the parameters to send to the API endpoint -for the find config memory allocator operation typically these are written to a http.Request -*/ -type FindConfigMemoryAllocatorParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config memory allocator params -func (o *FindConfigMemoryAllocatorParams) WithTimeout(timeout time.Duration) *FindConfigMemoryAllocatorParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config memory allocator params -func (o *FindConfigMemoryAllocatorParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config memory allocator params -func (o *FindConfigMemoryAllocatorParams) WithContext(ctx context.Context) *FindConfigMemoryAllocatorParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config memory allocator params -func (o *FindConfigMemoryAllocatorParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config memory allocator params -func (o *FindConfigMemoryAllocatorParams) WithHTTPClient(client *http.Client) *FindConfigMemoryAllocatorParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config memory allocator params -func (o *FindConfigMemoryAllocatorParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigMemoryAllocatorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memory_allocator_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memory_allocator_responses.go deleted file mode 100644 index 06c459c391..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memory_allocator_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigMemoryAllocatorReader is a Reader for the FindConfigMemoryAllocator structure. -type FindConfigMemoryAllocatorReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigMemoryAllocatorReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigMemoryAllocatorOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigMemoryAllocatorDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigMemoryAllocatorOK creates a FindConfigMemoryAllocatorOK with default headers values -func NewFindConfigMemoryAllocatorOK() *FindConfigMemoryAllocatorOK { - return &FindConfigMemoryAllocatorOK{} -} - -/* -FindConfigMemoryAllocatorOK handles this case with default header values. - -Config value -*/ -type FindConfigMemoryAllocatorOK struct { - Payload string -} - -func (o *FindConfigMemoryAllocatorOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigMemoryAllocatorOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigMemoryAllocatorDefault creates a FindConfigMemoryAllocatorDefault with default headers values -func NewFindConfigMemoryAllocatorDefault(code int) *FindConfigMemoryAllocatorDefault { - return &FindConfigMemoryAllocatorDefault{ - _statusCode: code, - } -} - -/* -FindConfigMemoryAllocatorDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigMemoryAllocatorDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config memory allocator default response -func (o *FindConfigMemoryAllocatorDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigMemoryAllocatorDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigMemoryAllocatorDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigMemoryAllocatorDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_allocation_type_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_allocation_type_parameters.go deleted file mode 100644 index 68335b8705..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_allocation_type_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigMemtableAllocationTypeParams creates a new FindConfigMemtableAllocationTypeParams object -// with the default values initialized. -func NewFindConfigMemtableAllocationTypeParams() *FindConfigMemtableAllocationTypeParams { - - return &FindConfigMemtableAllocationTypeParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigMemtableAllocationTypeParamsWithTimeout creates a new FindConfigMemtableAllocationTypeParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigMemtableAllocationTypeParamsWithTimeout(timeout time.Duration) *FindConfigMemtableAllocationTypeParams { - - return &FindConfigMemtableAllocationTypeParams{ - - timeout: timeout, - } -} - -// NewFindConfigMemtableAllocationTypeParamsWithContext creates a new FindConfigMemtableAllocationTypeParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigMemtableAllocationTypeParamsWithContext(ctx context.Context) *FindConfigMemtableAllocationTypeParams { - - return &FindConfigMemtableAllocationTypeParams{ - - Context: ctx, - } -} - -// NewFindConfigMemtableAllocationTypeParamsWithHTTPClient creates a new FindConfigMemtableAllocationTypeParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigMemtableAllocationTypeParamsWithHTTPClient(client *http.Client) *FindConfigMemtableAllocationTypeParams { - - return &FindConfigMemtableAllocationTypeParams{ - HTTPClient: client, - } -} - -/* -FindConfigMemtableAllocationTypeParams contains all the parameters to send to the API endpoint -for the find config memtable allocation type operation typically these are written to a http.Request -*/ -type FindConfigMemtableAllocationTypeParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config memtable allocation type params -func (o *FindConfigMemtableAllocationTypeParams) WithTimeout(timeout time.Duration) *FindConfigMemtableAllocationTypeParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config memtable allocation type params -func (o *FindConfigMemtableAllocationTypeParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config memtable allocation type params -func (o *FindConfigMemtableAllocationTypeParams) WithContext(ctx context.Context) *FindConfigMemtableAllocationTypeParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config memtable allocation type params -func (o *FindConfigMemtableAllocationTypeParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config memtable allocation type params -func (o *FindConfigMemtableAllocationTypeParams) WithHTTPClient(client *http.Client) *FindConfigMemtableAllocationTypeParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config memtable allocation type params -func (o *FindConfigMemtableAllocationTypeParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigMemtableAllocationTypeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_allocation_type_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_allocation_type_responses.go deleted file mode 100644 index 5c334e823a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_allocation_type_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigMemtableAllocationTypeReader is a Reader for the FindConfigMemtableAllocationType structure. -type FindConfigMemtableAllocationTypeReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigMemtableAllocationTypeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigMemtableAllocationTypeOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigMemtableAllocationTypeDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigMemtableAllocationTypeOK creates a FindConfigMemtableAllocationTypeOK with default headers values -func NewFindConfigMemtableAllocationTypeOK() *FindConfigMemtableAllocationTypeOK { - return &FindConfigMemtableAllocationTypeOK{} -} - -/* -FindConfigMemtableAllocationTypeOK handles this case with default header values. - -Config value -*/ -type FindConfigMemtableAllocationTypeOK struct { - Payload string -} - -func (o *FindConfigMemtableAllocationTypeOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigMemtableAllocationTypeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigMemtableAllocationTypeDefault creates a FindConfigMemtableAllocationTypeDefault with default headers values -func NewFindConfigMemtableAllocationTypeDefault(code int) *FindConfigMemtableAllocationTypeDefault { - return &FindConfigMemtableAllocationTypeDefault{ - _statusCode: code, - } -} - -/* -FindConfigMemtableAllocationTypeDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigMemtableAllocationTypeDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config memtable allocation type default response -func (o *FindConfigMemtableAllocationTypeDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigMemtableAllocationTypeDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigMemtableAllocationTypeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigMemtableAllocationTypeDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_cleanup_threshold_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_cleanup_threshold_parameters.go deleted file mode 100644 index 3c924bd156..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_cleanup_threshold_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigMemtableCleanupThresholdParams creates a new FindConfigMemtableCleanupThresholdParams object -// with the default values initialized. -func NewFindConfigMemtableCleanupThresholdParams() *FindConfigMemtableCleanupThresholdParams { - - return &FindConfigMemtableCleanupThresholdParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigMemtableCleanupThresholdParamsWithTimeout creates a new FindConfigMemtableCleanupThresholdParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigMemtableCleanupThresholdParamsWithTimeout(timeout time.Duration) *FindConfigMemtableCleanupThresholdParams { - - return &FindConfigMemtableCleanupThresholdParams{ - - timeout: timeout, - } -} - -// NewFindConfigMemtableCleanupThresholdParamsWithContext creates a new FindConfigMemtableCleanupThresholdParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigMemtableCleanupThresholdParamsWithContext(ctx context.Context) *FindConfigMemtableCleanupThresholdParams { - - return &FindConfigMemtableCleanupThresholdParams{ - - Context: ctx, - } -} - -// NewFindConfigMemtableCleanupThresholdParamsWithHTTPClient creates a new FindConfigMemtableCleanupThresholdParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigMemtableCleanupThresholdParamsWithHTTPClient(client *http.Client) *FindConfigMemtableCleanupThresholdParams { - - return &FindConfigMemtableCleanupThresholdParams{ - HTTPClient: client, - } -} - -/* -FindConfigMemtableCleanupThresholdParams contains all the parameters to send to the API endpoint -for the find config memtable cleanup threshold operation typically these are written to a http.Request -*/ -type FindConfigMemtableCleanupThresholdParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config memtable cleanup threshold params -func (o *FindConfigMemtableCleanupThresholdParams) WithTimeout(timeout time.Duration) *FindConfigMemtableCleanupThresholdParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config memtable cleanup threshold params -func (o *FindConfigMemtableCleanupThresholdParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config memtable cleanup threshold params -func (o *FindConfigMemtableCleanupThresholdParams) WithContext(ctx context.Context) *FindConfigMemtableCleanupThresholdParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config memtable cleanup threshold params -func (o *FindConfigMemtableCleanupThresholdParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config memtable cleanup threshold params -func (o *FindConfigMemtableCleanupThresholdParams) WithHTTPClient(client *http.Client) *FindConfigMemtableCleanupThresholdParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config memtable cleanup threshold params -func (o *FindConfigMemtableCleanupThresholdParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigMemtableCleanupThresholdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_cleanup_threshold_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_cleanup_threshold_responses.go deleted file mode 100644 index 3c68ed4526..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_cleanup_threshold_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigMemtableCleanupThresholdReader is a Reader for the FindConfigMemtableCleanupThreshold structure. -type FindConfigMemtableCleanupThresholdReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigMemtableCleanupThresholdReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigMemtableCleanupThresholdOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigMemtableCleanupThresholdDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigMemtableCleanupThresholdOK creates a FindConfigMemtableCleanupThresholdOK with default headers values -func NewFindConfigMemtableCleanupThresholdOK() *FindConfigMemtableCleanupThresholdOK { - return &FindConfigMemtableCleanupThresholdOK{} -} - -/* -FindConfigMemtableCleanupThresholdOK handles this case with default header values. - -Config value -*/ -type FindConfigMemtableCleanupThresholdOK struct { - Payload float64 -} - -func (o *FindConfigMemtableCleanupThresholdOK) GetPayload() float64 { - return o.Payload -} - -func (o *FindConfigMemtableCleanupThresholdOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigMemtableCleanupThresholdDefault creates a FindConfigMemtableCleanupThresholdDefault with default headers values -func NewFindConfigMemtableCleanupThresholdDefault(code int) *FindConfigMemtableCleanupThresholdDefault { - return &FindConfigMemtableCleanupThresholdDefault{ - _statusCode: code, - } -} - -/* -FindConfigMemtableCleanupThresholdDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigMemtableCleanupThresholdDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config memtable cleanup threshold default response -func (o *FindConfigMemtableCleanupThresholdDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigMemtableCleanupThresholdDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigMemtableCleanupThresholdDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigMemtableCleanupThresholdDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_flush_queue_size_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_flush_queue_size_parameters.go deleted file mode 100644 index 09c8c26e95..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_flush_queue_size_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigMemtableFlushQueueSizeParams creates a new FindConfigMemtableFlushQueueSizeParams object -// with the default values initialized. -func NewFindConfigMemtableFlushQueueSizeParams() *FindConfigMemtableFlushQueueSizeParams { - - return &FindConfigMemtableFlushQueueSizeParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigMemtableFlushQueueSizeParamsWithTimeout creates a new FindConfigMemtableFlushQueueSizeParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigMemtableFlushQueueSizeParamsWithTimeout(timeout time.Duration) *FindConfigMemtableFlushQueueSizeParams { - - return &FindConfigMemtableFlushQueueSizeParams{ - - timeout: timeout, - } -} - -// NewFindConfigMemtableFlushQueueSizeParamsWithContext creates a new FindConfigMemtableFlushQueueSizeParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigMemtableFlushQueueSizeParamsWithContext(ctx context.Context) *FindConfigMemtableFlushQueueSizeParams { - - return &FindConfigMemtableFlushQueueSizeParams{ - - Context: ctx, - } -} - -// NewFindConfigMemtableFlushQueueSizeParamsWithHTTPClient creates a new FindConfigMemtableFlushQueueSizeParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigMemtableFlushQueueSizeParamsWithHTTPClient(client *http.Client) *FindConfigMemtableFlushQueueSizeParams { - - return &FindConfigMemtableFlushQueueSizeParams{ - HTTPClient: client, - } -} - -/* -FindConfigMemtableFlushQueueSizeParams contains all the parameters to send to the API endpoint -for the find config memtable flush queue size operation typically these are written to a http.Request -*/ -type FindConfigMemtableFlushQueueSizeParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config memtable flush queue size params -func (o *FindConfigMemtableFlushQueueSizeParams) WithTimeout(timeout time.Duration) *FindConfigMemtableFlushQueueSizeParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config memtable flush queue size params -func (o *FindConfigMemtableFlushQueueSizeParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config memtable flush queue size params -func (o *FindConfigMemtableFlushQueueSizeParams) WithContext(ctx context.Context) *FindConfigMemtableFlushQueueSizeParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config memtable flush queue size params -func (o *FindConfigMemtableFlushQueueSizeParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config memtable flush queue size params -func (o *FindConfigMemtableFlushQueueSizeParams) WithHTTPClient(client *http.Client) *FindConfigMemtableFlushQueueSizeParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config memtable flush queue size params -func (o *FindConfigMemtableFlushQueueSizeParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigMemtableFlushQueueSizeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_flush_queue_size_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_flush_queue_size_responses.go deleted file mode 100644 index e042c8aa14..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_flush_queue_size_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigMemtableFlushQueueSizeReader is a Reader for the FindConfigMemtableFlushQueueSize structure. -type FindConfigMemtableFlushQueueSizeReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigMemtableFlushQueueSizeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigMemtableFlushQueueSizeOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigMemtableFlushQueueSizeDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigMemtableFlushQueueSizeOK creates a FindConfigMemtableFlushQueueSizeOK with default headers values -func NewFindConfigMemtableFlushQueueSizeOK() *FindConfigMemtableFlushQueueSizeOK { - return &FindConfigMemtableFlushQueueSizeOK{} -} - -/* -FindConfigMemtableFlushQueueSizeOK handles this case with default header values. - -Config value -*/ -type FindConfigMemtableFlushQueueSizeOK struct { - Payload int64 -} - -func (o *FindConfigMemtableFlushQueueSizeOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigMemtableFlushQueueSizeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigMemtableFlushQueueSizeDefault creates a FindConfigMemtableFlushQueueSizeDefault with default headers values -func NewFindConfigMemtableFlushQueueSizeDefault(code int) *FindConfigMemtableFlushQueueSizeDefault { - return &FindConfigMemtableFlushQueueSizeDefault{ - _statusCode: code, - } -} - -/* -FindConfigMemtableFlushQueueSizeDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigMemtableFlushQueueSizeDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config memtable flush queue size default response -func (o *FindConfigMemtableFlushQueueSizeDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigMemtableFlushQueueSizeDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigMemtableFlushQueueSizeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigMemtableFlushQueueSizeDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_flush_static_shares_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_flush_static_shares_parameters.go deleted file mode 100644 index 930ecc0578..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_flush_static_shares_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigMemtableFlushStaticSharesParams creates a new FindConfigMemtableFlushStaticSharesParams object -// with the default values initialized. -func NewFindConfigMemtableFlushStaticSharesParams() *FindConfigMemtableFlushStaticSharesParams { - - return &FindConfigMemtableFlushStaticSharesParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigMemtableFlushStaticSharesParamsWithTimeout creates a new FindConfigMemtableFlushStaticSharesParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigMemtableFlushStaticSharesParamsWithTimeout(timeout time.Duration) *FindConfigMemtableFlushStaticSharesParams { - - return &FindConfigMemtableFlushStaticSharesParams{ - - timeout: timeout, - } -} - -// NewFindConfigMemtableFlushStaticSharesParamsWithContext creates a new FindConfigMemtableFlushStaticSharesParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigMemtableFlushStaticSharesParamsWithContext(ctx context.Context) *FindConfigMemtableFlushStaticSharesParams { - - return &FindConfigMemtableFlushStaticSharesParams{ - - Context: ctx, - } -} - -// NewFindConfigMemtableFlushStaticSharesParamsWithHTTPClient creates a new FindConfigMemtableFlushStaticSharesParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigMemtableFlushStaticSharesParamsWithHTTPClient(client *http.Client) *FindConfigMemtableFlushStaticSharesParams { - - return &FindConfigMemtableFlushStaticSharesParams{ - HTTPClient: client, - } -} - -/* -FindConfigMemtableFlushStaticSharesParams contains all the parameters to send to the API endpoint -for the find config memtable flush static shares operation typically these are written to a http.Request -*/ -type FindConfigMemtableFlushStaticSharesParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config memtable flush static shares params -func (o *FindConfigMemtableFlushStaticSharesParams) WithTimeout(timeout time.Duration) *FindConfigMemtableFlushStaticSharesParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config memtable flush static shares params -func (o *FindConfigMemtableFlushStaticSharesParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config memtable flush static shares params -func (o *FindConfigMemtableFlushStaticSharesParams) WithContext(ctx context.Context) *FindConfigMemtableFlushStaticSharesParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config memtable flush static shares params -func (o *FindConfigMemtableFlushStaticSharesParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config memtable flush static shares params -func (o *FindConfigMemtableFlushStaticSharesParams) WithHTTPClient(client *http.Client) *FindConfigMemtableFlushStaticSharesParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config memtable flush static shares params -func (o *FindConfigMemtableFlushStaticSharesParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigMemtableFlushStaticSharesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_flush_static_shares_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_flush_static_shares_responses.go deleted file mode 100644 index 73a34edc87..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_flush_static_shares_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigMemtableFlushStaticSharesReader is a Reader for the FindConfigMemtableFlushStaticShares structure. -type FindConfigMemtableFlushStaticSharesReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigMemtableFlushStaticSharesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigMemtableFlushStaticSharesOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigMemtableFlushStaticSharesDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigMemtableFlushStaticSharesOK creates a FindConfigMemtableFlushStaticSharesOK with default headers values -func NewFindConfigMemtableFlushStaticSharesOK() *FindConfigMemtableFlushStaticSharesOK { - return &FindConfigMemtableFlushStaticSharesOK{} -} - -/* -FindConfigMemtableFlushStaticSharesOK handles this case with default header values. - -Config value -*/ -type FindConfigMemtableFlushStaticSharesOK struct { - Payload float64 -} - -func (o *FindConfigMemtableFlushStaticSharesOK) GetPayload() float64 { - return o.Payload -} - -func (o *FindConfigMemtableFlushStaticSharesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigMemtableFlushStaticSharesDefault creates a FindConfigMemtableFlushStaticSharesDefault with default headers values -func NewFindConfigMemtableFlushStaticSharesDefault(code int) *FindConfigMemtableFlushStaticSharesDefault { - return &FindConfigMemtableFlushStaticSharesDefault{ - _statusCode: code, - } -} - -/* -FindConfigMemtableFlushStaticSharesDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigMemtableFlushStaticSharesDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config memtable flush static shares default response -func (o *FindConfigMemtableFlushStaticSharesDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigMemtableFlushStaticSharesDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigMemtableFlushStaticSharesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigMemtableFlushStaticSharesDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_flush_writers_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_flush_writers_parameters.go deleted file mode 100644 index e842a2f5f8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_flush_writers_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigMemtableFlushWritersParams creates a new FindConfigMemtableFlushWritersParams object -// with the default values initialized. -func NewFindConfigMemtableFlushWritersParams() *FindConfigMemtableFlushWritersParams { - - return &FindConfigMemtableFlushWritersParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigMemtableFlushWritersParamsWithTimeout creates a new FindConfigMemtableFlushWritersParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigMemtableFlushWritersParamsWithTimeout(timeout time.Duration) *FindConfigMemtableFlushWritersParams { - - return &FindConfigMemtableFlushWritersParams{ - - timeout: timeout, - } -} - -// NewFindConfigMemtableFlushWritersParamsWithContext creates a new FindConfigMemtableFlushWritersParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigMemtableFlushWritersParamsWithContext(ctx context.Context) *FindConfigMemtableFlushWritersParams { - - return &FindConfigMemtableFlushWritersParams{ - - Context: ctx, - } -} - -// NewFindConfigMemtableFlushWritersParamsWithHTTPClient creates a new FindConfigMemtableFlushWritersParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigMemtableFlushWritersParamsWithHTTPClient(client *http.Client) *FindConfigMemtableFlushWritersParams { - - return &FindConfigMemtableFlushWritersParams{ - HTTPClient: client, - } -} - -/* -FindConfigMemtableFlushWritersParams contains all the parameters to send to the API endpoint -for the find config memtable flush writers operation typically these are written to a http.Request -*/ -type FindConfigMemtableFlushWritersParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config memtable flush writers params -func (o *FindConfigMemtableFlushWritersParams) WithTimeout(timeout time.Duration) *FindConfigMemtableFlushWritersParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config memtable flush writers params -func (o *FindConfigMemtableFlushWritersParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config memtable flush writers params -func (o *FindConfigMemtableFlushWritersParams) WithContext(ctx context.Context) *FindConfigMemtableFlushWritersParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config memtable flush writers params -func (o *FindConfigMemtableFlushWritersParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config memtable flush writers params -func (o *FindConfigMemtableFlushWritersParams) WithHTTPClient(client *http.Client) *FindConfigMemtableFlushWritersParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config memtable flush writers params -func (o *FindConfigMemtableFlushWritersParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigMemtableFlushWritersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_flush_writers_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_flush_writers_responses.go deleted file mode 100644 index 5e06e44519..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_flush_writers_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigMemtableFlushWritersReader is a Reader for the FindConfigMemtableFlushWriters structure. -type FindConfigMemtableFlushWritersReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigMemtableFlushWritersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigMemtableFlushWritersOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigMemtableFlushWritersDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigMemtableFlushWritersOK creates a FindConfigMemtableFlushWritersOK with default headers values -func NewFindConfigMemtableFlushWritersOK() *FindConfigMemtableFlushWritersOK { - return &FindConfigMemtableFlushWritersOK{} -} - -/* -FindConfigMemtableFlushWritersOK handles this case with default header values. - -Config value -*/ -type FindConfigMemtableFlushWritersOK struct { - Payload int64 -} - -func (o *FindConfigMemtableFlushWritersOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigMemtableFlushWritersOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigMemtableFlushWritersDefault creates a FindConfigMemtableFlushWritersDefault with default headers values -func NewFindConfigMemtableFlushWritersDefault(code int) *FindConfigMemtableFlushWritersDefault { - return &FindConfigMemtableFlushWritersDefault{ - _statusCode: code, - } -} - -/* -FindConfigMemtableFlushWritersDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigMemtableFlushWritersDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config memtable flush writers default response -func (o *FindConfigMemtableFlushWritersDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigMemtableFlushWritersDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigMemtableFlushWritersDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigMemtableFlushWritersDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_heap_space_in_mb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_heap_space_in_mb_parameters.go deleted file mode 100644 index eab74d9684..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_heap_space_in_mb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigMemtableHeapSpaceInMbParams creates a new FindConfigMemtableHeapSpaceInMbParams object -// with the default values initialized. -func NewFindConfigMemtableHeapSpaceInMbParams() *FindConfigMemtableHeapSpaceInMbParams { - - return &FindConfigMemtableHeapSpaceInMbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigMemtableHeapSpaceInMbParamsWithTimeout creates a new FindConfigMemtableHeapSpaceInMbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigMemtableHeapSpaceInMbParamsWithTimeout(timeout time.Duration) *FindConfigMemtableHeapSpaceInMbParams { - - return &FindConfigMemtableHeapSpaceInMbParams{ - - timeout: timeout, - } -} - -// NewFindConfigMemtableHeapSpaceInMbParamsWithContext creates a new FindConfigMemtableHeapSpaceInMbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigMemtableHeapSpaceInMbParamsWithContext(ctx context.Context) *FindConfigMemtableHeapSpaceInMbParams { - - return &FindConfigMemtableHeapSpaceInMbParams{ - - Context: ctx, - } -} - -// NewFindConfigMemtableHeapSpaceInMbParamsWithHTTPClient creates a new FindConfigMemtableHeapSpaceInMbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigMemtableHeapSpaceInMbParamsWithHTTPClient(client *http.Client) *FindConfigMemtableHeapSpaceInMbParams { - - return &FindConfigMemtableHeapSpaceInMbParams{ - HTTPClient: client, - } -} - -/* -FindConfigMemtableHeapSpaceInMbParams contains all the parameters to send to the API endpoint -for the find config memtable heap space in mb operation typically these are written to a http.Request -*/ -type FindConfigMemtableHeapSpaceInMbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config memtable heap space in mb params -func (o *FindConfigMemtableHeapSpaceInMbParams) WithTimeout(timeout time.Duration) *FindConfigMemtableHeapSpaceInMbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config memtable heap space in mb params -func (o *FindConfigMemtableHeapSpaceInMbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config memtable heap space in mb params -func (o *FindConfigMemtableHeapSpaceInMbParams) WithContext(ctx context.Context) *FindConfigMemtableHeapSpaceInMbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config memtable heap space in mb params -func (o *FindConfigMemtableHeapSpaceInMbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config memtable heap space in mb params -func (o *FindConfigMemtableHeapSpaceInMbParams) WithHTTPClient(client *http.Client) *FindConfigMemtableHeapSpaceInMbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config memtable heap space in mb params -func (o *FindConfigMemtableHeapSpaceInMbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigMemtableHeapSpaceInMbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_heap_space_in_mb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_heap_space_in_mb_responses.go deleted file mode 100644 index 8b49e2e3bd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_heap_space_in_mb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigMemtableHeapSpaceInMbReader is a Reader for the FindConfigMemtableHeapSpaceInMb structure. -type FindConfigMemtableHeapSpaceInMbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigMemtableHeapSpaceInMbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigMemtableHeapSpaceInMbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigMemtableHeapSpaceInMbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigMemtableHeapSpaceInMbOK creates a FindConfigMemtableHeapSpaceInMbOK with default headers values -func NewFindConfigMemtableHeapSpaceInMbOK() *FindConfigMemtableHeapSpaceInMbOK { - return &FindConfigMemtableHeapSpaceInMbOK{} -} - -/* -FindConfigMemtableHeapSpaceInMbOK handles this case with default header values. - -Config value -*/ -type FindConfigMemtableHeapSpaceInMbOK struct { - Payload int64 -} - -func (o *FindConfigMemtableHeapSpaceInMbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigMemtableHeapSpaceInMbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigMemtableHeapSpaceInMbDefault creates a FindConfigMemtableHeapSpaceInMbDefault with default headers values -func NewFindConfigMemtableHeapSpaceInMbDefault(code int) *FindConfigMemtableHeapSpaceInMbDefault { - return &FindConfigMemtableHeapSpaceInMbDefault{ - _statusCode: code, - } -} - -/* -FindConfigMemtableHeapSpaceInMbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigMemtableHeapSpaceInMbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config memtable heap space in mb default response -func (o *FindConfigMemtableHeapSpaceInMbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigMemtableHeapSpaceInMbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigMemtableHeapSpaceInMbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigMemtableHeapSpaceInMbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_offheap_space_in_mb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_offheap_space_in_mb_parameters.go deleted file mode 100644 index 5a5beab8b5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_offheap_space_in_mb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigMemtableOffheapSpaceInMbParams creates a new FindConfigMemtableOffheapSpaceInMbParams object -// with the default values initialized. -func NewFindConfigMemtableOffheapSpaceInMbParams() *FindConfigMemtableOffheapSpaceInMbParams { - - return &FindConfigMemtableOffheapSpaceInMbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigMemtableOffheapSpaceInMbParamsWithTimeout creates a new FindConfigMemtableOffheapSpaceInMbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigMemtableOffheapSpaceInMbParamsWithTimeout(timeout time.Duration) *FindConfigMemtableOffheapSpaceInMbParams { - - return &FindConfigMemtableOffheapSpaceInMbParams{ - - timeout: timeout, - } -} - -// NewFindConfigMemtableOffheapSpaceInMbParamsWithContext creates a new FindConfigMemtableOffheapSpaceInMbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigMemtableOffheapSpaceInMbParamsWithContext(ctx context.Context) *FindConfigMemtableOffheapSpaceInMbParams { - - return &FindConfigMemtableOffheapSpaceInMbParams{ - - Context: ctx, - } -} - -// NewFindConfigMemtableOffheapSpaceInMbParamsWithHTTPClient creates a new FindConfigMemtableOffheapSpaceInMbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigMemtableOffheapSpaceInMbParamsWithHTTPClient(client *http.Client) *FindConfigMemtableOffheapSpaceInMbParams { - - return &FindConfigMemtableOffheapSpaceInMbParams{ - HTTPClient: client, - } -} - -/* -FindConfigMemtableOffheapSpaceInMbParams contains all the parameters to send to the API endpoint -for the find config memtable offheap space in mb operation typically these are written to a http.Request -*/ -type FindConfigMemtableOffheapSpaceInMbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config memtable offheap space in mb params -func (o *FindConfigMemtableOffheapSpaceInMbParams) WithTimeout(timeout time.Duration) *FindConfigMemtableOffheapSpaceInMbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config memtable offheap space in mb params -func (o *FindConfigMemtableOffheapSpaceInMbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config memtable offheap space in mb params -func (o *FindConfigMemtableOffheapSpaceInMbParams) WithContext(ctx context.Context) *FindConfigMemtableOffheapSpaceInMbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config memtable offheap space in mb params -func (o *FindConfigMemtableOffheapSpaceInMbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config memtable offheap space in mb params -func (o *FindConfigMemtableOffheapSpaceInMbParams) WithHTTPClient(client *http.Client) *FindConfigMemtableOffheapSpaceInMbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config memtable offheap space in mb params -func (o *FindConfigMemtableOffheapSpaceInMbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigMemtableOffheapSpaceInMbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_offheap_space_in_mb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_offheap_space_in_mb_responses.go deleted file mode 100644 index a2b3fbc820..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_offheap_space_in_mb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigMemtableOffheapSpaceInMbReader is a Reader for the FindConfigMemtableOffheapSpaceInMb structure. -type FindConfigMemtableOffheapSpaceInMbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigMemtableOffheapSpaceInMbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigMemtableOffheapSpaceInMbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigMemtableOffheapSpaceInMbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigMemtableOffheapSpaceInMbOK creates a FindConfigMemtableOffheapSpaceInMbOK with default headers values -func NewFindConfigMemtableOffheapSpaceInMbOK() *FindConfigMemtableOffheapSpaceInMbOK { - return &FindConfigMemtableOffheapSpaceInMbOK{} -} - -/* -FindConfigMemtableOffheapSpaceInMbOK handles this case with default header values. - -Config value -*/ -type FindConfigMemtableOffheapSpaceInMbOK struct { - Payload int64 -} - -func (o *FindConfigMemtableOffheapSpaceInMbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigMemtableOffheapSpaceInMbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigMemtableOffheapSpaceInMbDefault creates a FindConfigMemtableOffheapSpaceInMbDefault with default headers values -func NewFindConfigMemtableOffheapSpaceInMbDefault(code int) *FindConfigMemtableOffheapSpaceInMbDefault { - return &FindConfigMemtableOffheapSpaceInMbDefault{ - _statusCode: code, - } -} - -/* -FindConfigMemtableOffheapSpaceInMbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigMemtableOffheapSpaceInMbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config memtable offheap space in mb default response -func (o *FindConfigMemtableOffheapSpaceInMbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigMemtableOffheapSpaceInMbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigMemtableOffheapSpaceInMbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigMemtableOffheapSpaceInMbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_total_space_in_mb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_total_space_in_mb_parameters.go deleted file mode 100644 index 5523e5e8a3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_total_space_in_mb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigMemtableTotalSpaceInMbParams creates a new FindConfigMemtableTotalSpaceInMbParams object -// with the default values initialized. -func NewFindConfigMemtableTotalSpaceInMbParams() *FindConfigMemtableTotalSpaceInMbParams { - - return &FindConfigMemtableTotalSpaceInMbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigMemtableTotalSpaceInMbParamsWithTimeout creates a new FindConfigMemtableTotalSpaceInMbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigMemtableTotalSpaceInMbParamsWithTimeout(timeout time.Duration) *FindConfigMemtableTotalSpaceInMbParams { - - return &FindConfigMemtableTotalSpaceInMbParams{ - - timeout: timeout, - } -} - -// NewFindConfigMemtableTotalSpaceInMbParamsWithContext creates a new FindConfigMemtableTotalSpaceInMbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigMemtableTotalSpaceInMbParamsWithContext(ctx context.Context) *FindConfigMemtableTotalSpaceInMbParams { - - return &FindConfigMemtableTotalSpaceInMbParams{ - - Context: ctx, - } -} - -// NewFindConfigMemtableTotalSpaceInMbParamsWithHTTPClient creates a new FindConfigMemtableTotalSpaceInMbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigMemtableTotalSpaceInMbParamsWithHTTPClient(client *http.Client) *FindConfigMemtableTotalSpaceInMbParams { - - return &FindConfigMemtableTotalSpaceInMbParams{ - HTTPClient: client, - } -} - -/* -FindConfigMemtableTotalSpaceInMbParams contains all the parameters to send to the API endpoint -for the find config memtable total space in mb operation typically these are written to a http.Request -*/ -type FindConfigMemtableTotalSpaceInMbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config memtable total space in mb params -func (o *FindConfigMemtableTotalSpaceInMbParams) WithTimeout(timeout time.Duration) *FindConfigMemtableTotalSpaceInMbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config memtable total space in mb params -func (o *FindConfigMemtableTotalSpaceInMbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config memtable total space in mb params -func (o *FindConfigMemtableTotalSpaceInMbParams) WithContext(ctx context.Context) *FindConfigMemtableTotalSpaceInMbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config memtable total space in mb params -func (o *FindConfigMemtableTotalSpaceInMbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config memtable total space in mb params -func (o *FindConfigMemtableTotalSpaceInMbParams) WithHTTPClient(client *http.Client) *FindConfigMemtableTotalSpaceInMbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config memtable total space in mb params -func (o *FindConfigMemtableTotalSpaceInMbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigMemtableTotalSpaceInMbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_total_space_in_mb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_total_space_in_mb_responses.go deleted file mode 100644 index 40d628f4d7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_memtable_total_space_in_mb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigMemtableTotalSpaceInMbReader is a Reader for the FindConfigMemtableTotalSpaceInMb structure. -type FindConfigMemtableTotalSpaceInMbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigMemtableTotalSpaceInMbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigMemtableTotalSpaceInMbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigMemtableTotalSpaceInMbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigMemtableTotalSpaceInMbOK creates a FindConfigMemtableTotalSpaceInMbOK with default headers values -func NewFindConfigMemtableTotalSpaceInMbOK() *FindConfigMemtableTotalSpaceInMbOK { - return &FindConfigMemtableTotalSpaceInMbOK{} -} - -/* -FindConfigMemtableTotalSpaceInMbOK handles this case with default header values. - -Config value -*/ -type FindConfigMemtableTotalSpaceInMbOK struct { - Payload int64 -} - -func (o *FindConfigMemtableTotalSpaceInMbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigMemtableTotalSpaceInMbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigMemtableTotalSpaceInMbDefault creates a FindConfigMemtableTotalSpaceInMbDefault with default headers values -func NewFindConfigMemtableTotalSpaceInMbDefault(code int) *FindConfigMemtableTotalSpaceInMbDefault { - return &FindConfigMemtableTotalSpaceInMbDefault{ - _statusCode: code, - } -} - -/* -FindConfigMemtableTotalSpaceInMbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigMemtableTotalSpaceInMbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config memtable total space in mb default response -func (o *FindConfigMemtableTotalSpaceInMbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigMemtableTotalSpaceInMbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigMemtableTotalSpaceInMbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigMemtableTotalSpaceInMbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_murmur3_partitioner_ignore_msb_bits_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_murmur3_partitioner_ignore_msb_bits_parameters.go deleted file mode 100644 index 7e6f73ed76..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_murmur3_partitioner_ignore_msb_bits_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigMurmur3PartitionerIgnoreMsbBitsParams creates a new FindConfigMurmur3PartitionerIgnoreMsbBitsParams object -// with the default values initialized. -func NewFindConfigMurmur3PartitionerIgnoreMsbBitsParams() *FindConfigMurmur3PartitionerIgnoreMsbBitsParams { - - return &FindConfigMurmur3PartitionerIgnoreMsbBitsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigMurmur3PartitionerIgnoreMsbBitsParamsWithTimeout creates a new FindConfigMurmur3PartitionerIgnoreMsbBitsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigMurmur3PartitionerIgnoreMsbBitsParamsWithTimeout(timeout time.Duration) *FindConfigMurmur3PartitionerIgnoreMsbBitsParams { - - return &FindConfigMurmur3PartitionerIgnoreMsbBitsParams{ - - timeout: timeout, - } -} - -// NewFindConfigMurmur3PartitionerIgnoreMsbBitsParamsWithContext creates a new FindConfigMurmur3PartitionerIgnoreMsbBitsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigMurmur3PartitionerIgnoreMsbBitsParamsWithContext(ctx context.Context) *FindConfigMurmur3PartitionerIgnoreMsbBitsParams { - - return &FindConfigMurmur3PartitionerIgnoreMsbBitsParams{ - - Context: ctx, - } -} - -// NewFindConfigMurmur3PartitionerIgnoreMsbBitsParamsWithHTTPClient creates a new FindConfigMurmur3PartitionerIgnoreMsbBitsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigMurmur3PartitionerIgnoreMsbBitsParamsWithHTTPClient(client *http.Client) *FindConfigMurmur3PartitionerIgnoreMsbBitsParams { - - return &FindConfigMurmur3PartitionerIgnoreMsbBitsParams{ - HTTPClient: client, - } -} - -/* -FindConfigMurmur3PartitionerIgnoreMsbBitsParams contains all the parameters to send to the API endpoint -for the find config murmur3 partitioner ignore msb bits operation typically these are written to a http.Request -*/ -type FindConfigMurmur3PartitionerIgnoreMsbBitsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config murmur3 partitioner ignore msb bits params -func (o *FindConfigMurmur3PartitionerIgnoreMsbBitsParams) WithTimeout(timeout time.Duration) *FindConfigMurmur3PartitionerIgnoreMsbBitsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config murmur3 partitioner ignore msb bits params -func (o *FindConfigMurmur3PartitionerIgnoreMsbBitsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config murmur3 partitioner ignore msb bits params -func (o *FindConfigMurmur3PartitionerIgnoreMsbBitsParams) WithContext(ctx context.Context) *FindConfigMurmur3PartitionerIgnoreMsbBitsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config murmur3 partitioner ignore msb bits params -func (o *FindConfigMurmur3PartitionerIgnoreMsbBitsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config murmur3 partitioner ignore msb bits params -func (o *FindConfigMurmur3PartitionerIgnoreMsbBitsParams) WithHTTPClient(client *http.Client) *FindConfigMurmur3PartitionerIgnoreMsbBitsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config murmur3 partitioner ignore msb bits params -func (o *FindConfigMurmur3PartitionerIgnoreMsbBitsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigMurmur3PartitionerIgnoreMsbBitsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_murmur3_partitioner_ignore_msb_bits_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_murmur3_partitioner_ignore_msb_bits_responses.go deleted file mode 100644 index 84725710e7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_murmur3_partitioner_ignore_msb_bits_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigMurmur3PartitionerIgnoreMsbBitsReader is a Reader for the FindConfigMurmur3PartitionerIgnoreMsbBits structure. -type FindConfigMurmur3PartitionerIgnoreMsbBitsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigMurmur3PartitionerIgnoreMsbBitsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigMurmur3PartitionerIgnoreMsbBitsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigMurmur3PartitionerIgnoreMsbBitsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigMurmur3PartitionerIgnoreMsbBitsOK creates a FindConfigMurmur3PartitionerIgnoreMsbBitsOK with default headers values -func NewFindConfigMurmur3PartitionerIgnoreMsbBitsOK() *FindConfigMurmur3PartitionerIgnoreMsbBitsOK { - return &FindConfigMurmur3PartitionerIgnoreMsbBitsOK{} -} - -/* -FindConfigMurmur3PartitionerIgnoreMsbBitsOK handles this case with default header values. - -Config value -*/ -type FindConfigMurmur3PartitionerIgnoreMsbBitsOK struct { - Payload int64 -} - -func (o *FindConfigMurmur3PartitionerIgnoreMsbBitsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigMurmur3PartitionerIgnoreMsbBitsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigMurmur3PartitionerIgnoreMsbBitsDefault creates a FindConfigMurmur3PartitionerIgnoreMsbBitsDefault with default headers values -func NewFindConfigMurmur3PartitionerIgnoreMsbBitsDefault(code int) *FindConfigMurmur3PartitionerIgnoreMsbBitsDefault { - return &FindConfigMurmur3PartitionerIgnoreMsbBitsDefault{ - _statusCode: code, - } -} - -/* -FindConfigMurmur3PartitionerIgnoreMsbBitsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigMurmur3PartitionerIgnoreMsbBitsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config murmur3 partitioner ignore msb bits default response -func (o *FindConfigMurmur3PartitionerIgnoreMsbBitsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigMurmur3PartitionerIgnoreMsbBitsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigMurmur3PartitionerIgnoreMsbBitsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigMurmur3PartitionerIgnoreMsbBitsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_max_frame_size_in_mb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_max_frame_size_in_mb_parameters.go deleted file mode 100644 index a03d9e26e3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_max_frame_size_in_mb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigNativeTransportMaxFrameSizeInMbParams creates a new FindConfigNativeTransportMaxFrameSizeInMbParams object -// with the default values initialized. -func NewFindConfigNativeTransportMaxFrameSizeInMbParams() *FindConfigNativeTransportMaxFrameSizeInMbParams { - - return &FindConfigNativeTransportMaxFrameSizeInMbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigNativeTransportMaxFrameSizeInMbParamsWithTimeout creates a new FindConfigNativeTransportMaxFrameSizeInMbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigNativeTransportMaxFrameSizeInMbParamsWithTimeout(timeout time.Duration) *FindConfigNativeTransportMaxFrameSizeInMbParams { - - return &FindConfigNativeTransportMaxFrameSizeInMbParams{ - - timeout: timeout, - } -} - -// NewFindConfigNativeTransportMaxFrameSizeInMbParamsWithContext creates a new FindConfigNativeTransportMaxFrameSizeInMbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigNativeTransportMaxFrameSizeInMbParamsWithContext(ctx context.Context) *FindConfigNativeTransportMaxFrameSizeInMbParams { - - return &FindConfigNativeTransportMaxFrameSizeInMbParams{ - - Context: ctx, - } -} - -// NewFindConfigNativeTransportMaxFrameSizeInMbParamsWithHTTPClient creates a new FindConfigNativeTransportMaxFrameSizeInMbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigNativeTransportMaxFrameSizeInMbParamsWithHTTPClient(client *http.Client) *FindConfigNativeTransportMaxFrameSizeInMbParams { - - return &FindConfigNativeTransportMaxFrameSizeInMbParams{ - HTTPClient: client, - } -} - -/* -FindConfigNativeTransportMaxFrameSizeInMbParams contains all the parameters to send to the API endpoint -for the find config native transport max frame size in mb operation typically these are written to a http.Request -*/ -type FindConfigNativeTransportMaxFrameSizeInMbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config native transport max frame size in mb params -func (o *FindConfigNativeTransportMaxFrameSizeInMbParams) WithTimeout(timeout time.Duration) *FindConfigNativeTransportMaxFrameSizeInMbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config native transport max frame size in mb params -func (o *FindConfigNativeTransportMaxFrameSizeInMbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config native transport max frame size in mb params -func (o *FindConfigNativeTransportMaxFrameSizeInMbParams) WithContext(ctx context.Context) *FindConfigNativeTransportMaxFrameSizeInMbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config native transport max frame size in mb params -func (o *FindConfigNativeTransportMaxFrameSizeInMbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config native transport max frame size in mb params -func (o *FindConfigNativeTransportMaxFrameSizeInMbParams) WithHTTPClient(client *http.Client) *FindConfigNativeTransportMaxFrameSizeInMbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config native transport max frame size in mb params -func (o *FindConfigNativeTransportMaxFrameSizeInMbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigNativeTransportMaxFrameSizeInMbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_max_frame_size_in_mb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_max_frame_size_in_mb_responses.go deleted file mode 100644 index 54767d6cfb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_max_frame_size_in_mb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigNativeTransportMaxFrameSizeInMbReader is a Reader for the FindConfigNativeTransportMaxFrameSizeInMb structure. -type FindConfigNativeTransportMaxFrameSizeInMbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigNativeTransportMaxFrameSizeInMbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigNativeTransportMaxFrameSizeInMbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigNativeTransportMaxFrameSizeInMbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigNativeTransportMaxFrameSizeInMbOK creates a FindConfigNativeTransportMaxFrameSizeInMbOK with default headers values -func NewFindConfigNativeTransportMaxFrameSizeInMbOK() *FindConfigNativeTransportMaxFrameSizeInMbOK { - return &FindConfigNativeTransportMaxFrameSizeInMbOK{} -} - -/* -FindConfigNativeTransportMaxFrameSizeInMbOK handles this case with default header values. - -Config value -*/ -type FindConfigNativeTransportMaxFrameSizeInMbOK struct { - Payload int64 -} - -func (o *FindConfigNativeTransportMaxFrameSizeInMbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigNativeTransportMaxFrameSizeInMbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigNativeTransportMaxFrameSizeInMbDefault creates a FindConfigNativeTransportMaxFrameSizeInMbDefault with default headers values -func NewFindConfigNativeTransportMaxFrameSizeInMbDefault(code int) *FindConfigNativeTransportMaxFrameSizeInMbDefault { - return &FindConfigNativeTransportMaxFrameSizeInMbDefault{ - _statusCode: code, - } -} - -/* -FindConfigNativeTransportMaxFrameSizeInMbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigNativeTransportMaxFrameSizeInMbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config native transport max frame size in mb default response -func (o *FindConfigNativeTransportMaxFrameSizeInMbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigNativeTransportMaxFrameSizeInMbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigNativeTransportMaxFrameSizeInMbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigNativeTransportMaxFrameSizeInMbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_max_threads_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_max_threads_parameters.go deleted file mode 100644 index 4b46ce001a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_max_threads_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigNativeTransportMaxThreadsParams creates a new FindConfigNativeTransportMaxThreadsParams object -// with the default values initialized. -func NewFindConfigNativeTransportMaxThreadsParams() *FindConfigNativeTransportMaxThreadsParams { - - return &FindConfigNativeTransportMaxThreadsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigNativeTransportMaxThreadsParamsWithTimeout creates a new FindConfigNativeTransportMaxThreadsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigNativeTransportMaxThreadsParamsWithTimeout(timeout time.Duration) *FindConfigNativeTransportMaxThreadsParams { - - return &FindConfigNativeTransportMaxThreadsParams{ - - timeout: timeout, - } -} - -// NewFindConfigNativeTransportMaxThreadsParamsWithContext creates a new FindConfigNativeTransportMaxThreadsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigNativeTransportMaxThreadsParamsWithContext(ctx context.Context) *FindConfigNativeTransportMaxThreadsParams { - - return &FindConfigNativeTransportMaxThreadsParams{ - - Context: ctx, - } -} - -// NewFindConfigNativeTransportMaxThreadsParamsWithHTTPClient creates a new FindConfigNativeTransportMaxThreadsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigNativeTransportMaxThreadsParamsWithHTTPClient(client *http.Client) *FindConfigNativeTransportMaxThreadsParams { - - return &FindConfigNativeTransportMaxThreadsParams{ - HTTPClient: client, - } -} - -/* -FindConfigNativeTransportMaxThreadsParams contains all the parameters to send to the API endpoint -for the find config native transport max threads operation typically these are written to a http.Request -*/ -type FindConfigNativeTransportMaxThreadsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config native transport max threads params -func (o *FindConfigNativeTransportMaxThreadsParams) WithTimeout(timeout time.Duration) *FindConfigNativeTransportMaxThreadsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config native transport max threads params -func (o *FindConfigNativeTransportMaxThreadsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config native transport max threads params -func (o *FindConfigNativeTransportMaxThreadsParams) WithContext(ctx context.Context) *FindConfigNativeTransportMaxThreadsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config native transport max threads params -func (o *FindConfigNativeTransportMaxThreadsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config native transport max threads params -func (o *FindConfigNativeTransportMaxThreadsParams) WithHTTPClient(client *http.Client) *FindConfigNativeTransportMaxThreadsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config native transport max threads params -func (o *FindConfigNativeTransportMaxThreadsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigNativeTransportMaxThreadsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_max_threads_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_max_threads_responses.go deleted file mode 100644 index dbbb10543f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_max_threads_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigNativeTransportMaxThreadsReader is a Reader for the FindConfigNativeTransportMaxThreads structure. -type FindConfigNativeTransportMaxThreadsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigNativeTransportMaxThreadsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigNativeTransportMaxThreadsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigNativeTransportMaxThreadsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigNativeTransportMaxThreadsOK creates a FindConfigNativeTransportMaxThreadsOK with default headers values -func NewFindConfigNativeTransportMaxThreadsOK() *FindConfigNativeTransportMaxThreadsOK { - return &FindConfigNativeTransportMaxThreadsOK{} -} - -/* -FindConfigNativeTransportMaxThreadsOK handles this case with default header values. - -Config value -*/ -type FindConfigNativeTransportMaxThreadsOK struct { - Payload int64 -} - -func (o *FindConfigNativeTransportMaxThreadsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigNativeTransportMaxThreadsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigNativeTransportMaxThreadsDefault creates a FindConfigNativeTransportMaxThreadsDefault with default headers values -func NewFindConfigNativeTransportMaxThreadsDefault(code int) *FindConfigNativeTransportMaxThreadsDefault { - return &FindConfigNativeTransportMaxThreadsDefault{ - _statusCode: code, - } -} - -/* -FindConfigNativeTransportMaxThreadsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigNativeTransportMaxThreadsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config native transport max threads default response -func (o *FindConfigNativeTransportMaxThreadsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigNativeTransportMaxThreadsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigNativeTransportMaxThreadsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigNativeTransportMaxThreadsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_port_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_port_parameters.go deleted file mode 100644 index 55b929caf1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_port_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigNativeTransportPortParams creates a new FindConfigNativeTransportPortParams object -// with the default values initialized. -func NewFindConfigNativeTransportPortParams() *FindConfigNativeTransportPortParams { - - return &FindConfigNativeTransportPortParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigNativeTransportPortParamsWithTimeout creates a new FindConfigNativeTransportPortParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigNativeTransportPortParamsWithTimeout(timeout time.Duration) *FindConfigNativeTransportPortParams { - - return &FindConfigNativeTransportPortParams{ - - timeout: timeout, - } -} - -// NewFindConfigNativeTransportPortParamsWithContext creates a new FindConfigNativeTransportPortParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigNativeTransportPortParamsWithContext(ctx context.Context) *FindConfigNativeTransportPortParams { - - return &FindConfigNativeTransportPortParams{ - - Context: ctx, - } -} - -// NewFindConfigNativeTransportPortParamsWithHTTPClient creates a new FindConfigNativeTransportPortParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigNativeTransportPortParamsWithHTTPClient(client *http.Client) *FindConfigNativeTransportPortParams { - - return &FindConfigNativeTransportPortParams{ - HTTPClient: client, - } -} - -/* -FindConfigNativeTransportPortParams contains all the parameters to send to the API endpoint -for the find config native transport port operation typically these are written to a http.Request -*/ -type FindConfigNativeTransportPortParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config native transport port params -func (o *FindConfigNativeTransportPortParams) WithTimeout(timeout time.Duration) *FindConfigNativeTransportPortParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config native transport port params -func (o *FindConfigNativeTransportPortParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config native transport port params -func (o *FindConfigNativeTransportPortParams) WithContext(ctx context.Context) *FindConfigNativeTransportPortParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config native transport port params -func (o *FindConfigNativeTransportPortParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config native transport port params -func (o *FindConfigNativeTransportPortParams) WithHTTPClient(client *http.Client) *FindConfigNativeTransportPortParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config native transport port params -func (o *FindConfigNativeTransportPortParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigNativeTransportPortParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_port_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_port_responses.go deleted file mode 100644 index d0ffe8af1e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_port_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigNativeTransportPortReader is a Reader for the FindConfigNativeTransportPort structure. -type FindConfigNativeTransportPortReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigNativeTransportPortReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigNativeTransportPortOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigNativeTransportPortDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigNativeTransportPortOK creates a FindConfigNativeTransportPortOK with default headers values -func NewFindConfigNativeTransportPortOK() *FindConfigNativeTransportPortOK { - return &FindConfigNativeTransportPortOK{} -} - -/* -FindConfigNativeTransportPortOK handles this case with default header values. - -Config value -*/ -type FindConfigNativeTransportPortOK struct { - Payload int64 -} - -func (o *FindConfigNativeTransportPortOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigNativeTransportPortOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigNativeTransportPortDefault creates a FindConfigNativeTransportPortDefault with default headers values -func NewFindConfigNativeTransportPortDefault(code int) *FindConfigNativeTransportPortDefault { - return &FindConfigNativeTransportPortDefault{ - _statusCode: code, - } -} - -/* -FindConfigNativeTransportPortDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigNativeTransportPortDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config native transport port default response -func (o *FindConfigNativeTransportPortDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigNativeTransportPortDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigNativeTransportPortDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigNativeTransportPortDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_port_ssl_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_port_ssl_parameters.go deleted file mode 100644 index a377569994..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_port_ssl_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigNativeTransportPortSslParams creates a new FindConfigNativeTransportPortSslParams object -// with the default values initialized. -func NewFindConfigNativeTransportPortSslParams() *FindConfigNativeTransportPortSslParams { - - return &FindConfigNativeTransportPortSslParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigNativeTransportPortSslParamsWithTimeout creates a new FindConfigNativeTransportPortSslParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigNativeTransportPortSslParamsWithTimeout(timeout time.Duration) *FindConfigNativeTransportPortSslParams { - - return &FindConfigNativeTransportPortSslParams{ - - timeout: timeout, - } -} - -// NewFindConfigNativeTransportPortSslParamsWithContext creates a new FindConfigNativeTransportPortSslParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigNativeTransportPortSslParamsWithContext(ctx context.Context) *FindConfigNativeTransportPortSslParams { - - return &FindConfigNativeTransportPortSslParams{ - - Context: ctx, - } -} - -// NewFindConfigNativeTransportPortSslParamsWithHTTPClient creates a new FindConfigNativeTransportPortSslParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigNativeTransportPortSslParamsWithHTTPClient(client *http.Client) *FindConfigNativeTransportPortSslParams { - - return &FindConfigNativeTransportPortSslParams{ - HTTPClient: client, - } -} - -/* -FindConfigNativeTransportPortSslParams contains all the parameters to send to the API endpoint -for the find config native transport port ssl operation typically these are written to a http.Request -*/ -type FindConfigNativeTransportPortSslParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config native transport port ssl params -func (o *FindConfigNativeTransportPortSslParams) WithTimeout(timeout time.Duration) *FindConfigNativeTransportPortSslParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config native transport port ssl params -func (o *FindConfigNativeTransportPortSslParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config native transport port ssl params -func (o *FindConfigNativeTransportPortSslParams) WithContext(ctx context.Context) *FindConfigNativeTransportPortSslParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config native transport port ssl params -func (o *FindConfigNativeTransportPortSslParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config native transport port ssl params -func (o *FindConfigNativeTransportPortSslParams) WithHTTPClient(client *http.Client) *FindConfigNativeTransportPortSslParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config native transport port ssl params -func (o *FindConfigNativeTransportPortSslParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigNativeTransportPortSslParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_port_ssl_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_port_ssl_responses.go deleted file mode 100644 index 7813ea40b4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_native_transport_port_ssl_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigNativeTransportPortSslReader is a Reader for the FindConfigNativeTransportPortSsl structure. -type FindConfigNativeTransportPortSslReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigNativeTransportPortSslReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigNativeTransportPortSslOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigNativeTransportPortSslDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigNativeTransportPortSslOK creates a FindConfigNativeTransportPortSslOK with default headers values -func NewFindConfigNativeTransportPortSslOK() *FindConfigNativeTransportPortSslOK { - return &FindConfigNativeTransportPortSslOK{} -} - -/* -FindConfigNativeTransportPortSslOK handles this case with default header values. - -Config value -*/ -type FindConfigNativeTransportPortSslOK struct { - Payload int64 -} - -func (o *FindConfigNativeTransportPortSslOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigNativeTransportPortSslOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigNativeTransportPortSslDefault creates a FindConfigNativeTransportPortSslDefault with default headers values -func NewFindConfigNativeTransportPortSslDefault(code int) *FindConfigNativeTransportPortSslDefault { - return &FindConfigNativeTransportPortSslDefault{ - _statusCode: code, - } -} - -/* -FindConfigNativeTransportPortSslDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigNativeTransportPortSslDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config native transport port ssl default response -func (o *FindConfigNativeTransportPortSslDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigNativeTransportPortSslDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigNativeTransportPortSslDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigNativeTransportPortSslDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_num_tokens_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_num_tokens_parameters.go deleted file mode 100644 index da86b11c18..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_num_tokens_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigNumTokensParams creates a new FindConfigNumTokensParams object -// with the default values initialized. -func NewFindConfigNumTokensParams() *FindConfigNumTokensParams { - - return &FindConfigNumTokensParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigNumTokensParamsWithTimeout creates a new FindConfigNumTokensParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigNumTokensParamsWithTimeout(timeout time.Duration) *FindConfigNumTokensParams { - - return &FindConfigNumTokensParams{ - - timeout: timeout, - } -} - -// NewFindConfigNumTokensParamsWithContext creates a new FindConfigNumTokensParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigNumTokensParamsWithContext(ctx context.Context) *FindConfigNumTokensParams { - - return &FindConfigNumTokensParams{ - - Context: ctx, - } -} - -// NewFindConfigNumTokensParamsWithHTTPClient creates a new FindConfigNumTokensParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigNumTokensParamsWithHTTPClient(client *http.Client) *FindConfigNumTokensParams { - - return &FindConfigNumTokensParams{ - HTTPClient: client, - } -} - -/* -FindConfigNumTokensParams contains all the parameters to send to the API endpoint -for the find config num tokens operation typically these are written to a http.Request -*/ -type FindConfigNumTokensParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config num tokens params -func (o *FindConfigNumTokensParams) WithTimeout(timeout time.Duration) *FindConfigNumTokensParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config num tokens params -func (o *FindConfigNumTokensParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config num tokens params -func (o *FindConfigNumTokensParams) WithContext(ctx context.Context) *FindConfigNumTokensParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config num tokens params -func (o *FindConfigNumTokensParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config num tokens params -func (o *FindConfigNumTokensParams) WithHTTPClient(client *http.Client) *FindConfigNumTokensParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config num tokens params -func (o *FindConfigNumTokensParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigNumTokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_num_tokens_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_num_tokens_responses.go deleted file mode 100644 index d882ad4506..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_num_tokens_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigNumTokensReader is a Reader for the FindConfigNumTokens structure. -type FindConfigNumTokensReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigNumTokensReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigNumTokensOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigNumTokensDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigNumTokensOK creates a FindConfigNumTokensOK with default headers values -func NewFindConfigNumTokensOK() *FindConfigNumTokensOK { - return &FindConfigNumTokensOK{} -} - -/* -FindConfigNumTokensOK handles this case with default header values. - -Config value -*/ -type FindConfigNumTokensOK struct { - Payload int64 -} - -func (o *FindConfigNumTokensOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigNumTokensOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigNumTokensDefault creates a FindConfigNumTokensDefault with default headers values -func NewFindConfigNumTokensDefault(code int) *FindConfigNumTokensDefault { - return &FindConfigNumTokensDefault{ - _statusCode: code, - } -} - -/* -FindConfigNumTokensDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigNumTokensDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config num tokens default response -func (o *FindConfigNumTokensDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigNumTokensDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigNumTokensDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigNumTokensDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_object_storage_endpoints_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_object_storage_endpoints_parameters.go deleted file mode 100644 index aef2ad7182..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_object_storage_endpoints_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigObjectStorageEndpointsParams creates a new FindConfigObjectStorageEndpointsParams object -// with the default values initialized. -func NewFindConfigObjectStorageEndpointsParams() *FindConfigObjectStorageEndpointsParams { - - return &FindConfigObjectStorageEndpointsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigObjectStorageEndpointsParamsWithTimeout creates a new FindConfigObjectStorageEndpointsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigObjectStorageEndpointsParamsWithTimeout(timeout time.Duration) *FindConfigObjectStorageEndpointsParams { - - return &FindConfigObjectStorageEndpointsParams{ - - timeout: timeout, - } -} - -// NewFindConfigObjectStorageEndpointsParamsWithContext creates a new FindConfigObjectStorageEndpointsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigObjectStorageEndpointsParamsWithContext(ctx context.Context) *FindConfigObjectStorageEndpointsParams { - - return &FindConfigObjectStorageEndpointsParams{ - - Context: ctx, - } -} - -// NewFindConfigObjectStorageEndpointsParamsWithHTTPClient creates a new FindConfigObjectStorageEndpointsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigObjectStorageEndpointsParamsWithHTTPClient(client *http.Client) *FindConfigObjectStorageEndpointsParams { - - return &FindConfigObjectStorageEndpointsParams{ - HTTPClient: client, - } -} - -/* -FindConfigObjectStorageEndpointsParams contains all the parameters to send to the API endpoint -for the find config object storage endpoints operation typically these are written to a http.Request -*/ -type FindConfigObjectStorageEndpointsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config object storage endpoints params -func (o *FindConfigObjectStorageEndpointsParams) WithTimeout(timeout time.Duration) *FindConfigObjectStorageEndpointsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config object storage endpoints params -func (o *FindConfigObjectStorageEndpointsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config object storage endpoints params -func (o *FindConfigObjectStorageEndpointsParams) WithContext(ctx context.Context) *FindConfigObjectStorageEndpointsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config object storage endpoints params -func (o *FindConfigObjectStorageEndpointsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config object storage endpoints params -func (o *FindConfigObjectStorageEndpointsParams) WithHTTPClient(client *http.Client) *FindConfigObjectStorageEndpointsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config object storage endpoints params -func (o *FindConfigObjectStorageEndpointsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigObjectStorageEndpointsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_object_storage_endpoints_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_object_storage_endpoints_responses.go deleted file mode 100644 index 7de096b5a9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_object_storage_endpoints_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigObjectStorageEndpointsReader is a Reader for the FindConfigObjectStorageEndpoints structure. -type FindConfigObjectStorageEndpointsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigObjectStorageEndpointsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigObjectStorageEndpointsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigObjectStorageEndpointsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigObjectStorageEndpointsOK creates a FindConfigObjectStorageEndpointsOK with default headers values -func NewFindConfigObjectStorageEndpointsOK() *FindConfigObjectStorageEndpointsOK { - return &FindConfigObjectStorageEndpointsOK{} -} - -/* -FindConfigObjectStorageEndpointsOK handles this case with default header values. - -Config value -*/ -type FindConfigObjectStorageEndpointsOK struct { - Payload map[string]string -} - -func (o *FindConfigObjectStorageEndpointsOK) GetPayload() map[string]string { - return o.Payload -} - -func (o *FindConfigObjectStorageEndpointsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigObjectStorageEndpointsDefault creates a FindConfigObjectStorageEndpointsDefault with default headers values -func NewFindConfigObjectStorageEndpointsDefault(code int) *FindConfigObjectStorageEndpointsDefault { - return &FindConfigObjectStorageEndpointsDefault{ - _statusCode: code, - } -} - -/* -FindConfigObjectStorageEndpointsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigObjectStorageEndpointsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config object storage endpoints default response -func (o *FindConfigObjectStorageEndpointsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigObjectStorageEndpointsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigObjectStorageEndpointsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigObjectStorageEndpointsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_override_decommission_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_override_decommission_parameters.go deleted file mode 100644 index 3845f4c65e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_override_decommission_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigOverrideDecommissionParams creates a new FindConfigOverrideDecommissionParams object -// with the default values initialized. -func NewFindConfigOverrideDecommissionParams() *FindConfigOverrideDecommissionParams { - - return &FindConfigOverrideDecommissionParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigOverrideDecommissionParamsWithTimeout creates a new FindConfigOverrideDecommissionParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigOverrideDecommissionParamsWithTimeout(timeout time.Duration) *FindConfigOverrideDecommissionParams { - - return &FindConfigOverrideDecommissionParams{ - - timeout: timeout, - } -} - -// NewFindConfigOverrideDecommissionParamsWithContext creates a new FindConfigOverrideDecommissionParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigOverrideDecommissionParamsWithContext(ctx context.Context) *FindConfigOverrideDecommissionParams { - - return &FindConfigOverrideDecommissionParams{ - - Context: ctx, - } -} - -// NewFindConfigOverrideDecommissionParamsWithHTTPClient creates a new FindConfigOverrideDecommissionParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigOverrideDecommissionParamsWithHTTPClient(client *http.Client) *FindConfigOverrideDecommissionParams { - - return &FindConfigOverrideDecommissionParams{ - HTTPClient: client, - } -} - -/* -FindConfigOverrideDecommissionParams contains all the parameters to send to the API endpoint -for the find config override decommission operation typically these are written to a http.Request -*/ -type FindConfigOverrideDecommissionParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config override decommission params -func (o *FindConfigOverrideDecommissionParams) WithTimeout(timeout time.Duration) *FindConfigOverrideDecommissionParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config override decommission params -func (o *FindConfigOverrideDecommissionParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config override decommission params -func (o *FindConfigOverrideDecommissionParams) WithContext(ctx context.Context) *FindConfigOverrideDecommissionParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config override decommission params -func (o *FindConfigOverrideDecommissionParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config override decommission params -func (o *FindConfigOverrideDecommissionParams) WithHTTPClient(client *http.Client) *FindConfigOverrideDecommissionParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config override decommission params -func (o *FindConfigOverrideDecommissionParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigOverrideDecommissionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_override_decommission_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_override_decommission_responses.go deleted file mode 100644 index 9eb8db659d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_override_decommission_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigOverrideDecommissionReader is a Reader for the FindConfigOverrideDecommission structure. -type FindConfigOverrideDecommissionReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigOverrideDecommissionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigOverrideDecommissionOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigOverrideDecommissionDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigOverrideDecommissionOK creates a FindConfigOverrideDecommissionOK with default headers values -func NewFindConfigOverrideDecommissionOK() *FindConfigOverrideDecommissionOK { - return &FindConfigOverrideDecommissionOK{} -} - -/* -FindConfigOverrideDecommissionOK handles this case with default header values. - -Config value -*/ -type FindConfigOverrideDecommissionOK struct { - Payload bool -} - -func (o *FindConfigOverrideDecommissionOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigOverrideDecommissionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigOverrideDecommissionDefault creates a FindConfigOverrideDecommissionDefault with default headers values -func NewFindConfigOverrideDecommissionDefault(code int) *FindConfigOverrideDecommissionDefault { - return &FindConfigOverrideDecommissionDefault{ - _statusCode: code, - } -} - -/* -FindConfigOverrideDecommissionDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigOverrideDecommissionDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config override decommission default response -func (o *FindConfigOverrideDecommissionDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigOverrideDecommissionDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigOverrideDecommissionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigOverrideDecommissionDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_partitioner_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_partitioner_parameters.go deleted file mode 100644 index 534356c548..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_partitioner_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigPartitionerParams creates a new FindConfigPartitionerParams object -// with the default values initialized. -func NewFindConfigPartitionerParams() *FindConfigPartitionerParams { - - return &FindConfigPartitionerParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigPartitionerParamsWithTimeout creates a new FindConfigPartitionerParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigPartitionerParamsWithTimeout(timeout time.Duration) *FindConfigPartitionerParams { - - return &FindConfigPartitionerParams{ - - timeout: timeout, - } -} - -// NewFindConfigPartitionerParamsWithContext creates a new FindConfigPartitionerParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigPartitionerParamsWithContext(ctx context.Context) *FindConfigPartitionerParams { - - return &FindConfigPartitionerParams{ - - Context: ctx, - } -} - -// NewFindConfigPartitionerParamsWithHTTPClient creates a new FindConfigPartitionerParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigPartitionerParamsWithHTTPClient(client *http.Client) *FindConfigPartitionerParams { - - return &FindConfigPartitionerParams{ - HTTPClient: client, - } -} - -/* -FindConfigPartitionerParams contains all the parameters to send to the API endpoint -for the find config partitioner operation typically these are written to a http.Request -*/ -type FindConfigPartitionerParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config partitioner params -func (o *FindConfigPartitionerParams) WithTimeout(timeout time.Duration) *FindConfigPartitionerParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config partitioner params -func (o *FindConfigPartitionerParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config partitioner params -func (o *FindConfigPartitionerParams) WithContext(ctx context.Context) *FindConfigPartitionerParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config partitioner params -func (o *FindConfigPartitionerParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config partitioner params -func (o *FindConfigPartitionerParams) WithHTTPClient(client *http.Client) *FindConfigPartitionerParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config partitioner params -func (o *FindConfigPartitionerParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigPartitionerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_partitioner_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_partitioner_responses.go deleted file mode 100644 index 4309568ff3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_partitioner_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigPartitionerReader is a Reader for the FindConfigPartitioner structure. -type FindConfigPartitionerReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigPartitionerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigPartitionerOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigPartitionerDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigPartitionerOK creates a FindConfigPartitionerOK with default headers values -func NewFindConfigPartitionerOK() *FindConfigPartitionerOK { - return &FindConfigPartitionerOK{} -} - -/* -FindConfigPartitionerOK handles this case with default header values. - -Config value -*/ -type FindConfigPartitionerOK struct { - Payload string -} - -func (o *FindConfigPartitionerOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigPartitionerOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigPartitionerDefault creates a FindConfigPartitionerDefault with default headers values -func NewFindConfigPartitionerDefault(code int) *FindConfigPartitionerDefault { - return &FindConfigPartitionerDefault{ - _statusCode: code, - } -} - -/* -FindConfigPartitionerDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigPartitionerDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config partitioner default response -func (o *FindConfigPartitionerDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigPartitionerDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigPartitionerDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigPartitionerDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_permissions_cache_max_entries_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_permissions_cache_max_entries_parameters.go deleted file mode 100644 index c548d94d84..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_permissions_cache_max_entries_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigPermissionsCacheMaxEntriesParams creates a new FindConfigPermissionsCacheMaxEntriesParams object -// with the default values initialized. -func NewFindConfigPermissionsCacheMaxEntriesParams() *FindConfigPermissionsCacheMaxEntriesParams { - - return &FindConfigPermissionsCacheMaxEntriesParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigPermissionsCacheMaxEntriesParamsWithTimeout creates a new FindConfigPermissionsCacheMaxEntriesParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigPermissionsCacheMaxEntriesParamsWithTimeout(timeout time.Duration) *FindConfigPermissionsCacheMaxEntriesParams { - - return &FindConfigPermissionsCacheMaxEntriesParams{ - - timeout: timeout, - } -} - -// NewFindConfigPermissionsCacheMaxEntriesParamsWithContext creates a new FindConfigPermissionsCacheMaxEntriesParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigPermissionsCacheMaxEntriesParamsWithContext(ctx context.Context) *FindConfigPermissionsCacheMaxEntriesParams { - - return &FindConfigPermissionsCacheMaxEntriesParams{ - - Context: ctx, - } -} - -// NewFindConfigPermissionsCacheMaxEntriesParamsWithHTTPClient creates a new FindConfigPermissionsCacheMaxEntriesParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigPermissionsCacheMaxEntriesParamsWithHTTPClient(client *http.Client) *FindConfigPermissionsCacheMaxEntriesParams { - - return &FindConfigPermissionsCacheMaxEntriesParams{ - HTTPClient: client, - } -} - -/* -FindConfigPermissionsCacheMaxEntriesParams contains all the parameters to send to the API endpoint -for the find config permissions cache max entries operation typically these are written to a http.Request -*/ -type FindConfigPermissionsCacheMaxEntriesParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config permissions cache max entries params -func (o *FindConfigPermissionsCacheMaxEntriesParams) WithTimeout(timeout time.Duration) *FindConfigPermissionsCacheMaxEntriesParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config permissions cache max entries params -func (o *FindConfigPermissionsCacheMaxEntriesParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config permissions cache max entries params -func (o *FindConfigPermissionsCacheMaxEntriesParams) WithContext(ctx context.Context) *FindConfigPermissionsCacheMaxEntriesParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config permissions cache max entries params -func (o *FindConfigPermissionsCacheMaxEntriesParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config permissions cache max entries params -func (o *FindConfigPermissionsCacheMaxEntriesParams) WithHTTPClient(client *http.Client) *FindConfigPermissionsCacheMaxEntriesParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config permissions cache max entries params -func (o *FindConfigPermissionsCacheMaxEntriesParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigPermissionsCacheMaxEntriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_permissions_cache_max_entries_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_permissions_cache_max_entries_responses.go deleted file mode 100644 index 8c95ae92a5..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_permissions_cache_max_entries_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigPermissionsCacheMaxEntriesReader is a Reader for the FindConfigPermissionsCacheMaxEntries structure. -type FindConfigPermissionsCacheMaxEntriesReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigPermissionsCacheMaxEntriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigPermissionsCacheMaxEntriesOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigPermissionsCacheMaxEntriesDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigPermissionsCacheMaxEntriesOK creates a FindConfigPermissionsCacheMaxEntriesOK with default headers values -func NewFindConfigPermissionsCacheMaxEntriesOK() *FindConfigPermissionsCacheMaxEntriesOK { - return &FindConfigPermissionsCacheMaxEntriesOK{} -} - -/* -FindConfigPermissionsCacheMaxEntriesOK handles this case with default header values. - -Config value -*/ -type FindConfigPermissionsCacheMaxEntriesOK struct { - Payload int64 -} - -func (o *FindConfigPermissionsCacheMaxEntriesOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigPermissionsCacheMaxEntriesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigPermissionsCacheMaxEntriesDefault creates a FindConfigPermissionsCacheMaxEntriesDefault with default headers values -func NewFindConfigPermissionsCacheMaxEntriesDefault(code int) *FindConfigPermissionsCacheMaxEntriesDefault { - return &FindConfigPermissionsCacheMaxEntriesDefault{ - _statusCode: code, - } -} - -/* -FindConfigPermissionsCacheMaxEntriesDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigPermissionsCacheMaxEntriesDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config permissions cache max entries default response -func (o *FindConfigPermissionsCacheMaxEntriesDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigPermissionsCacheMaxEntriesDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigPermissionsCacheMaxEntriesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigPermissionsCacheMaxEntriesDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_permissions_update_interval_in_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_permissions_update_interval_in_ms_parameters.go deleted file mode 100644 index 67eb7c0d27..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_permissions_update_interval_in_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigPermissionsUpdateIntervalInMsParams creates a new FindConfigPermissionsUpdateIntervalInMsParams object -// with the default values initialized. -func NewFindConfigPermissionsUpdateIntervalInMsParams() *FindConfigPermissionsUpdateIntervalInMsParams { - - return &FindConfigPermissionsUpdateIntervalInMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigPermissionsUpdateIntervalInMsParamsWithTimeout creates a new FindConfigPermissionsUpdateIntervalInMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigPermissionsUpdateIntervalInMsParamsWithTimeout(timeout time.Duration) *FindConfigPermissionsUpdateIntervalInMsParams { - - return &FindConfigPermissionsUpdateIntervalInMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigPermissionsUpdateIntervalInMsParamsWithContext creates a new FindConfigPermissionsUpdateIntervalInMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigPermissionsUpdateIntervalInMsParamsWithContext(ctx context.Context) *FindConfigPermissionsUpdateIntervalInMsParams { - - return &FindConfigPermissionsUpdateIntervalInMsParams{ - - Context: ctx, - } -} - -// NewFindConfigPermissionsUpdateIntervalInMsParamsWithHTTPClient creates a new FindConfigPermissionsUpdateIntervalInMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigPermissionsUpdateIntervalInMsParamsWithHTTPClient(client *http.Client) *FindConfigPermissionsUpdateIntervalInMsParams { - - return &FindConfigPermissionsUpdateIntervalInMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigPermissionsUpdateIntervalInMsParams contains all the parameters to send to the API endpoint -for the find config permissions update interval in ms operation typically these are written to a http.Request -*/ -type FindConfigPermissionsUpdateIntervalInMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config permissions update interval in ms params -func (o *FindConfigPermissionsUpdateIntervalInMsParams) WithTimeout(timeout time.Duration) *FindConfigPermissionsUpdateIntervalInMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config permissions update interval in ms params -func (o *FindConfigPermissionsUpdateIntervalInMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config permissions update interval in ms params -func (o *FindConfigPermissionsUpdateIntervalInMsParams) WithContext(ctx context.Context) *FindConfigPermissionsUpdateIntervalInMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config permissions update interval in ms params -func (o *FindConfigPermissionsUpdateIntervalInMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config permissions update interval in ms params -func (o *FindConfigPermissionsUpdateIntervalInMsParams) WithHTTPClient(client *http.Client) *FindConfigPermissionsUpdateIntervalInMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config permissions update interval in ms params -func (o *FindConfigPermissionsUpdateIntervalInMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigPermissionsUpdateIntervalInMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_permissions_update_interval_in_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_permissions_update_interval_in_ms_responses.go deleted file mode 100644 index c2edd964d7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_permissions_update_interval_in_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigPermissionsUpdateIntervalInMsReader is a Reader for the FindConfigPermissionsUpdateIntervalInMs structure. -type FindConfigPermissionsUpdateIntervalInMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigPermissionsUpdateIntervalInMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigPermissionsUpdateIntervalInMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigPermissionsUpdateIntervalInMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigPermissionsUpdateIntervalInMsOK creates a FindConfigPermissionsUpdateIntervalInMsOK with default headers values -func NewFindConfigPermissionsUpdateIntervalInMsOK() *FindConfigPermissionsUpdateIntervalInMsOK { - return &FindConfigPermissionsUpdateIntervalInMsOK{} -} - -/* -FindConfigPermissionsUpdateIntervalInMsOK handles this case with default header values. - -Config value -*/ -type FindConfigPermissionsUpdateIntervalInMsOK struct { - Payload int64 -} - -func (o *FindConfigPermissionsUpdateIntervalInMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigPermissionsUpdateIntervalInMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigPermissionsUpdateIntervalInMsDefault creates a FindConfigPermissionsUpdateIntervalInMsDefault with default headers values -func NewFindConfigPermissionsUpdateIntervalInMsDefault(code int) *FindConfigPermissionsUpdateIntervalInMsDefault { - return &FindConfigPermissionsUpdateIntervalInMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigPermissionsUpdateIntervalInMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigPermissionsUpdateIntervalInMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config permissions update interval in ms default response -func (o *FindConfigPermissionsUpdateIntervalInMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigPermissionsUpdateIntervalInMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigPermissionsUpdateIntervalInMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigPermissionsUpdateIntervalInMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_permissions_validity_in_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_permissions_validity_in_ms_parameters.go deleted file mode 100644 index 01c7f8b5c9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_permissions_validity_in_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigPermissionsValidityInMsParams creates a new FindConfigPermissionsValidityInMsParams object -// with the default values initialized. -func NewFindConfigPermissionsValidityInMsParams() *FindConfigPermissionsValidityInMsParams { - - return &FindConfigPermissionsValidityInMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigPermissionsValidityInMsParamsWithTimeout creates a new FindConfigPermissionsValidityInMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigPermissionsValidityInMsParamsWithTimeout(timeout time.Duration) *FindConfigPermissionsValidityInMsParams { - - return &FindConfigPermissionsValidityInMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigPermissionsValidityInMsParamsWithContext creates a new FindConfigPermissionsValidityInMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigPermissionsValidityInMsParamsWithContext(ctx context.Context) *FindConfigPermissionsValidityInMsParams { - - return &FindConfigPermissionsValidityInMsParams{ - - Context: ctx, - } -} - -// NewFindConfigPermissionsValidityInMsParamsWithHTTPClient creates a new FindConfigPermissionsValidityInMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigPermissionsValidityInMsParamsWithHTTPClient(client *http.Client) *FindConfigPermissionsValidityInMsParams { - - return &FindConfigPermissionsValidityInMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigPermissionsValidityInMsParams contains all the parameters to send to the API endpoint -for the find config permissions validity in ms operation typically these are written to a http.Request -*/ -type FindConfigPermissionsValidityInMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config permissions validity in ms params -func (o *FindConfigPermissionsValidityInMsParams) WithTimeout(timeout time.Duration) *FindConfigPermissionsValidityInMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config permissions validity in ms params -func (o *FindConfigPermissionsValidityInMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config permissions validity in ms params -func (o *FindConfigPermissionsValidityInMsParams) WithContext(ctx context.Context) *FindConfigPermissionsValidityInMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config permissions validity in ms params -func (o *FindConfigPermissionsValidityInMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config permissions validity in ms params -func (o *FindConfigPermissionsValidityInMsParams) WithHTTPClient(client *http.Client) *FindConfigPermissionsValidityInMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config permissions validity in ms params -func (o *FindConfigPermissionsValidityInMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigPermissionsValidityInMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_permissions_validity_in_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_permissions_validity_in_ms_responses.go deleted file mode 100644 index 8c0c62cc89..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_permissions_validity_in_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigPermissionsValidityInMsReader is a Reader for the FindConfigPermissionsValidityInMs structure. -type FindConfigPermissionsValidityInMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigPermissionsValidityInMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigPermissionsValidityInMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigPermissionsValidityInMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigPermissionsValidityInMsOK creates a FindConfigPermissionsValidityInMsOK with default headers values -func NewFindConfigPermissionsValidityInMsOK() *FindConfigPermissionsValidityInMsOK { - return &FindConfigPermissionsValidityInMsOK{} -} - -/* -FindConfigPermissionsValidityInMsOK handles this case with default header values. - -Config value -*/ -type FindConfigPermissionsValidityInMsOK struct { - Payload int64 -} - -func (o *FindConfigPermissionsValidityInMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigPermissionsValidityInMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigPermissionsValidityInMsDefault creates a FindConfigPermissionsValidityInMsDefault with default headers values -func NewFindConfigPermissionsValidityInMsDefault(code int) *FindConfigPermissionsValidityInMsDefault { - return &FindConfigPermissionsValidityInMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigPermissionsValidityInMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigPermissionsValidityInMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config permissions validity in ms default response -func (o *FindConfigPermissionsValidityInMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigPermissionsValidityInMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigPermissionsValidityInMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigPermissionsValidityInMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_phi_convict_threshold_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_phi_convict_threshold_parameters.go deleted file mode 100644 index d2bb467a89..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_phi_convict_threshold_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigPhiConvictThresholdParams creates a new FindConfigPhiConvictThresholdParams object -// with the default values initialized. -func NewFindConfigPhiConvictThresholdParams() *FindConfigPhiConvictThresholdParams { - - return &FindConfigPhiConvictThresholdParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigPhiConvictThresholdParamsWithTimeout creates a new FindConfigPhiConvictThresholdParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigPhiConvictThresholdParamsWithTimeout(timeout time.Duration) *FindConfigPhiConvictThresholdParams { - - return &FindConfigPhiConvictThresholdParams{ - - timeout: timeout, - } -} - -// NewFindConfigPhiConvictThresholdParamsWithContext creates a new FindConfigPhiConvictThresholdParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigPhiConvictThresholdParamsWithContext(ctx context.Context) *FindConfigPhiConvictThresholdParams { - - return &FindConfigPhiConvictThresholdParams{ - - Context: ctx, - } -} - -// NewFindConfigPhiConvictThresholdParamsWithHTTPClient creates a new FindConfigPhiConvictThresholdParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigPhiConvictThresholdParamsWithHTTPClient(client *http.Client) *FindConfigPhiConvictThresholdParams { - - return &FindConfigPhiConvictThresholdParams{ - HTTPClient: client, - } -} - -/* -FindConfigPhiConvictThresholdParams contains all the parameters to send to the API endpoint -for the find config phi convict threshold operation typically these are written to a http.Request -*/ -type FindConfigPhiConvictThresholdParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config phi convict threshold params -func (o *FindConfigPhiConvictThresholdParams) WithTimeout(timeout time.Duration) *FindConfigPhiConvictThresholdParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config phi convict threshold params -func (o *FindConfigPhiConvictThresholdParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config phi convict threshold params -func (o *FindConfigPhiConvictThresholdParams) WithContext(ctx context.Context) *FindConfigPhiConvictThresholdParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config phi convict threshold params -func (o *FindConfigPhiConvictThresholdParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config phi convict threshold params -func (o *FindConfigPhiConvictThresholdParams) WithHTTPClient(client *http.Client) *FindConfigPhiConvictThresholdParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config phi convict threshold params -func (o *FindConfigPhiConvictThresholdParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigPhiConvictThresholdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_phi_convict_threshold_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_phi_convict_threshold_responses.go deleted file mode 100644 index 78cdcbb176..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_phi_convict_threshold_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigPhiConvictThresholdReader is a Reader for the FindConfigPhiConvictThreshold structure. -type FindConfigPhiConvictThresholdReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigPhiConvictThresholdReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigPhiConvictThresholdOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigPhiConvictThresholdDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigPhiConvictThresholdOK creates a FindConfigPhiConvictThresholdOK with default headers values -func NewFindConfigPhiConvictThresholdOK() *FindConfigPhiConvictThresholdOK { - return &FindConfigPhiConvictThresholdOK{} -} - -/* -FindConfigPhiConvictThresholdOK handles this case with default header values. - -Config value -*/ -type FindConfigPhiConvictThresholdOK struct { - Payload int64 -} - -func (o *FindConfigPhiConvictThresholdOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigPhiConvictThresholdOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigPhiConvictThresholdDefault creates a FindConfigPhiConvictThresholdDefault with default headers values -func NewFindConfigPhiConvictThresholdDefault(code int) *FindConfigPhiConvictThresholdDefault { - return &FindConfigPhiConvictThresholdDefault{ - _statusCode: code, - } -} - -/* -FindConfigPhiConvictThresholdDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigPhiConvictThresholdDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config phi convict threshold default response -func (o *FindConfigPhiConvictThresholdDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigPhiConvictThresholdDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigPhiConvictThresholdDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigPhiConvictThresholdDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_preheat_kernel_page_cache_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_preheat_kernel_page_cache_parameters.go deleted file mode 100644 index 22a5d22abd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_preheat_kernel_page_cache_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigPreheatKernelPageCacheParams creates a new FindConfigPreheatKernelPageCacheParams object -// with the default values initialized. -func NewFindConfigPreheatKernelPageCacheParams() *FindConfigPreheatKernelPageCacheParams { - - return &FindConfigPreheatKernelPageCacheParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigPreheatKernelPageCacheParamsWithTimeout creates a new FindConfigPreheatKernelPageCacheParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigPreheatKernelPageCacheParamsWithTimeout(timeout time.Duration) *FindConfigPreheatKernelPageCacheParams { - - return &FindConfigPreheatKernelPageCacheParams{ - - timeout: timeout, - } -} - -// NewFindConfigPreheatKernelPageCacheParamsWithContext creates a new FindConfigPreheatKernelPageCacheParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigPreheatKernelPageCacheParamsWithContext(ctx context.Context) *FindConfigPreheatKernelPageCacheParams { - - return &FindConfigPreheatKernelPageCacheParams{ - - Context: ctx, - } -} - -// NewFindConfigPreheatKernelPageCacheParamsWithHTTPClient creates a new FindConfigPreheatKernelPageCacheParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigPreheatKernelPageCacheParamsWithHTTPClient(client *http.Client) *FindConfigPreheatKernelPageCacheParams { - - return &FindConfigPreheatKernelPageCacheParams{ - HTTPClient: client, - } -} - -/* -FindConfigPreheatKernelPageCacheParams contains all the parameters to send to the API endpoint -for the find config preheat kernel page cache operation typically these are written to a http.Request -*/ -type FindConfigPreheatKernelPageCacheParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config preheat kernel page cache params -func (o *FindConfigPreheatKernelPageCacheParams) WithTimeout(timeout time.Duration) *FindConfigPreheatKernelPageCacheParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config preheat kernel page cache params -func (o *FindConfigPreheatKernelPageCacheParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config preheat kernel page cache params -func (o *FindConfigPreheatKernelPageCacheParams) WithContext(ctx context.Context) *FindConfigPreheatKernelPageCacheParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config preheat kernel page cache params -func (o *FindConfigPreheatKernelPageCacheParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config preheat kernel page cache params -func (o *FindConfigPreheatKernelPageCacheParams) WithHTTPClient(client *http.Client) *FindConfigPreheatKernelPageCacheParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config preheat kernel page cache params -func (o *FindConfigPreheatKernelPageCacheParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigPreheatKernelPageCacheParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_preheat_kernel_page_cache_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_preheat_kernel_page_cache_responses.go deleted file mode 100644 index 9e28a8d8fd..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_preheat_kernel_page_cache_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigPreheatKernelPageCacheReader is a Reader for the FindConfigPreheatKernelPageCache structure. -type FindConfigPreheatKernelPageCacheReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigPreheatKernelPageCacheReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigPreheatKernelPageCacheOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigPreheatKernelPageCacheDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigPreheatKernelPageCacheOK creates a FindConfigPreheatKernelPageCacheOK with default headers values -func NewFindConfigPreheatKernelPageCacheOK() *FindConfigPreheatKernelPageCacheOK { - return &FindConfigPreheatKernelPageCacheOK{} -} - -/* -FindConfigPreheatKernelPageCacheOK handles this case with default header values. - -Config value -*/ -type FindConfigPreheatKernelPageCacheOK struct { - Payload bool -} - -func (o *FindConfigPreheatKernelPageCacheOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigPreheatKernelPageCacheOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigPreheatKernelPageCacheDefault creates a FindConfigPreheatKernelPageCacheDefault with default headers values -func NewFindConfigPreheatKernelPageCacheDefault(code int) *FindConfigPreheatKernelPageCacheDefault { - return &FindConfigPreheatKernelPageCacheDefault{ - _statusCode: code, - } -} - -/* -FindConfigPreheatKernelPageCacheDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigPreheatKernelPageCacheDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config preheat kernel page cache default response -func (o *FindConfigPreheatKernelPageCacheDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigPreheatKernelPageCacheDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigPreheatKernelPageCacheDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigPreheatKernelPageCacheDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_prometheus_address_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_prometheus_address_parameters.go deleted file mode 100644 index 2679993b19..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_prometheus_address_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigPrometheusAddressParams creates a new FindConfigPrometheusAddressParams object -// with the default values initialized. -func NewFindConfigPrometheusAddressParams() *FindConfigPrometheusAddressParams { - - return &FindConfigPrometheusAddressParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigPrometheusAddressParamsWithTimeout creates a new FindConfigPrometheusAddressParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigPrometheusAddressParamsWithTimeout(timeout time.Duration) *FindConfigPrometheusAddressParams { - - return &FindConfigPrometheusAddressParams{ - - timeout: timeout, - } -} - -// NewFindConfigPrometheusAddressParamsWithContext creates a new FindConfigPrometheusAddressParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigPrometheusAddressParamsWithContext(ctx context.Context) *FindConfigPrometheusAddressParams { - - return &FindConfigPrometheusAddressParams{ - - Context: ctx, - } -} - -// NewFindConfigPrometheusAddressParamsWithHTTPClient creates a new FindConfigPrometheusAddressParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigPrometheusAddressParamsWithHTTPClient(client *http.Client) *FindConfigPrometheusAddressParams { - - return &FindConfigPrometheusAddressParams{ - HTTPClient: client, - } -} - -/* -FindConfigPrometheusAddressParams contains all the parameters to send to the API endpoint -for the find config prometheus address operation typically these are written to a http.Request -*/ -type FindConfigPrometheusAddressParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config prometheus address params -func (o *FindConfigPrometheusAddressParams) WithTimeout(timeout time.Duration) *FindConfigPrometheusAddressParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config prometheus address params -func (o *FindConfigPrometheusAddressParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config prometheus address params -func (o *FindConfigPrometheusAddressParams) WithContext(ctx context.Context) *FindConfigPrometheusAddressParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config prometheus address params -func (o *FindConfigPrometheusAddressParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config prometheus address params -func (o *FindConfigPrometheusAddressParams) WithHTTPClient(client *http.Client) *FindConfigPrometheusAddressParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config prometheus address params -func (o *FindConfigPrometheusAddressParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigPrometheusAddressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_prometheus_address_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_prometheus_address_responses.go deleted file mode 100644 index 1b257c3d4b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_prometheus_address_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigPrometheusAddressReader is a Reader for the FindConfigPrometheusAddress structure. -type FindConfigPrometheusAddressReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigPrometheusAddressReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigPrometheusAddressOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigPrometheusAddressDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigPrometheusAddressOK creates a FindConfigPrometheusAddressOK with default headers values -func NewFindConfigPrometheusAddressOK() *FindConfigPrometheusAddressOK { - return &FindConfigPrometheusAddressOK{} -} - -/* -FindConfigPrometheusAddressOK handles this case with default header values. - -Config value -*/ -type FindConfigPrometheusAddressOK struct { - Payload string -} - -func (o *FindConfigPrometheusAddressOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigPrometheusAddressOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigPrometheusAddressDefault creates a FindConfigPrometheusAddressDefault with default headers values -func NewFindConfigPrometheusAddressDefault(code int) *FindConfigPrometheusAddressDefault { - return &FindConfigPrometheusAddressDefault{ - _statusCode: code, - } -} - -/* -FindConfigPrometheusAddressDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigPrometheusAddressDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config prometheus address default response -func (o *FindConfigPrometheusAddressDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigPrometheusAddressDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigPrometheusAddressDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigPrometheusAddressDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_prometheus_port_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_prometheus_port_parameters.go deleted file mode 100644 index 0af89913f8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_prometheus_port_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigPrometheusPortParams creates a new FindConfigPrometheusPortParams object -// with the default values initialized. -func NewFindConfigPrometheusPortParams() *FindConfigPrometheusPortParams { - - return &FindConfigPrometheusPortParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigPrometheusPortParamsWithTimeout creates a new FindConfigPrometheusPortParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigPrometheusPortParamsWithTimeout(timeout time.Duration) *FindConfigPrometheusPortParams { - - return &FindConfigPrometheusPortParams{ - - timeout: timeout, - } -} - -// NewFindConfigPrometheusPortParamsWithContext creates a new FindConfigPrometheusPortParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigPrometheusPortParamsWithContext(ctx context.Context) *FindConfigPrometheusPortParams { - - return &FindConfigPrometheusPortParams{ - - Context: ctx, - } -} - -// NewFindConfigPrometheusPortParamsWithHTTPClient creates a new FindConfigPrometheusPortParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigPrometheusPortParamsWithHTTPClient(client *http.Client) *FindConfigPrometheusPortParams { - - return &FindConfigPrometheusPortParams{ - HTTPClient: client, - } -} - -/* -FindConfigPrometheusPortParams contains all the parameters to send to the API endpoint -for the find config prometheus port operation typically these are written to a http.Request -*/ -type FindConfigPrometheusPortParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config prometheus port params -func (o *FindConfigPrometheusPortParams) WithTimeout(timeout time.Duration) *FindConfigPrometheusPortParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config prometheus port params -func (o *FindConfigPrometheusPortParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config prometheus port params -func (o *FindConfigPrometheusPortParams) WithContext(ctx context.Context) *FindConfigPrometheusPortParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config prometheus port params -func (o *FindConfigPrometheusPortParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config prometheus port params -func (o *FindConfigPrometheusPortParams) WithHTTPClient(client *http.Client) *FindConfigPrometheusPortParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config prometheus port params -func (o *FindConfigPrometheusPortParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigPrometheusPortParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_prometheus_port_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_prometheus_port_responses.go deleted file mode 100644 index 0ac5f98d5b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_prometheus_port_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigPrometheusPortReader is a Reader for the FindConfigPrometheusPort structure. -type FindConfigPrometheusPortReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigPrometheusPortReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigPrometheusPortOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigPrometheusPortDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigPrometheusPortOK creates a FindConfigPrometheusPortOK with default headers values -func NewFindConfigPrometheusPortOK() *FindConfigPrometheusPortOK { - return &FindConfigPrometheusPortOK{} -} - -/* -FindConfigPrometheusPortOK handles this case with default header values. - -Config value -*/ -type FindConfigPrometheusPortOK struct { - Payload int64 -} - -func (o *FindConfigPrometheusPortOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigPrometheusPortOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigPrometheusPortDefault creates a FindConfigPrometheusPortDefault with default headers values -func NewFindConfigPrometheusPortDefault(code int) *FindConfigPrometheusPortDefault { - return &FindConfigPrometheusPortDefault{ - _statusCode: code, - } -} - -/* -FindConfigPrometheusPortDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigPrometheusPortDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config prometheus port default response -func (o *FindConfigPrometheusPortDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigPrometheusPortDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigPrometheusPortDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigPrometheusPortDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_prometheus_prefix_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_prometheus_prefix_parameters.go deleted file mode 100644 index 35a7c99458..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_prometheus_prefix_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigPrometheusPrefixParams creates a new FindConfigPrometheusPrefixParams object -// with the default values initialized. -func NewFindConfigPrometheusPrefixParams() *FindConfigPrometheusPrefixParams { - - return &FindConfigPrometheusPrefixParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigPrometheusPrefixParamsWithTimeout creates a new FindConfigPrometheusPrefixParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigPrometheusPrefixParamsWithTimeout(timeout time.Duration) *FindConfigPrometheusPrefixParams { - - return &FindConfigPrometheusPrefixParams{ - - timeout: timeout, - } -} - -// NewFindConfigPrometheusPrefixParamsWithContext creates a new FindConfigPrometheusPrefixParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigPrometheusPrefixParamsWithContext(ctx context.Context) *FindConfigPrometheusPrefixParams { - - return &FindConfigPrometheusPrefixParams{ - - Context: ctx, - } -} - -// NewFindConfigPrometheusPrefixParamsWithHTTPClient creates a new FindConfigPrometheusPrefixParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigPrometheusPrefixParamsWithHTTPClient(client *http.Client) *FindConfigPrometheusPrefixParams { - - return &FindConfigPrometheusPrefixParams{ - HTTPClient: client, - } -} - -/* -FindConfigPrometheusPrefixParams contains all the parameters to send to the API endpoint -for the find config prometheus prefix operation typically these are written to a http.Request -*/ -type FindConfigPrometheusPrefixParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config prometheus prefix params -func (o *FindConfigPrometheusPrefixParams) WithTimeout(timeout time.Duration) *FindConfigPrometheusPrefixParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config prometheus prefix params -func (o *FindConfigPrometheusPrefixParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config prometheus prefix params -func (o *FindConfigPrometheusPrefixParams) WithContext(ctx context.Context) *FindConfigPrometheusPrefixParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config prometheus prefix params -func (o *FindConfigPrometheusPrefixParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config prometheus prefix params -func (o *FindConfigPrometheusPrefixParams) WithHTTPClient(client *http.Client) *FindConfigPrometheusPrefixParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config prometheus prefix params -func (o *FindConfigPrometheusPrefixParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigPrometheusPrefixParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_prometheus_prefix_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_prometheus_prefix_responses.go deleted file mode 100644 index 465293ee24..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_prometheus_prefix_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigPrometheusPrefixReader is a Reader for the FindConfigPrometheusPrefix structure. -type FindConfigPrometheusPrefixReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigPrometheusPrefixReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigPrometheusPrefixOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigPrometheusPrefixDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigPrometheusPrefixOK creates a FindConfigPrometheusPrefixOK with default headers values -func NewFindConfigPrometheusPrefixOK() *FindConfigPrometheusPrefixOK { - return &FindConfigPrometheusPrefixOK{} -} - -/* -FindConfigPrometheusPrefixOK handles this case with default header values. - -Config value -*/ -type FindConfigPrometheusPrefixOK struct { - Payload string -} - -func (o *FindConfigPrometheusPrefixOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigPrometheusPrefixOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigPrometheusPrefixDefault creates a FindConfigPrometheusPrefixDefault with default headers values -func NewFindConfigPrometheusPrefixDefault(code int) *FindConfigPrometheusPrefixDefault { - return &FindConfigPrometheusPrefixDefault{ - _statusCode: code, - } -} - -/* -FindConfigPrometheusPrefixDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigPrometheusPrefixDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config prometheus prefix default response -func (o *FindConfigPrometheusPrefixDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigPrometheusPrefixDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigPrometheusPrefixDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigPrometheusPrefixDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_range_request_timeout_in_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_range_request_timeout_in_ms_parameters.go deleted file mode 100644 index 831e317e8f..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_range_request_timeout_in_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigRangeRequestTimeoutInMsParams creates a new FindConfigRangeRequestTimeoutInMsParams object -// with the default values initialized. -func NewFindConfigRangeRequestTimeoutInMsParams() *FindConfigRangeRequestTimeoutInMsParams { - - return &FindConfigRangeRequestTimeoutInMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigRangeRequestTimeoutInMsParamsWithTimeout creates a new FindConfigRangeRequestTimeoutInMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigRangeRequestTimeoutInMsParamsWithTimeout(timeout time.Duration) *FindConfigRangeRequestTimeoutInMsParams { - - return &FindConfigRangeRequestTimeoutInMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigRangeRequestTimeoutInMsParamsWithContext creates a new FindConfigRangeRequestTimeoutInMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigRangeRequestTimeoutInMsParamsWithContext(ctx context.Context) *FindConfigRangeRequestTimeoutInMsParams { - - return &FindConfigRangeRequestTimeoutInMsParams{ - - Context: ctx, - } -} - -// NewFindConfigRangeRequestTimeoutInMsParamsWithHTTPClient creates a new FindConfigRangeRequestTimeoutInMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigRangeRequestTimeoutInMsParamsWithHTTPClient(client *http.Client) *FindConfigRangeRequestTimeoutInMsParams { - - return &FindConfigRangeRequestTimeoutInMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigRangeRequestTimeoutInMsParams contains all the parameters to send to the API endpoint -for the find config range request timeout in ms operation typically these are written to a http.Request -*/ -type FindConfigRangeRequestTimeoutInMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config range request timeout in ms params -func (o *FindConfigRangeRequestTimeoutInMsParams) WithTimeout(timeout time.Duration) *FindConfigRangeRequestTimeoutInMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config range request timeout in ms params -func (o *FindConfigRangeRequestTimeoutInMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config range request timeout in ms params -func (o *FindConfigRangeRequestTimeoutInMsParams) WithContext(ctx context.Context) *FindConfigRangeRequestTimeoutInMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config range request timeout in ms params -func (o *FindConfigRangeRequestTimeoutInMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config range request timeout in ms params -func (o *FindConfigRangeRequestTimeoutInMsParams) WithHTTPClient(client *http.Client) *FindConfigRangeRequestTimeoutInMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config range request timeout in ms params -func (o *FindConfigRangeRequestTimeoutInMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigRangeRequestTimeoutInMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_range_request_timeout_in_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_range_request_timeout_in_ms_responses.go deleted file mode 100644 index 762a1b8110..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_range_request_timeout_in_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigRangeRequestTimeoutInMsReader is a Reader for the FindConfigRangeRequestTimeoutInMs structure. -type FindConfigRangeRequestTimeoutInMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigRangeRequestTimeoutInMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigRangeRequestTimeoutInMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigRangeRequestTimeoutInMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigRangeRequestTimeoutInMsOK creates a FindConfigRangeRequestTimeoutInMsOK with default headers values -func NewFindConfigRangeRequestTimeoutInMsOK() *FindConfigRangeRequestTimeoutInMsOK { - return &FindConfigRangeRequestTimeoutInMsOK{} -} - -/* -FindConfigRangeRequestTimeoutInMsOK handles this case with default header values. - -Config value -*/ -type FindConfigRangeRequestTimeoutInMsOK struct { - Payload int64 -} - -func (o *FindConfigRangeRequestTimeoutInMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigRangeRequestTimeoutInMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigRangeRequestTimeoutInMsDefault creates a FindConfigRangeRequestTimeoutInMsDefault with default headers values -func NewFindConfigRangeRequestTimeoutInMsDefault(code int) *FindConfigRangeRequestTimeoutInMsDefault { - return &FindConfigRangeRequestTimeoutInMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigRangeRequestTimeoutInMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigRangeRequestTimeoutInMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config range request timeout in ms default response -func (o *FindConfigRangeRequestTimeoutInMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigRangeRequestTimeoutInMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigRangeRequestTimeoutInMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigRangeRequestTimeoutInMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_read_request_timeout_in_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_read_request_timeout_in_ms_parameters.go deleted file mode 100644 index 0b1547e93e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_read_request_timeout_in_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigReadRequestTimeoutInMsParams creates a new FindConfigReadRequestTimeoutInMsParams object -// with the default values initialized. -func NewFindConfigReadRequestTimeoutInMsParams() *FindConfigReadRequestTimeoutInMsParams { - - return &FindConfigReadRequestTimeoutInMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigReadRequestTimeoutInMsParamsWithTimeout creates a new FindConfigReadRequestTimeoutInMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigReadRequestTimeoutInMsParamsWithTimeout(timeout time.Duration) *FindConfigReadRequestTimeoutInMsParams { - - return &FindConfigReadRequestTimeoutInMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigReadRequestTimeoutInMsParamsWithContext creates a new FindConfigReadRequestTimeoutInMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigReadRequestTimeoutInMsParamsWithContext(ctx context.Context) *FindConfigReadRequestTimeoutInMsParams { - - return &FindConfigReadRequestTimeoutInMsParams{ - - Context: ctx, - } -} - -// NewFindConfigReadRequestTimeoutInMsParamsWithHTTPClient creates a new FindConfigReadRequestTimeoutInMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigReadRequestTimeoutInMsParamsWithHTTPClient(client *http.Client) *FindConfigReadRequestTimeoutInMsParams { - - return &FindConfigReadRequestTimeoutInMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigReadRequestTimeoutInMsParams contains all the parameters to send to the API endpoint -for the find config read request timeout in ms operation typically these are written to a http.Request -*/ -type FindConfigReadRequestTimeoutInMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config read request timeout in ms params -func (o *FindConfigReadRequestTimeoutInMsParams) WithTimeout(timeout time.Duration) *FindConfigReadRequestTimeoutInMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config read request timeout in ms params -func (o *FindConfigReadRequestTimeoutInMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config read request timeout in ms params -func (o *FindConfigReadRequestTimeoutInMsParams) WithContext(ctx context.Context) *FindConfigReadRequestTimeoutInMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config read request timeout in ms params -func (o *FindConfigReadRequestTimeoutInMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config read request timeout in ms params -func (o *FindConfigReadRequestTimeoutInMsParams) WithHTTPClient(client *http.Client) *FindConfigReadRequestTimeoutInMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config read request timeout in ms params -func (o *FindConfigReadRequestTimeoutInMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigReadRequestTimeoutInMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_read_request_timeout_in_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_read_request_timeout_in_ms_responses.go deleted file mode 100644 index 1a1175541b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_read_request_timeout_in_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigReadRequestTimeoutInMsReader is a Reader for the FindConfigReadRequestTimeoutInMs structure. -type FindConfigReadRequestTimeoutInMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigReadRequestTimeoutInMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigReadRequestTimeoutInMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigReadRequestTimeoutInMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigReadRequestTimeoutInMsOK creates a FindConfigReadRequestTimeoutInMsOK with default headers values -func NewFindConfigReadRequestTimeoutInMsOK() *FindConfigReadRequestTimeoutInMsOK { - return &FindConfigReadRequestTimeoutInMsOK{} -} - -/* -FindConfigReadRequestTimeoutInMsOK handles this case with default header values. - -Config value -*/ -type FindConfigReadRequestTimeoutInMsOK struct { - Payload int64 -} - -func (o *FindConfigReadRequestTimeoutInMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigReadRequestTimeoutInMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigReadRequestTimeoutInMsDefault creates a FindConfigReadRequestTimeoutInMsDefault with default headers values -func NewFindConfigReadRequestTimeoutInMsDefault(code int) *FindConfigReadRequestTimeoutInMsDefault { - return &FindConfigReadRequestTimeoutInMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigReadRequestTimeoutInMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigReadRequestTimeoutInMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config read request timeout in ms default response -func (o *FindConfigReadRequestTimeoutInMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigReadRequestTimeoutInMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigReadRequestTimeoutInMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigReadRequestTimeoutInMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_reduce_cache_capacity_to_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_reduce_cache_capacity_to_parameters.go deleted file mode 100644 index 35e855d0b1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_reduce_cache_capacity_to_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigReduceCacheCapacityToParams creates a new FindConfigReduceCacheCapacityToParams object -// with the default values initialized. -func NewFindConfigReduceCacheCapacityToParams() *FindConfigReduceCacheCapacityToParams { - - return &FindConfigReduceCacheCapacityToParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigReduceCacheCapacityToParamsWithTimeout creates a new FindConfigReduceCacheCapacityToParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigReduceCacheCapacityToParamsWithTimeout(timeout time.Duration) *FindConfigReduceCacheCapacityToParams { - - return &FindConfigReduceCacheCapacityToParams{ - - timeout: timeout, - } -} - -// NewFindConfigReduceCacheCapacityToParamsWithContext creates a new FindConfigReduceCacheCapacityToParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigReduceCacheCapacityToParamsWithContext(ctx context.Context) *FindConfigReduceCacheCapacityToParams { - - return &FindConfigReduceCacheCapacityToParams{ - - Context: ctx, - } -} - -// NewFindConfigReduceCacheCapacityToParamsWithHTTPClient creates a new FindConfigReduceCacheCapacityToParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigReduceCacheCapacityToParamsWithHTTPClient(client *http.Client) *FindConfigReduceCacheCapacityToParams { - - return &FindConfigReduceCacheCapacityToParams{ - HTTPClient: client, - } -} - -/* -FindConfigReduceCacheCapacityToParams contains all the parameters to send to the API endpoint -for the find config reduce cache capacity to operation typically these are written to a http.Request -*/ -type FindConfigReduceCacheCapacityToParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config reduce cache capacity to params -func (o *FindConfigReduceCacheCapacityToParams) WithTimeout(timeout time.Duration) *FindConfigReduceCacheCapacityToParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config reduce cache capacity to params -func (o *FindConfigReduceCacheCapacityToParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config reduce cache capacity to params -func (o *FindConfigReduceCacheCapacityToParams) WithContext(ctx context.Context) *FindConfigReduceCacheCapacityToParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config reduce cache capacity to params -func (o *FindConfigReduceCacheCapacityToParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config reduce cache capacity to params -func (o *FindConfigReduceCacheCapacityToParams) WithHTTPClient(client *http.Client) *FindConfigReduceCacheCapacityToParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config reduce cache capacity to params -func (o *FindConfigReduceCacheCapacityToParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigReduceCacheCapacityToParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_reduce_cache_capacity_to_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_reduce_cache_capacity_to_responses.go deleted file mode 100644 index 2131895206..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_reduce_cache_capacity_to_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigReduceCacheCapacityToReader is a Reader for the FindConfigReduceCacheCapacityTo structure. -type FindConfigReduceCacheCapacityToReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigReduceCacheCapacityToReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigReduceCacheCapacityToOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigReduceCacheCapacityToDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigReduceCacheCapacityToOK creates a FindConfigReduceCacheCapacityToOK with default headers values -func NewFindConfigReduceCacheCapacityToOK() *FindConfigReduceCacheCapacityToOK { - return &FindConfigReduceCacheCapacityToOK{} -} - -/* -FindConfigReduceCacheCapacityToOK handles this case with default header values. - -Config value -*/ -type FindConfigReduceCacheCapacityToOK struct { - Payload float64 -} - -func (o *FindConfigReduceCacheCapacityToOK) GetPayload() float64 { - return o.Payload -} - -func (o *FindConfigReduceCacheCapacityToOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigReduceCacheCapacityToDefault creates a FindConfigReduceCacheCapacityToDefault with default headers values -func NewFindConfigReduceCacheCapacityToDefault(code int) *FindConfigReduceCacheCapacityToDefault { - return &FindConfigReduceCacheCapacityToDefault{ - _statusCode: code, - } -} - -/* -FindConfigReduceCacheCapacityToDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigReduceCacheCapacityToDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config reduce cache capacity to default response -func (o *FindConfigReduceCacheCapacityToDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigReduceCacheCapacityToDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigReduceCacheCapacityToDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigReduceCacheCapacityToDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_reduce_cache_sizes_at_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_reduce_cache_sizes_at_parameters.go deleted file mode 100644 index a8fd0bcf24..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_reduce_cache_sizes_at_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigReduceCacheSizesAtParams creates a new FindConfigReduceCacheSizesAtParams object -// with the default values initialized. -func NewFindConfigReduceCacheSizesAtParams() *FindConfigReduceCacheSizesAtParams { - - return &FindConfigReduceCacheSizesAtParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigReduceCacheSizesAtParamsWithTimeout creates a new FindConfigReduceCacheSizesAtParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigReduceCacheSizesAtParamsWithTimeout(timeout time.Duration) *FindConfigReduceCacheSizesAtParams { - - return &FindConfigReduceCacheSizesAtParams{ - - timeout: timeout, - } -} - -// NewFindConfigReduceCacheSizesAtParamsWithContext creates a new FindConfigReduceCacheSizesAtParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigReduceCacheSizesAtParamsWithContext(ctx context.Context) *FindConfigReduceCacheSizesAtParams { - - return &FindConfigReduceCacheSizesAtParams{ - - Context: ctx, - } -} - -// NewFindConfigReduceCacheSizesAtParamsWithHTTPClient creates a new FindConfigReduceCacheSizesAtParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigReduceCacheSizesAtParamsWithHTTPClient(client *http.Client) *FindConfigReduceCacheSizesAtParams { - - return &FindConfigReduceCacheSizesAtParams{ - HTTPClient: client, - } -} - -/* -FindConfigReduceCacheSizesAtParams contains all the parameters to send to the API endpoint -for the find config reduce cache sizes at operation typically these are written to a http.Request -*/ -type FindConfigReduceCacheSizesAtParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config reduce cache sizes at params -func (o *FindConfigReduceCacheSizesAtParams) WithTimeout(timeout time.Duration) *FindConfigReduceCacheSizesAtParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config reduce cache sizes at params -func (o *FindConfigReduceCacheSizesAtParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config reduce cache sizes at params -func (o *FindConfigReduceCacheSizesAtParams) WithContext(ctx context.Context) *FindConfigReduceCacheSizesAtParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config reduce cache sizes at params -func (o *FindConfigReduceCacheSizesAtParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config reduce cache sizes at params -func (o *FindConfigReduceCacheSizesAtParams) WithHTTPClient(client *http.Client) *FindConfigReduceCacheSizesAtParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config reduce cache sizes at params -func (o *FindConfigReduceCacheSizesAtParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigReduceCacheSizesAtParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_reduce_cache_sizes_at_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_reduce_cache_sizes_at_responses.go deleted file mode 100644 index d20e0b45f1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_reduce_cache_sizes_at_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigReduceCacheSizesAtReader is a Reader for the FindConfigReduceCacheSizesAt structure. -type FindConfigReduceCacheSizesAtReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigReduceCacheSizesAtReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigReduceCacheSizesAtOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigReduceCacheSizesAtDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigReduceCacheSizesAtOK creates a FindConfigReduceCacheSizesAtOK with default headers values -func NewFindConfigReduceCacheSizesAtOK() *FindConfigReduceCacheSizesAtOK { - return &FindConfigReduceCacheSizesAtOK{} -} - -/* -FindConfigReduceCacheSizesAtOK handles this case with default header values. - -Config value -*/ -type FindConfigReduceCacheSizesAtOK struct { - Payload float64 -} - -func (o *FindConfigReduceCacheSizesAtOK) GetPayload() float64 { - return o.Payload -} - -func (o *FindConfigReduceCacheSizesAtOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigReduceCacheSizesAtDefault creates a FindConfigReduceCacheSizesAtDefault with default headers values -func NewFindConfigReduceCacheSizesAtDefault(code int) *FindConfigReduceCacheSizesAtDefault { - return &FindConfigReduceCacheSizesAtDefault{ - _statusCode: code, - } -} - -/* -FindConfigReduceCacheSizesAtDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigReduceCacheSizesAtDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config reduce cache sizes at default response -func (o *FindConfigReduceCacheSizesAtDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigReduceCacheSizesAtDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigReduceCacheSizesAtDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigReduceCacheSizesAtDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_replace_node_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_replace_node_parameters.go deleted file mode 100644 index 512e28b12a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_replace_node_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigReplaceNodeParams creates a new FindConfigReplaceNodeParams object -// with the default values initialized. -func NewFindConfigReplaceNodeParams() *FindConfigReplaceNodeParams { - - return &FindConfigReplaceNodeParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigReplaceNodeParamsWithTimeout creates a new FindConfigReplaceNodeParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigReplaceNodeParamsWithTimeout(timeout time.Duration) *FindConfigReplaceNodeParams { - - return &FindConfigReplaceNodeParams{ - - timeout: timeout, - } -} - -// NewFindConfigReplaceNodeParamsWithContext creates a new FindConfigReplaceNodeParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigReplaceNodeParamsWithContext(ctx context.Context) *FindConfigReplaceNodeParams { - - return &FindConfigReplaceNodeParams{ - - Context: ctx, - } -} - -// NewFindConfigReplaceNodeParamsWithHTTPClient creates a new FindConfigReplaceNodeParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigReplaceNodeParamsWithHTTPClient(client *http.Client) *FindConfigReplaceNodeParams { - - return &FindConfigReplaceNodeParams{ - HTTPClient: client, - } -} - -/* -FindConfigReplaceNodeParams contains all the parameters to send to the API endpoint -for the find config replace node operation typically these are written to a http.Request -*/ -type FindConfigReplaceNodeParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config replace node params -func (o *FindConfigReplaceNodeParams) WithTimeout(timeout time.Duration) *FindConfigReplaceNodeParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config replace node params -func (o *FindConfigReplaceNodeParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config replace node params -func (o *FindConfigReplaceNodeParams) WithContext(ctx context.Context) *FindConfigReplaceNodeParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config replace node params -func (o *FindConfigReplaceNodeParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config replace node params -func (o *FindConfigReplaceNodeParams) WithHTTPClient(client *http.Client) *FindConfigReplaceNodeParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config replace node params -func (o *FindConfigReplaceNodeParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigReplaceNodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_replace_node_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_replace_node_responses.go deleted file mode 100644 index fcfc32ddb3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_replace_node_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigReplaceNodeReader is a Reader for the FindConfigReplaceNode structure. -type FindConfigReplaceNodeReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigReplaceNodeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigReplaceNodeOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigReplaceNodeDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigReplaceNodeOK creates a FindConfigReplaceNodeOK with default headers values -func NewFindConfigReplaceNodeOK() *FindConfigReplaceNodeOK { - return &FindConfigReplaceNodeOK{} -} - -/* -FindConfigReplaceNodeOK handles this case with default header values. - -Config value -*/ -type FindConfigReplaceNodeOK struct { - Payload string -} - -func (o *FindConfigReplaceNodeOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigReplaceNodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigReplaceNodeDefault creates a FindConfigReplaceNodeDefault with default headers values -func NewFindConfigReplaceNodeDefault(code int) *FindConfigReplaceNodeDefault { - return &FindConfigReplaceNodeDefault{ - _statusCode: code, - } -} - -/* -FindConfigReplaceNodeDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigReplaceNodeDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config replace node default response -func (o *FindConfigReplaceNodeDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigReplaceNodeDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigReplaceNodeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigReplaceNodeDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_replace_token_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_replace_token_parameters.go deleted file mode 100644 index fd034e4214..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_replace_token_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigReplaceTokenParams creates a new FindConfigReplaceTokenParams object -// with the default values initialized. -func NewFindConfigReplaceTokenParams() *FindConfigReplaceTokenParams { - - return &FindConfigReplaceTokenParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigReplaceTokenParamsWithTimeout creates a new FindConfigReplaceTokenParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigReplaceTokenParamsWithTimeout(timeout time.Duration) *FindConfigReplaceTokenParams { - - return &FindConfigReplaceTokenParams{ - - timeout: timeout, - } -} - -// NewFindConfigReplaceTokenParamsWithContext creates a new FindConfigReplaceTokenParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigReplaceTokenParamsWithContext(ctx context.Context) *FindConfigReplaceTokenParams { - - return &FindConfigReplaceTokenParams{ - - Context: ctx, - } -} - -// NewFindConfigReplaceTokenParamsWithHTTPClient creates a new FindConfigReplaceTokenParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigReplaceTokenParamsWithHTTPClient(client *http.Client) *FindConfigReplaceTokenParams { - - return &FindConfigReplaceTokenParams{ - HTTPClient: client, - } -} - -/* -FindConfigReplaceTokenParams contains all the parameters to send to the API endpoint -for the find config replace token operation typically these are written to a http.Request -*/ -type FindConfigReplaceTokenParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config replace token params -func (o *FindConfigReplaceTokenParams) WithTimeout(timeout time.Duration) *FindConfigReplaceTokenParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config replace token params -func (o *FindConfigReplaceTokenParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config replace token params -func (o *FindConfigReplaceTokenParams) WithContext(ctx context.Context) *FindConfigReplaceTokenParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config replace token params -func (o *FindConfigReplaceTokenParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config replace token params -func (o *FindConfigReplaceTokenParams) WithHTTPClient(client *http.Client) *FindConfigReplaceTokenParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config replace token params -func (o *FindConfigReplaceTokenParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigReplaceTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_replace_token_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_replace_token_responses.go deleted file mode 100644 index 5a3ce523b2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_replace_token_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigReplaceTokenReader is a Reader for the FindConfigReplaceToken structure. -type FindConfigReplaceTokenReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigReplaceTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigReplaceTokenOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigReplaceTokenDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigReplaceTokenOK creates a FindConfigReplaceTokenOK with default headers values -func NewFindConfigReplaceTokenOK() *FindConfigReplaceTokenOK { - return &FindConfigReplaceTokenOK{} -} - -/* -FindConfigReplaceTokenOK handles this case with default header values. - -Config value -*/ -type FindConfigReplaceTokenOK struct { - Payload string -} - -func (o *FindConfigReplaceTokenOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigReplaceTokenOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigReplaceTokenDefault creates a FindConfigReplaceTokenDefault with default headers values -func NewFindConfigReplaceTokenDefault(code int) *FindConfigReplaceTokenDefault { - return &FindConfigReplaceTokenDefault{ - _statusCode: code, - } -} - -/* -FindConfigReplaceTokenDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigReplaceTokenDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config replace token default response -func (o *FindConfigReplaceTokenDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigReplaceTokenDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigReplaceTokenDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigReplaceTokenDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_scheduler_id_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_scheduler_id_parameters.go deleted file mode 100644 index 3fc1313831..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_scheduler_id_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigRequestSchedulerIDParams creates a new FindConfigRequestSchedulerIDParams object -// with the default values initialized. -func NewFindConfigRequestSchedulerIDParams() *FindConfigRequestSchedulerIDParams { - - return &FindConfigRequestSchedulerIDParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigRequestSchedulerIDParamsWithTimeout creates a new FindConfigRequestSchedulerIDParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigRequestSchedulerIDParamsWithTimeout(timeout time.Duration) *FindConfigRequestSchedulerIDParams { - - return &FindConfigRequestSchedulerIDParams{ - - timeout: timeout, - } -} - -// NewFindConfigRequestSchedulerIDParamsWithContext creates a new FindConfigRequestSchedulerIDParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigRequestSchedulerIDParamsWithContext(ctx context.Context) *FindConfigRequestSchedulerIDParams { - - return &FindConfigRequestSchedulerIDParams{ - - Context: ctx, - } -} - -// NewFindConfigRequestSchedulerIDParamsWithHTTPClient creates a new FindConfigRequestSchedulerIDParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigRequestSchedulerIDParamsWithHTTPClient(client *http.Client) *FindConfigRequestSchedulerIDParams { - - return &FindConfigRequestSchedulerIDParams{ - HTTPClient: client, - } -} - -/* -FindConfigRequestSchedulerIDParams contains all the parameters to send to the API endpoint -for the find config request scheduler id operation typically these are written to a http.Request -*/ -type FindConfigRequestSchedulerIDParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config request scheduler id params -func (o *FindConfigRequestSchedulerIDParams) WithTimeout(timeout time.Duration) *FindConfigRequestSchedulerIDParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config request scheduler id params -func (o *FindConfigRequestSchedulerIDParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config request scheduler id params -func (o *FindConfigRequestSchedulerIDParams) WithContext(ctx context.Context) *FindConfigRequestSchedulerIDParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config request scheduler id params -func (o *FindConfigRequestSchedulerIDParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config request scheduler id params -func (o *FindConfigRequestSchedulerIDParams) WithHTTPClient(client *http.Client) *FindConfigRequestSchedulerIDParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config request scheduler id params -func (o *FindConfigRequestSchedulerIDParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigRequestSchedulerIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_scheduler_id_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_scheduler_id_responses.go deleted file mode 100644 index bd03a8a24c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_scheduler_id_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigRequestSchedulerIDReader is a Reader for the FindConfigRequestSchedulerID structure. -type FindConfigRequestSchedulerIDReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigRequestSchedulerIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigRequestSchedulerIDOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigRequestSchedulerIDDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigRequestSchedulerIDOK creates a FindConfigRequestSchedulerIDOK with default headers values -func NewFindConfigRequestSchedulerIDOK() *FindConfigRequestSchedulerIDOK { - return &FindConfigRequestSchedulerIDOK{} -} - -/* -FindConfigRequestSchedulerIDOK handles this case with default header values. - -Config value -*/ -type FindConfigRequestSchedulerIDOK struct { - Payload string -} - -func (o *FindConfigRequestSchedulerIDOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigRequestSchedulerIDOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigRequestSchedulerIDDefault creates a FindConfigRequestSchedulerIDDefault with default headers values -func NewFindConfigRequestSchedulerIDDefault(code int) *FindConfigRequestSchedulerIDDefault { - return &FindConfigRequestSchedulerIDDefault{ - _statusCode: code, - } -} - -/* -FindConfigRequestSchedulerIDDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigRequestSchedulerIDDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config request scheduler id default response -func (o *FindConfigRequestSchedulerIDDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigRequestSchedulerIDDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigRequestSchedulerIDDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigRequestSchedulerIDDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_scheduler_options_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_scheduler_options_parameters.go deleted file mode 100644 index a0991856a6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_scheduler_options_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigRequestSchedulerOptionsParams creates a new FindConfigRequestSchedulerOptionsParams object -// with the default values initialized. -func NewFindConfigRequestSchedulerOptionsParams() *FindConfigRequestSchedulerOptionsParams { - - return &FindConfigRequestSchedulerOptionsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigRequestSchedulerOptionsParamsWithTimeout creates a new FindConfigRequestSchedulerOptionsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigRequestSchedulerOptionsParamsWithTimeout(timeout time.Duration) *FindConfigRequestSchedulerOptionsParams { - - return &FindConfigRequestSchedulerOptionsParams{ - - timeout: timeout, - } -} - -// NewFindConfigRequestSchedulerOptionsParamsWithContext creates a new FindConfigRequestSchedulerOptionsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigRequestSchedulerOptionsParamsWithContext(ctx context.Context) *FindConfigRequestSchedulerOptionsParams { - - return &FindConfigRequestSchedulerOptionsParams{ - - Context: ctx, - } -} - -// NewFindConfigRequestSchedulerOptionsParamsWithHTTPClient creates a new FindConfigRequestSchedulerOptionsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigRequestSchedulerOptionsParamsWithHTTPClient(client *http.Client) *FindConfigRequestSchedulerOptionsParams { - - return &FindConfigRequestSchedulerOptionsParams{ - HTTPClient: client, - } -} - -/* -FindConfigRequestSchedulerOptionsParams contains all the parameters to send to the API endpoint -for the find config request scheduler options operation typically these are written to a http.Request -*/ -type FindConfigRequestSchedulerOptionsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config request scheduler options params -func (o *FindConfigRequestSchedulerOptionsParams) WithTimeout(timeout time.Duration) *FindConfigRequestSchedulerOptionsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config request scheduler options params -func (o *FindConfigRequestSchedulerOptionsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config request scheduler options params -func (o *FindConfigRequestSchedulerOptionsParams) WithContext(ctx context.Context) *FindConfigRequestSchedulerOptionsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config request scheduler options params -func (o *FindConfigRequestSchedulerOptionsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config request scheduler options params -func (o *FindConfigRequestSchedulerOptionsParams) WithHTTPClient(client *http.Client) *FindConfigRequestSchedulerOptionsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config request scheduler options params -func (o *FindConfigRequestSchedulerOptionsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigRequestSchedulerOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_scheduler_options_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_scheduler_options_responses.go deleted file mode 100644 index b3cbebed3d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_scheduler_options_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigRequestSchedulerOptionsReader is a Reader for the FindConfigRequestSchedulerOptions structure. -type FindConfigRequestSchedulerOptionsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigRequestSchedulerOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigRequestSchedulerOptionsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigRequestSchedulerOptionsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigRequestSchedulerOptionsOK creates a FindConfigRequestSchedulerOptionsOK with default headers values -func NewFindConfigRequestSchedulerOptionsOK() *FindConfigRequestSchedulerOptionsOK { - return &FindConfigRequestSchedulerOptionsOK{} -} - -/* -FindConfigRequestSchedulerOptionsOK handles this case with default header values. - -Config value -*/ -type FindConfigRequestSchedulerOptionsOK struct { - Payload []string -} - -func (o *FindConfigRequestSchedulerOptionsOK) GetPayload() []string { - return o.Payload -} - -func (o *FindConfigRequestSchedulerOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigRequestSchedulerOptionsDefault creates a FindConfigRequestSchedulerOptionsDefault with default headers values -func NewFindConfigRequestSchedulerOptionsDefault(code int) *FindConfigRequestSchedulerOptionsDefault { - return &FindConfigRequestSchedulerOptionsDefault{ - _statusCode: code, - } -} - -/* -FindConfigRequestSchedulerOptionsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigRequestSchedulerOptionsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config request scheduler options default response -func (o *FindConfigRequestSchedulerOptionsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigRequestSchedulerOptionsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigRequestSchedulerOptionsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigRequestSchedulerOptionsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_scheduler_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_scheduler_parameters.go deleted file mode 100644 index 54ba69cbd2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_scheduler_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigRequestSchedulerParams creates a new FindConfigRequestSchedulerParams object -// with the default values initialized. -func NewFindConfigRequestSchedulerParams() *FindConfigRequestSchedulerParams { - - return &FindConfigRequestSchedulerParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigRequestSchedulerParamsWithTimeout creates a new FindConfigRequestSchedulerParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigRequestSchedulerParamsWithTimeout(timeout time.Duration) *FindConfigRequestSchedulerParams { - - return &FindConfigRequestSchedulerParams{ - - timeout: timeout, - } -} - -// NewFindConfigRequestSchedulerParamsWithContext creates a new FindConfigRequestSchedulerParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigRequestSchedulerParamsWithContext(ctx context.Context) *FindConfigRequestSchedulerParams { - - return &FindConfigRequestSchedulerParams{ - - Context: ctx, - } -} - -// NewFindConfigRequestSchedulerParamsWithHTTPClient creates a new FindConfigRequestSchedulerParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigRequestSchedulerParamsWithHTTPClient(client *http.Client) *FindConfigRequestSchedulerParams { - - return &FindConfigRequestSchedulerParams{ - HTTPClient: client, - } -} - -/* -FindConfigRequestSchedulerParams contains all the parameters to send to the API endpoint -for the find config request scheduler operation typically these are written to a http.Request -*/ -type FindConfigRequestSchedulerParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config request scheduler params -func (o *FindConfigRequestSchedulerParams) WithTimeout(timeout time.Duration) *FindConfigRequestSchedulerParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config request scheduler params -func (o *FindConfigRequestSchedulerParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config request scheduler params -func (o *FindConfigRequestSchedulerParams) WithContext(ctx context.Context) *FindConfigRequestSchedulerParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config request scheduler params -func (o *FindConfigRequestSchedulerParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config request scheduler params -func (o *FindConfigRequestSchedulerParams) WithHTTPClient(client *http.Client) *FindConfigRequestSchedulerParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config request scheduler params -func (o *FindConfigRequestSchedulerParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigRequestSchedulerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_scheduler_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_scheduler_responses.go deleted file mode 100644 index a342bb7ef4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_scheduler_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigRequestSchedulerReader is a Reader for the FindConfigRequestScheduler structure. -type FindConfigRequestSchedulerReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigRequestSchedulerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigRequestSchedulerOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigRequestSchedulerDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigRequestSchedulerOK creates a FindConfigRequestSchedulerOK with default headers values -func NewFindConfigRequestSchedulerOK() *FindConfigRequestSchedulerOK { - return &FindConfigRequestSchedulerOK{} -} - -/* -FindConfigRequestSchedulerOK handles this case with default header values. - -Config value -*/ -type FindConfigRequestSchedulerOK struct { - Payload string -} - -func (o *FindConfigRequestSchedulerOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigRequestSchedulerOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigRequestSchedulerDefault creates a FindConfigRequestSchedulerDefault with default headers values -func NewFindConfigRequestSchedulerDefault(code int) *FindConfigRequestSchedulerDefault { - return &FindConfigRequestSchedulerDefault{ - _statusCode: code, - } -} - -/* -FindConfigRequestSchedulerDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigRequestSchedulerDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config request scheduler default response -func (o *FindConfigRequestSchedulerDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigRequestSchedulerDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigRequestSchedulerDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigRequestSchedulerDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_timeout_in_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_timeout_in_ms_parameters.go deleted file mode 100644 index f6b37c4c92..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_timeout_in_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigRequestTimeoutInMsParams creates a new FindConfigRequestTimeoutInMsParams object -// with the default values initialized. -func NewFindConfigRequestTimeoutInMsParams() *FindConfigRequestTimeoutInMsParams { - - return &FindConfigRequestTimeoutInMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigRequestTimeoutInMsParamsWithTimeout creates a new FindConfigRequestTimeoutInMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigRequestTimeoutInMsParamsWithTimeout(timeout time.Duration) *FindConfigRequestTimeoutInMsParams { - - return &FindConfigRequestTimeoutInMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigRequestTimeoutInMsParamsWithContext creates a new FindConfigRequestTimeoutInMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigRequestTimeoutInMsParamsWithContext(ctx context.Context) *FindConfigRequestTimeoutInMsParams { - - return &FindConfigRequestTimeoutInMsParams{ - - Context: ctx, - } -} - -// NewFindConfigRequestTimeoutInMsParamsWithHTTPClient creates a new FindConfigRequestTimeoutInMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigRequestTimeoutInMsParamsWithHTTPClient(client *http.Client) *FindConfigRequestTimeoutInMsParams { - - return &FindConfigRequestTimeoutInMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigRequestTimeoutInMsParams contains all the parameters to send to the API endpoint -for the find config request timeout in ms operation typically these are written to a http.Request -*/ -type FindConfigRequestTimeoutInMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config request timeout in ms params -func (o *FindConfigRequestTimeoutInMsParams) WithTimeout(timeout time.Duration) *FindConfigRequestTimeoutInMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config request timeout in ms params -func (o *FindConfigRequestTimeoutInMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config request timeout in ms params -func (o *FindConfigRequestTimeoutInMsParams) WithContext(ctx context.Context) *FindConfigRequestTimeoutInMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config request timeout in ms params -func (o *FindConfigRequestTimeoutInMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config request timeout in ms params -func (o *FindConfigRequestTimeoutInMsParams) WithHTTPClient(client *http.Client) *FindConfigRequestTimeoutInMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config request timeout in ms params -func (o *FindConfigRequestTimeoutInMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigRequestTimeoutInMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_timeout_in_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_timeout_in_ms_responses.go deleted file mode 100644 index aa6aae3780..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_request_timeout_in_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigRequestTimeoutInMsReader is a Reader for the FindConfigRequestTimeoutInMs structure. -type FindConfigRequestTimeoutInMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigRequestTimeoutInMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigRequestTimeoutInMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigRequestTimeoutInMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigRequestTimeoutInMsOK creates a FindConfigRequestTimeoutInMsOK with default headers values -func NewFindConfigRequestTimeoutInMsOK() *FindConfigRequestTimeoutInMsOK { - return &FindConfigRequestTimeoutInMsOK{} -} - -/* -FindConfigRequestTimeoutInMsOK handles this case with default header values. - -Config value -*/ -type FindConfigRequestTimeoutInMsOK struct { - Payload int64 -} - -func (o *FindConfigRequestTimeoutInMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigRequestTimeoutInMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigRequestTimeoutInMsDefault creates a FindConfigRequestTimeoutInMsDefault with default headers values -func NewFindConfigRequestTimeoutInMsDefault(code int) *FindConfigRequestTimeoutInMsDefault { - return &FindConfigRequestTimeoutInMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigRequestTimeoutInMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigRequestTimeoutInMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config request timeout in ms default response -func (o *FindConfigRequestTimeoutInMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigRequestTimeoutInMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigRequestTimeoutInMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigRequestTimeoutInMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_ring_delay_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_ring_delay_ms_parameters.go deleted file mode 100644 index 5a70db3f46..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_ring_delay_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigRingDelayMsParams creates a new FindConfigRingDelayMsParams object -// with the default values initialized. -func NewFindConfigRingDelayMsParams() *FindConfigRingDelayMsParams { - - return &FindConfigRingDelayMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigRingDelayMsParamsWithTimeout creates a new FindConfigRingDelayMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigRingDelayMsParamsWithTimeout(timeout time.Duration) *FindConfigRingDelayMsParams { - - return &FindConfigRingDelayMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigRingDelayMsParamsWithContext creates a new FindConfigRingDelayMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigRingDelayMsParamsWithContext(ctx context.Context) *FindConfigRingDelayMsParams { - - return &FindConfigRingDelayMsParams{ - - Context: ctx, - } -} - -// NewFindConfigRingDelayMsParamsWithHTTPClient creates a new FindConfigRingDelayMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigRingDelayMsParamsWithHTTPClient(client *http.Client) *FindConfigRingDelayMsParams { - - return &FindConfigRingDelayMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigRingDelayMsParams contains all the parameters to send to the API endpoint -for the find config ring delay ms operation typically these are written to a http.Request -*/ -type FindConfigRingDelayMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config ring delay ms params -func (o *FindConfigRingDelayMsParams) WithTimeout(timeout time.Duration) *FindConfigRingDelayMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config ring delay ms params -func (o *FindConfigRingDelayMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config ring delay ms params -func (o *FindConfigRingDelayMsParams) WithContext(ctx context.Context) *FindConfigRingDelayMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config ring delay ms params -func (o *FindConfigRingDelayMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config ring delay ms params -func (o *FindConfigRingDelayMsParams) WithHTTPClient(client *http.Client) *FindConfigRingDelayMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config ring delay ms params -func (o *FindConfigRingDelayMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigRingDelayMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_ring_delay_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_ring_delay_ms_responses.go deleted file mode 100644 index bb1a4202c4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_ring_delay_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigRingDelayMsReader is a Reader for the FindConfigRingDelayMs structure. -type FindConfigRingDelayMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigRingDelayMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigRingDelayMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigRingDelayMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigRingDelayMsOK creates a FindConfigRingDelayMsOK with default headers values -func NewFindConfigRingDelayMsOK() *FindConfigRingDelayMsOK { - return &FindConfigRingDelayMsOK{} -} - -/* -FindConfigRingDelayMsOK handles this case with default header values. - -Config value -*/ -type FindConfigRingDelayMsOK struct { - Payload int64 -} - -func (o *FindConfigRingDelayMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigRingDelayMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigRingDelayMsDefault creates a FindConfigRingDelayMsDefault with default headers values -func NewFindConfigRingDelayMsDefault(code int) *FindConfigRingDelayMsDefault { - return &FindConfigRingDelayMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigRingDelayMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigRingDelayMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config ring delay ms default response -func (o *FindConfigRingDelayMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigRingDelayMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigRingDelayMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigRingDelayMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_role_manager_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_role_manager_parameters.go deleted file mode 100644 index b7542b6c7b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_role_manager_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigRoleManagerParams creates a new FindConfigRoleManagerParams object -// with the default values initialized. -func NewFindConfigRoleManagerParams() *FindConfigRoleManagerParams { - - return &FindConfigRoleManagerParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigRoleManagerParamsWithTimeout creates a new FindConfigRoleManagerParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigRoleManagerParamsWithTimeout(timeout time.Duration) *FindConfigRoleManagerParams { - - return &FindConfigRoleManagerParams{ - - timeout: timeout, - } -} - -// NewFindConfigRoleManagerParamsWithContext creates a new FindConfigRoleManagerParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigRoleManagerParamsWithContext(ctx context.Context) *FindConfigRoleManagerParams { - - return &FindConfigRoleManagerParams{ - - Context: ctx, - } -} - -// NewFindConfigRoleManagerParamsWithHTTPClient creates a new FindConfigRoleManagerParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigRoleManagerParamsWithHTTPClient(client *http.Client) *FindConfigRoleManagerParams { - - return &FindConfigRoleManagerParams{ - HTTPClient: client, - } -} - -/* -FindConfigRoleManagerParams contains all the parameters to send to the API endpoint -for the find config role manager operation typically these are written to a http.Request -*/ -type FindConfigRoleManagerParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config role manager params -func (o *FindConfigRoleManagerParams) WithTimeout(timeout time.Duration) *FindConfigRoleManagerParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config role manager params -func (o *FindConfigRoleManagerParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config role manager params -func (o *FindConfigRoleManagerParams) WithContext(ctx context.Context) *FindConfigRoleManagerParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config role manager params -func (o *FindConfigRoleManagerParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config role manager params -func (o *FindConfigRoleManagerParams) WithHTTPClient(client *http.Client) *FindConfigRoleManagerParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config role manager params -func (o *FindConfigRoleManagerParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigRoleManagerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_role_manager_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_role_manager_responses.go deleted file mode 100644 index 428b06ca35..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_role_manager_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigRoleManagerReader is a Reader for the FindConfigRoleManager structure. -type FindConfigRoleManagerReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigRoleManagerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigRoleManagerOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigRoleManagerDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigRoleManagerOK creates a FindConfigRoleManagerOK with default headers values -func NewFindConfigRoleManagerOK() *FindConfigRoleManagerOK { - return &FindConfigRoleManagerOK{} -} - -/* -FindConfigRoleManagerOK handles this case with default header values. - -Config value -*/ -type FindConfigRoleManagerOK struct { - Payload string -} - -func (o *FindConfigRoleManagerOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigRoleManagerOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigRoleManagerDefault creates a FindConfigRoleManagerDefault with default headers values -func NewFindConfigRoleManagerDefault(code int) *FindConfigRoleManagerDefault { - return &FindConfigRoleManagerDefault{ - _statusCode: code, - } -} - -/* -FindConfigRoleManagerDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigRoleManagerDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config role manager default response -func (o *FindConfigRoleManagerDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigRoleManagerDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigRoleManagerDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigRoleManagerDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_row_cache_keys_to_save_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_row_cache_keys_to_save_parameters.go deleted file mode 100644 index 7900ca5cc7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_row_cache_keys_to_save_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigRowCacheKeysToSaveParams creates a new FindConfigRowCacheKeysToSaveParams object -// with the default values initialized. -func NewFindConfigRowCacheKeysToSaveParams() *FindConfigRowCacheKeysToSaveParams { - - return &FindConfigRowCacheKeysToSaveParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigRowCacheKeysToSaveParamsWithTimeout creates a new FindConfigRowCacheKeysToSaveParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigRowCacheKeysToSaveParamsWithTimeout(timeout time.Duration) *FindConfigRowCacheKeysToSaveParams { - - return &FindConfigRowCacheKeysToSaveParams{ - - timeout: timeout, - } -} - -// NewFindConfigRowCacheKeysToSaveParamsWithContext creates a new FindConfigRowCacheKeysToSaveParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigRowCacheKeysToSaveParamsWithContext(ctx context.Context) *FindConfigRowCacheKeysToSaveParams { - - return &FindConfigRowCacheKeysToSaveParams{ - - Context: ctx, - } -} - -// NewFindConfigRowCacheKeysToSaveParamsWithHTTPClient creates a new FindConfigRowCacheKeysToSaveParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigRowCacheKeysToSaveParamsWithHTTPClient(client *http.Client) *FindConfigRowCacheKeysToSaveParams { - - return &FindConfigRowCacheKeysToSaveParams{ - HTTPClient: client, - } -} - -/* -FindConfigRowCacheKeysToSaveParams contains all the parameters to send to the API endpoint -for the find config row cache keys to save operation typically these are written to a http.Request -*/ -type FindConfigRowCacheKeysToSaveParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config row cache keys to save params -func (o *FindConfigRowCacheKeysToSaveParams) WithTimeout(timeout time.Duration) *FindConfigRowCacheKeysToSaveParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config row cache keys to save params -func (o *FindConfigRowCacheKeysToSaveParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config row cache keys to save params -func (o *FindConfigRowCacheKeysToSaveParams) WithContext(ctx context.Context) *FindConfigRowCacheKeysToSaveParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config row cache keys to save params -func (o *FindConfigRowCacheKeysToSaveParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config row cache keys to save params -func (o *FindConfigRowCacheKeysToSaveParams) WithHTTPClient(client *http.Client) *FindConfigRowCacheKeysToSaveParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config row cache keys to save params -func (o *FindConfigRowCacheKeysToSaveParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigRowCacheKeysToSaveParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_row_cache_keys_to_save_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_row_cache_keys_to_save_responses.go deleted file mode 100644 index 40929ae312..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_row_cache_keys_to_save_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigRowCacheKeysToSaveReader is a Reader for the FindConfigRowCacheKeysToSave structure. -type FindConfigRowCacheKeysToSaveReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigRowCacheKeysToSaveReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigRowCacheKeysToSaveOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigRowCacheKeysToSaveDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigRowCacheKeysToSaveOK creates a FindConfigRowCacheKeysToSaveOK with default headers values -func NewFindConfigRowCacheKeysToSaveOK() *FindConfigRowCacheKeysToSaveOK { - return &FindConfigRowCacheKeysToSaveOK{} -} - -/* -FindConfigRowCacheKeysToSaveOK handles this case with default header values. - -Config value -*/ -type FindConfigRowCacheKeysToSaveOK struct { - Payload int64 -} - -func (o *FindConfigRowCacheKeysToSaveOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigRowCacheKeysToSaveOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigRowCacheKeysToSaveDefault creates a FindConfigRowCacheKeysToSaveDefault with default headers values -func NewFindConfigRowCacheKeysToSaveDefault(code int) *FindConfigRowCacheKeysToSaveDefault { - return &FindConfigRowCacheKeysToSaveDefault{ - _statusCode: code, - } -} - -/* -FindConfigRowCacheKeysToSaveDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigRowCacheKeysToSaveDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config row cache keys to save default response -func (o *FindConfigRowCacheKeysToSaveDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigRowCacheKeysToSaveDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigRowCacheKeysToSaveDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigRowCacheKeysToSaveDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_row_cache_save_period_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_row_cache_save_period_parameters.go deleted file mode 100644 index 71b0bb9708..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_row_cache_save_period_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigRowCacheSavePeriodParams creates a new FindConfigRowCacheSavePeriodParams object -// with the default values initialized. -func NewFindConfigRowCacheSavePeriodParams() *FindConfigRowCacheSavePeriodParams { - - return &FindConfigRowCacheSavePeriodParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigRowCacheSavePeriodParamsWithTimeout creates a new FindConfigRowCacheSavePeriodParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigRowCacheSavePeriodParamsWithTimeout(timeout time.Duration) *FindConfigRowCacheSavePeriodParams { - - return &FindConfigRowCacheSavePeriodParams{ - - timeout: timeout, - } -} - -// NewFindConfigRowCacheSavePeriodParamsWithContext creates a new FindConfigRowCacheSavePeriodParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigRowCacheSavePeriodParamsWithContext(ctx context.Context) *FindConfigRowCacheSavePeriodParams { - - return &FindConfigRowCacheSavePeriodParams{ - - Context: ctx, - } -} - -// NewFindConfigRowCacheSavePeriodParamsWithHTTPClient creates a new FindConfigRowCacheSavePeriodParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigRowCacheSavePeriodParamsWithHTTPClient(client *http.Client) *FindConfigRowCacheSavePeriodParams { - - return &FindConfigRowCacheSavePeriodParams{ - HTTPClient: client, - } -} - -/* -FindConfigRowCacheSavePeriodParams contains all the parameters to send to the API endpoint -for the find config row cache save period operation typically these are written to a http.Request -*/ -type FindConfigRowCacheSavePeriodParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config row cache save period params -func (o *FindConfigRowCacheSavePeriodParams) WithTimeout(timeout time.Duration) *FindConfigRowCacheSavePeriodParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config row cache save period params -func (o *FindConfigRowCacheSavePeriodParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config row cache save period params -func (o *FindConfigRowCacheSavePeriodParams) WithContext(ctx context.Context) *FindConfigRowCacheSavePeriodParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config row cache save period params -func (o *FindConfigRowCacheSavePeriodParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config row cache save period params -func (o *FindConfigRowCacheSavePeriodParams) WithHTTPClient(client *http.Client) *FindConfigRowCacheSavePeriodParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config row cache save period params -func (o *FindConfigRowCacheSavePeriodParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigRowCacheSavePeriodParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_row_cache_save_period_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_row_cache_save_period_responses.go deleted file mode 100644 index 4cc8e05ac0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_row_cache_save_period_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigRowCacheSavePeriodReader is a Reader for the FindConfigRowCacheSavePeriod structure. -type FindConfigRowCacheSavePeriodReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigRowCacheSavePeriodReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigRowCacheSavePeriodOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigRowCacheSavePeriodDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigRowCacheSavePeriodOK creates a FindConfigRowCacheSavePeriodOK with default headers values -func NewFindConfigRowCacheSavePeriodOK() *FindConfigRowCacheSavePeriodOK { - return &FindConfigRowCacheSavePeriodOK{} -} - -/* -FindConfigRowCacheSavePeriodOK handles this case with default header values. - -Config value -*/ -type FindConfigRowCacheSavePeriodOK struct { - Payload int64 -} - -func (o *FindConfigRowCacheSavePeriodOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigRowCacheSavePeriodOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigRowCacheSavePeriodDefault creates a FindConfigRowCacheSavePeriodDefault with default headers values -func NewFindConfigRowCacheSavePeriodDefault(code int) *FindConfigRowCacheSavePeriodDefault { - return &FindConfigRowCacheSavePeriodDefault{ - _statusCode: code, - } -} - -/* -FindConfigRowCacheSavePeriodDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigRowCacheSavePeriodDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config row cache save period default response -func (o *FindConfigRowCacheSavePeriodDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigRowCacheSavePeriodDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigRowCacheSavePeriodDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigRowCacheSavePeriodDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_row_cache_size_in_mb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_row_cache_size_in_mb_parameters.go deleted file mode 100644 index 44958b2472..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_row_cache_size_in_mb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigRowCacheSizeInMbParams creates a new FindConfigRowCacheSizeInMbParams object -// with the default values initialized. -func NewFindConfigRowCacheSizeInMbParams() *FindConfigRowCacheSizeInMbParams { - - return &FindConfigRowCacheSizeInMbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigRowCacheSizeInMbParamsWithTimeout creates a new FindConfigRowCacheSizeInMbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigRowCacheSizeInMbParamsWithTimeout(timeout time.Duration) *FindConfigRowCacheSizeInMbParams { - - return &FindConfigRowCacheSizeInMbParams{ - - timeout: timeout, - } -} - -// NewFindConfigRowCacheSizeInMbParamsWithContext creates a new FindConfigRowCacheSizeInMbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigRowCacheSizeInMbParamsWithContext(ctx context.Context) *FindConfigRowCacheSizeInMbParams { - - return &FindConfigRowCacheSizeInMbParams{ - - Context: ctx, - } -} - -// NewFindConfigRowCacheSizeInMbParamsWithHTTPClient creates a new FindConfigRowCacheSizeInMbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigRowCacheSizeInMbParamsWithHTTPClient(client *http.Client) *FindConfigRowCacheSizeInMbParams { - - return &FindConfigRowCacheSizeInMbParams{ - HTTPClient: client, - } -} - -/* -FindConfigRowCacheSizeInMbParams contains all the parameters to send to the API endpoint -for the find config row cache size in mb operation typically these are written to a http.Request -*/ -type FindConfigRowCacheSizeInMbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config row cache size in mb params -func (o *FindConfigRowCacheSizeInMbParams) WithTimeout(timeout time.Duration) *FindConfigRowCacheSizeInMbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config row cache size in mb params -func (o *FindConfigRowCacheSizeInMbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config row cache size in mb params -func (o *FindConfigRowCacheSizeInMbParams) WithContext(ctx context.Context) *FindConfigRowCacheSizeInMbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config row cache size in mb params -func (o *FindConfigRowCacheSizeInMbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config row cache size in mb params -func (o *FindConfigRowCacheSizeInMbParams) WithHTTPClient(client *http.Client) *FindConfigRowCacheSizeInMbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config row cache size in mb params -func (o *FindConfigRowCacheSizeInMbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigRowCacheSizeInMbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_row_cache_size_in_mb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_row_cache_size_in_mb_responses.go deleted file mode 100644 index 3fcd49c6cb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_row_cache_size_in_mb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigRowCacheSizeInMbReader is a Reader for the FindConfigRowCacheSizeInMb structure. -type FindConfigRowCacheSizeInMbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigRowCacheSizeInMbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigRowCacheSizeInMbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigRowCacheSizeInMbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigRowCacheSizeInMbOK creates a FindConfigRowCacheSizeInMbOK with default headers values -func NewFindConfigRowCacheSizeInMbOK() *FindConfigRowCacheSizeInMbOK { - return &FindConfigRowCacheSizeInMbOK{} -} - -/* -FindConfigRowCacheSizeInMbOK handles this case with default header values. - -Config value -*/ -type FindConfigRowCacheSizeInMbOK struct { - Payload int64 -} - -func (o *FindConfigRowCacheSizeInMbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigRowCacheSizeInMbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigRowCacheSizeInMbDefault creates a FindConfigRowCacheSizeInMbDefault with default headers values -func NewFindConfigRowCacheSizeInMbDefault(code int) *FindConfigRowCacheSizeInMbDefault { - return &FindConfigRowCacheSizeInMbDefault{ - _statusCode: code, - } -} - -/* -FindConfigRowCacheSizeInMbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigRowCacheSizeInMbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config row cache size in mb default response -func (o *FindConfigRowCacheSizeInMbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigRowCacheSizeInMbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigRowCacheSizeInMbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigRowCacheSizeInMbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_address_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_address_parameters.go deleted file mode 100644 index 07688bc649..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_address_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigRPCAddressParams creates a new FindConfigRPCAddressParams object -// with the default values initialized. -func NewFindConfigRPCAddressParams() *FindConfigRPCAddressParams { - - return &FindConfigRPCAddressParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigRPCAddressParamsWithTimeout creates a new FindConfigRPCAddressParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigRPCAddressParamsWithTimeout(timeout time.Duration) *FindConfigRPCAddressParams { - - return &FindConfigRPCAddressParams{ - - timeout: timeout, - } -} - -// NewFindConfigRPCAddressParamsWithContext creates a new FindConfigRPCAddressParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigRPCAddressParamsWithContext(ctx context.Context) *FindConfigRPCAddressParams { - - return &FindConfigRPCAddressParams{ - - Context: ctx, - } -} - -// NewFindConfigRPCAddressParamsWithHTTPClient creates a new FindConfigRPCAddressParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigRPCAddressParamsWithHTTPClient(client *http.Client) *FindConfigRPCAddressParams { - - return &FindConfigRPCAddressParams{ - HTTPClient: client, - } -} - -/* -FindConfigRPCAddressParams contains all the parameters to send to the API endpoint -for the find config rpc address operation typically these are written to a http.Request -*/ -type FindConfigRPCAddressParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config rpc address params -func (o *FindConfigRPCAddressParams) WithTimeout(timeout time.Duration) *FindConfigRPCAddressParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config rpc address params -func (o *FindConfigRPCAddressParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config rpc address params -func (o *FindConfigRPCAddressParams) WithContext(ctx context.Context) *FindConfigRPCAddressParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config rpc address params -func (o *FindConfigRPCAddressParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config rpc address params -func (o *FindConfigRPCAddressParams) WithHTTPClient(client *http.Client) *FindConfigRPCAddressParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config rpc address params -func (o *FindConfigRPCAddressParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigRPCAddressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_address_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_address_responses.go deleted file mode 100644 index 7639bc2174..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_address_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigRPCAddressReader is a Reader for the FindConfigRPCAddress structure. -type FindConfigRPCAddressReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigRPCAddressReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigRPCAddressOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigRPCAddressDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigRPCAddressOK creates a FindConfigRPCAddressOK with default headers values -func NewFindConfigRPCAddressOK() *FindConfigRPCAddressOK { - return &FindConfigRPCAddressOK{} -} - -/* -FindConfigRPCAddressOK handles this case with default header values. - -Config value -*/ -type FindConfigRPCAddressOK struct { - Payload string -} - -func (o *FindConfigRPCAddressOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigRPCAddressOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigRPCAddressDefault creates a FindConfigRPCAddressDefault with default headers values -func NewFindConfigRPCAddressDefault(code int) *FindConfigRPCAddressDefault { - return &FindConfigRPCAddressDefault{ - _statusCode: code, - } -} - -/* -FindConfigRPCAddressDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigRPCAddressDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config rpc address default response -func (o *FindConfigRPCAddressDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigRPCAddressDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigRPCAddressDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigRPCAddressDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_interface_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_interface_parameters.go deleted file mode 100644 index 1e880de257..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_interface_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigRPCInterfaceParams creates a new FindConfigRPCInterfaceParams object -// with the default values initialized. -func NewFindConfigRPCInterfaceParams() *FindConfigRPCInterfaceParams { - - return &FindConfigRPCInterfaceParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigRPCInterfaceParamsWithTimeout creates a new FindConfigRPCInterfaceParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigRPCInterfaceParamsWithTimeout(timeout time.Duration) *FindConfigRPCInterfaceParams { - - return &FindConfigRPCInterfaceParams{ - - timeout: timeout, - } -} - -// NewFindConfigRPCInterfaceParamsWithContext creates a new FindConfigRPCInterfaceParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigRPCInterfaceParamsWithContext(ctx context.Context) *FindConfigRPCInterfaceParams { - - return &FindConfigRPCInterfaceParams{ - - Context: ctx, - } -} - -// NewFindConfigRPCInterfaceParamsWithHTTPClient creates a new FindConfigRPCInterfaceParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigRPCInterfaceParamsWithHTTPClient(client *http.Client) *FindConfigRPCInterfaceParams { - - return &FindConfigRPCInterfaceParams{ - HTTPClient: client, - } -} - -/* -FindConfigRPCInterfaceParams contains all the parameters to send to the API endpoint -for the find config rpc interface operation typically these are written to a http.Request -*/ -type FindConfigRPCInterfaceParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config rpc interface params -func (o *FindConfigRPCInterfaceParams) WithTimeout(timeout time.Duration) *FindConfigRPCInterfaceParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config rpc interface params -func (o *FindConfigRPCInterfaceParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config rpc interface params -func (o *FindConfigRPCInterfaceParams) WithContext(ctx context.Context) *FindConfigRPCInterfaceParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config rpc interface params -func (o *FindConfigRPCInterfaceParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config rpc interface params -func (o *FindConfigRPCInterfaceParams) WithHTTPClient(client *http.Client) *FindConfigRPCInterfaceParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config rpc interface params -func (o *FindConfigRPCInterfaceParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigRPCInterfaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_interface_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_interface_responses.go deleted file mode 100644 index 58969f608d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_interface_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigRPCInterfaceReader is a Reader for the FindConfigRPCInterface structure. -type FindConfigRPCInterfaceReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigRPCInterfaceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigRPCInterfaceOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigRPCInterfaceDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigRPCInterfaceOK creates a FindConfigRPCInterfaceOK with default headers values -func NewFindConfigRPCInterfaceOK() *FindConfigRPCInterfaceOK { - return &FindConfigRPCInterfaceOK{} -} - -/* -FindConfigRPCInterfaceOK handles this case with default header values. - -Config value -*/ -type FindConfigRPCInterfaceOK struct { - Payload string -} - -func (o *FindConfigRPCInterfaceOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigRPCInterfaceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigRPCInterfaceDefault creates a FindConfigRPCInterfaceDefault with default headers values -func NewFindConfigRPCInterfaceDefault(code int) *FindConfigRPCInterfaceDefault { - return &FindConfigRPCInterfaceDefault{ - _statusCode: code, - } -} - -/* -FindConfigRPCInterfaceDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigRPCInterfaceDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config rpc interface default response -func (o *FindConfigRPCInterfaceDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigRPCInterfaceDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigRPCInterfaceDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigRPCInterfaceDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_keepalive_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_keepalive_parameters.go deleted file mode 100644 index ad6da43094..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_keepalive_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigRPCKeepaliveParams creates a new FindConfigRPCKeepaliveParams object -// with the default values initialized. -func NewFindConfigRPCKeepaliveParams() *FindConfigRPCKeepaliveParams { - - return &FindConfigRPCKeepaliveParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigRPCKeepaliveParamsWithTimeout creates a new FindConfigRPCKeepaliveParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigRPCKeepaliveParamsWithTimeout(timeout time.Duration) *FindConfigRPCKeepaliveParams { - - return &FindConfigRPCKeepaliveParams{ - - timeout: timeout, - } -} - -// NewFindConfigRPCKeepaliveParamsWithContext creates a new FindConfigRPCKeepaliveParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigRPCKeepaliveParamsWithContext(ctx context.Context) *FindConfigRPCKeepaliveParams { - - return &FindConfigRPCKeepaliveParams{ - - Context: ctx, - } -} - -// NewFindConfigRPCKeepaliveParamsWithHTTPClient creates a new FindConfigRPCKeepaliveParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigRPCKeepaliveParamsWithHTTPClient(client *http.Client) *FindConfigRPCKeepaliveParams { - - return &FindConfigRPCKeepaliveParams{ - HTTPClient: client, - } -} - -/* -FindConfigRPCKeepaliveParams contains all the parameters to send to the API endpoint -for the find config rpc keepalive operation typically these are written to a http.Request -*/ -type FindConfigRPCKeepaliveParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config rpc keepalive params -func (o *FindConfigRPCKeepaliveParams) WithTimeout(timeout time.Duration) *FindConfigRPCKeepaliveParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config rpc keepalive params -func (o *FindConfigRPCKeepaliveParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config rpc keepalive params -func (o *FindConfigRPCKeepaliveParams) WithContext(ctx context.Context) *FindConfigRPCKeepaliveParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config rpc keepalive params -func (o *FindConfigRPCKeepaliveParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config rpc keepalive params -func (o *FindConfigRPCKeepaliveParams) WithHTTPClient(client *http.Client) *FindConfigRPCKeepaliveParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config rpc keepalive params -func (o *FindConfigRPCKeepaliveParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigRPCKeepaliveParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_keepalive_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_keepalive_responses.go deleted file mode 100644 index 6f96c48e9a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_keepalive_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigRPCKeepaliveReader is a Reader for the FindConfigRPCKeepalive structure. -type FindConfigRPCKeepaliveReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigRPCKeepaliveReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigRPCKeepaliveOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigRPCKeepaliveDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigRPCKeepaliveOK creates a FindConfigRPCKeepaliveOK with default headers values -func NewFindConfigRPCKeepaliveOK() *FindConfigRPCKeepaliveOK { - return &FindConfigRPCKeepaliveOK{} -} - -/* -FindConfigRPCKeepaliveOK handles this case with default header values. - -Config value -*/ -type FindConfigRPCKeepaliveOK struct { - Payload bool -} - -func (o *FindConfigRPCKeepaliveOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigRPCKeepaliveOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigRPCKeepaliveDefault creates a FindConfigRPCKeepaliveDefault with default headers values -func NewFindConfigRPCKeepaliveDefault(code int) *FindConfigRPCKeepaliveDefault { - return &FindConfigRPCKeepaliveDefault{ - _statusCode: code, - } -} - -/* -FindConfigRPCKeepaliveDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigRPCKeepaliveDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config rpc keepalive default response -func (o *FindConfigRPCKeepaliveDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigRPCKeepaliveDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigRPCKeepaliveDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigRPCKeepaliveDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_max_threads_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_max_threads_parameters.go deleted file mode 100644 index aa9f057c1c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_max_threads_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigRPCMaxThreadsParams creates a new FindConfigRPCMaxThreadsParams object -// with the default values initialized. -func NewFindConfigRPCMaxThreadsParams() *FindConfigRPCMaxThreadsParams { - - return &FindConfigRPCMaxThreadsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigRPCMaxThreadsParamsWithTimeout creates a new FindConfigRPCMaxThreadsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigRPCMaxThreadsParamsWithTimeout(timeout time.Duration) *FindConfigRPCMaxThreadsParams { - - return &FindConfigRPCMaxThreadsParams{ - - timeout: timeout, - } -} - -// NewFindConfigRPCMaxThreadsParamsWithContext creates a new FindConfigRPCMaxThreadsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigRPCMaxThreadsParamsWithContext(ctx context.Context) *FindConfigRPCMaxThreadsParams { - - return &FindConfigRPCMaxThreadsParams{ - - Context: ctx, - } -} - -// NewFindConfigRPCMaxThreadsParamsWithHTTPClient creates a new FindConfigRPCMaxThreadsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigRPCMaxThreadsParamsWithHTTPClient(client *http.Client) *FindConfigRPCMaxThreadsParams { - - return &FindConfigRPCMaxThreadsParams{ - HTTPClient: client, - } -} - -/* -FindConfigRPCMaxThreadsParams contains all the parameters to send to the API endpoint -for the find config rpc max threads operation typically these are written to a http.Request -*/ -type FindConfigRPCMaxThreadsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config rpc max threads params -func (o *FindConfigRPCMaxThreadsParams) WithTimeout(timeout time.Duration) *FindConfigRPCMaxThreadsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config rpc max threads params -func (o *FindConfigRPCMaxThreadsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config rpc max threads params -func (o *FindConfigRPCMaxThreadsParams) WithContext(ctx context.Context) *FindConfigRPCMaxThreadsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config rpc max threads params -func (o *FindConfigRPCMaxThreadsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config rpc max threads params -func (o *FindConfigRPCMaxThreadsParams) WithHTTPClient(client *http.Client) *FindConfigRPCMaxThreadsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config rpc max threads params -func (o *FindConfigRPCMaxThreadsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigRPCMaxThreadsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_max_threads_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_max_threads_responses.go deleted file mode 100644 index 3c051d36aa..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_max_threads_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigRPCMaxThreadsReader is a Reader for the FindConfigRPCMaxThreads structure. -type FindConfigRPCMaxThreadsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigRPCMaxThreadsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigRPCMaxThreadsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigRPCMaxThreadsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigRPCMaxThreadsOK creates a FindConfigRPCMaxThreadsOK with default headers values -func NewFindConfigRPCMaxThreadsOK() *FindConfigRPCMaxThreadsOK { - return &FindConfigRPCMaxThreadsOK{} -} - -/* -FindConfigRPCMaxThreadsOK handles this case with default header values. - -Config value -*/ -type FindConfigRPCMaxThreadsOK struct { - Payload int64 -} - -func (o *FindConfigRPCMaxThreadsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigRPCMaxThreadsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigRPCMaxThreadsDefault creates a FindConfigRPCMaxThreadsDefault with default headers values -func NewFindConfigRPCMaxThreadsDefault(code int) *FindConfigRPCMaxThreadsDefault { - return &FindConfigRPCMaxThreadsDefault{ - _statusCode: code, - } -} - -/* -FindConfigRPCMaxThreadsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigRPCMaxThreadsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config rpc max threads default response -func (o *FindConfigRPCMaxThreadsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigRPCMaxThreadsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigRPCMaxThreadsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigRPCMaxThreadsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_min_threads_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_min_threads_parameters.go deleted file mode 100644 index a961eb0226..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_min_threads_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigRPCMinThreadsParams creates a new FindConfigRPCMinThreadsParams object -// with the default values initialized. -func NewFindConfigRPCMinThreadsParams() *FindConfigRPCMinThreadsParams { - - return &FindConfigRPCMinThreadsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigRPCMinThreadsParamsWithTimeout creates a new FindConfigRPCMinThreadsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigRPCMinThreadsParamsWithTimeout(timeout time.Duration) *FindConfigRPCMinThreadsParams { - - return &FindConfigRPCMinThreadsParams{ - - timeout: timeout, - } -} - -// NewFindConfigRPCMinThreadsParamsWithContext creates a new FindConfigRPCMinThreadsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigRPCMinThreadsParamsWithContext(ctx context.Context) *FindConfigRPCMinThreadsParams { - - return &FindConfigRPCMinThreadsParams{ - - Context: ctx, - } -} - -// NewFindConfigRPCMinThreadsParamsWithHTTPClient creates a new FindConfigRPCMinThreadsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigRPCMinThreadsParamsWithHTTPClient(client *http.Client) *FindConfigRPCMinThreadsParams { - - return &FindConfigRPCMinThreadsParams{ - HTTPClient: client, - } -} - -/* -FindConfigRPCMinThreadsParams contains all the parameters to send to the API endpoint -for the find config rpc min threads operation typically these are written to a http.Request -*/ -type FindConfigRPCMinThreadsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config rpc min threads params -func (o *FindConfigRPCMinThreadsParams) WithTimeout(timeout time.Duration) *FindConfigRPCMinThreadsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config rpc min threads params -func (o *FindConfigRPCMinThreadsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config rpc min threads params -func (o *FindConfigRPCMinThreadsParams) WithContext(ctx context.Context) *FindConfigRPCMinThreadsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config rpc min threads params -func (o *FindConfigRPCMinThreadsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config rpc min threads params -func (o *FindConfigRPCMinThreadsParams) WithHTTPClient(client *http.Client) *FindConfigRPCMinThreadsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config rpc min threads params -func (o *FindConfigRPCMinThreadsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigRPCMinThreadsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_min_threads_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_min_threads_responses.go deleted file mode 100644 index 6e4641516d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_min_threads_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigRPCMinThreadsReader is a Reader for the FindConfigRPCMinThreads structure. -type FindConfigRPCMinThreadsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigRPCMinThreadsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigRPCMinThreadsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigRPCMinThreadsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigRPCMinThreadsOK creates a FindConfigRPCMinThreadsOK with default headers values -func NewFindConfigRPCMinThreadsOK() *FindConfigRPCMinThreadsOK { - return &FindConfigRPCMinThreadsOK{} -} - -/* -FindConfigRPCMinThreadsOK handles this case with default header values. - -Config value -*/ -type FindConfigRPCMinThreadsOK struct { - Payload int64 -} - -func (o *FindConfigRPCMinThreadsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigRPCMinThreadsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigRPCMinThreadsDefault creates a FindConfigRPCMinThreadsDefault with default headers values -func NewFindConfigRPCMinThreadsDefault(code int) *FindConfigRPCMinThreadsDefault { - return &FindConfigRPCMinThreadsDefault{ - _statusCode: code, - } -} - -/* -FindConfigRPCMinThreadsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigRPCMinThreadsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config rpc min threads default response -func (o *FindConfigRPCMinThreadsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigRPCMinThreadsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigRPCMinThreadsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigRPCMinThreadsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_port_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_port_parameters.go deleted file mode 100644 index 35c1e54fb2..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_port_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigRPCPortParams creates a new FindConfigRPCPortParams object -// with the default values initialized. -func NewFindConfigRPCPortParams() *FindConfigRPCPortParams { - - return &FindConfigRPCPortParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigRPCPortParamsWithTimeout creates a new FindConfigRPCPortParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigRPCPortParamsWithTimeout(timeout time.Duration) *FindConfigRPCPortParams { - - return &FindConfigRPCPortParams{ - - timeout: timeout, - } -} - -// NewFindConfigRPCPortParamsWithContext creates a new FindConfigRPCPortParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigRPCPortParamsWithContext(ctx context.Context) *FindConfigRPCPortParams { - - return &FindConfigRPCPortParams{ - - Context: ctx, - } -} - -// NewFindConfigRPCPortParamsWithHTTPClient creates a new FindConfigRPCPortParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigRPCPortParamsWithHTTPClient(client *http.Client) *FindConfigRPCPortParams { - - return &FindConfigRPCPortParams{ - HTTPClient: client, - } -} - -/* -FindConfigRPCPortParams contains all the parameters to send to the API endpoint -for the find config rpc port operation typically these are written to a http.Request -*/ -type FindConfigRPCPortParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config rpc port params -func (o *FindConfigRPCPortParams) WithTimeout(timeout time.Duration) *FindConfigRPCPortParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config rpc port params -func (o *FindConfigRPCPortParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config rpc port params -func (o *FindConfigRPCPortParams) WithContext(ctx context.Context) *FindConfigRPCPortParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config rpc port params -func (o *FindConfigRPCPortParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config rpc port params -func (o *FindConfigRPCPortParams) WithHTTPClient(client *http.Client) *FindConfigRPCPortParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config rpc port params -func (o *FindConfigRPCPortParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigRPCPortParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_port_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_port_responses.go deleted file mode 100644 index 040f6daa92..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_port_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigRPCPortReader is a Reader for the FindConfigRPCPort structure. -type FindConfigRPCPortReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigRPCPortReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigRPCPortOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigRPCPortDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigRPCPortOK creates a FindConfigRPCPortOK with default headers values -func NewFindConfigRPCPortOK() *FindConfigRPCPortOK { - return &FindConfigRPCPortOK{} -} - -/* -FindConfigRPCPortOK handles this case with default header values. - -Config value -*/ -type FindConfigRPCPortOK struct { - Payload int64 -} - -func (o *FindConfigRPCPortOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigRPCPortOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigRPCPortDefault creates a FindConfigRPCPortDefault with default headers values -func NewFindConfigRPCPortDefault(code int) *FindConfigRPCPortDefault { - return &FindConfigRPCPortDefault{ - _statusCode: code, - } -} - -/* -FindConfigRPCPortDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigRPCPortDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config rpc port default response -func (o *FindConfigRPCPortDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigRPCPortDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigRPCPortDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigRPCPortDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_recv_buff_size_in_bytes_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_recv_buff_size_in_bytes_parameters.go deleted file mode 100644 index b5fa566d56..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_recv_buff_size_in_bytes_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigRPCRecvBuffSizeInBytesParams creates a new FindConfigRPCRecvBuffSizeInBytesParams object -// with the default values initialized. -func NewFindConfigRPCRecvBuffSizeInBytesParams() *FindConfigRPCRecvBuffSizeInBytesParams { - - return &FindConfigRPCRecvBuffSizeInBytesParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigRPCRecvBuffSizeInBytesParamsWithTimeout creates a new FindConfigRPCRecvBuffSizeInBytesParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigRPCRecvBuffSizeInBytesParamsWithTimeout(timeout time.Duration) *FindConfigRPCRecvBuffSizeInBytesParams { - - return &FindConfigRPCRecvBuffSizeInBytesParams{ - - timeout: timeout, - } -} - -// NewFindConfigRPCRecvBuffSizeInBytesParamsWithContext creates a new FindConfigRPCRecvBuffSizeInBytesParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigRPCRecvBuffSizeInBytesParamsWithContext(ctx context.Context) *FindConfigRPCRecvBuffSizeInBytesParams { - - return &FindConfigRPCRecvBuffSizeInBytesParams{ - - Context: ctx, - } -} - -// NewFindConfigRPCRecvBuffSizeInBytesParamsWithHTTPClient creates a new FindConfigRPCRecvBuffSizeInBytesParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigRPCRecvBuffSizeInBytesParamsWithHTTPClient(client *http.Client) *FindConfigRPCRecvBuffSizeInBytesParams { - - return &FindConfigRPCRecvBuffSizeInBytesParams{ - HTTPClient: client, - } -} - -/* -FindConfigRPCRecvBuffSizeInBytesParams contains all the parameters to send to the API endpoint -for the find config rpc recv buff size in bytes operation typically these are written to a http.Request -*/ -type FindConfigRPCRecvBuffSizeInBytesParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config rpc recv buff size in bytes params -func (o *FindConfigRPCRecvBuffSizeInBytesParams) WithTimeout(timeout time.Duration) *FindConfigRPCRecvBuffSizeInBytesParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config rpc recv buff size in bytes params -func (o *FindConfigRPCRecvBuffSizeInBytesParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config rpc recv buff size in bytes params -func (o *FindConfigRPCRecvBuffSizeInBytesParams) WithContext(ctx context.Context) *FindConfigRPCRecvBuffSizeInBytesParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config rpc recv buff size in bytes params -func (o *FindConfigRPCRecvBuffSizeInBytesParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config rpc recv buff size in bytes params -func (o *FindConfigRPCRecvBuffSizeInBytesParams) WithHTTPClient(client *http.Client) *FindConfigRPCRecvBuffSizeInBytesParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config rpc recv buff size in bytes params -func (o *FindConfigRPCRecvBuffSizeInBytesParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigRPCRecvBuffSizeInBytesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_recv_buff_size_in_bytes_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_recv_buff_size_in_bytes_responses.go deleted file mode 100644 index fa3ce31b81..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_recv_buff_size_in_bytes_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigRPCRecvBuffSizeInBytesReader is a Reader for the FindConfigRPCRecvBuffSizeInBytes structure. -type FindConfigRPCRecvBuffSizeInBytesReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigRPCRecvBuffSizeInBytesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigRPCRecvBuffSizeInBytesOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigRPCRecvBuffSizeInBytesDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigRPCRecvBuffSizeInBytesOK creates a FindConfigRPCRecvBuffSizeInBytesOK with default headers values -func NewFindConfigRPCRecvBuffSizeInBytesOK() *FindConfigRPCRecvBuffSizeInBytesOK { - return &FindConfigRPCRecvBuffSizeInBytesOK{} -} - -/* -FindConfigRPCRecvBuffSizeInBytesOK handles this case with default header values. - -Config value -*/ -type FindConfigRPCRecvBuffSizeInBytesOK struct { - Payload int64 -} - -func (o *FindConfigRPCRecvBuffSizeInBytesOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigRPCRecvBuffSizeInBytesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigRPCRecvBuffSizeInBytesDefault creates a FindConfigRPCRecvBuffSizeInBytesDefault with default headers values -func NewFindConfigRPCRecvBuffSizeInBytesDefault(code int) *FindConfigRPCRecvBuffSizeInBytesDefault { - return &FindConfigRPCRecvBuffSizeInBytesDefault{ - _statusCode: code, - } -} - -/* -FindConfigRPCRecvBuffSizeInBytesDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigRPCRecvBuffSizeInBytesDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config rpc recv buff size in bytes default response -func (o *FindConfigRPCRecvBuffSizeInBytesDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigRPCRecvBuffSizeInBytesDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigRPCRecvBuffSizeInBytesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigRPCRecvBuffSizeInBytesDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_send_buff_size_in_bytes_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_send_buff_size_in_bytes_parameters.go deleted file mode 100644 index 1b4d0a1a9c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_send_buff_size_in_bytes_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigRPCSendBuffSizeInBytesParams creates a new FindConfigRPCSendBuffSizeInBytesParams object -// with the default values initialized. -func NewFindConfigRPCSendBuffSizeInBytesParams() *FindConfigRPCSendBuffSizeInBytesParams { - - return &FindConfigRPCSendBuffSizeInBytesParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigRPCSendBuffSizeInBytesParamsWithTimeout creates a new FindConfigRPCSendBuffSizeInBytesParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigRPCSendBuffSizeInBytesParamsWithTimeout(timeout time.Duration) *FindConfigRPCSendBuffSizeInBytesParams { - - return &FindConfigRPCSendBuffSizeInBytesParams{ - - timeout: timeout, - } -} - -// NewFindConfigRPCSendBuffSizeInBytesParamsWithContext creates a new FindConfigRPCSendBuffSizeInBytesParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigRPCSendBuffSizeInBytesParamsWithContext(ctx context.Context) *FindConfigRPCSendBuffSizeInBytesParams { - - return &FindConfigRPCSendBuffSizeInBytesParams{ - - Context: ctx, - } -} - -// NewFindConfigRPCSendBuffSizeInBytesParamsWithHTTPClient creates a new FindConfigRPCSendBuffSizeInBytesParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigRPCSendBuffSizeInBytesParamsWithHTTPClient(client *http.Client) *FindConfigRPCSendBuffSizeInBytesParams { - - return &FindConfigRPCSendBuffSizeInBytesParams{ - HTTPClient: client, - } -} - -/* -FindConfigRPCSendBuffSizeInBytesParams contains all the parameters to send to the API endpoint -for the find config rpc send buff size in bytes operation typically these are written to a http.Request -*/ -type FindConfigRPCSendBuffSizeInBytesParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config rpc send buff size in bytes params -func (o *FindConfigRPCSendBuffSizeInBytesParams) WithTimeout(timeout time.Duration) *FindConfigRPCSendBuffSizeInBytesParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config rpc send buff size in bytes params -func (o *FindConfigRPCSendBuffSizeInBytesParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config rpc send buff size in bytes params -func (o *FindConfigRPCSendBuffSizeInBytesParams) WithContext(ctx context.Context) *FindConfigRPCSendBuffSizeInBytesParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config rpc send buff size in bytes params -func (o *FindConfigRPCSendBuffSizeInBytesParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config rpc send buff size in bytes params -func (o *FindConfigRPCSendBuffSizeInBytesParams) WithHTTPClient(client *http.Client) *FindConfigRPCSendBuffSizeInBytesParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config rpc send buff size in bytes params -func (o *FindConfigRPCSendBuffSizeInBytesParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigRPCSendBuffSizeInBytesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_send_buff_size_in_bytes_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_send_buff_size_in_bytes_responses.go deleted file mode 100644 index 6f046d7f0e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_send_buff_size_in_bytes_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigRPCSendBuffSizeInBytesReader is a Reader for the FindConfigRPCSendBuffSizeInBytes structure. -type FindConfigRPCSendBuffSizeInBytesReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigRPCSendBuffSizeInBytesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigRPCSendBuffSizeInBytesOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigRPCSendBuffSizeInBytesDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigRPCSendBuffSizeInBytesOK creates a FindConfigRPCSendBuffSizeInBytesOK with default headers values -func NewFindConfigRPCSendBuffSizeInBytesOK() *FindConfigRPCSendBuffSizeInBytesOK { - return &FindConfigRPCSendBuffSizeInBytesOK{} -} - -/* -FindConfigRPCSendBuffSizeInBytesOK handles this case with default header values. - -Config value -*/ -type FindConfigRPCSendBuffSizeInBytesOK struct { - Payload int64 -} - -func (o *FindConfigRPCSendBuffSizeInBytesOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigRPCSendBuffSizeInBytesOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigRPCSendBuffSizeInBytesDefault creates a FindConfigRPCSendBuffSizeInBytesDefault with default headers values -func NewFindConfigRPCSendBuffSizeInBytesDefault(code int) *FindConfigRPCSendBuffSizeInBytesDefault { - return &FindConfigRPCSendBuffSizeInBytesDefault{ - _statusCode: code, - } -} - -/* -FindConfigRPCSendBuffSizeInBytesDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigRPCSendBuffSizeInBytesDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config rpc send buff size in bytes default response -func (o *FindConfigRPCSendBuffSizeInBytesDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigRPCSendBuffSizeInBytesDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigRPCSendBuffSizeInBytesDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigRPCSendBuffSizeInBytesDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_server_type_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_server_type_parameters.go deleted file mode 100644 index bb6d1ae559..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_server_type_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigRPCServerTypeParams creates a new FindConfigRPCServerTypeParams object -// with the default values initialized. -func NewFindConfigRPCServerTypeParams() *FindConfigRPCServerTypeParams { - - return &FindConfigRPCServerTypeParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigRPCServerTypeParamsWithTimeout creates a new FindConfigRPCServerTypeParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigRPCServerTypeParamsWithTimeout(timeout time.Duration) *FindConfigRPCServerTypeParams { - - return &FindConfigRPCServerTypeParams{ - - timeout: timeout, - } -} - -// NewFindConfigRPCServerTypeParamsWithContext creates a new FindConfigRPCServerTypeParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigRPCServerTypeParamsWithContext(ctx context.Context) *FindConfigRPCServerTypeParams { - - return &FindConfigRPCServerTypeParams{ - - Context: ctx, - } -} - -// NewFindConfigRPCServerTypeParamsWithHTTPClient creates a new FindConfigRPCServerTypeParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigRPCServerTypeParamsWithHTTPClient(client *http.Client) *FindConfigRPCServerTypeParams { - - return &FindConfigRPCServerTypeParams{ - HTTPClient: client, - } -} - -/* -FindConfigRPCServerTypeParams contains all the parameters to send to the API endpoint -for the find config rpc server type operation typically these are written to a http.Request -*/ -type FindConfigRPCServerTypeParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config rpc server type params -func (o *FindConfigRPCServerTypeParams) WithTimeout(timeout time.Duration) *FindConfigRPCServerTypeParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config rpc server type params -func (o *FindConfigRPCServerTypeParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config rpc server type params -func (o *FindConfigRPCServerTypeParams) WithContext(ctx context.Context) *FindConfigRPCServerTypeParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config rpc server type params -func (o *FindConfigRPCServerTypeParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config rpc server type params -func (o *FindConfigRPCServerTypeParams) WithHTTPClient(client *http.Client) *FindConfigRPCServerTypeParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config rpc server type params -func (o *FindConfigRPCServerTypeParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigRPCServerTypeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_server_type_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_server_type_responses.go deleted file mode 100644 index 0f645edfd1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_rpc_server_type_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigRPCServerTypeReader is a Reader for the FindConfigRPCServerType structure. -type FindConfigRPCServerTypeReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigRPCServerTypeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigRPCServerTypeOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigRPCServerTypeDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigRPCServerTypeOK creates a FindConfigRPCServerTypeOK with default headers values -func NewFindConfigRPCServerTypeOK() *FindConfigRPCServerTypeOK { - return &FindConfigRPCServerTypeOK{} -} - -/* -FindConfigRPCServerTypeOK handles this case with default header values. - -Config value -*/ -type FindConfigRPCServerTypeOK struct { - Payload string -} - -func (o *FindConfigRPCServerTypeOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigRPCServerTypeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigRPCServerTypeDefault creates a FindConfigRPCServerTypeDefault with default headers values -func NewFindConfigRPCServerTypeDefault(code int) *FindConfigRPCServerTypeDefault { - return &FindConfigRPCServerTypeDefault{ - _statusCode: code, - } -} - -/* -FindConfigRPCServerTypeDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigRPCServerTypeDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config rpc server type default response -func (o *FindConfigRPCServerTypeDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigRPCServerTypeDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigRPCServerTypeDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigRPCServerTypeDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_saved_caches_directory_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_saved_caches_directory_parameters.go deleted file mode 100644 index 4fcb8237f0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_saved_caches_directory_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigSavedCachesDirectoryParams creates a new FindConfigSavedCachesDirectoryParams object -// with the default values initialized. -func NewFindConfigSavedCachesDirectoryParams() *FindConfigSavedCachesDirectoryParams { - - return &FindConfigSavedCachesDirectoryParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigSavedCachesDirectoryParamsWithTimeout creates a new FindConfigSavedCachesDirectoryParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigSavedCachesDirectoryParamsWithTimeout(timeout time.Duration) *FindConfigSavedCachesDirectoryParams { - - return &FindConfigSavedCachesDirectoryParams{ - - timeout: timeout, - } -} - -// NewFindConfigSavedCachesDirectoryParamsWithContext creates a new FindConfigSavedCachesDirectoryParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigSavedCachesDirectoryParamsWithContext(ctx context.Context) *FindConfigSavedCachesDirectoryParams { - - return &FindConfigSavedCachesDirectoryParams{ - - Context: ctx, - } -} - -// NewFindConfigSavedCachesDirectoryParamsWithHTTPClient creates a new FindConfigSavedCachesDirectoryParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigSavedCachesDirectoryParamsWithHTTPClient(client *http.Client) *FindConfigSavedCachesDirectoryParams { - - return &FindConfigSavedCachesDirectoryParams{ - HTTPClient: client, - } -} - -/* -FindConfigSavedCachesDirectoryParams contains all the parameters to send to the API endpoint -for the find config saved caches directory operation typically these are written to a http.Request -*/ -type FindConfigSavedCachesDirectoryParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config saved caches directory params -func (o *FindConfigSavedCachesDirectoryParams) WithTimeout(timeout time.Duration) *FindConfigSavedCachesDirectoryParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config saved caches directory params -func (o *FindConfigSavedCachesDirectoryParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config saved caches directory params -func (o *FindConfigSavedCachesDirectoryParams) WithContext(ctx context.Context) *FindConfigSavedCachesDirectoryParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config saved caches directory params -func (o *FindConfigSavedCachesDirectoryParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config saved caches directory params -func (o *FindConfigSavedCachesDirectoryParams) WithHTTPClient(client *http.Client) *FindConfigSavedCachesDirectoryParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config saved caches directory params -func (o *FindConfigSavedCachesDirectoryParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigSavedCachesDirectoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_saved_caches_directory_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_saved_caches_directory_responses.go deleted file mode 100644 index 6aa3b621dc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_saved_caches_directory_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigSavedCachesDirectoryReader is a Reader for the FindConfigSavedCachesDirectory structure. -type FindConfigSavedCachesDirectoryReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigSavedCachesDirectoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigSavedCachesDirectoryOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigSavedCachesDirectoryDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigSavedCachesDirectoryOK creates a FindConfigSavedCachesDirectoryOK with default headers values -func NewFindConfigSavedCachesDirectoryOK() *FindConfigSavedCachesDirectoryOK { - return &FindConfigSavedCachesDirectoryOK{} -} - -/* -FindConfigSavedCachesDirectoryOK handles this case with default header values. - -Config value -*/ -type FindConfigSavedCachesDirectoryOK struct { - Payload string -} - -func (o *FindConfigSavedCachesDirectoryOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigSavedCachesDirectoryOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigSavedCachesDirectoryDefault creates a FindConfigSavedCachesDirectoryDefault with default headers values -func NewFindConfigSavedCachesDirectoryDefault(code int) *FindConfigSavedCachesDirectoryDefault { - return &FindConfigSavedCachesDirectoryDefault{ - _statusCode: code, - } -} - -/* -FindConfigSavedCachesDirectoryDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigSavedCachesDirectoryDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config saved caches directory default response -func (o *FindConfigSavedCachesDirectoryDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigSavedCachesDirectoryDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigSavedCachesDirectoryDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigSavedCachesDirectoryDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_seed_provider_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_seed_provider_parameters.go deleted file mode 100644 index fda3b50125..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_seed_provider_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigSeedProviderParams creates a new FindConfigSeedProviderParams object -// with the default values initialized. -func NewFindConfigSeedProviderParams() *FindConfigSeedProviderParams { - - return &FindConfigSeedProviderParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigSeedProviderParamsWithTimeout creates a new FindConfigSeedProviderParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigSeedProviderParamsWithTimeout(timeout time.Duration) *FindConfigSeedProviderParams { - - return &FindConfigSeedProviderParams{ - - timeout: timeout, - } -} - -// NewFindConfigSeedProviderParamsWithContext creates a new FindConfigSeedProviderParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigSeedProviderParamsWithContext(ctx context.Context) *FindConfigSeedProviderParams { - - return &FindConfigSeedProviderParams{ - - Context: ctx, - } -} - -// NewFindConfigSeedProviderParamsWithHTTPClient creates a new FindConfigSeedProviderParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigSeedProviderParamsWithHTTPClient(client *http.Client) *FindConfigSeedProviderParams { - - return &FindConfigSeedProviderParams{ - HTTPClient: client, - } -} - -/* -FindConfigSeedProviderParams contains all the parameters to send to the API endpoint -for the find config seed provider operation typically these are written to a http.Request -*/ -type FindConfigSeedProviderParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config seed provider params -func (o *FindConfigSeedProviderParams) WithTimeout(timeout time.Duration) *FindConfigSeedProviderParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config seed provider params -func (o *FindConfigSeedProviderParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config seed provider params -func (o *FindConfigSeedProviderParams) WithContext(ctx context.Context) *FindConfigSeedProviderParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config seed provider params -func (o *FindConfigSeedProviderParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config seed provider params -func (o *FindConfigSeedProviderParams) WithHTTPClient(client *http.Client) *FindConfigSeedProviderParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config seed provider params -func (o *FindConfigSeedProviderParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigSeedProviderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_seed_provider_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_seed_provider_responses.go deleted file mode 100644 index a7b4e976e9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_seed_provider_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigSeedProviderReader is a Reader for the FindConfigSeedProvider structure. -type FindConfigSeedProviderReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigSeedProviderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigSeedProviderOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigSeedProviderDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigSeedProviderOK creates a FindConfigSeedProviderOK with default headers values -func NewFindConfigSeedProviderOK() *FindConfigSeedProviderOK { - return &FindConfigSeedProviderOK{} -} - -/* -FindConfigSeedProviderOK handles this case with default header values. - -Config value -*/ -type FindConfigSeedProviderOK struct { - Payload []string -} - -func (o *FindConfigSeedProviderOK) GetPayload() []string { - return o.Payload -} - -func (o *FindConfigSeedProviderOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigSeedProviderDefault creates a FindConfigSeedProviderDefault with default headers values -func NewFindConfigSeedProviderDefault(code int) *FindConfigSeedProviderDefault { - return &FindConfigSeedProviderDefault{ - _statusCode: code, - } -} - -/* -FindConfigSeedProviderDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigSeedProviderDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config seed provider default response -func (o *FindConfigSeedProviderDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigSeedProviderDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigSeedProviderDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigSeedProviderDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_server_encryption_options_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_server_encryption_options_parameters.go deleted file mode 100644 index 5104649929..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_server_encryption_options_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigServerEncryptionOptionsParams creates a new FindConfigServerEncryptionOptionsParams object -// with the default values initialized. -func NewFindConfigServerEncryptionOptionsParams() *FindConfigServerEncryptionOptionsParams { - - return &FindConfigServerEncryptionOptionsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigServerEncryptionOptionsParamsWithTimeout creates a new FindConfigServerEncryptionOptionsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigServerEncryptionOptionsParamsWithTimeout(timeout time.Duration) *FindConfigServerEncryptionOptionsParams { - - return &FindConfigServerEncryptionOptionsParams{ - - timeout: timeout, - } -} - -// NewFindConfigServerEncryptionOptionsParamsWithContext creates a new FindConfigServerEncryptionOptionsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigServerEncryptionOptionsParamsWithContext(ctx context.Context) *FindConfigServerEncryptionOptionsParams { - - return &FindConfigServerEncryptionOptionsParams{ - - Context: ctx, - } -} - -// NewFindConfigServerEncryptionOptionsParamsWithHTTPClient creates a new FindConfigServerEncryptionOptionsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigServerEncryptionOptionsParamsWithHTTPClient(client *http.Client) *FindConfigServerEncryptionOptionsParams { - - return &FindConfigServerEncryptionOptionsParams{ - HTTPClient: client, - } -} - -/* -FindConfigServerEncryptionOptionsParams contains all the parameters to send to the API endpoint -for the find config server encryption options operation typically these are written to a http.Request -*/ -type FindConfigServerEncryptionOptionsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config server encryption options params -func (o *FindConfigServerEncryptionOptionsParams) WithTimeout(timeout time.Duration) *FindConfigServerEncryptionOptionsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config server encryption options params -func (o *FindConfigServerEncryptionOptionsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config server encryption options params -func (o *FindConfigServerEncryptionOptionsParams) WithContext(ctx context.Context) *FindConfigServerEncryptionOptionsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config server encryption options params -func (o *FindConfigServerEncryptionOptionsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config server encryption options params -func (o *FindConfigServerEncryptionOptionsParams) WithHTTPClient(client *http.Client) *FindConfigServerEncryptionOptionsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config server encryption options params -func (o *FindConfigServerEncryptionOptionsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigServerEncryptionOptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_server_encryption_options_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_server_encryption_options_responses.go deleted file mode 100644 index 4e3022be84..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_server_encryption_options_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigServerEncryptionOptionsReader is a Reader for the FindConfigServerEncryptionOptions structure. -type FindConfigServerEncryptionOptionsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigServerEncryptionOptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigServerEncryptionOptionsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigServerEncryptionOptionsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigServerEncryptionOptionsOK creates a FindConfigServerEncryptionOptionsOK with default headers values -func NewFindConfigServerEncryptionOptionsOK() *FindConfigServerEncryptionOptionsOK { - return &FindConfigServerEncryptionOptionsOK{} -} - -/* -FindConfigServerEncryptionOptionsOK handles this case with default header values. - -Config value -*/ -type FindConfigServerEncryptionOptionsOK struct { - Payload []string -} - -func (o *FindConfigServerEncryptionOptionsOK) GetPayload() []string { - return o.Payload -} - -func (o *FindConfigServerEncryptionOptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigServerEncryptionOptionsDefault creates a FindConfigServerEncryptionOptionsDefault with default headers values -func NewFindConfigServerEncryptionOptionsDefault(code int) *FindConfigServerEncryptionOptionsDefault { - return &FindConfigServerEncryptionOptionsDefault{ - _statusCode: code, - } -} - -/* -FindConfigServerEncryptionOptionsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigServerEncryptionOptionsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config server encryption options default response -func (o *FindConfigServerEncryptionOptionsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigServerEncryptionOptionsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigServerEncryptionOptionsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigServerEncryptionOptionsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_shadow_round_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_shadow_round_ms_parameters.go deleted file mode 100644 index d586771044..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_shadow_round_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigShadowRoundMsParams creates a new FindConfigShadowRoundMsParams object -// with the default values initialized. -func NewFindConfigShadowRoundMsParams() *FindConfigShadowRoundMsParams { - - return &FindConfigShadowRoundMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigShadowRoundMsParamsWithTimeout creates a new FindConfigShadowRoundMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigShadowRoundMsParamsWithTimeout(timeout time.Duration) *FindConfigShadowRoundMsParams { - - return &FindConfigShadowRoundMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigShadowRoundMsParamsWithContext creates a new FindConfigShadowRoundMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigShadowRoundMsParamsWithContext(ctx context.Context) *FindConfigShadowRoundMsParams { - - return &FindConfigShadowRoundMsParams{ - - Context: ctx, - } -} - -// NewFindConfigShadowRoundMsParamsWithHTTPClient creates a new FindConfigShadowRoundMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigShadowRoundMsParamsWithHTTPClient(client *http.Client) *FindConfigShadowRoundMsParams { - - return &FindConfigShadowRoundMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigShadowRoundMsParams contains all the parameters to send to the API endpoint -for the find config shadow round ms operation typically these are written to a http.Request -*/ -type FindConfigShadowRoundMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config shadow round ms params -func (o *FindConfigShadowRoundMsParams) WithTimeout(timeout time.Duration) *FindConfigShadowRoundMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config shadow round ms params -func (o *FindConfigShadowRoundMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config shadow round ms params -func (o *FindConfigShadowRoundMsParams) WithContext(ctx context.Context) *FindConfigShadowRoundMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config shadow round ms params -func (o *FindConfigShadowRoundMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config shadow round ms params -func (o *FindConfigShadowRoundMsParams) WithHTTPClient(client *http.Client) *FindConfigShadowRoundMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config shadow round ms params -func (o *FindConfigShadowRoundMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigShadowRoundMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_shadow_round_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_shadow_round_ms_responses.go deleted file mode 100644 index 92a4613c26..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_shadow_round_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigShadowRoundMsReader is a Reader for the FindConfigShadowRoundMs structure. -type FindConfigShadowRoundMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigShadowRoundMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigShadowRoundMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigShadowRoundMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigShadowRoundMsOK creates a FindConfigShadowRoundMsOK with default headers values -func NewFindConfigShadowRoundMsOK() *FindConfigShadowRoundMsOK { - return &FindConfigShadowRoundMsOK{} -} - -/* -FindConfigShadowRoundMsOK handles this case with default header values. - -Config value -*/ -type FindConfigShadowRoundMsOK struct { - Payload int64 -} - -func (o *FindConfigShadowRoundMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigShadowRoundMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigShadowRoundMsDefault creates a FindConfigShadowRoundMsDefault with default headers values -func NewFindConfigShadowRoundMsDefault(code int) *FindConfigShadowRoundMsDefault { - return &FindConfigShadowRoundMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigShadowRoundMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigShadowRoundMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config shadow round ms default response -func (o *FindConfigShadowRoundMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigShadowRoundMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigShadowRoundMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigShadowRoundMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_shutdown_announce_in_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_shutdown_announce_in_ms_parameters.go deleted file mode 100644 index 510f7a41b9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_shutdown_announce_in_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigShutdownAnnounceInMsParams creates a new FindConfigShutdownAnnounceInMsParams object -// with the default values initialized. -func NewFindConfigShutdownAnnounceInMsParams() *FindConfigShutdownAnnounceInMsParams { - - return &FindConfigShutdownAnnounceInMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigShutdownAnnounceInMsParamsWithTimeout creates a new FindConfigShutdownAnnounceInMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigShutdownAnnounceInMsParamsWithTimeout(timeout time.Duration) *FindConfigShutdownAnnounceInMsParams { - - return &FindConfigShutdownAnnounceInMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigShutdownAnnounceInMsParamsWithContext creates a new FindConfigShutdownAnnounceInMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigShutdownAnnounceInMsParamsWithContext(ctx context.Context) *FindConfigShutdownAnnounceInMsParams { - - return &FindConfigShutdownAnnounceInMsParams{ - - Context: ctx, - } -} - -// NewFindConfigShutdownAnnounceInMsParamsWithHTTPClient creates a new FindConfigShutdownAnnounceInMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigShutdownAnnounceInMsParamsWithHTTPClient(client *http.Client) *FindConfigShutdownAnnounceInMsParams { - - return &FindConfigShutdownAnnounceInMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigShutdownAnnounceInMsParams contains all the parameters to send to the API endpoint -for the find config shutdown announce in ms operation typically these are written to a http.Request -*/ -type FindConfigShutdownAnnounceInMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config shutdown announce in ms params -func (o *FindConfigShutdownAnnounceInMsParams) WithTimeout(timeout time.Duration) *FindConfigShutdownAnnounceInMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config shutdown announce in ms params -func (o *FindConfigShutdownAnnounceInMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config shutdown announce in ms params -func (o *FindConfigShutdownAnnounceInMsParams) WithContext(ctx context.Context) *FindConfigShutdownAnnounceInMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config shutdown announce in ms params -func (o *FindConfigShutdownAnnounceInMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config shutdown announce in ms params -func (o *FindConfigShutdownAnnounceInMsParams) WithHTTPClient(client *http.Client) *FindConfigShutdownAnnounceInMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config shutdown announce in ms params -func (o *FindConfigShutdownAnnounceInMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigShutdownAnnounceInMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_shutdown_announce_in_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_shutdown_announce_in_ms_responses.go deleted file mode 100644 index ff29c8dfb4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_shutdown_announce_in_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigShutdownAnnounceInMsReader is a Reader for the FindConfigShutdownAnnounceInMs structure. -type FindConfigShutdownAnnounceInMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigShutdownAnnounceInMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigShutdownAnnounceInMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigShutdownAnnounceInMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigShutdownAnnounceInMsOK creates a FindConfigShutdownAnnounceInMsOK with default headers values -func NewFindConfigShutdownAnnounceInMsOK() *FindConfigShutdownAnnounceInMsOK { - return &FindConfigShutdownAnnounceInMsOK{} -} - -/* -FindConfigShutdownAnnounceInMsOK handles this case with default header values. - -Config value -*/ -type FindConfigShutdownAnnounceInMsOK struct { - Payload int64 -} - -func (o *FindConfigShutdownAnnounceInMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigShutdownAnnounceInMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigShutdownAnnounceInMsDefault creates a FindConfigShutdownAnnounceInMsDefault with default headers values -func NewFindConfigShutdownAnnounceInMsDefault(code int) *FindConfigShutdownAnnounceInMsDefault { - return &FindConfigShutdownAnnounceInMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigShutdownAnnounceInMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigShutdownAnnounceInMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config shutdown announce in ms default response -func (o *FindConfigShutdownAnnounceInMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigShutdownAnnounceInMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigShutdownAnnounceInMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigShutdownAnnounceInMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_skip_wait_for_gossip_to_settle_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_skip_wait_for_gossip_to_settle_parameters.go deleted file mode 100644 index cc8f4aee9d..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_skip_wait_for_gossip_to_settle_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigSkipWaitForGossipToSettleParams creates a new FindConfigSkipWaitForGossipToSettleParams object -// with the default values initialized. -func NewFindConfigSkipWaitForGossipToSettleParams() *FindConfigSkipWaitForGossipToSettleParams { - - return &FindConfigSkipWaitForGossipToSettleParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigSkipWaitForGossipToSettleParamsWithTimeout creates a new FindConfigSkipWaitForGossipToSettleParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigSkipWaitForGossipToSettleParamsWithTimeout(timeout time.Duration) *FindConfigSkipWaitForGossipToSettleParams { - - return &FindConfigSkipWaitForGossipToSettleParams{ - - timeout: timeout, - } -} - -// NewFindConfigSkipWaitForGossipToSettleParamsWithContext creates a new FindConfigSkipWaitForGossipToSettleParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigSkipWaitForGossipToSettleParamsWithContext(ctx context.Context) *FindConfigSkipWaitForGossipToSettleParams { - - return &FindConfigSkipWaitForGossipToSettleParams{ - - Context: ctx, - } -} - -// NewFindConfigSkipWaitForGossipToSettleParamsWithHTTPClient creates a new FindConfigSkipWaitForGossipToSettleParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigSkipWaitForGossipToSettleParamsWithHTTPClient(client *http.Client) *FindConfigSkipWaitForGossipToSettleParams { - - return &FindConfigSkipWaitForGossipToSettleParams{ - HTTPClient: client, - } -} - -/* -FindConfigSkipWaitForGossipToSettleParams contains all the parameters to send to the API endpoint -for the find config skip wait for gossip to settle operation typically these are written to a http.Request -*/ -type FindConfigSkipWaitForGossipToSettleParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config skip wait for gossip to settle params -func (o *FindConfigSkipWaitForGossipToSettleParams) WithTimeout(timeout time.Duration) *FindConfigSkipWaitForGossipToSettleParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config skip wait for gossip to settle params -func (o *FindConfigSkipWaitForGossipToSettleParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config skip wait for gossip to settle params -func (o *FindConfigSkipWaitForGossipToSettleParams) WithContext(ctx context.Context) *FindConfigSkipWaitForGossipToSettleParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config skip wait for gossip to settle params -func (o *FindConfigSkipWaitForGossipToSettleParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config skip wait for gossip to settle params -func (o *FindConfigSkipWaitForGossipToSettleParams) WithHTTPClient(client *http.Client) *FindConfigSkipWaitForGossipToSettleParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config skip wait for gossip to settle params -func (o *FindConfigSkipWaitForGossipToSettleParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigSkipWaitForGossipToSettleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_skip_wait_for_gossip_to_settle_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_skip_wait_for_gossip_to_settle_responses.go deleted file mode 100644 index 693ee3d918..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_skip_wait_for_gossip_to_settle_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigSkipWaitForGossipToSettleReader is a Reader for the FindConfigSkipWaitForGossipToSettle structure. -type FindConfigSkipWaitForGossipToSettleReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigSkipWaitForGossipToSettleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigSkipWaitForGossipToSettleOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigSkipWaitForGossipToSettleDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigSkipWaitForGossipToSettleOK creates a FindConfigSkipWaitForGossipToSettleOK with default headers values -func NewFindConfigSkipWaitForGossipToSettleOK() *FindConfigSkipWaitForGossipToSettleOK { - return &FindConfigSkipWaitForGossipToSettleOK{} -} - -/* -FindConfigSkipWaitForGossipToSettleOK handles this case with default header values. - -Config value -*/ -type FindConfigSkipWaitForGossipToSettleOK struct { - Payload int64 -} - -func (o *FindConfigSkipWaitForGossipToSettleOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigSkipWaitForGossipToSettleOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigSkipWaitForGossipToSettleDefault creates a FindConfigSkipWaitForGossipToSettleDefault with default headers values -func NewFindConfigSkipWaitForGossipToSettleDefault(code int) *FindConfigSkipWaitForGossipToSettleDefault { - return &FindConfigSkipWaitForGossipToSettleDefault{ - _statusCode: code, - } -} - -/* -FindConfigSkipWaitForGossipToSettleDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigSkipWaitForGossipToSettleDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config skip wait for gossip to settle default response -func (o *FindConfigSkipWaitForGossipToSettleDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigSkipWaitForGossipToSettleDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigSkipWaitForGossipToSettleDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigSkipWaitForGossipToSettleDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_snapshot_before_compaction_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_snapshot_before_compaction_parameters.go deleted file mode 100644 index 131e68cd58..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_snapshot_before_compaction_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigSnapshotBeforeCompactionParams creates a new FindConfigSnapshotBeforeCompactionParams object -// with the default values initialized. -func NewFindConfigSnapshotBeforeCompactionParams() *FindConfigSnapshotBeforeCompactionParams { - - return &FindConfigSnapshotBeforeCompactionParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigSnapshotBeforeCompactionParamsWithTimeout creates a new FindConfigSnapshotBeforeCompactionParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigSnapshotBeforeCompactionParamsWithTimeout(timeout time.Duration) *FindConfigSnapshotBeforeCompactionParams { - - return &FindConfigSnapshotBeforeCompactionParams{ - - timeout: timeout, - } -} - -// NewFindConfigSnapshotBeforeCompactionParamsWithContext creates a new FindConfigSnapshotBeforeCompactionParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigSnapshotBeforeCompactionParamsWithContext(ctx context.Context) *FindConfigSnapshotBeforeCompactionParams { - - return &FindConfigSnapshotBeforeCompactionParams{ - - Context: ctx, - } -} - -// NewFindConfigSnapshotBeforeCompactionParamsWithHTTPClient creates a new FindConfigSnapshotBeforeCompactionParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigSnapshotBeforeCompactionParamsWithHTTPClient(client *http.Client) *FindConfigSnapshotBeforeCompactionParams { - - return &FindConfigSnapshotBeforeCompactionParams{ - HTTPClient: client, - } -} - -/* -FindConfigSnapshotBeforeCompactionParams contains all the parameters to send to the API endpoint -for the find config snapshot before compaction operation typically these are written to a http.Request -*/ -type FindConfigSnapshotBeforeCompactionParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config snapshot before compaction params -func (o *FindConfigSnapshotBeforeCompactionParams) WithTimeout(timeout time.Duration) *FindConfigSnapshotBeforeCompactionParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config snapshot before compaction params -func (o *FindConfigSnapshotBeforeCompactionParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config snapshot before compaction params -func (o *FindConfigSnapshotBeforeCompactionParams) WithContext(ctx context.Context) *FindConfigSnapshotBeforeCompactionParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config snapshot before compaction params -func (o *FindConfigSnapshotBeforeCompactionParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config snapshot before compaction params -func (o *FindConfigSnapshotBeforeCompactionParams) WithHTTPClient(client *http.Client) *FindConfigSnapshotBeforeCompactionParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config snapshot before compaction params -func (o *FindConfigSnapshotBeforeCompactionParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigSnapshotBeforeCompactionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_snapshot_before_compaction_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_snapshot_before_compaction_responses.go deleted file mode 100644 index 8dfb4584cf..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_snapshot_before_compaction_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigSnapshotBeforeCompactionReader is a Reader for the FindConfigSnapshotBeforeCompaction structure. -type FindConfigSnapshotBeforeCompactionReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigSnapshotBeforeCompactionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigSnapshotBeforeCompactionOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigSnapshotBeforeCompactionDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigSnapshotBeforeCompactionOK creates a FindConfigSnapshotBeforeCompactionOK with default headers values -func NewFindConfigSnapshotBeforeCompactionOK() *FindConfigSnapshotBeforeCompactionOK { - return &FindConfigSnapshotBeforeCompactionOK{} -} - -/* -FindConfigSnapshotBeforeCompactionOK handles this case with default header values. - -Config value -*/ -type FindConfigSnapshotBeforeCompactionOK struct { - Payload bool -} - -func (o *FindConfigSnapshotBeforeCompactionOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigSnapshotBeforeCompactionOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigSnapshotBeforeCompactionDefault creates a FindConfigSnapshotBeforeCompactionDefault with default headers values -func NewFindConfigSnapshotBeforeCompactionDefault(code int) *FindConfigSnapshotBeforeCompactionDefault { - return &FindConfigSnapshotBeforeCompactionDefault{ - _statusCode: code, - } -} - -/* -FindConfigSnapshotBeforeCompactionDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigSnapshotBeforeCompactionDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config snapshot before compaction default response -func (o *FindConfigSnapshotBeforeCompactionDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigSnapshotBeforeCompactionDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigSnapshotBeforeCompactionDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigSnapshotBeforeCompactionDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_ssl_storage_port_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_ssl_storage_port_parameters.go deleted file mode 100644 index 56e627ceec..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_ssl_storage_port_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigSslStoragePortParams creates a new FindConfigSslStoragePortParams object -// with the default values initialized. -func NewFindConfigSslStoragePortParams() *FindConfigSslStoragePortParams { - - return &FindConfigSslStoragePortParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigSslStoragePortParamsWithTimeout creates a new FindConfigSslStoragePortParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigSslStoragePortParamsWithTimeout(timeout time.Duration) *FindConfigSslStoragePortParams { - - return &FindConfigSslStoragePortParams{ - - timeout: timeout, - } -} - -// NewFindConfigSslStoragePortParamsWithContext creates a new FindConfigSslStoragePortParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigSslStoragePortParamsWithContext(ctx context.Context) *FindConfigSslStoragePortParams { - - return &FindConfigSslStoragePortParams{ - - Context: ctx, - } -} - -// NewFindConfigSslStoragePortParamsWithHTTPClient creates a new FindConfigSslStoragePortParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigSslStoragePortParamsWithHTTPClient(client *http.Client) *FindConfigSslStoragePortParams { - - return &FindConfigSslStoragePortParams{ - HTTPClient: client, - } -} - -/* -FindConfigSslStoragePortParams contains all the parameters to send to the API endpoint -for the find config ssl storage port operation typically these are written to a http.Request -*/ -type FindConfigSslStoragePortParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config ssl storage port params -func (o *FindConfigSslStoragePortParams) WithTimeout(timeout time.Duration) *FindConfigSslStoragePortParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config ssl storage port params -func (o *FindConfigSslStoragePortParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config ssl storage port params -func (o *FindConfigSslStoragePortParams) WithContext(ctx context.Context) *FindConfigSslStoragePortParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config ssl storage port params -func (o *FindConfigSslStoragePortParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config ssl storage port params -func (o *FindConfigSslStoragePortParams) WithHTTPClient(client *http.Client) *FindConfigSslStoragePortParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config ssl storage port params -func (o *FindConfigSslStoragePortParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigSslStoragePortParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_ssl_storage_port_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_ssl_storage_port_responses.go deleted file mode 100644 index cb5f46028a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_ssl_storage_port_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigSslStoragePortReader is a Reader for the FindConfigSslStoragePort structure. -type FindConfigSslStoragePortReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigSslStoragePortReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigSslStoragePortOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigSslStoragePortDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigSslStoragePortOK creates a FindConfigSslStoragePortOK with default headers values -func NewFindConfigSslStoragePortOK() *FindConfigSslStoragePortOK { - return &FindConfigSslStoragePortOK{} -} - -/* -FindConfigSslStoragePortOK handles this case with default header values. - -Config value -*/ -type FindConfigSslStoragePortOK struct { - Payload int64 -} - -func (o *FindConfigSslStoragePortOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigSslStoragePortOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigSslStoragePortDefault creates a FindConfigSslStoragePortDefault with default headers values -func NewFindConfigSslStoragePortDefault(code int) *FindConfigSslStoragePortDefault { - return &FindConfigSslStoragePortDefault{ - _statusCode: code, - } -} - -/* -FindConfigSslStoragePortDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigSslStoragePortDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config ssl storage port default response -func (o *FindConfigSslStoragePortDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigSslStoragePortDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigSslStoragePortDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigSslStoragePortDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_sstable_preemptive_open_interval_in_mb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_sstable_preemptive_open_interval_in_mb_parameters.go deleted file mode 100644 index f37b91eafa..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_sstable_preemptive_open_interval_in_mb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigSstablePreemptiveOpenIntervalInMbParams creates a new FindConfigSstablePreemptiveOpenIntervalInMbParams object -// with the default values initialized. -func NewFindConfigSstablePreemptiveOpenIntervalInMbParams() *FindConfigSstablePreemptiveOpenIntervalInMbParams { - - return &FindConfigSstablePreemptiveOpenIntervalInMbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigSstablePreemptiveOpenIntervalInMbParamsWithTimeout creates a new FindConfigSstablePreemptiveOpenIntervalInMbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigSstablePreemptiveOpenIntervalInMbParamsWithTimeout(timeout time.Duration) *FindConfigSstablePreemptiveOpenIntervalInMbParams { - - return &FindConfigSstablePreemptiveOpenIntervalInMbParams{ - - timeout: timeout, - } -} - -// NewFindConfigSstablePreemptiveOpenIntervalInMbParamsWithContext creates a new FindConfigSstablePreemptiveOpenIntervalInMbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigSstablePreemptiveOpenIntervalInMbParamsWithContext(ctx context.Context) *FindConfigSstablePreemptiveOpenIntervalInMbParams { - - return &FindConfigSstablePreemptiveOpenIntervalInMbParams{ - - Context: ctx, - } -} - -// NewFindConfigSstablePreemptiveOpenIntervalInMbParamsWithHTTPClient creates a new FindConfigSstablePreemptiveOpenIntervalInMbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigSstablePreemptiveOpenIntervalInMbParamsWithHTTPClient(client *http.Client) *FindConfigSstablePreemptiveOpenIntervalInMbParams { - - return &FindConfigSstablePreemptiveOpenIntervalInMbParams{ - HTTPClient: client, - } -} - -/* -FindConfigSstablePreemptiveOpenIntervalInMbParams contains all the parameters to send to the API endpoint -for the find config sstable preemptive open interval in mb operation typically these are written to a http.Request -*/ -type FindConfigSstablePreemptiveOpenIntervalInMbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config sstable preemptive open interval in mb params -func (o *FindConfigSstablePreemptiveOpenIntervalInMbParams) WithTimeout(timeout time.Duration) *FindConfigSstablePreemptiveOpenIntervalInMbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config sstable preemptive open interval in mb params -func (o *FindConfigSstablePreemptiveOpenIntervalInMbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config sstable preemptive open interval in mb params -func (o *FindConfigSstablePreemptiveOpenIntervalInMbParams) WithContext(ctx context.Context) *FindConfigSstablePreemptiveOpenIntervalInMbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config sstable preemptive open interval in mb params -func (o *FindConfigSstablePreemptiveOpenIntervalInMbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config sstable preemptive open interval in mb params -func (o *FindConfigSstablePreemptiveOpenIntervalInMbParams) WithHTTPClient(client *http.Client) *FindConfigSstablePreemptiveOpenIntervalInMbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config sstable preemptive open interval in mb params -func (o *FindConfigSstablePreemptiveOpenIntervalInMbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigSstablePreemptiveOpenIntervalInMbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_sstable_preemptive_open_interval_in_mb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_sstable_preemptive_open_interval_in_mb_responses.go deleted file mode 100644 index 1b4caf8665..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_sstable_preemptive_open_interval_in_mb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigSstablePreemptiveOpenIntervalInMbReader is a Reader for the FindConfigSstablePreemptiveOpenIntervalInMb structure. -type FindConfigSstablePreemptiveOpenIntervalInMbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigSstablePreemptiveOpenIntervalInMbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigSstablePreemptiveOpenIntervalInMbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigSstablePreemptiveOpenIntervalInMbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigSstablePreemptiveOpenIntervalInMbOK creates a FindConfigSstablePreemptiveOpenIntervalInMbOK with default headers values -func NewFindConfigSstablePreemptiveOpenIntervalInMbOK() *FindConfigSstablePreemptiveOpenIntervalInMbOK { - return &FindConfigSstablePreemptiveOpenIntervalInMbOK{} -} - -/* -FindConfigSstablePreemptiveOpenIntervalInMbOK handles this case with default header values. - -Config value -*/ -type FindConfigSstablePreemptiveOpenIntervalInMbOK struct { - Payload int64 -} - -func (o *FindConfigSstablePreemptiveOpenIntervalInMbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigSstablePreemptiveOpenIntervalInMbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigSstablePreemptiveOpenIntervalInMbDefault creates a FindConfigSstablePreemptiveOpenIntervalInMbDefault with default headers values -func NewFindConfigSstablePreemptiveOpenIntervalInMbDefault(code int) *FindConfigSstablePreemptiveOpenIntervalInMbDefault { - return &FindConfigSstablePreemptiveOpenIntervalInMbDefault{ - _statusCode: code, - } -} - -/* -FindConfigSstablePreemptiveOpenIntervalInMbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigSstablePreemptiveOpenIntervalInMbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config sstable preemptive open interval in mb default response -func (o *FindConfigSstablePreemptiveOpenIntervalInMbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigSstablePreemptiveOpenIntervalInMbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigSstablePreemptiveOpenIntervalInMbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigSstablePreemptiveOpenIntervalInMbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_sstable_summary_ratio_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_sstable_summary_ratio_parameters.go deleted file mode 100644 index 4d5b9333d3..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_sstable_summary_ratio_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigSstableSummaryRatioParams creates a new FindConfigSstableSummaryRatioParams object -// with the default values initialized. -func NewFindConfigSstableSummaryRatioParams() *FindConfigSstableSummaryRatioParams { - - return &FindConfigSstableSummaryRatioParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigSstableSummaryRatioParamsWithTimeout creates a new FindConfigSstableSummaryRatioParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigSstableSummaryRatioParamsWithTimeout(timeout time.Duration) *FindConfigSstableSummaryRatioParams { - - return &FindConfigSstableSummaryRatioParams{ - - timeout: timeout, - } -} - -// NewFindConfigSstableSummaryRatioParamsWithContext creates a new FindConfigSstableSummaryRatioParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigSstableSummaryRatioParamsWithContext(ctx context.Context) *FindConfigSstableSummaryRatioParams { - - return &FindConfigSstableSummaryRatioParams{ - - Context: ctx, - } -} - -// NewFindConfigSstableSummaryRatioParamsWithHTTPClient creates a new FindConfigSstableSummaryRatioParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigSstableSummaryRatioParamsWithHTTPClient(client *http.Client) *FindConfigSstableSummaryRatioParams { - - return &FindConfigSstableSummaryRatioParams{ - HTTPClient: client, - } -} - -/* -FindConfigSstableSummaryRatioParams contains all the parameters to send to the API endpoint -for the find config sstable summary ratio operation typically these are written to a http.Request -*/ -type FindConfigSstableSummaryRatioParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config sstable summary ratio params -func (o *FindConfigSstableSummaryRatioParams) WithTimeout(timeout time.Duration) *FindConfigSstableSummaryRatioParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config sstable summary ratio params -func (o *FindConfigSstableSummaryRatioParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config sstable summary ratio params -func (o *FindConfigSstableSummaryRatioParams) WithContext(ctx context.Context) *FindConfigSstableSummaryRatioParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config sstable summary ratio params -func (o *FindConfigSstableSummaryRatioParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config sstable summary ratio params -func (o *FindConfigSstableSummaryRatioParams) WithHTTPClient(client *http.Client) *FindConfigSstableSummaryRatioParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config sstable summary ratio params -func (o *FindConfigSstableSummaryRatioParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigSstableSummaryRatioParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_sstable_summary_ratio_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_sstable_summary_ratio_responses.go deleted file mode 100644 index 07bbad6155..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_sstable_summary_ratio_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigSstableSummaryRatioReader is a Reader for the FindConfigSstableSummaryRatio structure. -type FindConfigSstableSummaryRatioReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigSstableSummaryRatioReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigSstableSummaryRatioOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigSstableSummaryRatioDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigSstableSummaryRatioOK creates a FindConfigSstableSummaryRatioOK with default headers values -func NewFindConfigSstableSummaryRatioOK() *FindConfigSstableSummaryRatioOK { - return &FindConfigSstableSummaryRatioOK{} -} - -/* -FindConfigSstableSummaryRatioOK handles this case with default header values. - -Config value -*/ -type FindConfigSstableSummaryRatioOK struct { - Payload float64 -} - -func (o *FindConfigSstableSummaryRatioOK) GetPayload() float64 { - return o.Payload -} - -func (o *FindConfigSstableSummaryRatioOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigSstableSummaryRatioDefault creates a FindConfigSstableSummaryRatioDefault with default headers values -func NewFindConfigSstableSummaryRatioDefault(code int) *FindConfigSstableSummaryRatioDefault { - return &FindConfigSstableSummaryRatioDefault{ - _statusCode: code, - } -} - -/* -FindConfigSstableSummaryRatioDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigSstableSummaryRatioDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config sstable summary ratio default response -func (o *FindConfigSstableSummaryRatioDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigSstableSummaryRatioDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigSstableSummaryRatioDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigSstableSummaryRatioDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_start_native_transport_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_start_native_transport_parameters.go deleted file mode 100644 index 4132b7ac1b..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_start_native_transport_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigStartNativeTransportParams creates a new FindConfigStartNativeTransportParams object -// with the default values initialized. -func NewFindConfigStartNativeTransportParams() *FindConfigStartNativeTransportParams { - - return &FindConfigStartNativeTransportParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigStartNativeTransportParamsWithTimeout creates a new FindConfigStartNativeTransportParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigStartNativeTransportParamsWithTimeout(timeout time.Duration) *FindConfigStartNativeTransportParams { - - return &FindConfigStartNativeTransportParams{ - - timeout: timeout, - } -} - -// NewFindConfigStartNativeTransportParamsWithContext creates a new FindConfigStartNativeTransportParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigStartNativeTransportParamsWithContext(ctx context.Context) *FindConfigStartNativeTransportParams { - - return &FindConfigStartNativeTransportParams{ - - Context: ctx, - } -} - -// NewFindConfigStartNativeTransportParamsWithHTTPClient creates a new FindConfigStartNativeTransportParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigStartNativeTransportParamsWithHTTPClient(client *http.Client) *FindConfigStartNativeTransportParams { - - return &FindConfigStartNativeTransportParams{ - HTTPClient: client, - } -} - -/* -FindConfigStartNativeTransportParams contains all the parameters to send to the API endpoint -for the find config start native transport operation typically these are written to a http.Request -*/ -type FindConfigStartNativeTransportParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config start native transport params -func (o *FindConfigStartNativeTransportParams) WithTimeout(timeout time.Duration) *FindConfigStartNativeTransportParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config start native transport params -func (o *FindConfigStartNativeTransportParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config start native transport params -func (o *FindConfigStartNativeTransportParams) WithContext(ctx context.Context) *FindConfigStartNativeTransportParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config start native transport params -func (o *FindConfigStartNativeTransportParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config start native transport params -func (o *FindConfigStartNativeTransportParams) WithHTTPClient(client *http.Client) *FindConfigStartNativeTransportParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config start native transport params -func (o *FindConfigStartNativeTransportParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigStartNativeTransportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_start_native_transport_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_start_native_transport_responses.go deleted file mode 100644 index ab83805185..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_start_native_transport_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigStartNativeTransportReader is a Reader for the FindConfigStartNativeTransport structure. -type FindConfigStartNativeTransportReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigStartNativeTransportReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigStartNativeTransportOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigStartNativeTransportDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigStartNativeTransportOK creates a FindConfigStartNativeTransportOK with default headers values -func NewFindConfigStartNativeTransportOK() *FindConfigStartNativeTransportOK { - return &FindConfigStartNativeTransportOK{} -} - -/* -FindConfigStartNativeTransportOK handles this case with default header values. - -Config value -*/ -type FindConfigStartNativeTransportOK struct { - Payload bool -} - -func (o *FindConfigStartNativeTransportOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigStartNativeTransportOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigStartNativeTransportDefault creates a FindConfigStartNativeTransportDefault with default headers values -func NewFindConfigStartNativeTransportDefault(code int) *FindConfigStartNativeTransportDefault { - return &FindConfigStartNativeTransportDefault{ - _statusCode: code, - } -} - -/* -FindConfigStartNativeTransportDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigStartNativeTransportDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config start native transport default response -func (o *FindConfigStartNativeTransportDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigStartNativeTransportDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigStartNativeTransportDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigStartNativeTransportDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_start_rpc_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_start_rpc_parameters.go deleted file mode 100644 index 3a429c5dde..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_start_rpc_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigStartRPCParams creates a new FindConfigStartRPCParams object -// with the default values initialized. -func NewFindConfigStartRPCParams() *FindConfigStartRPCParams { - - return &FindConfigStartRPCParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigStartRPCParamsWithTimeout creates a new FindConfigStartRPCParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigStartRPCParamsWithTimeout(timeout time.Duration) *FindConfigStartRPCParams { - - return &FindConfigStartRPCParams{ - - timeout: timeout, - } -} - -// NewFindConfigStartRPCParamsWithContext creates a new FindConfigStartRPCParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigStartRPCParamsWithContext(ctx context.Context) *FindConfigStartRPCParams { - - return &FindConfigStartRPCParams{ - - Context: ctx, - } -} - -// NewFindConfigStartRPCParamsWithHTTPClient creates a new FindConfigStartRPCParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigStartRPCParamsWithHTTPClient(client *http.Client) *FindConfigStartRPCParams { - - return &FindConfigStartRPCParams{ - HTTPClient: client, - } -} - -/* -FindConfigStartRPCParams contains all the parameters to send to the API endpoint -for the find config start rpc operation typically these are written to a http.Request -*/ -type FindConfigStartRPCParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config start rpc params -func (o *FindConfigStartRPCParams) WithTimeout(timeout time.Duration) *FindConfigStartRPCParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config start rpc params -func (o *FindConfigStartRPCParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config start rpc params -func (o *FindConfigStartRPCParams) WithContext(ctx context.Context) *FindConfigStartRPCParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config start rpc params -func (o *FindConfigStartRPCParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config start rpc params -func (o *FindConfigStartRPCParams) WithHTTPClient(client *http.Client) *FindConfigStartRPCParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config start rpc params -func (o *FindConfigStartRPCParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigStartRPCParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_start_rpc_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_start_rpc_responses.go deleted file mode 100644 index 7b41284a6a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_start_rpc_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigStartRPCReader is a Reader for the FindConfigStartRPC structure. -type FindConfigStartRPCReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigStartRPCReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigStartRPCOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigStartRPCDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigStartRPCOK creates a FindConfigStartRPCOK with default headers values -func NewFindConfigStartRPCOK() *FindConfigStartRPCOK { - return &FindConfigStartRPCOK{} -} - -/* -FindConfigStartRPCOK handles this case with default header values. - -Config value -*/ -type FindConfigStartRPCOK struct { - Payload bool -} - -func (o *FindConfigStartRPCOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigStartRPCOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigStartRPCDefault creates a FindConfigStartRPCDefault with default headers values -func NewFindConfigStartRPCDefault(code int) *FindConfigStartRPCDefault { - return &FindConfigStartRPCDefault{ - _statusCode: code, - } -} - -/* -FindConfigStartRPCDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigStartRPCDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config start rpc default response -func (o *FindConfigStartRPCDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigStartRPCDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigStartRPCDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigStartRPCDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_storage_port_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_storage_port_parameters.go deleted file mode 100644 index 657d628929..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_storage_port_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigStoragePortParams creates a new FindConfigStoragePortParams object -// with the default values initialized. -func NewFindConfigStoragePortParams() *FindConfigStoragePortParams { - - return &FindConfigStoragePortParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigStoragePortParamsWithTimeout creates a new FindConfigStoragePortParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigStoragePortParamsWithTimeout(timeout time.Duration) *FindConfigStoragePortParams { - - return &FindConfigStoragePortParams{ - - timeout: timeout, - } -} - -// NewFindConfigStoragePortParamsWithContext creates a new FindConfigStoragePortParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigStoragePortParamsWithContext(ctx context.Context) *FindConfigStoragePortParams { - - return &FindConfigStoragePortParams{ - - Context: ctx, - } -} - -// NewFindConfigStoragePortParamsWithHTTPClient creates a new FindConfigStoragePortParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigStoragePortParamsWithHTTPClient(client *http.Client) *FindConfigStoragePortParams { - - return &FindConfigStoragePortParams{ - HTTPClient: client, - } -} - -/* -FindConfigStoragePortParams contains all the parameters to send to the API endpoint -for the find config storage port operation typically these are written to a http.Request -*/ -type FindConfigStoragePortParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config storage port params -func (o *FindConfigStoragePortParams) WithTimeout(timeout time.Duration) *FindConfigStoragePortParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config storage port params -func (o *FindConfigStoragePortParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config storage port params -func (o *FindConfigStoragePortParams) WithContext(ctx context.Context) *FindConfigStoragePortParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config storage port params -func (o *FindConfigStoragePortParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config storage port params -func (o *FindConfigStoragePortParams) WithHTTPClient(client *http.Client) *FindConfigStoragePortParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config storage port params -func (o *FindConfigStoragePortParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigStoragePortParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_storage_port_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_storage_port_responses.go deleted file mode 100644 index d5802d3d90..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_storage_port_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigStoragePortReader is a Reader for the FindConfigStoragePort structure. -type FindConfigStoragePortReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigStoragePortReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigStoragePortOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigStoragePortDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigStoragePortOK creates a FindConfigStoragePortOK with default headers values -func NewFindConfigStoragePortOK() *FindConfigStoragePortOK { - return &FindConfigStoragePortOK{} -} - -/* -FindConfigStoragePortOK handles this case with default header values. - -Config value -*/ -type FindConfigStoragePortOK struct { - Payload int64 -} - -func (o *FindConfigStoragePortOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigStoragePortOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigStoragePortDefault creates a FindConfigStoragePortDefault with default headers values -func NewFindConfigStoragePortDefault(code int) *FindConfigStoragePortDefault { - return &FindConfigStoragePortDefault{ - _statusCode: code, - } -} - -/* -FindConfigStoragePortDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigStoragePortDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config storage port default response -func (o *FindConfigStoragePortDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigStoragePortDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigStoragePortDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigStoragePortDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_stream_throughput_outbound_megabits_per_sec_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_stream_throughput_outbound_megabits_per_sec_parameters.go deleted file mode 100644 index c01b2b73ad..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_stream_throughput_outbound_megabits_per_sec_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigStreamThroughputOutboundMegabitsPerSecParams creates a new FindConfigStreamThroughputOutboundMegabitsPerSecParams object -// with the default values initialized. -func NewFindConfigStreamThroughputOutboundMegabitsPerSecParams() *FindConfigStreamThroughputOutboundMegabitsPerSecParams { - - return &FindConfigStreamThroughputOutboundMegabitsPerSecParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigStreamThroughputOutboundMegabitsPerSecParamsWithTimeout creates a new FindConfigStreamThroughputOutboundMegabitsPerSecParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigStreamThroughputOutboundMegabitsPerSecParamsWithTimeout(timeout time.Duration) *FindConfigStreamThroughputOutboundMegabitsPerSecParams { - - return &FindConfigStreamThroughputOutboundMegabitsPerSecParams{ - - timeout: timeout, - } -} - -// NewFindConfigStreamThroughputOutboundMegabitsPerSecParamsWithContext creates a new FindConfigStreamThroughputOutboundMegabitsPerSecParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigStreamThroughputOutboundMegabitsPerSecParamsWithContext(ctx context.Context) *FindConfigStreamThroughputOutboundMegabitsPerSecParams { - - return &FindConfigStreamThroughputOutboundMegabitsPerSecParams{ - - Context: ctx, - } -} - -// NewFindConfigStreamThroughputOutboundMegabitsPerSecParamsWithHTTPClient creates a new FindConfigStreamThroughputOutboundMegabitsPerSecParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigStreamThroughputOutboundMegabitsPerSecParamsWithHTTPClient(client *http.Client) *FindConfigStreamThroughputOutboundMegabitsPerSecParams { - - return &FindConfigStreamThroughputOutboundMegabitsPerSecParams{ - HTTPClient: client, - } -} - -/* -FindConfigStreamThroughputOutboundMegabitsPerSecParams contains all the parameters to send to the API endpoint -for the find config stream throughput outbound megabits per sec operation typically these are written to a http.Request -*/ -type FindConfigStreamThroughputOutboundMegabitsPerSecParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config stream throughput outbound megabits per sec params -func (o *FindConfigStreamThroughputOutboundMegabitsPerSecParams) WithTimeout(timeout time.Duration) *FindConfigStreamThroughputOutboundMegabitsPerSecParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config stream throughput outbound megabits per sec params -func (o *FindConfigStreamThroughputOutboundMegabitsPerSecParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config stream throughput outbound megabits per sec params -func (o *FindConfigStreamThroughputOutboundMegabitsPerSecParams) WithContext(ctx context.Context) *FindConfigStreamThroughputOutboundMegabitsPerSecParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config stream throughput outbound megabits per sec params -func (o *FindConfigStreamThroughputOutboundMegabitsPerSecParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config stream throughput outbound megabits per sec params -func (o *FindConfigStreamThroughputOutboundMegabitsPerSecParams) WithHTTPClient(client *http.Client) *FindConfigStreamThroughputOutboundMegabitsPerSecParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config stream throughput outbound megabits per sec params -func (o *FindConfigStreamThroughputOutboundMegabitsPerSecParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigStreamThroughputOutboundMegabitsPerSecParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_stream_throughput_outbound_megabits_per_sec_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_stream_throughput_outbound_megabits_per_sec_responses.go deleted file mode 100644 index 9cbf6ea4cc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_stream_throughput_outbound_megabits_per_sec_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigStreamThroughputOutboundMegabitsPerSecReader is a Reader for the FindConfigStreamThroughputOutboundMegabitsPerSec structure. -type FindConfigStreamThroughputOutboundMegabitsPerSecReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigStreamThroughputOutboundMegabitsPerSecReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigStreamThroughputOutboundMegabitsPerSecOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigStreamThroughputOutboundMegabitsPerSecDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigStreamThroughputOutboundMegabitsPerSecOK creates a FindConfigStreamThroughputOutboundMegabitsPerSecOK with default headers values -func NewFindConfigStreamThroughputOutboundMegabitsPerSecOK() *FindConfigStreamThroughputOutboundMegabitsPerSecOK { - return &FindConfigStreamThroughputOutboundMegabitsPerSecOK{} -} - -/* -FindConfigStreamThroughputOutboundMegabitsPerSecOK handles this case with default header values. - -Config value -*/ -type FindConfigStreamThroughputOutboundMegabitsPerSecOK struct { - Payload int64 -} - -func (o *FindConfigStreamThroughputOutboundMegabitsPerSecOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigStreamThroughputOutboundMegabitsPerSecOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigStreamThroughputOutboundMegabitsPerSecDefault creates a FindConfigStreamThroughputOutboundMegabitsPerSecDefault with default headers values -func NewFindConfigStreamThroughputOutboundMegabitsPerSecDefault(code int) *FindConfigStreamThroughputOutboundMegabitsPerSecDefault { - return &FindConfigStreamThroughputOutboundMegabitsPerSecDefault{ - _statusCode: code, - } -} - -/* -FindConfigStreamThroughputOutboundMegabitsPerSecDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigStreamThroughputOutboundMegabitsPerSecDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config stream throughput outbound megabits per sec default response -func (o *FindConfigStreamThroughputOutboundMegabitsPerSecDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigStreamThroughputOutboundMegabitsPerSecDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigStreamThroughputOutboundMegabitsPerSecDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigStreamThroughputOutboundMegabitsPerSecDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_streaming_socket_timeout_in_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_streaming_socket_timeout_in_ms_parameters.go deleted file mode 100644 index 85c3332ba8..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_streaming_socket_timeout_in_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigStreamingSocketTimeoutInMsParams creates a new FindConfigStreamingSocketTimeoutInMsParams object -// with the default values initialized. -func NewFindConfigStreamingSocketTimeoutInMsParams() *FindConfigStreamingSocketTimeoutInMsParams { - - return &FindConfigStreamingSocketTimeoutInMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigStreamingSocketTimeoutInMsParamsWithTimeout creates a new FindConfigStreamingSocketTimeoutInMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigStreamingSocketTimeoutInMsParamsWithTimeout(timeout time.Duration) *FindConfigStreamingSocketTimeoutInMsParams { - - return &FindConfigStreamingSocketTimeoutInMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigStreamingSocketTimeoutInMsParamsWithContext creates a new FindConfigStreamingSocketTimeoutInMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigStreamingSocketTimeoutInMsParamsWithContext(ctx context.Context) *FindConfigStreamingSocketTimeoutInMsParams { - - return &FindConfigStreamingSocketTimeoutInMsParams{ - - Context: ctx, - } -} - -// NewFindConfigStreamingSocketTimeoutInMsParamsWithHTTPClient creates a new FindConfigStreamingSocketTimeoutInMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigStreamingSocketTimeoutInMsParamsWithHTTPClient(client *http.Client) *FindConfigStreamingSocketTimeoutInMsParams { - - return &FindConfigStreamingSocketTimeoutInMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigStreamingSocketTimeoutInMsParams contains all the parameters to send to the API endpoint -for the find config streaming socket timeout in ms operation typically these are written to a http.Request -*/ -type FindConfigStreamingSocketTimeoutInMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config streaming socket timeout in ms params -func (o *FindConfigStreamingSocketTimeoutInMsParams) WithTimeout(timeout time.Duration) *FindConfigStreamingSocketTimeoutInMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config streaming socket timeout in ms params -func (o *FindConfigStreamingSocketTimeoutInMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config streaming socket timeout in ms params -func (o *FindConfigStreamingSocketTimeoutInMsParams) WithContext(ctx context.Context) *FindConfigStreamingSocketTimeoutInMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config streaming socket timeout in ms params -func (o *FindConfigStreamingSocketTimeoutInMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config streaming socket timeout in ms params -func (o *FindConfigStreamingSocketTimeoutInMsParams) WithHTTPClient(client *http.Client) *FindConfigStreamingSocketTimeoutInMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config streaming socket timeout in ms params -func (o *FindConfigStreamingSocketTimeoutInMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigStreamingSocketTimeoutInMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_streaming_socket_timeout_in_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_streaming_socket_timeout_in_ms_responses.go deleted file mode 100644 index ef02996ffa..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_streaming_socket_timeout_in_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigStreamingSocketTimeoutInMsReader is a Reader for the FindConfigStreamingSocketTimeoutInMs structure. -type FindConfigStreamingSocketTimeoutInMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigStreamingSocketTimeoutInMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigStreamingSocketTimeoutInMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigStreamingSocketTimeoutInMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigStreamingSocketTimeoutInMsOK creates a FindConfigStreamingSocketTimeoutInMsOK with default headers values -func NewFindConfigStreamingSocketTimeoutInMsOK() *FindConfigStreamingSocketTimeoutInMsOK { - return &FindConfigStreamingSocketTimeoutInMsOK{} -} - -/* -FindConfigStreamingSocketTimeoutInMsOK handles this case with default header values. - -Config value -*/ -type FindConfigStreamingSocketTimeoutInMsOK struct { - Payload int64 -} - -func (o *FindConfigStreamingSocketTimeoutInMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigStreamingSocketTimeoutInMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigStreamingSocketTimeoutInMsDefault creates a FindConfigStreamingSocketTimeoutInMsDefault with default headers values -func NewFindConfigStreamingSocketTimeoutInMsDefault(code int) *FindConfigStreamingSocketTimeoutInMsDefault { - return &FindConfigStreamingSocketTimeoutInMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigStreamingSocketTimeoutInMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigStreamingSocketTimeoutInMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config streaming socket timeout in ms default response -func (o *FindConfigStreamingSocketTimeoutInMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigStreamingSocketTimeoutInMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigStreamingSocketTimeoutInMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigStreamingSocketTimeoutInMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_thrift_framed_transport_size_in_mb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_thrift_framed_transport_size_in_mb_parameters.go deleted file mode 100644 index 9d4177a2c1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_thrift_framed_transport_size_in_mb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigThriftFramedTransportSizeInMbParams creates a new FindConfigThriftFramedTransportSizeInMbParams object -// with the default values initialized. -func NewFindConfigThriftFramedTransportSizeInMbParams() *FindConfigThriftFramedTransportSizeInMbParams { - - return &FindConfigThriftFramedTransportSizeInMbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigThriftFramedTransportSizeInMbParamsWithTimeout creates a new FindConfigThriftFramedTransportSizeInMbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigThriftFramedTransportSizeInMbParamsWithTimeout(timeout time.Duration) *FindConfigThriftFramedTransportSizeInMbParams { - - return &FindConfigThriftFramedTransportSizeInMbParams{ - - timeout: timeout, - } -} - -// NewFindConfigThriftFramedTransportSizeInMbParamsWithContext creates a new FindConfigThriftFramedTransportSizeInMbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigThriftFramedTransportSizeInMbParamsWithContext(ctx context.Context) *FindConfigThriftFramedTransportSizeInMbParams { - - return &FindConfigThriftFramedTransportSizeInMbParams{ - - Context: ctx, - } -} - -// NewFindConfigThriftFramedTransportSizeInMbParamsWithHTTPClient creates a new FindConfigThriftFramedTransportSizeInMbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigThriftFramedTransportSizeInMbParamsWithHTTPClient(client *http.Client) *FindConfigThriftFramedTransportSizeInMbParams { - - return &FindConfigThriftFramedTransportSizeInMbParams{ - HTTPClient: client, - } -} - -/* -FindConfigThriftFramedTransportSizeInMbParams contains all the parameters to send to the API endpoint -for the find config thrift framed transport size in mb operation typically these are written to a http.Request -*/ -type FindConfigThriftFramedTransportSizeInMbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config thrift framed transport size in mb params -func (o *FindConfigThriftFramedTransportSizeInMbParams) WithTimeout(timeout time.Duration) *FindConfigThriftFramedTransportSizeInMbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config thrift framed transport size in mb params -func (o *FindConfigThriftFramedTransportSizeInMbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config thrift framed transport size in mb params -func (o *FindConfigThriftFramedTransportSizeInMbParams) WithContext(ctx context.Context) *FindConfigThriftFramedTransportSizeInMbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config thrift framed transport size in mb params -func (o *FindConfigThriftFramedTransportSizeInMbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config thrift framed transport size in mb params -func (o *FindConfigThriftFramedTransportSizeInMbParams) WithHTTPClient(client *http.Client) *FindConfigThriftFramedTransportSizeInMbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config thrift framed transport size in mb params -func (o *FindConfigThriftFramedTransportSizeInMbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigThriftFramedTransportSizeInMbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_thrift_framed_transport_size_in_mb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_thrift_framed_transport_size_in_mb_responses.go deleted file mode 100644 index 2ab118da16..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_thrift_framed_transport_size_in_mb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigThriftFramedTransportSizeInMbReader is a Reader for the FindConfigThriftFramedTransportSizeInMb structure. -type FindConfigThriftFramedTransportSizeInMbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigThriftFramedTransportSizeInMbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigThriftFramedTransportSizeInMbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigThriftFramedTransportSizeInMbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigThriftFramedTransportSizeInMbOK creates a FindConfigThriftFramedTransportSizeInMbOK with default headers values -func NewFindConfigThriftFramedTransportSizeInMbOK() *FindConfigThriftFramedTransportSizeInMbOK { - return &FindConfigThriftFramedTransportSizeInMbOK{} -} - -/* -FindConfigThriftFramedTransportSizeInMbOK handles this case with default header values. - -Config value -*/ -type FindConfigThriftFramedTransportSizeInMbOK struct { - Payload int64 -} - -func (o *FindConfigThriftFramedTransportSizeInMbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigThriftFramedTransportSizeInMbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigThriftFramedTransportSizeInMbDefault creates a FindConfigThriftFramedTransportSizeInMbDefault with default headers values -func NewFindConfigThriftFramedTransportSizeInMbDefault(code int) *FindConfigThriftFramedTransportSizeInMbDefault { - return &FindConfigThriftFramedTransportSizeInMbDefault{ - _statusCode: code, - } -} - -/* -FindConfigThriftFramedTransportSizeInMbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigThriftFramedTransportSizeInMbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config thrift framed transport size in mb default response -func (o *FindConfigThriftFramedTransportSizeInMbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigThriftFramedTransportSizeInMbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigThriftFramedTransportSizeInMbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigThriftFramedTransportSizeInMbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_thrift_max_message_length_in_mb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_thrift_max_message_length_in_mb_parameters.go deleted file mode 100644 index 945fa0fedc..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_thrift_max_message_length_in_mb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigThriftMaxMessageLengthInMbParams creates a new FindConfigThriftMaxMessageLengthInMbParams object -// with the default values initialized. -func NewFindConfigThriftMaxMessageLengthInMbParams() *FindConfigThriftMaxMessageLengthInMbParams { - - return &FindConfigThriftMaxMessageLengthInMbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigThriftMaxMessageLengthInMbParamsWithTimeout creates a new FindConfigThriftMaxMessageLengthInMbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigThriftMaxMessageLengthInMbParamsWithTimeout(timeout time.Duration) *FindConfigThriftMaxMessageLengthInMbParams { - - return &FindConfigThriftMaxMessageLengthInMbParams{ - - timeout: timeout, - } -} - -// NewFindConfigThriftMaxMessageLengthInMbParamsWithContext creates a new FindConfigThriftMaxMessageLengthInMbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigThriftMaxMessageLengthInMbParamsWithContext(ctx context.Context) *FindConfigThriftMaxMessageLengthInMbParams { - - return &FindConfigThriftMaxMessageLengthInMbParams{ - - Context: ctx, - } -} - -// NewFindConfigThriftMaxMessageLengthInMbParamsWithHTTPClient creates a new FindConfigThriftMaxMessageLengthInMbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigThriftMaxMessageLengthInMbParamsWithHTTPClient(client *http.Client) *FindConfigThriftMaxMessageLengthInMbParams { - - return &FindConfigThriftMaxMessageLengthInMbParams{ - HTTPClient: client, - } -} - -/* -FindConfigThriftMaxMessageLengthInMbParams contains all the parameters to send to the API endpoint -for the find config thrift max message length in mb operation typically these are written to a http.Request -*/ -type FindConfigThriftMaxMessageLengthInMbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config thrift max message length in mb params -func (o *FindConfigThriftMaxMessageLengthInMbParams) WithTimeout(timeout time.Duration) *FindConfigThriftMaxMessageLengthInMbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config thrift max message length in mb params -func (o *FindConfigThriftMaxMessageLengthInMbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config thrift max message length in mb params -func (o *FindConfigThriftMaxMessageLengthInMbParams) WithContext(ctx context.Context) *FindConfigThriftMaxMessageLengthInMbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config thrift max message length in mb params -func (o *FindConfigThriftMaxMessageLengthInMbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config thrift max message length in mb params -func (o *FindConfigThriftMaxMessageLengthInMbParams) WithHTTPClient(client *http.Client) *FindConfigThriftMaxMessageLengthInMbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config thrift max message length in mb params -func (o *FindConfigThriftMaxMessageLengthInMbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigThriftMaxMessageLengthInMbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_thrift_max_message_length_in_mb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_thrift_max_message_length_in_mb_responses.go deleted file mode 100644 index 2f0f2f111e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_thrift_max_message_length_in_mb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigThriftMaxMessageLengthInMbReader is a Reader for the FindConfigThriftMaxMessageLengthInMb structure. -type FindConfigThriftMaxMessageLengthInMbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigThriftMaxMessageLengthInMbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigThriftMaxMessageLengthInMbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigThriftMaxMessageLengthInMbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigThriftMaxMessageLengthInMbOK creates a FindConfigThriftMaxMessageLengthInMbOK with default headers values -func NewFindConfigThriftMaxMessageLengthInMbOK() *FindConfigThriftMaxMessageLengthInMbOK { - return &FindConfigThriftMaxMessageLengthInMbOK{} -} - -/* -FindConfigThriftMaxMessageLengthInMbOK handles this case with default header values. - -Config value -*/ -type FindConfigThriftMaxMessageLengthInMbOK struct { - Payload int64 -} - -func (o *FindConfigThriftMaxMessageLengthInMbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigThriftMaxMessageLengthInMbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigThriftMaxMessageLengthInMbDefault creates a FindConfigThriftMaxMessageLengthInMbDefault with default headers values -func NewFindConfigThriftMaxMessageLengthInMbDefault(code int) *FindConfigThriftMaxMessageLengthInMbDefault { - return &FindConfigThriftMaxMessageLengthInMbDefault{ - _statusCode: code, - } -} - -/* -FindConfigThriftMaxMessageLengthInMbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigThriftMaxMessageLengthInMbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config thrift max message length in mb default response -func (o *FindConfigThriftMaxMessageLengthInMbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigThriftMaxMessageLengthInMbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigThriftMaxMessageLengthInMbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigThriftMaxMessageLengthInMbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_tombstone_failure_threshold_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_tombstone_failure_threshold_parameters.go deleted file mode 100644 index 3a61b34a0c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_tombstone_failure_threshold_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigTombstoneFailureThresholdParams creates a new FindConfigTombstoneFailureThresholdParams object -// with the default values initialized. -func NewFindConfigTombstoneFailureThresholdParams() *FindConfigTombstoneFailureThresholdParams { - - return &FindConfigTombstoneFailureThresholdParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigTombstoneFailureThresholdParamsWithTimeout creates a new FindConfigTombstoneFailureThresholdParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigTombstoneFailureThresholdParamsWithTimeout(timeout time.Duration) *FindConfigTombstoneFailureThresholdParams { - - return &FindConfigTombstoneFailureThresholdParams{ - - timeout: timeout, - } -} - -// NewFindConfigTombstoneFailureThresholdParamsWithContext creates a new FindConfigTombstoneFailureThresholdParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigTombstoneFailureThresholdParamsWithContext(ctx context.Context) *FindConfigTombstoneFailureThresholdParams { - - return &FindConfigTombstoneFailureThresholdParams{ - - Context: ctx, - } -} - -// NewFindConfigTombstoneFailureThresholdParamsWithHTTPClient creates a new FindConfigTombstoneFailureThresholdParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigTombstoneFailureThresholdParamsWithHTTPClient(client *http.Client) *FindConfigTombstoneFailureThresholdParams { - - return &FindConfigTombstoneFailureThresholdParams{ - HTTPClient: client, - } -} - -/* -FindConfigTombstoneFailureThresholdParams contains all the parameters to send to the API endpoint -for the find config tombstone failure threshold operation typically these are written to a http.Request -*/ -type FindConfigTombstoneFailureThresholdParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config tombstone failure threshold params -func (o *FindConfigTombstoneFailureThresholdParams) WithTimeout(timeout time.Duration) *FindConfigTombstoneFailureThresholdParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config tombstone failure threshold params -func (o *FindConfigTombstoneFailureThresholdParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config tombstone failure threshold params -func (o *FindConfigTombstoneFailureThresholdParams) WithContext(ctx context.Context) *FindConfigTombstoneFailureThresholdParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config tombstone failure threshold params -func (o *FindConfigTombstoneFailureThresholdParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config tombstone failure threshold params -func (o *FindConfigTombstoneFailureThresholdParams) WithHTTPClient(client *http.Client) *FindConfigTombstoneFailureThresholdParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config tombstone failure threshold params -func (o *FindConfigTombstoneFailureThresholdParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigTombstoneFailureThresholdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_tombstone_failure_threshold_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_tombstone_failure_threshold_responses.go deleted file mode 100644 index 0213b8fbeb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_tombstone_failure_threshold_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigTombstoneFailureThresholdReader is a Reader for the FindConfigTombstoneFailureThreshold structure. -type FindConfigTombstoneFailureThresholdReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigTombstoneFailureThresholdReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigTombstoneFailureThresholdOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigTombstoneFailureThresholdDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigTombstoneFailureThresholdOK creates a FindConfigTombstoneFailureThresholdOK with default headers values -func NewFindConfigTombstoneFailureThresholdOK() *FindConfigTombstoneFailureThresholdOK { - return &FindConfigTombstoneFailureThresholdOK{} -} - -/* -FindConfigTombstoneFailureThresholdOK handles this case with default header values. - -Config value -*/ -type FindConfigTombstoneFailureThresholdOK struct { - Payload int64 -} - -func (o *FindConfigTombstoneFailureThresholdOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigTombstoneFailureThresholdOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigTombstoneFailureThresholdDefault creates a FindConfigTombstoneFailureThresholdDefault with default headers values -func NewFindConfigTombstoneFailureThresholdDefault(code int) *FindConfigTombstoneFailureThresholdDefault { - return &FindConfigTombstoneFailureThresholdDefault{ - _statusCode: code, - } -} - -/* -FindConfigTombstoneFailureThresholdDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigTombstoneFailureThresholdDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config tombstone failure threshold default response -func (o *FindConfigTombstoneFailureThresholdDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigTombstoneFailureThresholdDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigTombstoneFailureThresholdDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigTombstoneFailureThresholdDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_tombstone_warn_threshold_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_tombstone_warn_threshold_parameters.go deleted file mode 100644 index 31346beb44..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_tombstone_warn_threshold_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigTombstoneWarnThresholdParams creates a new FindConfigTombstoneWarnThresholdParams object -// with the default values initialized. -func NewFindConfigTombstoneWarnThresholdParams() *FindConfigTombstoneWarnThresholdParams { - - return &FindConfigTombstoneWarnThresholdParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigTombstoneWarnThresholdParamsWithTimeout creates a new FindConfigTombstoneWarnThresholdParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigTombstoneWarnThresholdParamsWithTimeout(timeout time.Duration) *FindConfigTombstoneWarnThresholdParams { - - return &FindConfigTombstoneWarnThresholdParams{ - - timeout: timeout, - } -} - -// NewFindConfigTombstoneWarnThresholdParamsWithContext creates a new FindConfigTombstoneWarnThresholdParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigTombstoneWarnThresholdParamsWithContext(ctx context.Context) *FindConfigTombstoneWarnThresholdParams { - - return &FindConfigTombstoneWarnThresholdParams{ - - Context: ctx, - } -} - -// NewFindConfigTombstoneWarnThresholdParamsWithHTTPClient creates a new FindConfigTombstoneWarnThresholdParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigTombstoneWarnThresholdParamsWithHTTPClient(client *http.Client) *FindConfigTombstoneWarnThresholdParams { - - return &FindConfigTombstoneWarnThresholdParams{ - HTTPClient: client, - } -} - -/* -FindConfigTombstoneWarnThresholdParams contains all the parameters to send to the API endpoint -for the find config tombstone warn threshold operation typically these are written to a http.Request -*/ -type FindConfigTombstoneWarnThresholdParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config tombstone warn threshold params -func (o *FindConfigTombstoneWarnThresholdParams) WithTimeout(timeout time.Duration) *FindConfigTombstoneWarnThresholdParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config tombstone warn threshold params -func (o *FindConfigTombstoneWarnThresholdParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config tombstone warn threshold params -func (o *FindConfigTombstoneWarnThresholdParams) WithContext(ctx context.Context) *FindConfigTombstoneWarnThresholdParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config tombstone warn threshold params -func (o *FindConfigTombstoneWarnThresholdParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config tombstone warn threshold params -func (o *FindConfigTombstoneWarnThresholdParams) WithHTTPClient(client *http.Client) *FindConfigTombstoneWarnThresholdParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config tombstone warn threshold params -func (o *FindConfigTombstoneWarnThresholdParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigTombstoneWarnThresholdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_tombstone_warn_threshold_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_tombstone_warn_threshold_responses.go deleted file mode 100644 index d0967467d0..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_tombstone_warn_threshold_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigTombstoneWarnThresholdReader is a Reader for the FindConfigTombstoneWarnThreshold structure. -type FindConfigTombstoneWarnThresholdReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigTombstoneWarnThresholdReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigTombstoneWarnThresholdOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigTombstoneWarnThresholdDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigTombstoneWarnThresholdOK creates a FindConfigTombstoneWarnThresholdOK with default headers values -func NewFindConfigTombstoneWarnThresholdOK() *FindConfigTombstoneWarnThresholdOK { - return &FindConfigTombstoneWarnThresholdOK{} -} - -/* -FindConfigTombstoneWarnThresholdOK handles this case with default header values. - -Config value -*/ -type FindConfigTombstoneWarnThresholdOK struct { - Payload int64 -} - -func (o *FindConfigTombstoneWarnThresholdOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigTombstoneWarnThresholdOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigTombstoneWarnThresholdDefault creates a FindConfigTombstoneWarnThresholdDefault with default headers values -func NewFindConfigTombstoneWarnThresholdDefault(code int) *FindConfigTombstoneWarnThresholdDefault { - return &FindConfigTombstoneWarnThresholdDefault{ - _statusCode: code, - } -} - -/* -FindConfigTombstoneWarnThresholdDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigTombstoneWarnThresholdDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config tombstone warn threshold default response -func (o *FindConfigTombstoneWarnThresholdDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigTombstoneWarnThresholdDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigTombstoneWarnThresholdDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigTombstoneWarnThresholdDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_trickle_fsync_interval_in_kb_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_trickle_fsync_interval_in_kb_parameters.go deleted file mode 100644 index b38bce775a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_trickle_fsync_interval_in_kb_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigTrickleFsyncIntervalInKbParams creates a new FindConfigTrickleFsyncIntervalInKbParams object -// with the default values initialized. -func NewFindConfigTrickleFsyncIntervalInKbParams() *FindConfigTrickleFsyncIntervalInKbParams { - - return &FindConfigTrickleFsyncIntervalInKbParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigTrickleFsyncIntervalInKbParamsWithTimeout creates a new FindConfigTrickleFsyncIntervalInKbParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigTrickleFsyncIntervalInKbParamsWithTimeout(timeout time.Duration) *FindConfigTrickleFsyncIntervalInKbParams { - - return &FindConfigTrickleFsyncIntervalInKbParams{ - - timeout: timeout, - } -} - -// NewFindConfigTrickleFsyncIntervalInKbParamsWithContext creates a new FindConfigTrickleFsyncIntervalInKbParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigTrickleFsyncIntervalInKbParamsWithContext(ctx context.Context) *FindConfigTrickleFsyncIntervalInKbParams { - - return &FindConfigTrickleFsyncIntervalInKbParams{ - - Context: ctx, - } -} - -// NewFindConfigTrickleFsyncIntervalInKbParamsWithHTTPClient creates a new FindConfigTrickleFsyncIntervalInKbParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigTrickleFsyncIntervalInKbParamsWithHTTPClient(client *http.Client) *FindConfigTrickleFsyncIntervalInKbParams { - - return &FindConfigTrickleFsyncIntervalInKbParams{ - HTTPClient: client, - } -} - -/* -FindConfigTrickleFsyncIntervalInKbParams contains all the parameters to send to the API endpoint -for the find config trickle fsync interval in kb operation typically these are written to a http.Request -*/ -type FindConfigTrickleFsyncIntervalInKbParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config trickle fsync interval in kb params -func (o *FindConfigTrickleFsyncIntervalInKbParams) WithTimeout(timeout time.Duration) *FindConfigTrickleFsyncIntervalInKbParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config trickle fsync interval in kb params -func (o *FindConfigTrickleFsyncIntervalInKbParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config trickle fsync interval in kb params -func (o *FindConfigTrickleFsyncIntervalInKbParams) WithContext(ctx context.Context) *FindConfigTrickleFsyncIntervalInKbParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config trickle fsync interval in kb params -func (o *FindConfigTrickleFsyncIntervalInKbParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config trickle fsync interval in kb params -func (o *FindConfigTrickleFsyncIntervalInKbParams) WithHTTPClient(client *http.Client) *FindConfigTrickleFsyncIntervalInKbParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config trickle fsync interval in kb params -func (o *FindConfigTrickleFsyncIntervalInKbParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigTrickleFsyncIntervalInKbParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_trickle_fsync_interval_in_kb_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_trickle_fsync_interval_in_kb_responses.go deleted file mode 100644 index d4e3db6336..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_trickle_fsync_interval_in_kb_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigTrickleFsyncIntervalInKbReader is a Reader for the FindConfigTrickleFsyncIntervalInKb structure. -type FindConfigTrickleFsyncIntervalInKbReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigTrickleFsyncIntervalInKbReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigTrickleFsyncIntervalInKbOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigTrickleFsyncIntervalInKbDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigTrickleFsyncIntervalInKbOK creates a FindConfigTrickleFsyncIntervalInKbOK with default headers values -func NewFindConfigTrickleFsyncIntervalInKbOK() *FindConfigTrickleFsyncIntervalInKbOK { - return &FindConfigTrickleFsyncIntervalInKbOK{} -} - -/* -FindConfigTrickleFsyncIntervalInKbOK handles this case with default header values. - -Config value -*/ -type FindConfigTrickleFsyncIntervalInKbOK struct { - Payload int64 -} - -func (o *FindConfigTrickleFsyncIntervalInKbOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigTrickleFsyncIntervalInKbOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigTrickleFsyncIntervalInKbDefault creates a FindConfigTrickleFsyncIntervalInKbDefault with default headers values -func NewFindConfigTrickleFsyncIntervalInKbDefault(code int) *FindConfigTrickleFsyncIntervalInKbDefault { - return &FindConfigTrickleFsyncIntervalInKbDefault{ - _statusCode: code, - } -} - -/* -FindConfigTrickleFsyncIntervalInKbDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigTrickleFsyncIntervalInKbDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config trickle fsync interval in kb default response -func (o *FindConfigTrickleFsyncIntervalInKbDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigTrickleFsyncIntervalInKbDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigTrickleFsyncIntervalInKbDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigTrickleFsyncIntervalInKbDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_trickle_fsync_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_trickle_fsync_parameters.go deleted file mode 100644 index c26d03a583..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_trickle_fsync_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigTrickleFsyncParams creates a new FindConfigTrickleFsyncParams object -// with the default values initialized. -func NewFindConfigTrickleFsyncParams() *FindConfigTrickleFsyncParams { - - return &FindConfigTrickleFsyncParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigTrickleFsyncParamsWithTimeout creates a new FindConfigTrickleFsyncParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigTrickleFsyncParamsWithTimeout(timeout time.Duration) *FindConfigTrickleFsyncParams { - - return &FindConfigTrickleFsyncParams{ - - timeout: timeout, - } -} - -// NewFindConfigTrickleFsyncParamsWithContext creates a new FindConfigTrickleFsyncParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigTrickleFsyncParamsWithContext(ctx context.Context) *FindConfigTrickleFsyncParams { - - return &FindConfigTrickleFsyncParams{ - - Context: ctx, - } -} - -// NewFindConfigTrickleFsyncParamsWithHTTPClient creates a new FindConfigTrickleFsyncParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigTrickleFsyncParamsWithHTTPClient(client *http.Client) *FindConfigTrickleFsyncParams { - - return &FindConfigTrickleFsyncParams{ - HTTPClient: client, - } -} - -/* -FindConfigTrickleFsyncParams contains all the parameters to send to the API endpoint -for the find config trickle fsync operation typically these are written to a http.Request -*/ -type FindConfigTrickleFsyncParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config trickle fsync params -func (o *FindConfigTrickleFsyncParams) WithTimeout(timeout time.Duration) *FindConfigTrickleFsyncParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config trickle fsync params -func (o *FindConfigTrickleFsyncParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config trickle fsync params -func (o *FindConfigTrickleFsyncParams) WithContext(ctx context.Context) *FindConfigTrickleFsyncParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config trickle fsync params -func (o *FindConfigTrickleFsyncParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config trickle fsync params -func (o *FindConfigTrickleFsyncParams) WithHTTPClient(client *http.Client) *FindConfigTrickleFsyncParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config trickle fsync params -func (o *FindConfigTrickleFsyncParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigTrickleFsyncParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_trickle_fsync_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_trickle_fsync_responses.go deleted file mode 100644 index a8d777f30c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_trickle_fsync_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigTrickleFsyncReader is a Reader for the FindConfigTrickleFsync structure. -type FindConfigTrickleFsyncReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigTrickleFsyncReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigTrickleFsyncOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigTrickleFsyncDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigTrickleFsyncOK creates a FindConfigTrickleFsyncOK with default headers values -func NewFindConfigTrickleFsyncOK() *FindConfigTrickleFsyncOK { - return &FindConfigTrickleFsyncOK{} -} - -/* -FindConfigTrickleFsyncOK handles this case with default header values. - -Config value -*/ -type FindConfigTrickleFsyncOK struct { - Payload bool -} - -func (o *FindConfigTrickleFsyncOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigTrickleFsyncOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigTrickleFsyncDefault creates a FindConfigTrickleFsyncDefault with default headers values -func NewFindConfigTrickleFsyncDefault(code int) *FindConfigTrickleFsyncDefault { - return &FindConfigTrickleFsyncDefault{ - _statusCode: code, - } -} - -/* -FindConfigTrickleFsyncDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigTrickleFsyncDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config trickle fsync default response -func (o *FindConfigTrickleFsyncDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigTrickleFsyncDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigTrickleFsyncDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigTrickleFsyncDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_truncate_request_timeout_in_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_truncate_request_timeout_in_ms_parameters.go deleted file mode 100644 index a490f23a3c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_truncate_request_timeout_in_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigTruncateRequestTimeoutInMsParams creates a new FindConfigTruncateRequestTimeoutInMsParams object -// with the default values initialized. -func NewFindConfigTruncateRequestTimeoutInMsParams() *FindConfigTruncateRequestTimeoutInMsParams { - - return &FindConfigTruncateRequestTimeoutInMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigTruncateRequestTimeoutInMsParamsWithTimeout creates a new FindConfigTruncateRequestTimeoutInMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigTruncateRequestTimeoutInMsParamsWithTimeout(timeout time.Duration) *FindConfigTruncateRequestTimeoutInMsParams { - - return &FindConfigTruncateRequestTimeoutInMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigTruncateRequestTimeoutInMsParamsWithContext creates a new FindConfigTruncateRequestTimeoutInMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigTruncateRequestTimeoutInMsParamsWithContext(ctx context.Context) *FindConfigTruncateRequestTimeoutInMsParams { - - return &FindConfigTruncateRequestTimeoutInMsParams{ - - Context: ctx, - } -} - -// NewFindConfigTruncateRequestTimeoutInMsParamsWithHTTPClient creates a new FindConfigTruncateRequestTimeoutInMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigTruncateRequestTimeoutInMsParamsWithHTTPClient(client *http.Client) *FindConfigTruncateRequestTimeoutInMsParams { - - return &FindConfigTruncateRequestTimeoutInMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigTruncateRequestTimeoutInMsParams contains all the parameters to send to the API endpoint -for the find config truncate request timeout in ms operation typically these are written to a http.Request -*/ -type FindConfigTruncateRequestTimeoutInMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config truncate request timeout in ms params -func (o *FindConfigTruncateRequestTimeoutInMsParams) WithTimeout(timeout time.Duration) *FindConfigTruncateRequestTimeoutInMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config truncate request timeout in ms params -func (o *FindConfigTruncateRequestTimeoutInMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config truncate request timeout in ms params -func (o *FindConfigTruncateRequestTimeoutInMsParams) WithContext(ctx context.Context) *FindConfigTruncateRequestTimeoutInMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config truncate request timeout in ms params -func (o *FindConfigTruncateRequestTimeoutInMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config truncate request timeout in ms params -func (o *FindConfigTruncateRequestTimeoutInMsParams) WithHTTPClient(client *http.Client) *FindConfigTruncateRequestTimeoutInMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config truncate request timeout in ms params -func (o *FindConfigTruncateRequestTimeoutInMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigTruncateRequestTimeoutInMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_truncate_request_timeout_in_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_truncate_request_timeout_in_ms_responses.go deleted file mode 100644 index b26a7938e6..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_truncate_request_timeout_in_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigTruncateRequestTimeoutInMsReader is a Reader for the FindConfigTruncateRequestTimeoutInMs structure. -type FindConfigTruncateRequestTimeoutInMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigTruncateRequestTimeoutInMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigTruncateRequestTimeoutInMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigTruncateRequestTimeoutInMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigTruncateRequestTimeoutInMsOK creates a FindConfigTruncateRequestTimeoutInMsOK with default headers values -func NewFindConfigTruncateRequestTimeoutInMsOK() *FindConfigTruncateRequestTimeoutInMsOK { - return &FindConfigTruncateRequestTimeoutInMsOK{} -} - -/* -FindConfigTruncateRequestTimeoutInMsOK handles this case with default header values. - -Config value -*/ -type FindConfigTruncateRequestTimeoutInMsOK struct { - Payload int64 -} - -func (o *FindConfigTruncateRequestTimeoutInMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigTruncateRequestTimeoutInMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigTruncateRequestTimeoutInMsDefault creates a FindConfigTruncateRequestTimeoutInMsDefault with default headers values -func NewFindConfigTruncateRequestTimeoutInMsDefault(code int) *FindConfigTruncateRequestTimeoutInMsDefault { - return &FindConfigTruncateRequestTimeoutInMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigTruncateRequestTimeoutInMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigTruncateRequestTimeoutInMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config truncate request timeout in ms default response -func (o *FindConfigTruncateRequestTimeoutInMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigTruncateRequestTimeoutInMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigTruncateRequestTimeoutInMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigTruncateRequestTimeoutInMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_uuid_sstable_identifiers_enabled_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_uuid_sstable_identifiers_enabled_parameters.go deleted file mode 100644 index f1eb2172a1..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_uuid_sstable_identifiers_enabled_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigUUIDSstableIdentifiersEnabledParams creates a new FindConfigUUIDSstableIdentifiersEnabledParams object -// with the default values initialized. -func NewFindConfigUUIDSstableIdentifiersEnabledParams() *FindConfigUUIDSstableIdentifiersEnabledParams { - - return &FindConfigUUIDSstableIdentifiersEnabledParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigUUIDSstableIdentifiersEnabledParamsWithTimeout creates a new FindConfigUUIDSstableIdentifiersEnabledParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigUUIDSstableIdentifiersEnabledParamsWithTimeout(timeout time.Duration) *FindConfigUUIDSstableIdentifiersEnabledParams { - - return &FindConfigUUIDSstableIdentifiersEnabledParams{ - - timeout: timeout, - } -} - -// NewFindConfigUUIDSstableIdentifiersEnabledParamsWithContext creates a new FindConfigUUIDSstableIdentifiersEnabledParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigUUIDSstableIdentifiersEnabledParamsWithContext(ctx context.Context) *FindConfigUUIDSstableIdentifiersEnabledParams { - - return &FindConfigUUIDSstableIdentifiersEnabledParams{ - - Context: ctx, - } -} - -// NewFindConfigUUIDSstableIdentifiersEnabledParamsWithHTTPClient creates a new FindConfigUUIDSstableIdentifiersEnabledParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigUUIDSstableIdentifiersEnabledParamsWithHTTPClient(client *http.Client) *FindConfigUUIDSstableIdentifiersEnabledParams { - - return &FindConfigUUIDSstableIdentifiersEnabledParams{ - HTTPClient: client, - } -} - -/* -FindConfigUUIDSstableIdentifiersEnabledParams contains all the parameters to send to the API endpoint -for the find config uuid sstable identifiers enabled operation typically these are written to a http.Request -*/ -type FindConfigUUIDSstableIdentifiersEnabledParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config uuid sstable identifiers enabled params -func (o *FindConfigUUIDSstableIdentifiersEnabledParams) WithTimeout(timeout time.Duration) *FindConfigUUIDSstableIdentifiersEnabledParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config uuid sstable identifiers enabled params -func (o *FindConfigUUIDSstableIdentifiersEnabledParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config uuid sstable identifiers enabled params -func (o *FindConfigUUIDSstableIdentifiersEnabledParams) WithContext(ctx context.Context) *FindConfigUUIDSstableIdentifiersEnabledParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config uuid sstable identifiers enabled params -func (o *FindConfigUUIDSstableIdentifiersEnabledParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config uuid sstable identifiers enabled params -func (o *FindConfigUUIDSstableIdentifiersEnabledParams) WithHTTPClient(client *http.Client) *FindConfigUUIDSstableIdentifiersEnabledParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config uuid sstable identifiers enabled params -func (o *FindConfigUUIDSstableIdentifiersEnabledParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigUUIDSstableIdentifiersEnabledParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_uuid_sstable_identifiers_enabled_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_uuid_sstable_identifiers_enabled_responses.go deleted file mode 100644 index 86ddd1a202..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_uuid_sstable_identifiers_enabled_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigUUIDSstableIdentifiersEnabledReader is a Reader for the FindConfigUUIDSstableIdentifiersEnabled structure. -type FindConfigUUIDSstableIdentifiersEnabledReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigUUIDSstableIdentifiersEnabledReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigUUIDSstableIdentifiersEnabledOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigUUIDSstableIdentifiersEnabledDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigUUIDSstableIdentifiersEnabledOK creates a FindConfigUUIDSstableIdentifiersEnabledOK with default headers values -func NewFindConfigUUIDSstableIdentifiersEnabledOK() *FindConfigUUIDSstableIdentifiersEnabledOK { - return &FindConfigUUIDSstableIdentifiersEnabledOK{} -} - -/* -FindConfigUUIDSstableIdentifiersEnabledOK handles this case with default header values. - -Config value -*/ -type FindConfigUUIDSstableIdentifiersEnabledOK struct { - Payload bool -} - -func (o *FindConfigUUIDSstableIdentifiersEnabledOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigUUIDSstableIdentifiersEnabledOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigUUIDSstableIdentifiersEnabledDefault creates a FindConfigUUIDSstableIdentifiersEnabledDefault with default headers values -func NewFindConfigUUIDSstableIdentifiersEnabledDefault(code int) *FindConfigUUIDSstableIdentifiersEnabledDefault { - return &FindConfigUUIDSstableIdentifiersEnabledDefault{ - _statusCode: code, - } -} - -/* -FindConfigUUIDSstableIdentifiersEnabledDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigUUIDSstableIdentifiersEnabledDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config uuid sstable identifiers enabled default response -func (o *FindConfigUUIDSstableIdentifiersEnabledDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigUUIDSstableIdentifiersEnabledDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigUUIDSstableIdentifiersEnabledDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigUUIDSstableIdentifiersEnabledDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_view_building_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_view_building_parameters.go deleted file mode 100644 index d07e30d383..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_view_building_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigViewBuildingParams creates a new FindConfigViewBuildingParams object -// with the default values initialized. -func NewFindConfigViewBuildingParams() *FindConfigViewBuildingParams { - - return &FindConfigViewBuildingParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigViewBuildingParamsWithTimeout creates a new FindConfigViewBuildingParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigViewBuildingParamsWithTimeout(timeout time.Duration) *FindConfigViewBuildingParams { - - return &FindConfigViewBuildingParams{ - - timeout: timeout, - } -} - -// NewFindConfigViewBuildingParamsWithContext creates a new FindConfigViewBuildingParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigViewBuildingParamsWithContext(ctx context.Context) *FindConfigViewBuildingParams { - - return &FindConfigViewBuildingParams{ - - Context: ctx, - } -} - -// NewFindConfigViewBuildingParamsWithHTTPClient creates a new FindConfigViewBuildingParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigViewBuildingParamsWithHTTPClient(client *http.Client) *FindConfigViewBuildingParams { - - return &FindConfigViewBuildingParams{ - HTTPClient: client, - } -} - -/* -FindConfigViewBuildingParams contains all the parameters to send to the API endpoint -for the find config view building operation typically these are written to a http.Request -*/ -type FindConfigViewBuildingParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config view building params -func (o *FindConfigViewBuildingParams) WithTimeout(timeout time.Duration) *FindConfigViewBuildingParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config view building params -func (o *FindConfigViewBuildingParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config view building params -func (o *FindConfigViewBuildingParams) WithContext(ctx context.Context) *FindConfigViewBuildingParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config view building params -func (o *FindConfigViewBuildingParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config view building params -func (o *FindConfigViewBuildingParams) WithHTTPClient(client *http.Client) *FindConfigViewBuildingParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config view building params -func (o *FindConfigViewBuildingParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigViewBuildingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_view_building_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_view_building_responses.go deleted file mode 100644 index d5959f3dcb..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_view_building_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigViewBuildingReader is a Reader for the FindConfigViewBuilding structure. -type FindConfigViewBuildingReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigViewBuildingReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigViewBuildingOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigViewBuildingDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigViewBuildingOK creates a FindConfigViewBuildingOK with default headers values -func NewFindConfigViewBuildingOK() *FindConfigViewBuildingOK { - return &FindConfigViewBuildingOK{} -} - -/* -FindConfigViewBuildingOK handles this case with default header values. - -Config value -*/ -type FindConfigViewBuildingOK struct { - Payload bool -} - -func (o *FindConfigViewBuildingOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigViewBuildingOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigViewBuildingDefault creates a FindConfigViewBuildingDefault with default headers values -func NewFindConfigViewBuildingDefault(code int) *FindConfigViewBuildingDefault { - return &FindConfigViewBuildingDefault{ - _statusCode: code, - } -} - -/* -FindConfigViewBuildingDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigViewBuildingDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config view building default response -func (o *FindConfigViewBuildingDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigViewBuildingDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigViewBuildingDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigViewBuildingDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_view_hints_directory_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_view_hints_directory_parameters.go deleted file mode 100644 index 2c93737f8e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_view_hints_directory_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigViewHintsDirectoryParams creates a new FindConfigViewHintsDirectoryParams object -// with the default values initialized. -func NewFindConfigViewHintsDirectoryParams() *FindConfigViewHintsDirectoryParams { - - return &FindConfigViewHintsDirectoryParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigViewHintsDirectoryParamsWithTimeout creates a new FindConfigViewHintsDirectoryParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigViewHintsDirectoryParamsWithTimeout(timeout time.Duration) *FindConfigViewHintsDirectoryParams { - - return &FindConfigViewHintsDirectoryParams{ - - timeout: timeout, - } -} - -// NewFindConfigViewHintsDirectoryParamsWithContext creates a new FindConfigViewHintsDirectoryParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigViewHintsDirectoryParamsWithContext(ctx context.Context) *FindConfigViewHintsDirectoryParams { - - return &FindConfigViewHintsDirectoryParams{ - - Context: ctx, - } -} - -// NewFindConfigViewHintsDirectoryParamsWithHTTPClient creates a new FindConfigViewHintsDirectoryParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigViewHintsDirectoryParamsWithHTTPClient(client *http.Client) *FindConfigViewHintsDirectoryParams { - - return &FindConfigViewHintsDirectoryParams{ - HTTPClient: client, - } -} - -/* -FindConfigViewHintsDirectoryParams contains all the parameters to send to the API endpoint -for the find config view hints directory operation typically these are written to a http.Request -*/ -type FindConfigViewHintsDirectoryParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config view hints directory params -func (o *FindConfigViewHintsDirectoryParams) WithTimeout(timeout time.Duration) *FindConfigViewHintsDirectoryParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config view hints directory params -func (o *FindConfigViewHintsDirectoryParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config view hints directory params -func (o *FindConfigViewHintsDirectoryParams) WithContext(ctx context.Context) *FindConfigViewHintsDirectoryParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config view hints directory params -func (o *FindConfigViewHintsDirectoryParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config view hints directory params -func (o *FindConfigViewHintsDirectoryParams) WithHTTPClient(client *http.Client) *FindConfigViewHintsDirectoryParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config view hints directory params -func (o *FindConfigViewHintsDirectoryParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigViewHintsDirectoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_view_hints_directory_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_view_hints_directory_responses.go deleted file mode 100644 index 1251a591d9..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_view_hints_directory_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigViewHintsDirectoryReader is a Reader for the FindConfigViewHintsDirectory structure. -type FindConfigViewHintsDirectoryReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigViewHintsDirectoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigViewHintsDirectoryOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigViewHintsDirectoryDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigViewHintsDirectoryOK creates a FindConfigViewHintsDirectoryOK with default headers values -func NewFindConfigViewHintsDirectoryOK() *FindConfigViewHintsDirectoryOK { - return &FindConfigViewHintsDirectoryOK{} -} - -/* -FindConfigViewHintsDirectoryOK handles this case with default header values. - -Config value -*/ -type FindConfigViewHintsDirectoryOK struct { - Payload string -} - -func (o *FindConfigViewHintsDirectoryOK) GetPayload() string { - return o.Payload -} - -func (o *FindConfigViewHintsDirectoryOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigViewHintsDirectoryDefault creates a FindConfigViewHintsDirectoryDefault with default headers values -func NewFindConfigViewHintsDirectoryDefault(code int) *FindConfigViewHintsDirectoryDefault { - return &FindConfigViewHintsDirectoryDefault{ - _statusCode: code, - } -} - -/* -FindConfigViewHintsDirectoryDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigViewHintsDirectoryDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config view hints directory default response -func (o *FindConfigViewHintsDirectoryDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigViewHintsDirectoryDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigViewHintsDirectoryDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigViewHintsDirectoryDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_virtual_dirty_soft_limit_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_virtual_dirty_soft_limit_parameters.go deleted file mode 100644 index e2e8733183..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_virtual_dirty_soft_limit_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigVirtualDirtySoftLimitParams creates a new FindConfigVirtualDirtySoftLimitParams object -// with the default values initialized. -func NewFindConfigVirtualDirtySoftLimitParams() *FindConfigVirtualDirtySoftLimitParams { - - return &FindConfigVirtualDirtySoftLimitParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigVirtualDirtySoftLimitParamsWithTimeout creates a new FindConfigVirtualDirtySoftLimitParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigVirtualDirtySoftLimitParamsWithTimeout(timeout time.Duration) *FindConfigVirtualDirtySoftLimitParams { - - return &FindConfigVirtualDirtySoftLimitParams{ - - timeout: timeout, - } -} - -// NewFindConfigVirtualDirtySoftLimitParamsWithContext creates a new FindConfigVirtualDirtySoftLimitParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigVirtualDirtySoftLimitParamsWithContext(ctx context.Context) *FindConfigVirtualDirtySoftLimitParams { - - return &FindConfigVirtualDirtySoftLimitParams{ - - Context: ctx, - } -} - -// NewFindConfigVirtualDirtySoftLimitParamsWithHTTPClient creates a new FindConfigVirtualDirtySoftLimitParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigVirtualDirtySoftLimitParamsWithHTTPClient(client *http.Client) *FindConfigVirtualDirtySoftLimitParams { - - return &FindConfigVirtualDirtySoftLimitParams{ - HTTPClient: client, - } -} - -/* -FindConfigVirtualDirtySoftLimitParams contains all the parameters to send to the API endpoint -for the find config virtual dirty soft limit operation typically these are written to a http.Request -*/ -type FindConfigVirtualDirtySoftLimitParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config virtual dirty soft limit params -func (o *FindConfigVirtualDirtySoftLimitParams) WithTimeout(timeout time.Duration) *FindConfigVirtualDirtySoftLimitParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config virtual dirty soft limit params -func (o *FindConfigVirtualDirtySoftLimitParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config virtual dirty soft limit params -func (o *FindConfigVirtualDirtySoftLimitParams) WithContext(ctx context.Context) *FindConfigVirtualDirtySoftLimitParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config virtual dirty soft limit params -func (o *FindConfigVirtualDirtySoftLimitParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config virtual dirty soft limit params -func (o *FindConfigVirtualDirtySoftLimitParams) WithHTTPClient(client *http.Client) *FindConfigVirtualDirtySoftLimitParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config virtual dirty soft limit params -func (o *FindConfigVirtualDirtySoftLimitParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigVirtualDirtySoftLimitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_virtual_dirty_soft_limit_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_virtual_dirty_soft_limit_responses.go deleted file mode 100644 index e72e94337e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_virtual_dirty_soft_limit_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigVirtualDirtySoftLimitReader is a Reader for the FindConfigVirtualDirtySoftLimit structure. -type FindConfigVirtualDirtySoftLimitReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigVirtualDirtySoftLimitReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigVirtualDirtySoftLimitOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigVirtualDirtySoftLimitDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigVirtualDirtySoftLimitOK creates a FindConfigVirtualDirtySoftLimitOK with default headers values -func NewFindConfigVirtualDirtySoftLimitOK() *FindConfigVirtualDirtySoftLimitOK { - return &FindConfigVirtualDirtySoftLimitOK{} -} - -/* -FindConfigVirtualDirtySoftLimitOK handles this case with default header values. - -Config value -*/ -type FindConfigVirtualDirtySoftLimitOK struct { - Payload float64 -} - -func (o *FindConfigVirtualDirtySoftLimitOK) GetPayload() float64 { - return o.Payload -} - -func (o *FindConfigVirtualDirtySoftLimitOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigVirtualDirtySoftLimitDefault creates a FindConfigVirtualDirtySoftLimitDefault with default headers values -func NewFindConfigVirtualDirtySoftLimitDefault(code int) *FindConfigVirtualDirtySoftLimitDefault { - return &FindConfigVirtualDirtySoftLimitDefault{ - _statusCode: code, - } -} - -/* -FindConfigVirtualDirtySoftLimitDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigVirtualDirtySoftLimitDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config virtual dirty soft limit default response -func (o *FindConfigVirtualDirtySoftLimitDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigVirtualDirtySoftLimitDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigVirtualDirtySoftLimitDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigVirtualDirtySoftLimitDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_volatile_system_keyspace_for_testing_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_volatile_system_keyspace_for_testing_parameters.go deleted file mode 100644 index e114f669d4..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_volatile_system_keyspace_for_testing_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigVolatileSystemKeyspaceForTestingParams creates a new FindConfigVolatileSystemKeyspaceForTestingParams object -// with the default values initialized. -func NewFindConfigVolatileSystemKeyspaceForTestingParams() *FindConfigVolatileSystemKeyspaceForTestingParams { - - return &FindConfigVolatileSystemKeyspaceForTestingParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigVolatileSystemKeyspaceForTestingParamsWithTimeout creates a new FindConfigVolatileSystemKeyspaceForTestingParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigVolatileSystemKeyspaceForTestingParamsWithTimeout(timeout time.Duration) *FindConfigVolatileSystemKeyspaceForTestingParams { - - return &FindConfigVolatileSystemKeyspaceForTestingParams{ - - timeout: timeout, - } -} - -// NewFindConfigVolatileSystemKeyspaceForTestingParamsWithContext creates a new FindConfigVolatileSystemKeyspaceForTestingParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigVolatileSystemKeyspaceForTestingParamsWithContext(ctx context.Context) *FindConfigVolatileSystemKeyspaceForTestingParams { - - return &FindConfigVolatileSystemKeyspaceForTestingParams{ - - Context: ctx, - } -} - -// NewFindConfigVolatileSystemKeyspaceForTestingParamsWithHTTPClient creates a new FindConfigVolatileSystemKeyspaceForTestingParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigVolatileSystemKeyspaceForTestingParamsWithHTTPClient(client *http.Client) *FindConfigVolatileSystemKeyspaceForTestingParams { - - return &FindConfigVolatileSystemKeyspaceForTestingParams{ - HTTPClient: client, - } -} - -/* -FindConfigVolatileSystemKeyspaceForTestingParams contains all the parameters to send to the API endpoint -for the find config volatile system keyspace for testing operation typically these are written to a http.Request -*/ -type FindConfigVolatileSystemKeyspaceForTestingParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config volatile system keyspace for testing params -func (o *FindConfigVolatileSystemKeyspaceForTestingParams) WithTimeout(timeout time.Duration) *FindConfigVolatileSystemKeyspaceForTestingParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config volatile system keyspace for testing params -func (o *FindConfigVolatileSystemKeyspaceForTestingParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config volatile system keyspace for testing params -func (o *FindConfigVolatileSystemKeyspaceForTestingParams) WithContext(ctx context.Context) *FindConfigVolatileSystemKeyspaceForTestingParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config volatile system keyspace for testing params -func (o *FindConfigVolatileSystemKeyspaceForTestingParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config volatile system keyspace for testing params -func (o *FindConfigVolatileSystemKeyspaceForTestingParams) WithHTTPClient(client *http.Client) *FindConfigVolatileSystemKeyspaceForTestingParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config volatile system keyspace for testing params -func (o *FindConfigVolatileSystemKeyspaceForTestingParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigVolatileSystemKeyspaceForTestingParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_volatile_system_keyspace_for_testing_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_volatile_system_keyspace_for_testing_responses.go deleted file mode 100644 index 7a6f2ed540..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_volatile_system_keyspace_for_testing_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigVolatileSystemKeyspaceForTestingReader is a Reader for the FindConfigVolatileSystemKeyspaceForTesting structure. -type FindConfigVolatileSystemKeyspaceForTestingReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigVolatileSystemKeyspaceForTestingReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigVolatileSystemKeyspaceForTestingOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigVolatileSystemKeyspaceForTestingDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigVolatileSystemKeyspaceForTestingOK creates a FindConfigVolatileSystemKeyspaceForTestingOK with default headers values -func NewFindConfigVolatileSystemKeyspaceForTestingOK() *FindConfigVolatileSystemKeyspaceForTestingOK { - return &FindConfigVolatileSystemKeyspaceForTestingOK{} -} - -/* -FindConfigVolatileSystemKeyspaceForTestingOK handles this case with default header values. - -Config value -*/ -type FindConfigVolatileSystemKeyspaceForTestingOK struct { - Payload bool -} - -func (o *FindConfigVolatileSystemKeyspaceForTestingOK) GetPayload() bool { - return o.Payload -} - -func (o *FindConfigVolatileSystemKeyspaceForTestingOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigVolatileSystemKeyspaceForTestingDefault creates a FindConfigVolatileSystemKeyspaceForTestingDefault with default headers values -func NewFindConfigVolatileSystemKeyspaceForTestingDefault(code int) *FindConfigVolatileSystemKeyspaceForTestingDefault { - return &FindConfigVolatileSystemKeyspaceForTestingDefault{ - _statusCode: code, - } -} - -/* -FindConfigVolatileSystemKeyspaceForTestingDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigVolatileSystemKeyspaceForTestingDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config volatile system keyspace for testing default response -func (o *FindConfigVolatileSystemKeyspaceForTestingDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigVolatileSystemKeyspaceForTestingDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigVolatileSystemKeyspaceForTestingDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigVolatileSystemKeyspaceForTestingDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_write_request_timeout_in_ms_parameters.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_write_request_timeout_in_ms_parameters.go deleted file mode 100644 index 9eed34ac39..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_write_request_timeout_in_ms_parameters.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewFindConfigWriteRequestTimeoutInMsParams creates a new FindConfigWriteRequestTimeoutInMsParams object -// with the default values initialized. -func NewFindConfigWriteRequestTimeoutInMsParams() *FindConfigWriteRequestTimeoutInMsParams { - - return &FindConfigWriteRequestTimeoutInMsParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewFindConfigWriteRequestTimeoutInMsParamsWithTimeout creates a new FindConfigWriteRequestTimeoutInMsParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewFindConfigWriteRequestTimeoutInMsParamsWithTimeout(timeout time.Duration) *FindConfigWriteRequestTimeoutInMsParams { - - return &FindConfigWriteRequestTimeoutInMsParams{ - - timeout: timeout, - } -} - -// NewFindConfigWriteRequestTimeoutInMsParamsWithContext creates a new FindConfigWriteRequestTimeoutInMsParams object -// with the default values initialized, and the ability to set a context for a request -func NewFindConfigWriteRequestTimeoutInMsParamsWithContext(ctx context.Context) *FindConfigWriteRequestTimeoutInMsParams { - - return &FindConfigWriteRequestTimeoutInMsParams{ - - Context: ctx, - } -} - -// NewFindConfigWriteRequestTimeoutInMsParamsWithHTTPClient creates a new FindConfigWriteRequestTimeoutInMsParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewFindConfigWriteRequestTimeoutInMsParamsWithHTTPClient(client *http.Client) *FindConfigWriteRequestTimeoutInMsParams { - - return &FindConfigWriteRequestTimeoutInMsParams{ - HTTPClient: client, - } -} - -/* -FindConfigWriteRequestTimeoutInMsParams contains all the parameters to send to the API endpoint -for the find config write request timeout in ms operation typically these are written to a http.Request -*/ -type FindConfigWriteRequestTimeoutInMsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the find config write request timeout in ms params -func (o *FindConfigWriteRequestTimeoutInMsParams) WithTimeout(timeout time.Duration) *FindConfigWriteRequestTimeoutInMsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the find config write request timeout in ms params -func (o *FindConfigWriteRequestTimeoutInMsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the find config write request timeout in ms params -func (o *FindConfigWriteRequestTimeoutInMsParams) WithContext(ctx context.Context) *FindConfigWriteRequestTimeoutInMsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the find config write request timeout in ms params -func (o *FindConfigWriteRequestTimeoutInMsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the find config write request timeout in ms params -func (o *FindConfigWriteRequestTimeoutInMsParams) WithHTTPClient(client *http.Client) *FindConfigWriteRequestTimeoutInMsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the find config write request timeout in ms params -func (o *FindConfigWriteRequestTimeoutInMsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *FindConfigWriteRequestTimeoutInMsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_write_request_timeout_in_ms_responses.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_write_request_timeout_in_ms_responses.go deleted file mode 100644 index 72dcdaac2c..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config/find_config_write_request_timeout_in_ms_responses.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package config - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strings" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models" -) - -// FindConfigWriteRequestTimeoutInMsReader is a Reader for the FindConfigWriteRequestTimeoutInMs structure. -type FindConfigWriteRequestTimeoutInMsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *FindConfigWriteRequestTimeoutInMsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewFindConfigWriteRequestTimeoutInMsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewFindConfigWriteRequestTimeoutInMsDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewFindConfigWriteRequestTimeoutInMsOK creates a FindConfigWriteRequestTimeoutInMsOK with default headers values -func NewFindConfigWriteRequestTimeoutInMsOK() *FindConfigWriteRequestTimeoutInMsOK { - return &FindConfigWriteRequestTimeoutInMsOK{} -} - -/* -FindConfigWriteRequestTimeoutInMsOK handles this case with default header values. - -Config value -*/ -type FindConfigWriteRequestTimeoutInMsOK struct { - Payload int64 -} - -func (o *FindConfigWriteRequestTimeoutInMsOK) GetPayload() int64 { - return o.Payload -} - -func (o *FindConfigWriteRequestTimeoutInMsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewFindConfigWriteRequestTimeoutInMsDefault creates a FindConfigWriteRequestTimeoutInMsDefault with default headers values -func NewFindConfigWriteRequestTimeoutInMsDefault(code int) *FindConfigWriteRequestTimeoutInMsDefault { - return &FindConfigWriteRequestTimeoutInMsDefault{ - _statusCode: code, - } -} - -/* -FindConfigWriteRequestTimeoutInMsDefault handles this case with default header values. - -unexpected error -*/ -type FindConfigWriteRequestTimeoutInMsDefault struct { - _statusCode int - - Payload *models.ErrorModel -} - -// Code gets the status code for the find config write request timeout in ms default response -func (o *FindConfigWriteRequestTimeoutInMsDefault) Code() int { - return o._statusCode -} - -func (o *FindConfigWriteRequestTimeoutInMsDefault) GetPayload() *models.ErrorModel { - return o.Payload -} - -func (o *FindConfigWriteRequestTimeoutInMsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.ErrorModel) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -func (o *FindConfigWriteRequestTimeoutInMsDefault) Error() string { - return fmt.Sprintf("agent [HTTP %d] %s", o._statusCode, strings.TrimRight(o.Payload.Message, ".")) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/scylla_v2_client.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/scylla_v2_client.go deleted file mode 100644 index 54bf9ff84e..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/scylla_v2_client.go +++ /dev/null @@ -1,112 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package client - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/runtime" - httptransport "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" - - "github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config" -) - -// Default scylla v2 HTTP client. -var Default = NewHTTPClient(nil) - -const ( - // DefaultHost is the default Host - // found in Meta (info) section of spec file - DefaultHost string = "scylla-manager.magic.host" - // DefaultBasePath is the default BasePath - // found in Meta (info) section of spec file - DefaultBasePath string = "/v2" -) - -// DefaultSchemes are the default schemes found in Meta (info) section of spec file -var DefaultSchemes = []string{"http"} - -// NewHTTPClient creates a new scylla v2 HTTP client. -func NewHTTPClient(formats strfmt.Registry) *ScyllaV2 { - return NewHTTPClientWithConfig(formats, nil) -} - -// NewHTTPClientWithConfig creates a new scylla v2 HTTP client, -// using a customizable transport config. -func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *ScyllaV2 { - // ensure nullable parameters have default - if cfg == nil { - cfg = DefaultTransportConfig() - } - - // create transport and client - transport := httptransport.New(cfg.Host, cfg.BasePath, cfg.Schemes) - return New(transport, formats) -} - -// New creates a new scylla v2 client -func New(transport runtime.ClientTransport, formats strfmt.Registry) *ScyllaV2 { - // ensure nullable parameters have default - if formats == nil { - formats = strfmt.Default - } - - cli := new(ScyllaV2) - cli.Transport = transport - cli.Config = config.New(transport, formats) - return cli -} - -// DefaultTransportConfig creates a TransportConfig with the -// default settings taken from the meta section of the spec file. -func DefaultTransportConfig() *TransportConfig { - return &TransportConfig{ - Host: DefaultHost, - BasePath: DefaultBasePath, - Schemes: DefaultSchemes, - } -} - -// TransportConfig contains the transport related info, -// found in the meta section of the spec file. -type TransportConfig struct { - Host string - BasePath string - Schemes []string -} - -// WithHost overrides the default host, -// provided by the meta section of the spec file. -func (cfg *TransportConfig) WithHost(host string) *TransportConfig { - cfg.Host = host - return cfg -} - -// WithBasePath overrides the default basePath, -// provided by the meta section of the spec file. -func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig { - cfg.BasePath = basePath - return cfg -} - -// WithSchemes overrides the default schemes, -// provided by the meta section of the spec file. -func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig { - cfg.Schemes = schemes - return cfg -} - -// ScyllaV2 is a client for scylla v2 -type ScyllaV2 struct { - Config config.ClientService - - Transport runtime.ClientTransport -} - -// SetTransport changes the transport on the client and all its subresources -func (c *ScyllaV2) SetTransport(transport runtime.ClientTransport) { - c.Transport = transport - c.Config.SetTransport(transport) -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models/client_encryption_options.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models/client_encryption_options.go deleted file mode 100644 index 5b6dc3bc8a..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models/client_encryption_options.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// ClientEncryptionOptions client encryption options -// -// swagger:model ClientEncryptionOptions -type ClientEncryptionOptions struct { - - // certificate - Certificate string `json:"certificate,omitempty"` - - // enabled - Enabled string `json:"enabled,omitempty"` - - // keyfile - Keyfile string `json:"keyfile,omitempty"` - - // require client auth - RequireClientAuth string `json:"require_client_auth,omitempty"` -} - -// Validate validates this client encryption options -func (m *ClientEncryptionOptions) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *ClientEncryptionOptions) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *ClientEncryptionOptions) UnmarshalBinary(b []byte) error { - var res ClientEncryptionOptions - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models/error_model.go b/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models/error_model.go deleted file mode 100644 index 9887571ce7..0000000000 --- a/vendor/github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models/error_model.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package models - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// ErrorModel error model -// -// swagger:model ErrorModel -type ErrorModel struct { - - // code - Code int64 `json:"code,omitempty"` - - // message - Message string `json:"message,omitempty"` -} - -// Validate validates this error model -func (m *ErrorModel) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (m *ErrorModel) MarshalBinary() ([]byte, error) { - if m == nil { - return nil, nil - } - return swag.WriteJSON(m) -} - -// UnmarshalBinary interface implementation -func (m *ErrorModel) UnmarshalBinary(b []byte) error { - var res ErrorModel - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *m = res - return nil -} diff --git a/vendor/modules.txt b/vendor/modules.txt index bd7127e1b5..a98e614c12 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,3 +1,4 @@ +## workspace # cloud.google.com/go/compute/metadata v0.3.0 ## explicit; go 1.19 cloud.google.com/go/compute/metadata @@ -281,6 +282,8 @@ github.com/golang/protobuf/ptypes github.com/golang/protobuf/ptypes/any github.com/golang/protobuf/ptypes/duration github.com/golang/protobuf/ptypes/timestamp +# github.com/golang/snappy v0.0.4 +## explicit # github.com/google/go-cmp v0.6.0 ## explicit; go 1.13 github.com/google/go-cmp/cmp @@ -341,6 +344,8 @@ github.com/klauspost/compress/internal/snapref github.com/klauspost/compress/s2 github.com/klauspost/compress/zstd github.com/klauspost/compress/zstd/internal/xxhash +# github.com/kr/pretty v0.3.1 +## explicit; go 1.12 # github.com/lnquy/cron v1.1.1 ## explicit; go 1.11 github.com/lnquy/cron @@ -468,6 +473,8 @@ github.com/rivo/uniseg # github.com/robfig/cron/v3 v3.0.1 ## explicit; go 1.12 github.com/robfig/cron/v3 +# github.com/rogpeppe/go-internal v1.11.0 +## explicit; go 1.19 # github.com/russross/blackfriday/v2 v2.1.0 ## explicit github.com/russross/blackfriday/v2 @@ -496,55 +503,15 @@ github.com/scylladb/gocqlx/v2/table ## explicit; go 1.23.2 github.com/scylladb/scylla-manager/backupspec # github.com/scylladb/scylla-manager/v3/pkg/managerclient v0.0.0-20251118100959-f48f8c2d4bdd -## explicit; go 1.23.2 -github.com/scylladb/scylla-manager/v3/pkg/managerclient -github.com/scylladb/scylla-manager/v3/pkg/managerclient/table +## explicit; go 1.25.1 +# github.com/scylladb/scylla-manager/v3/pkg/util v0.0.0-20250530081649-30bcf253e6a6 +## explicit; go 1.25.1 # github.com/scylladb/scylla-manager/v3/pkg/util v0.0.0-20251118100959-f48f8c2d4bdd -## explicit; go 1.23.2 -github.com/scylladb/scylla-manager/v3/pkg/util -github.com/scylladb/scylla-manager/v3/pkg/util/certutil -github.com/scylladb/scylla-manager/v3/pkg/util/cfgutil -github.com/scylladb/scylla-manager/v3/pkg/util/clipper -github.com/scylladb/scylla-manager/v3/pkg/util/cpuset -github.com/scylladb/scylla-manager/v3/pkg/util/duration -github.com/scylladb/scylla-manager/v3/pkg/util/fsutil -github.com/scylladb/scylla-manager/v3/pkg/util/httplog -github.com/scylladb/scylla-manager/v3/pkg/util/httppprof -github.com/scylladb/scylla-manager/v3/pkg/util/httpx -github.com/scylladb/scylla-manager/v3/pkg/util/inexlist -github.com/scylladb/scylla-manager/v3/pkg/util/inexlist/dcfilter -github.com/scylladb/scylla-manager/v3/pkg/util/inexlist/ksfilter -github.com/scylladb/scylla-manager/v3/pkg/util/jsonutil -github.com/scylladb/scylla-manager/v3/pkg/util/logutil -github.com/scylladb/scylla-manager/v3/pkg/util/maputil -github.com/scylladb/scylla-manager/v3/pkg/util/netwait -github.com/scylladb/scylla-manager/v3/pkg/util/osutil -github.com/scylladb/scylla-manager/v3/pkg/util/parallel -github.com/scylladb/scylla-manager/v3/pkg/util/pathparser -github.com/scylladb/scylla-manager/v3/pkg/util/pointer -github.com/scylladb/scylla-manager/v3/pkg/util/prom -github.com/scylladb/scylla-manager/v3/pkg/util/query -github.com/scylladb/scylla-manager/v3/pkg/util/retry -github.com/scylladb/scylla-manager/v3/pkg/util/schedules -github.com/scylladb/scylla-manager/v3/pkg/util/sizesuffix -github.com/scylladb/scylla-manager/v3/pkg/util/slice -github.com/scylladb/scylla-manager/v3/pkg/util/timeutc -github.com/scylladb/scylla-manager/v3/pkg/util/uuid -github.com/scylladb/scylla-manager/v3/pkg/util/version -github.com/scylladb/scylla-manager/v3/pkg/util/workerpool +## explicit; go 1.25.1 +# github.com/scylladb/scylla-manager/v3/swagger v0.0.0-20250818141015-50f1d9b3b087 +## explicit; go 1.25.1 # github.com/scylladb/scylla-manager/v3/swagger v0.0.0-20251118100959-f48f8c2d4bdd -## explicit; go 1.23.2 -github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client -github.com/scylladb/scylla-manager/v3/swagger/gen/agent/client/operations -github.com/scylladb/scylla-manager/v3/swagger/gen/agent/models -github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/client/operations -github.com/scylladb/scylla-manager/v3/swagger/gen/scylla-manager/models -github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client -github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/client/operations -github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v1/models -github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client -github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/client/config -github.com/scylladb/scylla-manager/v3/swagger/gen/scylla/v2/models +## explicit; go 1.25.1 # github.com/scylladb/termtables v0.0.0-20191203121021-c4c0b6d42ff4 ## explicit github.com/scylladb/termtables